Package ca.uhn.fhir.validation
Class ValidationResult
java.lang.Object
ca.uhn.fhir.validation.ValidationResult
Encapsulates the results of validation
- Since:
- 0.7
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionValidationResult
(FhirContext theCtx, List<SingleValidationMessage> theMessages) -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.boolean
Was the validation successful (in other words, do we have no issues that are at severityResultSeverityEnum.ERROR
orResultSeverityEnum.FATAL
.void
populateOperationOutcome
(IBaseOperationOutcome theOperationOutcome) Populate an operation outcome with the results of the validationvoid
setErrorDisplayLimit
(int theErrorDisplayLimit) Create an OperationOutcome resource which contains all of the messages found as a result of this validationtoString()
-
Field Details
-
ERROR_DISPLAY_LIMIT_DEFAULT
- See Also:
-
UNKNOWN
- See Also:
-
-
Constructor Details
-
ValidationResult
-
-
Method Details
-
getMessages
-
isSuccessful
Was the validation successful (in other words, do we have no issues that are at severityResultSeverityEnum.ERROR
orResultSeverityEnum.FATAL
. A validation is still considered successful if it only has issues at levelResultSeverityEnum.WARNING
or lower.- Returns:
- true if the validation was successful
-
getOperationOutcome
Deprecated.UsetoOperationOutcome()
instead since this method returns a view.toOperationOutcome()
is identical to this method, but has a more suitable name so this method will be removed at some point. -
toOperationOutcome
Create an OperationOutcome resource which contains all of the messages found as a result of this validation -
populateOperationOutcome
Populate an operation outcome with the results of the validation -
toString
-
getContext
- Since:
- 5.5.0
-
getErrorDisplayLimit
-
setErrorDisplayLimit
-
toOperationOutcome()
instead since this method returns a view.