Package ca.uhn.fhir.context.support
Class IValidationSupport.CodeValidationResult
java.lang.Object
ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult
- Enclosing interface:
IValidationSupport
This is a hapi-fhir internal version agnostic object holding information about the validation result.
An alternative (which requires significant refactoring) would be to use org.hl7.fhir.r5.terminologies.utilities.ValidationResult.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCodeValidationIssue
(IValidationSupport.CodeValidationIssue theCodeValidationIssue) Deprecated.addIssue
(IValidationSupport.CodeValidationIssue theCodeValidationIssue) asLookupCodeResult
(String theSearchedForSystem, String theSearchedForCode) getCode()
Deprecated.Please use methodgetIssues()
instead.Convenience method that returnsgetSeverity()
as an IssueSeverity code stringThis field may contain information about what the source of the validation information was.boolean
isOk()
setCodeSystemName
(String theCodeSystemName) setCodeSystemVersion
(String theCodeSystemVersion) setCodeValidationIssues
(List<IValidationSupport.CodeValidationIssue> theCodeValidationIssues) Deprecated.Please use methodsetIssues(List)
instead.setDisplay
(String theDisplay) setIssues
(List<IValidationSupport.CodeValidationIssue> theIssues) setMessage
(String theMessage) void
setProperties
(List<IValidationSupport.BaseConceptProperty> theProperties) setSeverity
(IValidationSupport.IssueSeverity theSeverity) setSeverityCode
(String theSeverityCode) Deprecated.setSourceDetails
(String theSourceDetails) This field may contain information about what the source of the validation information was.toParameters
(FhirContext theContext)
-
Field Details
-
SOURCE_DETAILS
- See Also:
-
RESULT
- See Also:
-
MESSAGE
- See Also:
-
DISPLAY
- See Also:
-
-
Constructor Details
-
CodeValidationResult
public CodeValidationResult()
-
-
Method Details
-
getSourceDetails
This field may contain information about what the source of the validation information was. -
setSourceDetails
This field may contain information about what the source of the validation information was. -
getDisplay
-
setDisplay
-
getCode
-
setCode
-
getCodeSystemName
-
setCodeSystemName
-
getCodeSystemVersion
-
setCodeSystemVersion
-
getMessage
-
setMessage
-
getProperties
-
setProperties
-
getSeverity
-
setSeverity
public IValidationSupport.CodeValidationResult setSeverity(IValidationSupport.IssueSeverity theSeverity) -
getCodeValidationIssues
@Deprecated(since="7.4.6") public List<IValidationSupport.CodeValidationIssue> getCodeValidationIssues()Deprecated.Please use methodgetIssues()
instead. -
setCodeValidationIssues
@Deprecated(since="7.4.6") public IValidationSupport.CodeValidationResult setCodeValidationIssues(List<IValidationSupport.CodeValidationIssue> theCodeValidationIssues) Deprecated.Please use methodsetIssues(List)
instead. -
addCodeValidationIssue
@Deprecated(since="7.4.6") public IValidationSupport.CodeValidationResult addCodeValidationIssue(IValidationSupport.CodeValidationIssue theCodeValidationIssue) Deprecated.Please use methodaddIssue(CodeValidationIssue)
instead. -
getIssues
-
setIssues
-
addIssue
public IValidationSupport.CodeValidationResult addIssue(IValidationSupport.CodeValidationIssue theCodeValidationIssue) -
isOk
-
asLookupCodeResult
public IValidationSupport.LookupCodeResult asLookupCodeResult(String theSearchedForSystem, String theSearchedForCode) -
getSeverityCode
Convenience method that returnsgetSeverity()
as an IssueSeverity code string -
setSeverityCode
@Deprecated(since="7.4.6") public IValidationSupport.CodeValidationResult setSeverityCode(@Nonnull String theSeverityCode) Deprecated.Sets an issue severity using a severity code. Please use methodsetSeverity(IssueSeverity)
instead.- Parameters:
theSeverityCode
- the code- Returns:
- the current
IValidationSupport.CodeValidationResult
instance
-
toParameters
-
addIssue(CodeValidationIssue)
instead.