Class 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
    • Method Detail

      • 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 void loadFromPackage​(org.hl7.fhir.utilities.cache.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
      • hasPackage

        public boolean hasPackage​(String id,
                                  String ver)
        Specified by:
        hasPackage 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
      • 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.PackageVersion packageDetails,
                                 List<org.hl7.fhir.r5.context.IWorkerContext.PackageVersion> dependencies)
        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 heirarchical)
                                                                                         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
      • 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,
                                                                          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

        public List<StringgetResourceNames()
        Specified by:
        getResourceNames in interface org.hl7.fhir.r5.context.IWorkerContext
      • getResourceNamesAsSet

        public Set<StringgetResourceNamesAsSet()
        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

        public String 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

        public List<StringgetTypeNames()
        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
      • 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
      • 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.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
      • validateCode

        public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult validateCode​(org.hl7.fhir.utilities.validation.ValidationOptions theOptions,
                                                                                    String system,
                                                                                    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 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 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
      • convertConceptValidationOptions

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