
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValidationResult(FhirContext theCtx, List<SingleValidationMessage> theMessages) -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.booleanWas the validation successful (in other words, do we have no issues that are at severityResultSeverityEnum.ERRORorResultSeverityEnum.FATAL.voidpopulateOperationOutcome(IBaseOperationOutcome theOperationOutcome) Populate an operation outcome with the results of the validationvoidsetErrorDisplayLimit(int theErrorDisplayLimit) Create an OperationOutcome resource which contains all 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.ERRORorResultSeverityEnum.FATAL. A validation is still considered successful if it only has issues at levelResultSeverityEnum.WARNINGor 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 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.