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
This
validation support module can 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.TranslateCodeRequest, ca.uhn.fhir.context.support.IValidationSupport.ValueSetExpansionOutcome -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface ca.uhn.fhir.context.support.IValidationSupport
URL_PREFIX_VALUE_SET -
Constructor Summary
ConstructorsConstructorDescriptionCommonCodeSystemsTerminologyService(ca.uhn.fhir.context.FhirContext theFhirContext) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IBaseResourcefetchCodeSystem(String theSystem) static StringgetCodeSystemUrl(org.hl7.fhir.instance.model.api.IBaseResource theCodeSystem) ca.uhn.fhir.context.FhirContextstatic StringgetValueSetUrl(org.hl7.fhir.instance.model.api.IBaseResource theValueSet) static StringgetValueSetVersion(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, String theDisplayLanguage) 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.context.support.IValidationSupport
expandValueSet, expandValueSet, fetchAllConformanceResources, fetchAllNonBaseStructureDefinitions, fetchAllStructureDefinitions, fetchResource, fetchStructureDefinition, fetchValueSet, generateSnapshot, invalidateCaches, isRemoteTerminologyServiceConfigured, lookupCode, translateConcept
-
Field Details
-
LANGUAGES_VALUESET_URL
- See Also:
-
LANGUAGES_CODESYSTEM_URL
- See Also:
-
MIMETYPES_VALUESET_URL
- See Also:
-
MIMETYPES_CODESYSTEM_URL
- See Also:
-
CURRENCIES_CODESYSTEM_URL
- See Also:
-
CURRENCIES_VALUESET_URL
- See Also:
-
COUNTRIES_CODESYSTEM_URL
- See Also:
-
UCUM_CODESYSTEM_URL
- See Also:
-
UCUM_VALUESET_URL
- See Also:
-
ALL_LANGUAGES_VALUESET_URL
- See Also:
-
-
Constructor Details
-
CommonCodeSystemsTerminologyService
Constructor
-
-
Method Details
-
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(@Nonnull ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, @Nonnull 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, String theDisplayLanguage) - Specified by:
lookupCodein interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchCodeSystem
- 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
- Specified by:
getFhirContextin interfaceca.uhn.fhir.context.support.IValidationSupport
-
getValueSetUrl
public static String getValueSetUrl(@Nonnull org.hl7.fhir.instance.model.api.IBaseResource theValueSet) -
getCodeSystemUrl
public static String getCodeSystemUrl(@Nonnull org.hl7.fhir.instance.model.api.IBaseResource theCodeSystem) -
getValueSetVersion
public static String getValueSetVersion(@Nonnull org.hl7.fhir.instance.model.api.IBaseResource theValueSet)
-