Class HapiWorkerContext

java.lang.Object
org.hl7.fhir.utilities.i18n.I18nBase
org.hl7.fhir.dstu2016may.hapi.validation.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
  • Field Summary

    Fields inherited from class org.hl7.fhir.utilities.i18n.I18nBase

    KEY_DELIMITER, locale, PLURAL_SUFFIX
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    List<org.hl7.fhir.dstu2016may.model.StructureDefinition>
     
    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
     
    <T extends org.hl7.fhir.dstu2016may.model.Resource>
    T
    fetchResource(Class<T> theClass, String theUri)
     
    org.hl7.fhir.dstu2016may.model.StructureDefinition
     
    List<org.hl7.fhir.dstu2016may.model.ConceptMap>
     
     
    org.hl7.fhir.dstu2016may.utils.INarrativeGenerator
     
    org.hl7.fhir.dstu2016may.formats.IParser
    getParser(String theType)
     
    org.hl7.fhir.dstu2016may.formats.IParser
    getParser(org.hl7.fhir.dstu2016may.formats.ParserType theType)
     
     
    <T extends org.hl7.fhir.dstu2016may.model.Resource>
    boolean
    hasResource(Class<T> theClass_, String theUri)
     
    org.hl7.fhir.dstu2016may.formats.IParser
     
    org.hl7.fhir.dstu2016may.formats.IParser
     
    oid2Uri(String theCode)
     
    boolean
     
     
    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, formatMessagePlural, getLocale, getMessagesSourceFileName, getPluralKey, getPluralKeys, getPluralSuffixes, getRootKeyFromPlural, isWarnAboutMissingMessages, messageKeyExistsForLocale, setLocale, setPluralRules, setValidationMessageLanguage, setWarnAboutMissingMessages, typeOfString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hl7.fhir.dstu2016may.utils.IWorkerContext

    formatMessage, getLocale, setLocale, setValidationMessageLanguage
  • Constructor Details

    • HapiWorkerContext

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

    • 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

      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