Class HapiWorkerContext

  • All Implemented Interfaces:
    org.hl7.fhir.dstu2016may.utils.IWorkerContext

    public final class HapiWorkerContext
    extends org.hl7.fhir.utilities.i18n.I18nBase
    implements org.hl7.fhir.dstu2016may.utils.IWorkerContext
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.hl7.fhir.dstu2016may.utils.IWorkerContext

        org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult
    • Constructor Summary

      Constructors 
      Constructor Description
      HapiWorkerContext​(ca.uhn.fhir.context.FhirContext theCtx, ca.uhn.fhir.context.support.IValidationSupport theValidationSupport)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      List<org.hl7.fhir.dstu2016may.model.StructureDefinition> allStructures()  
      org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent expandVS​(org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent theInc)  
      org.hl7.fhir.dstu2016may.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS​(org.hl7.fhir.dstu2016may.model.ValueSet theSource, boolean theCacheOk)  
      org.hl7.fhir.dstu2016may.model.CodeSystem fetchCodeSystem​(String theSystem)  
      <T extends org.hl7.fhir.dstu2016may.model.Resource>
      T
      fetchResource​(Class<T> theClass, String theUri)  
      org.hl7.fhir.dstu2016may.model.StructureDefinition fetchTypeDefinition​(String typeName)  
      List<org.hl7.fhir.dstu2016may.model.ConceptMap> findMapsForSource​(String theUrl)  
      String getAbbreviation​(String theName)  
      org.hl7.fhir.dstu2016may.utils.INarrativeGenerator getNarrativeGenerator​(String theS, String theS1)  
      org.hl7.fhir.dstu2016may.formats.IParser getParser​(String theType)  
      org.hl7.fhir.dstu2016may.formats.IParser getParser​(org.hl7.fhir.dstu2016may.formats.ParserType theType)  
      List<String> getResourceNames()  
      <T extends org.hl7.fhir.dstu2016may.model.Resource>
      boolean
      hasResource​(Class<T> theClass_, String theUri)  
      org.hl7.fhir.dstu2016may.formats.IParser newJsonParser()  
      org.hl7.fhir.dstu2016may.formats.IParser newXmlParser()  
      String oid2Uri​(String theCode)  
      boolean supportsSystem​(String theSystem)  
      Set<String> typeTails()  
      org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(String theSystem, String theCode, String theDisplay)  
      org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(String theSystem, String theCode, String theDisplay, org.hl7.fhir.dstu2016may.model.ValueSet theVs)  
      org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(String theSystem, String theCode, String theDisplay, org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent theVsi)  
      org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(org.hl7.fhir.dstu2016may.model.CodeableConcept theCode, org.hl7.fhir.dstu2016may.model.ValueSet theVs)  
      org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(org.hl7.fhir.dstu2016may.model.Coding theCode, org.hl7.fhir.dstu2016may.model.ValueSet theVs)  
      • Methods inherited from class org.hl7.fhir.utilities.i18n.I18nBase

        formatMessage, getLocale, isWarnAboutMissingMessages, setLocale, setValidationMessageLanguage, setWarnAboutMissingMessages
      • Methods inherited from interface org.hl7.fhir.dstu2016may.utils.IWorkerContext

        formatMessage, getLocale, setLocale, setValidationMessageLanguage
    • Constructor Detail

      • HapiWorkerContext

        public HapiWorkerContext​(ca.uhn.fhir.context.FhirContext theCtx,
                                 ca.uhn.fhir.context.support.IValidationSupport theValidationSupport)
    • Method Detail

      • allStructures

        public List<org.hl7.fhir.dstu2016may.model.StructureDefinition> allStructures()
        Specified by:
        allStructures in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • fetchCodeSystem

        public org.hl7.fhir.dstu2016may.model.CodeSystem fetchCodeSystem​(String theSystem)
        Specified by:
        fetchCodeSystem in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • fetchResource

        public <T extends org.hl7.fhir.dstu2016may.model.Resource> T fetchResource​(Class<T> theClass,
                                                                                   String theUri)
        Specified by:
        fetchResource in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • findMapsForSource

        public List<org.hl7.fhir.dstu2016may.model.ConceptMap> findMapsForSource​(String theUrl)
        Specified by:
        findMapsForSource in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • getAbbreviation

        public String getAbbreviation​(String theName)
        Specified by:
        getAbbreviation in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • getParser

        public org.hl7.fhir.dstu2016may.formats.IParser getParser​(org.hl7.fhir.dstu2016may.formats.ParserType theType)
        Specified by:
        getParser in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • getParser

        public org.hl7.fhir.dstu2016may.formats.IParser getParser​(String theType)
        Specified by:
        getParser in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • getResourceNames

        public List<String> getResourceNames()
        Specified by:
        getResourceNames in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • hasResource

        public <T extends org.hl7.fhir.dstu2016may.model.Resource> boolean hasResource​(Class<T> theClass_,
                                                                                       String theUri)
        Specified by:
        hasResource in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • newJsonParser

        public org.hl7.fhir.dstu2016may.formats.IParser newJsonParser()
        Specified by:
        newJsonParser in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • newXmlParser

        public org.hl7.fhir.dstu2016may.formats.IParser newXmlParser()
        Specified by:
        newXmlParser in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • getNarrativeGenerator

        public org.hl7.fhir.dstu2016may.utils.INarrativeGenerator getNarrativeGenerator​(String theS,
                                                                                        String theS1)
        Specified by:
        getNarrativeGenerator in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • oid2Uri

        public String oid2Uri​(String theCode)
        Specified by:
        oid2Uri in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • fetchTypeDefinition

        public org.hl7.fhir.dstu2016may.model.StructureDefinition fetchTypeDefinition​(String typeName)
        Specified by:
        fetchTypeDefinition in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • supportsSystem

        public boolean supportsSystem​(String theSystem)
        Specified by:
        supportsSystem in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • typeTails

        public Set<String> typeTails()
        Specified by:
        typeTails in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • validateCode

        public org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(org.hl7.fhir.dstu2016may.model.CodeableConcept theCode,
                                                                                           org.hl7.fhir.dstu2016may.model.ValueSet theVs)
        Specified by:
        validateCode in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • validateCode

        public org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(org.hl7.fhir.dstu2016may.model.Coding theCode,
                                                                                           org.hl7.fhir.dstu2016may.model.ValueSet theVs)
        Specified by:
        validateCode in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • validateCode

        public org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(String theSystem,
                                                                                           String theCode,
                                                                                           String theDisplay)
        Specified by:
        validateCode in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • validateCode

        public org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(String theSystem,
                                                                                           String theCode,
                                                                                           String theDisplay,
                                                                                           org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent theVsi)
        Specified by:
        validateCode in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • validateCode

        public org.hl7.fhir.dstu2016may.utils.IWorkerContext.ValidationResult validateCode​(String theSystem,
                                                                                           String theCode,
                                                                                           String theDisplay,
                                                                                           org.hl7.fhir.dstu2016may.model.ValueSet theVs)
        Specified by:
        validateCode in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • expandVS

        public org.hl7.fhir.dstu2016may.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS​(org.hl7.fhir.dstu2016may.model.ValueSet theSource,
                                                                                                         boolean theCacheOk)
        Specified by:
        expandVS in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext
      • expandVS

        public org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent expandVS​(org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent theInc)
        Specified by:
        expandVS in interface org.hl7.fhir.dstu2016may.utils.IWorkerContext