Class CommonCodeSystemsTerminologyService
- java.lang.Object
-
- org.hl7.fhir.common.hapi.validation.support.CommonCodeSystemsTerminologyService
-
- All Implemented Interfaces:
ca.uhn.fhir.context.support.IValidationSupport
public class CommonCodeSystemsTerminologyService extends Object implements ca.uhn.fhir.context.support.IValidationSupport
Thisvalidation support modulecan be used to validate codes against common CodeSystems that are commonly used, but are not distriuted with the FHIR specification for various reasons (size, complexity, etc.).See CommonCodeSystemsTerminologyService in the HAPI FHIR documentation for details about what is and isn't covered by this class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ca.uhn.fhir.context.support.IValidationSupport
ca.uhn.fhir.context.support.IValidationSupport.BaseConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult, ca.uhn.fhir.context.support.IValidationSupport.CodingConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.ConceptDesignation, ca.uhn.fhir.context.support.IValidationSupport.IssueSeverity, ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult, ca.uhn.fhir.context.support.IValidationSupport.StringConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.ValueSetExpansionOutcome
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOUNTRIES_CODESYSTEM_URLstatic StringCURRENCIES_CODESYSTEM_URLstatic StringCURRENCIES_VALUESET_URLstatic StringLANGUAGES_VALUESET_URLstatic StringMIMETYPES_CODESYSTEM_URLstatic StringMIMETYPES_VALUESET_URLstatic StringUCUM_CODESYSTEM_URLstatic StringUCUM_VALUESET_URL
-
Constructor Summary
Constructors Constructor Description CommonCodeSystemsTerminologyService(ca.uhn.fhir.context.FhirContext theFhirContext)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hl7.fhir.instance.model.api.IBaseResourcefetchCodeSystem(String theSystem)ca.uhn.fhir.context.FhirContextgetFhirContext()static StringgetValueSetUrl(org.hl7.fhir.instance.model.api.IBaseResource theValueSet)booleanisCodeSystemSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem)booleanisValueSetSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theValueSetUrl)ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResultlookupCode(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem, String theCode)ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResultvalidateCode(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, String theValueSetUrl)ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResultvalidateCodeInValueSet(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, org.hl7.fhir.instance.model.api.IBaseResource theValueSet)ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResultvalidateLookupCode(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theCode, String theSystem)
-
-
-
Field Detail
-
LANGUAGES_VALUESET_URL
public static final String LANGUAGES_VALUESET_URL
- See Also:
- Constant Field Values
-
MIMETYPES_VALUESET_URL
public static final String MIMETYPES_VALUESET_URL
- See Also:
- Constant Field Values
-
MIMETYPES_CODESYSTEM_URL
public static final String MIMETYPES_CODESYSTEM_URL
- See Also:
- Constant Field Values
-
CURRENCIES_CODESYSTEM_URL
public static final String CURRENCIES_CODESYSTEM_URL
- See Also:
- Constant Field Values
-
CURRENCIES_VALUESET_URL
public static final String CURRENCIES_VALUESET_URL
- See Also:
- Constant Field Values
-
COUNTRIES_CODESYSTEM_URL
public static final String COUNTRIES_CODESYSTEM_URL
- See Also:
- Constant Field Values
-
UCUM_CODESYSTEM_URL
public static final String UCUM_CODESYSTEM_URL
- See Also:
- Constant Field Values
-
UCUM_VALUESET_URL
public static final String UCUM_VALUESET_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommonCodeSystemsTerminologyService
public CommonCodeSystemsTerminologyService(ca.uhn.fhir.context.FhirContext theFhirContext)
Constructor
-
-
Method Detail
-
validateCodeInValueSet
public ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult validateCodeInValueSet(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, @Nonnull org.hl7.fhir.instance.model.api.IBaseResource theValueSet)
- Specified by:
validateCodeInValueSetin interfaceca.uhn.fhir.context.support.IValidationSupport
-
validateCode
public ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult validateCode(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, String theValueSetUrl)
- Specified by:
validateCodein interfaceca.uhn.fhir.context.support.IValidationSupport
-
validateLookupCode
@Nullable public ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult validateLookupCode(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theCode, String theSystem)
-
lookupCode
public ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult lookupCode(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem, String theCode)
- Specified by:
lookupCodein interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchCodeSystem
public org.hl7.fhir.instance.model.api.IBaseResource fetchCodeSystem(String theSystem)
- Specified by:
fetchCodeSystemin interfaceca.uhn.fhir.context.support.IValidationSupport
-
isCodeSystemSupported
public boolean isCodeSystemSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem)
- Specified by:
isCodeSystemSupportedin interfaceca.uhn.fhir.context.support.IValidationSupport
-
isValueSetSupported
public boolean isValueSetSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theValueSetUrl)
- Specified by:
isValueSetSupportedin interfaceca.uhn.fhir.context.support.IValidationSupport
-
getFhirContext
public ca.uhn.fhir.context.FhirContext getFhirContext()
- Specified by:
getFhirContextin interfaceca.uhn.fhir.context.support.IValidationSupport
-
getValueSetUrl
public static String getValueSetUrl(@Nonnull org.hl7.fhir.instance.model.api.IBaseResource theValueSet)
-
-