Class InMemoryTerminologyServerValidationSupport

  • All Implemented Interfaces:
    ca.uhn.fhir.context.support.IValidationSupport

    public class InMemoryTerminologyServerValidationSupport
    extends Object
    implements ca.uhn.fhir.context.support.IValidationSupport
    This class is a basic in-memory terminology service, designed to expand ValueSets and validate codes completely in-memory. It is suitable for runtime validation purposes where no dedicated terminology service exists (either an internal one such as the HAPI FHIR JPA terminology service, or an external term service API)
    • 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 inherited from interface ca.uhn.fhir.context.support.IValidationSupport

        URL_PREFIX_VALUE_SET
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ca.uhn.fhir.context.support.IValidationSupport.ValueSetExpansionOutcome expandValueSet​(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ValueSetExpansionOptions theExpansionOptions, org.hl7.fhir.instance.model.api.IBaseResource theValueSetToExpand)  
      ca.uhn.fhir.context.FhirContext getFhirContext()  
      boolean isCodeSystemSupported​(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem)  
      boolean isValueSetSupported​(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theValueSetUrl)  
      ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult lookupCode​(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem, String theCode)  
      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)  
      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, org.hl7.fhir.instance.model.api.IBaseResource theValueSet)  
      • Methods inherited from interface ca.uhn.fhir.context.support.IValidationSupport

        fetchAllConformanceResources, fetchAllStructureDefinitions, fetchCodeSystem, fetchResource, fetchStructureDefinition, fetchValueSet, generateSnapshot, invalidateCaches
    • Method Detail

      • getFhirContext

        public ca.uhn.fhir.context.FhirContext getFhirContext()
        Specified by:
        getFhirContext in interface ca.uhn.fhir.context.support.IValidationSupport
      • expandValueSet

        public ca.uhn.fhir.context.support.IValidationSupport.ValueSetExpansionOutcome expandValueSet​(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext,
                                                                                                      ca.uhn.fhir.context.support.ValueSetExpansionOptions theExpansionOptions,
                                                                                                      org.hl7.fhir.instance.model.api.IBaseResource theValueSetToExpand)
        Specified by:
        expandValueSet in interface ca.uhn.fhir.context.support.IValidationSupport
      • 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:
        validateCodeInValueSet in interface ca.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:
        validateCode in interface ca.uhn.fhir.context.support.IValidationSupport
      • lookupCode

        public ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult lookupCode​(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext,
                                                                                          String theSystem,
                                                                                          String theCode)
        Specified by:
        lookupCode in interface ca.uhn.fhir.context.support.IValidationSupport
      • isCodeSystemSupported

        public boolean isCodeSystemSupported​(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext,
                                             String theSystem)
        Specified by:
        isCodeSystemSupported in interface ca.uhn.fhir.context.support.IValidationSupport
      • isValueSetSupported

        public boolean isValueSetSupported​(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext,
                                           String theValueSetUrl)
        Specified by:
        isValueSetSupported in interface ca.uhn.fhir.context.support.IValidationSupport