Class VersionSpecificWorkerContextWrapper

java.lang.Object
org.hl7.fhir.utilities.i18n.I18nBase
org.hl7.fhir.common.hapi.validation.validator.VersionSpecificWorkerContextWrapper
All Implemented Interfaces:
org.hl7.fhir.r5.context.IWorkerContext

public class VersionSpecificWorkerContextWrapper extends org.hl7.fhir.utilities.i18n.I18nBase implements org.hl7.fhir.r5.context.IWorkerContext
  • Field Details

  • Constructor Details

  • Method Details

    • allConformanceResources

      public List<org.hl7.fhir.r5.model.CanonicalResource> allConformanceResources()
      Specified by:
      allConformanceResources in interface org.hl7.fhir.r5.context.IWorkerContext
    • getLinkForUrl

      public String getLinkForUrl(String corePath, String url)
      Specified by:
      getLinkForUrl in interface org.hl7.fhir.r5.context.IWorkerContext
    • getBinaries

      public Map<String,byte[]> getBinaries()
      Specified by:
      getBinaries in interface org.hl7.fhir.r5.context.IWorkerContext
    • loadFromPackage

      public int loadFromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader) throws org.hl7.fhir.exceptions.FHIRException
      Specified by:
      loadFromPackage in interface org.hl7.fhir.r5.context.IWorkerContext
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • loadFromPackage

      public int loadFromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader, String[] types) throws org.hl7.fhir.exceptions.FHIRException
      Specified by:
      loadFromPackage in interface org.hl7.fhir.r5.context.IWorkerContext
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • loadFromPackageAndDependencies

      public int loadFromPackageAndDependencies(org.hl7.fhir.utilities.npm.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader, org.hl7.fhir.utilities.npm.BasePackageCacheManager pcm) throws org.hl7.fhir.exceptions.FHIRException
      Specified by:
      loadFromPackageAndDependencies in interface org.hl7.fhir.r5.context.IWorkerContext
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasPackage

      public boolean hasPackage(String id, String ver)
      Specified by:
      hasPackage in interface org.hl7.fhir.r5.context.IWorkerContext
    • hasPackage

      public boolean hasPackage(org.hl7.fhir.r5.context.IWorkerContext.PackageVersion packageVersion)
      Specified by:
      hasPackage in interface org.hl7.fhir.r5.context.IWorkerContext
    • getPackage

      public org.hl7.fhir.r5.context.IWorkerContext.PackageDetails getPackage(org.hl7.fhir.r5.context.IWorkerContext.PackageVersion packageVersion)
      Specified by:
      getPackage in interface org.hl7.fhir.r5.context.IWorkerContext
    • getClientRetryCount

      public int getClientRetryCount()
      Specified by:
      getClientRetryCount in interface org.hl7.fhir.r5.context.IWorkerContext
    • setClientRetryCount

      public org.hl7.fhir.r5.context.IWorkerContext setClientRetryCount(int value)
      Specified by:
      setClientRetryCount in interface org.hl7.fhir.r5.context.IWorkerContext
    • clock

      public org.hl7.fhir.utilities.TimeTracker clock()
      Specified by:
      clock in interface org.hl7.fhir.r5.context.IWorkerContext
    • getPackageForUrl

      public org.hl7.fhir.r5.context.IWorkerContext.PackageVersion getPackageForUrl(String s)
      Specified by:
      getPackageForUrl in interface org.hl7.fhir.r5.context.IWorkerContext
    • generateSnapshot

      public void generateSnapshot(org.hl7.fhir.r5.model.StructureDefinition input) throws org.hl7.fhir.exceptions.FHIRException
      Specified by:
      generateSnapshot in interface org.hl7.fhir.r5.context.IWorkerContext
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • generateSnapshot

      public void generateSnapshot(org.hl7.fhir.r5.model.StructureDefinition theStructureDefinition, boolean theB)
      Specified by:
      generateSnapshot in interface org.hl7.fhir.r5.context.IWorkerContext
    • getExpansionParameters

      public org.hl7.fhir.r5.model.Parameters getExpansionParameters()
      Specified by:
      getExpansionParameters in interface org.hl7.fhir.r5.context.IWorkerContext
    • setExpansionProfile

      public void setExpansionProfile(org.hl7.fhir.r5.model.Parameters expParameters)
      Specified by:
      setExpansionProfile in interface org.hl7.fhir.r5.context.IWorkerContext
    • allStructures

      public List<org.hl7.fhir.r5.model.StructureDefinition> allStructures()
      Specified by:
      allStructures in interface org.hl7.fhir.r5.context.IWorkerContext
    • getStructures

      public List<org.hl7.fhir.r5.model.StructureDefinition> getStructures()
      Specified by:
      getStructures in interface org.hl7.fhir.r5.context.IWorkerContext
    • cacheResource

      public void cacheResource(org.hl7.fhir.r5.model.Resource res)
      Specified by:
      cacheResource in interface org.hl7.fhir.r5.context.IWorkerContext
    • cacheResourceFromPackage

      public void cacheResourceFromPackage(org.hl7.fhir.r5.model.Resource res, org.hl7.fhir.r5.context.IWorkerContext.PackageVersion packageDetails) throws org.hl7.fhir.exceptions.FHIRException
      Specified by:
      cacheResourceFromPackage in interface org.hl7.fhir.r5.context.IWorkerContext
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • cachePackage

      public void cachePackage(org.hl7.fhir.r5.context.IWorkerContext.PackageDetails packageDetails, List<org.hl7.fhir.r5.context.IWorkerContext.PackageVersion> list)
      Specified by:
      cachePackage in interface org.hl7.fhir.r5.context.IWorkerContext
    • expandVS

      public org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r5.model.ValueSet source, boolean cacheOk, boolean Hierarchical)
      Specified by:
      expandVS in interface org.hl7.fhir.r5.context.IWorkerContext
    • expandVS

      public org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent binding, boolean cacheOk, boolean Hierarchical)
      Specified by:
      expandVS in interface org.hl7.fhir.r5.context.IWorkerContext
    • expandVS

      public org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent inc, boolean hierarchical, boolean noInactive) throws org.hl7.fhir.exceptions.TerminologyServiceException
      Specified by:
      expandVS in interface org.hl7.fhir.r5.context.IWorkerContext
      Throws:
      org.hl7.fhir.exceptions.TerminologyServiceException
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface org.hl7.fhir.r5.context.IWorkerContext
      Overrides:
      getLocale in class org.hl7.fhir.utilities.i18n.I18nBase
    • setLocale

      public void setLocale(Locale locale)
      Specified by:
      setLocale in interface org.hl7.fhir.r5.context.IWorkerContext
      Overrides:
      setLocale in class org.hl7.fhir.utilities.i18n.I18nBase
    • fetchCodeSystem

      public org.hl7.fhir.r5.model.CodeSystem fetchCodeSystem(String system)
      Specified by:
      fetchCodeSystem in interface org.hl7.fhir.r5.context.IWorkerContext
    • fetchCodeSystem

      public org.hl7.fhir.r5.model.CodeSystem fetchCodeSystem(String system, String verison)
      Specified by:
      fetchCodeSystem in interface org.hl7.fhir.r5.context.IWorkerContext
    • fetchResource

      public <T extends org.hl7.fhir.r5.model.Resource> T fetchResource(Class<T> class_, String uri)
      Specified by:
      fetchResource in interface org.hl7.fhir.r5.context.IWorkerContext
    • fetchResourceById

      public org.hl7.fhir.r5.model.Resource fetchResourceById(String type, String uri)
      Specified by:
      fetchResourceById in interface org.hl7.fhir.r5.context.IWorkerContext
    • fetchResourceWithException

      public <T extends org.hl7.fhir.r5.model.Resource> T fetchResourceWithException(Class<T> class_, String uri) throws org.hl7.fhir.exceptions.FHIRException
      Specified by:
      fetchResourceWithException in interface org.hl7.fhir.r5.context.IWorkerContext
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fetchResource

      public <T extends org.hl7.fhir.r5.model.Resource> T fetchResource(Class<T> class_, String uri, String version)
      Specified by:
      fetchResource in interface org.hl7.fhir.r5.context.IWorkerContext
    • fetchResource

      public <T extends org.hl7.fhir.r5.model.Resource> T fetchResource(Class<T> class_, String uri, org.hl7.fhir.r5.model.CanonicalResource canonicalForSource)
      Specified by:
      fetchResource in interface org.hl7.fhir.r5.context.IWorkerContext
    • findMapsForSource

      public List<org.hl7.fhir.r5.model.ConceptMap> findMapsForSource(String url)
      Specified by:
      findMapsForSource in interface org.hl7.fhir.r5.context.IWorkerContext
    • getAbbreviation

      public String getAbbreviation(String name)
      Specified by:
      getAbbreviation in interface org.hl7.fhir.r5.context.IWorkerContext
    • getParser

      public org.hl7.fhir.r5.formats.IParser getParser(org.hl7.fhir.r5.formats.ParserType type)
      Specified by:
      getParser in interface org.hl7.fhir.r5.context.IWorkerContext
    • getParser

      public org.hl7.fhir.r5.formats.IParser getParser(String type)
      Specified by:
      getParser in interface org.hl7.fhir.r5.context.IWorkerContext
    • getResourceNames

      Specified by:
      getResourceNames in interface org.hl7.fhir.r5.context.IWorkerContext
    • getResourceNamesAsSet

      Specified by:
      getResourceNamesAsSet in interface org.hl7.fhir.r5.context.IWorkerContext
    • getTransform

      public org.hl7.fhir.r5.model.StructureMap getTransform(String url)
      Specified by:
      getTransform in interface org.hl7.fhir.r5.context.IWorkerContext
    • getOverrideVersionNs

      Specified by:
      getOverrideVersionNs in interface org.hl7.fhir.r5.context.IWorkerContext
    • setOverrideVersionNs

      public void setOverrideVersionNs(String value)
      Specified by:
      setOverrideVersionNs in interface org.hl7.fhir.r5.context.IWorkerContext
    • fetchTypeDefinition

      public org.hl7.fhir.r5.model.StructureDefinition fetchTypeDefinition(String typeName)
      Specified by:
      fetchTypeDefinition in interface org.hl7.fhir.r5.context.IWorkerContext
    • fetchRawProfile

      public org.hl7.fhir.r5.model.StructureDefinition fetchRawProfile(String url)
      Specified by:
      fetchRawProfile in interface org.hl7.fhir.r5.context.IWorkerContext
    • getTypeNames

      Specified by:
      getTypeNames in interface org.hl7.fhir.r5.context.IWorkerContext
    • getUcumService

      public org.fhir.ucum.UcumService getUcumService()
      Specified by:
      getUcumService in interface org.hl7.fhir.r5.context.IWorkerContext
    • setUcumService

      public void setUcumService(org.fhir.ucum.UcumService ucumService)
      Specified by:
      setUcumService in interface org.hl7.fhir.r5.context.IWorkerContext
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface org.hl7.fhir.r5.context.IWorkerContext
    • getSpecUrl

      public String getSpecUrl()
      Specified by:
      getSpecUrl in interface org.hl7.fhir.r5.context.IWorkerContext
    • hasCache

      public boolean hasCache()
      Specified by:
      hasCache in interface org.hl7.fhir.r5.context.IWorkerContext
    • hasResource

      public <T extends org.hl7.fhir.r5.model.Resource> boolean hasResource(Class<T> class_, String uri)
      Specified by:
      hasResource in interface org.hl7.fhir.r5.context.IWorkerContext
    • isNoTerminologyServer

      public boolean isNoTerminologyServer()
      Specified by:
      isNoTerminologyServer in interface org.hl7.fhir.r5.context.IWorkerContext
    • getCodeSystemsUsed

      Specified by:
      getCodeSystemsUsed in interface org.hl7.fhir.r5.context.IWorkerContext
    • listTransforms

      public List<org.hl7.fhir.r5.model.StructureMap> listTransforms()
      Specified by:
      listTransforms in interface org.hl7.fhir.r5.context.IWorkerContext
    • newJsonParser

      public org.hl7.fhir.r5.formats.IParser newJsonParser()
      Specified by:
      newJsonParser in interface org.hl7.fhir.r5.context.IWorkerContext
    • newValidator

      public org.hl7.fhir.r5.utils.validation.IResourceValidator newValidator()
      Specified by:
      newValidator in interface org.hl7.fhir.r5.context.IWorkerContext
    • newXmlParser

      public org.hl7.fhir.r5.formats.IParser newXmlParser()
      Specified by:
      newXmlParser in interface org.hl7.fhir.r5.context.IWorkerContext
    • oid2Uri

      public String oid2Uri(String code)
      Specified by:
      oid2Uri in interface org.hl7.fhir.r5.context.IWorkerContext
    • getLogger

      public org.hl7.fhir.r5.context.IWorkerContext.ILoggingService getLogger()
      Specified by:
      getLogger in interface org.hl7.fhir.r5.context.IWorkerContext
    • setLogger

      public void setLogger(org.hl7.fhir.r5.context.IWorkerContext.ILoggingService logger)
      Specified by:
      setLogger in interface org.hl7.fhir.r5.context.IWorkerContext
    • supportsSystem

      public boolean supportsSystem(String system)
      Specified by:
      supportsSystem in interface org.hl7.fhir.r5.context.IWorkerContext
    • translator

      public org.hl7.fhir.utilities.TranslationServices translator()
      Specified by:
      translator in interface org.hl7.fhir.r5.context.IWorkerContext
    • expandVS

      public org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r5.model.ValueSet source, boolean cacheOk, boolean heiarchical, boolean incompleteOk)
      Specified by:
      expandVS in interface org.hl7.fhir.r5.context.IWorkerContext
    • validateCode

      public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String system, String version, String code, String display)
      Specified by:
      validateCode in interface org.hl7.fhir.r5.context.IWorkerContext
    • validateCode

      public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String theSystem, String version, String theCode, String display, org.hl7.fhir.r5.model.ValueSet theValueSet)
      Specified by:
      validateCode in interface org.hl7.fhir.r5.context.IWorkerContext
    • validateCode

      public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String code, org.hl7.fhir.r5.model.ValueSet theValueSet)
      Specified by:
      validateCode in interface org.hl7.fhir.r5.context.IWorkerContext
    • validateCode

      public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, org.hl7.fhir.r5.model.Coding theCoding, org.hl7.fhir.r5.model.ValueSet theValueSet)
      Specified by:
      validateCode in interface org.hl7.fhir.r5.context.IWorkerContext
    • validateCode

      public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options, org.hl7.fhir.r5.model.Coding code, org.hl7.fhir.r5.model.ValueSet vs, org.hl7.fhir.r5.utils.validation.ValidationContextCarrier ctxt)
      Specified by:
      validateCode in interface org.hl7.fhir.r5.context.IWorkerContext
    • validateCodeBatch

      public void validateCodeBatch(org.hl7.fhir.utilities.validation.ValidationOptions options, List<? extends org.hl7.fhir.r5.context.IWorkerContext.CodingValidationRequest> codes, org.hl7.fhir.r5.model.ValueSet vs)
      Specified by:
      validateCodeBatch in interface org.hl7.fhir.r5.context.IWorkerContext
    • validateCode

      public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, org.hl7.fhir.r5.model.CodeableConcept code, org.hl7.fhir.r5.model.ValueSet theVs)
      Specified by:
      validateCode in interface org.hl7.fhir.r5.context.IWorkerContext
    • invalidateCaches

      public void invalidateCaches()
    • convertConceptValidationOptions

      public static ca.uhn.fhir.context.support.ConceptValidationOptions convertConceptValidationOptions(org.hl7.fhir.utilities.validation.ValidationOptions theOptions)
    • newVersionSpecificWorkerContextWrapper

      @Nonnull public static VersionSpecificWorkerContextWrapper newVersionSpecificWorkerContextWrapper(ca.uhn.fhir.context.support.IValidationSupport theValidationSupport)