Class HapiWorkerContext

java.lang.Object
org.hl7.fhir.utilities.i18n.I18nBase
org.hl7.fhir.r5.hapi.ctx.HapiWorkerContext
All Implemented Interfaces:
IWorkerContext

public final class HapiWorkerContext extends org.hl7.fhir.utilities.i18n.I18nBase implements IWorkerContext
  • Constructor Details

    • HapiWorkerContext

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

    • fetchCodeSystem

      public CodeSystem fetchCodeSystem(String theSystem)
      Description copied from interface: IWorkerContext
      Find the code system definition for the nominated system uri. return null if there isn't one (then the tool might try supportsSystem) This is a short cut for fetchResource(CodeSystem.class, system)
      Specified by:
      fetchCodeSystem in interface IWorkerContext
      Parameters:
      theSystem -
      Returns:
    • fetchCodeSystem

      public CodeSystem fetchCodeSystem(String theSystem, String version, Resource sourceOfReference)
      Description copied from interface: IWorkerContext
      Find the code system definition for the nominated system uri. return null if there isn't one (then the tool might try supportsSystem) This is a short cut for fetchResource(CodeSystem.class, system, version, sourceOfReference)
      Specified by:
      fetchCodeSystem in interface IWorkerContext
    • fetchSupplementedCodeSystem

      Description copied from interface: IWorkerContext
      Like fetchCodeSystem, except that the context will find any CodeSysetm supplements and merge them into the definition that's returned
      Specified by:
      fetchSupplementedCodeSystem in interface IWorkerContext
    • fetchSupplementedCodeSystem

      public CodeSystem fetchSupplementedCodeSystem(String system, String version, Resource sourceOfReference)
      Description copied from interface: IWorkerContext
      Like fetchCodeSystem, except that the context will find any CodeSysetm supplements and merge them into the definition that's returned
      Specified by:
      fetchSupplementedCodeSystem in interface IWorkerContext
    • getResourceNames

      Specified by:
      getResourceNames in interface IWorkerContext
      Returns:
      a list of the resource names defined for this version (sorted alphabetically)
    • newValidator

      Description copied from interface: IWorkerContext
      Get a validator that can check whether a resource is valid this is deprecated because there's lots of properties to set on the validator; the functions using this need to be changed to use the validator directly
      Specified by:
      newValidator in interface IWorkerContext
      Returns:
      a prepared generator
    • getNSUrlMap

      Specified by:
      getNSUrlMap in interface IWorkerContext
    • getTxSupportInfo

      Description copied from interface: IWorkerContext
      return the System Support Information for the server that serves the specified code system
      Specified by:
      getTxSupportInfo in interface IWorkerContext
      Parameters:
      system -
      version -
      Returns:
    • validateCode

      public ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, CodeableConcept theCode, ValueSet theVs)
      Description copied from interface: IWorkerContext
      Validation of a code - consult the terminology infrstructure and/or service to see whether it is known. If known, return a description of it note: always return a result, with either an error or a code description Note that this doesn't validate binding strength (e.g. is just text allowed?)
      Specified by:
      validateCode in interface IWorkerContext
      Parameters:
      theOptions - - validation options (required)
      theCode - - CodeableConcept to validate
      theVs - the applicable valueset (optional)
      Returns:
    • validateCode

      public ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, Coding theCode, ValueSet theVs)
      Description copied from interface: IWorkerContext
      Validation of a code - consult the terminology infrstructure and/or service to see whether it is known. If known, return a description of it note: always return a result, with either an error or a code description
      Specified by:
      validateCode in interface IWorkerContext
      Parameters:
      theOptions - - validation options (required)
      theCode - - Coding to validate
      theVs - the applicable valueset (optional)
      Returns:
    • validateCode

      public ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, ValueSet vs, ValidationContextCarrier ctxt)
      Description copied from interface: IWorkerContext
      See comments in ValidationContextCarrier. This is called when there might be additional value sets etc available in the context, but we don't want to pre-process them.
      Specified by:
      validateCode in interface IWorkerContext
      Parameters:
      options -
      code -
      vs -
      ctxt -
      Returns:
    • validateCodeBatch

      public void validateCodeBatch(org.hl7.fhir.utilities.validation.ValidationOptions options, List<? extends CodingValidationRequest> codes, ValueSet vs, boolean passVS)
      Description copied from interface: IWorkerContext
      Batch validate code - reduce latency and do a bunch of codes in a single server call. Each is the same as a validateCode
      Specified by:
      validateCodeBatch in interface IWorkerContext
      Parameters:
      options -
      codes -
      vs -
    • validateCode

      public ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String theSystem, String theVersion, String theCode, String theDisplay)
      Description copied from interface: IWorkerContext
      Validation of a code - consult the terminology infrstructure and/or service to see whether it is known. If known, return a description of it corresponds to 2 terminology service calls: $validate-code and $lookup
      Specified by:
      validateCode in interface IWorkerContext
      Parameters:
      theOptions - - validation options (required)
      theSystem - - equals Coding.system (required)
      theCode - - equals Coding.code (required)
      theDisplay - - equals Coding.display (optional)
      Returns:
    • validateCode

      public ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String theSystem, String theVersion, String theCode, String theDisplay, ValueSet theVs)
      Description copied from interface: IWorkerContext
      Validation of a code - consult the terminology infrstructure and/or service to see whether it is known. If known, return a description of it note: always return a result, with either an error or a code description
      Specified by:
      validateCode in interface IWorkerContext
      Parameters:
      theOptions - - validation options (required)
      theSystem - - equals Coding.system (required)
      theCode - - equals Coding.code (required)
      theDisplay - - equals Coding.display (optional)
      theVs - the applicable valueset (optional)
      Returns:
    • validateCode

      public ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String code, ValueSet vs)
      Description copied from interface: IWorkerContext
      Validation of a code - consult the terminology infrstructure and/or service to see whether it is known. If known, return a description of it note: always return a result, with either an error or a code description in this case, the system will be inferred from the value set. It's an error to call this one without the value set
      Specified by:
      validateCode in interface IWorkerContext
      Parameters:
      theOptions - - validation options (required)
      code - The code to validate (required)
      vs - the applicable valueset (required)
      Returns:
    • getExpansionParameters

      Description copied from interface: IWorkerContext
      Get a copy of the expansion parameters to be passed through the terminology server when txServer calls are made You can change these - it's not setting the underlying expansion parameters (see IWorkerContextManager) Note that the Validation Options override these when they are specified on validateCode
      Specified by:
      getExpansionParameters in interface IWorkerContext
    • setExpansionProfile

      public void setExpansionProfile(Parameters theExpParameters)
    • expandVS

      public ValueSetExpansionOutcome expandVS(ValueSet theSource, boolean theCacheOk, boolean theHierarchical)
      Description copied from interface: IWorkerContext
      ValueSet Expansion - see $expand Note that caching makes a real performance difference, so turn it off with care.
      Specified by:
      expandVS in interface IWorkerContext
      Parameters:
      theSource - - the valueset to expand
      theCacheOk - - whether to look in the cache for an expansion
      theHierarchical - - whether to accept a heirarchical expansion
      Returns:
      the expansion, or information about how the expansion failed
    • expandVS

      Description copied from interface: IWorkerContext
      ValueSet Expansion - see $expand Note that caching makes a real performance difference, so turn it off with care.
      Specified by:
      expandVS in interface IWorkerContext
      Parameters:
      options - - controls the expansion process (overrides expansion parameters)
      source - - the valueset to expand
      Returns:
      the expansion, or information about how the expansion failed
    • expandVS

      public ValueSetExpansionOutcome expandVS(ValueSet theSource, boolean theCacheOk, boolean theHierarchical, int i)
      Description copied from interface: IWorkerContext
      ValueSet Expansion - see $expand Note that caching makes a real performance difference, so turn it off with care.
      Specified by:
      expandVS in interface IWorkerContext
      Parameters:
      theSource - - the valueset to expand
      theCacheOk - - whether to look in the cache for an expansion
      theHierarchical - - whether to accept a heirarchical expansion
      i - - maximum concepts to return
      Returns:
      the expansion, or information about how the expansion failed
    • expandVS

      Description copied from interface: IWorkerContext
      ValueSet Expansion - see $expand Note that caching makes a real performance difference, so turn it off with care. This isn't quite the same as findTxResource+expand because if the uri can't be resolved, it'll be passed to the terminology service directly, and some terminology servers will expand value sets that they won't return.
      Specified by:
      expandVS in interface IWorkerContext
      Parameters:
      options - - controls the expansion process (overrides expansion parameters)
      uri - - valueset uri.
      Returns:
      the expansion, or information about how the expansion failed
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface IWorkerContext
      Overrides:
      getLocale in class org.hl7.fhir.utilities.i18n.I18nBase
      Returns:
      the locale used when creating messages and invoking the terminology server
    • setLocale

      public void setLocale(Locale locale)
      Overrides:
      setLocale in class org.hl7.fhir.utilities.i18n.I18nBase
    • getLogger

      Specified by:
      getLogger in interface IWorkerContext
      Returns:
      the logging service configured for the context
    • getVersion

      public String getVersion()
      Description copied from interface: IWorkerContext
      The version loaded *does not* have to be 5.0 (R5) - the context can load other versions, though the definitions need to be converted to R5 first Note that more than one version might be loaded at once, but one version is always the default / master
      Specified by:
      getVersion in interface IWorkerContext
      Returns:
      the version of the base definitions loaded in context
    • getUcumService

      public org.fhir.ucum.UcumService getUcumService()
      Specified by:
      getUcumService in interface IWorkerContext
      Returns:
      Get the UCUM service that provides access to units of measure reasoning services (if available)
    • oidServices

      Specified by:
      oidServices in interface IWorkerContext
      Returns:
      a handle to provide information about OIDs known to the context (if available)
    • getManager

      Description copied from interface: IWorkerContext
      if this returns null, the context is frozen (usually for threading concerns on the server) If you're considering not providing this service, the context can't load stuff on the fly so you need to take care to load everything in advance. In particular, pay attention to cross-version packages Also, beware of the impact of lazy-loading on thread safety
      Specified by:
      getManager in interface IWorkerContext
      Returns:
      the manager that can be used to load / unload content from the context
    • isNoTerminologyServer

      public boolean isNoTerminologyServer()
      Specified by:
      isNoTerminologyServer in interface IWorkerContext
      Returns:
      true if there is a terminology server supporting the context
    • getCodeSystemsUsed

      Specified by:
      getCodeSystemsUsed in interface IWorkerContext
      Returns:
      a list of all the code systems used by the functions above
    • fetchTypeDefinition

      Description copied from interface: IWorkerContext
      This is a short cut for fetchResource(StructureDefinition.class, ...) but it accepts a typename - that is, it resolves based on StructureDefinition.type or StructureDefinition.url. This only resolves to http://hl7.org/fhir/StructureDefinition/{typename}
      Specified by:
      fetchTypeDefinition in interface IWorkerContext
      Parameters:
      typeName -
      Returns:
      type (or exception if there is multiple candidates
    • isPrimitiveType

      public boolean isPrimitiveType(String s)
      Description copied from interface: IWorkerContext
      return whether type is primitive type. This is called a lot, and needs a high performance implementation
      Specified by:
      isPrimitiveType in interface IWorkerContext
      Parameters:
      s -
      Returns:
    • isDataType

      public boolean isDataType(String s)
      Description copied from interface: IWorkerContext
      return whether type is data type. This is called a lot, and needs a high performance implementation
      Specified by:
      isDataType in interface IWorkerContext
      Parameters:
      s -
      Returns:
    • fetchTypeDefinitions

      Description copied from interface: IWorkerContext
      This finds all the structure definitions that have the given typeName
      Specified by:
      fetchTypeDefinitions in interface IWorkerContext
      Parameters:
      n -
      Returns:
    • fetchResourceRaw

      public <T extends Resource> T fetchResourceRaw(Class<T> class_, String uri)
      Description copied from interface: IWorkerContext
      Find an identified resource, but do not do any processing on it. The usual processing that happens is ensuring that the snapshot is generated before returning it; This routine is used in the snapshot generation routines to avoid circular dependency challenges generating snapshots. The URI can have one of 3 formats: - a full URL e.g. http://acme.org/fhir/ValueSet/[id] - a relative URL e.g. ValueSet/[id] - a logical id e.g. [id] It's an error if the second form doesn't agree with class_. It's an error if class_ is null for the last form class can be Resource, DomainResource or CanonicalResource, which means resource of all kinds
      Specified by:
      fetchResourceRaw in interface IWorkerContext
      Parameters:
      class_ - the type of resource
      uri - the URL of the resource, optionally with a |version suffix
      Returns:
      the resource if known (or an exception will be thrown)
    • fetchResource

      public <T extends Resource> T fetchResource(Class<T> theClass, String theUri)
      Description copied from interface: IWorkerContext
      Fetch (load if necessary) an identified resource. The most common use of this is to access the standard conformance resources that are part of the standard - structure definitions, value sets, concept maps, etc. The URI can have one of 3 formats: - a full URL e.g. http://acme.org/fhir/ValueSet/[id] - a relative URL e.g. ValueSet/[id] - a logical id e.g. [id] It's an error if the second form doesn't agree with class_. It's an error if class_ is null for the last form class can be Resource, DomainResource or CanonicalResource, which means resource of all kinds
      Specified by:
      fetchResource in interface IWorkerContext
      Parameters:
      theClass - the type of resource
      theUri - the URL of the resource, optionally with a |version suffix
      Returns:
      the resource if known (or null)
    • fetchResource

      public <T extends Resource> T fetchResource(Class<T> class_, String uri, org.hl7.fhir.utilities.FhirPublication fhirVersion)
    • fetchResourceWithException

      public <T extends Resource> T fetchResourceWithException(Class<T> theClass, String theUri) throws org.hl7.fhir.exceptions.FHIRException
      Description copied from interface: IWorkerContext
      Fetch (load if necessary) an identified resource. The most common use of this is to access the standard conformance resources that are part of the standard - structure definitions, value sets, concept maps, etc. The URI can have one of 3 formats: - a full URL e.g. http://acme.org/fhir/ValueSet/[id] - a relative URL e.g. ValueSet/[id] - a logical id e.g. [id] It's an error if the second form doesn't agree with class_. It's an error if class_ is null for the last form class can be Resource, DomainResource or CanonicalResource, which means resource of all kinds
      Specified by:
      fetchResourceWithException in interface IWorkerContext
      Parameters:
      theClass - the type of resource
      theUri - the URL of the resource, optionally with a |version suffix
      Returns:
      the resource if known (or an exception will be thrown)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fetchResourceWithException

      public <T extends Resource> T fetchResourceWithException(Class<T> theClass, String uri, String version, Resource sourceOfReference) throws org.hl7.fhir.exceptions.FHIRException
      Description copied from interface: IWorkerContext
      Fetch (load if necessary) an identified resource. The most common use of this is to access the standard conformance resources that are part of the standard - structure definitions, value sets, concept maps, etc. The URI can have one of 3 formats: - a full URL e.g. http://acme.org/fhir/ValueSet/[id] - a relative URL e.g. ValueSet/[id] - a logical id e.g. [id] It's an error if the second form doesn't agree with class_. It's an error if class_ is null for the last form class can be Resource, DomainResource or CanonicalResource, which means resource of all kinds
      Specified by:
      fetchResourceWithException in interface IWorkerContext
      Parameters:
      theClass - the type of resource
      uri - the URL of the resource, optionally with a |version suffix
      version - the version. Don't provide both a version and a |version suffix
      sourceOfReference - where the reference was found (if the reference is in a resource)
      Returns:
      if the resource is known. Will throw an exception if the resource is not known
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fetchResource

      public <T extends Resource> T fetchResource(Class<T> theClass, String theUri, String theVersion, Resource sourceOfReference)
      Description copied from interface: IWorkerContext
      Fetch (load if necessary) an identified resource. The most common use of this is to access the standard conformance resources that are part of the standard - structure definitions, value sets, concept maps, etc. The URI can have one of 3 formats: - a full URL e.g. http://acme.org/fhir/ValueSet/[id] - a relative URL e.g. ValueSet/[id] - a logical id e.g. [id] It's an error if the second form doesn't agree with class_. It's an error if class_ is null for the last form class can be Resource, DomainResource or CanonicalResource, which means resource of all kinds
      Specified by:
      fetchResource in interface IWorkerContext
      Parameters:
      theClass - the type of resource
      theUri - the URL of the resource, optionally with a |version suffix
      theVersion - the version. Don't provide both a version and a |version suffix
      sourceOfReference - where the reference was found (if the reference is in a resource)
      Returns:
      if the resource is known
    • fetchResourceById

      public Resource fetchResourceById(String theType, String theUri)
      Description copied from interface: IWorkerContext
      Fetch (load if necessary) an identified resource. The most common use of this is to access the standard conformance resources that are part of the standard - structure definitions, value sets, concept maps, etc. This is the non-generic version, but the functionality is otherwise the same The URI can have one of 3 formats: - a full URL e.g. http://acme.org/fhir/ValueSet/[id] - a relative URL e.g. ValueSet/[id] - a logical id e.g. [id] It's an error if the second form doesn't agree with class_. It's an error if class_ is null for the last form class can be Resource, DomainResource or CanonicalResource, which means resource of all kinds
      Specified by:
      fetchResourceById in interface IWorkerContext
      Parameters:
      theType - the type of resource
      theUri - the URL of the resource, optionally with a |version suffix
      Returns:
      the resource if known (or null)
    • hasResource

      public <T extends Resource> boolean hasResource(Class<T> theClass_, String theUri)
      Description copied from interface: IWorkerContext
      find whether a resource is available. the principal use of this method is to find whether a resource is known without actually loading it.
      Specified by:
      hasResource in interface IWorkerContext
      Parameters:
      theClass_ - the type of resource
      theUri - the URL of the resource, optionally with a |version suffix
      Returns:
      if the resource is known
    • hasResource

      public <T extends Resource> boolean hasResource(Class<T> class_, String uri, String version, Resource sourceOfReference)
      Description copied from interface: IWorkerContext
      find whether a resource is available. the principal use of this method is to find whether a resource is known without actually loading it.
      Specified by:
      hasResource in interface IWorkerContext
      Parameters:
      class_ - the type of resource
      uri - the URL of the resource, optionally with a |version suffix
      version - the version. Don't provide both a version and a |version suffix
      sourceOfReference - where the reference was found (if the reference is in a resource)
      Returns:
      if the resource is known
    • getResourceNamesAsSet

      Specified by:
      getResourceNamesAsSet in interface IWorkerContext
      Returns:
      a set of the resource names defined for this version
    • expandVS

      public ValueSetExpansionOutcome expandVS(Resource src, ElementDefinition.ElementDefinitionBindingComponent theBinding, boolean theCacheOk, boolean theHierarchical) throws org.hl7.fhir.exceptions.FHIRException
      Description copied from interface: IWorkerContext
      ValueSet Expansion - see $expand, but resolves the binding first
      Specified by:
      expandVS in interface IWorkerContext
      Parameters:
      src -
      Returns:
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getBinaryKeysAsSet

      Description copied from interface: IWorkerContext
      Returns a set of keys that can be used to get binaries from this context. In general, the binaries come from the loaded packages (mostly the pubpack)
      Specified by:
      getBinaryKeysAsSet in interface IWorkerContext
      Returns:
      a set of binaries or null
    • hasBinaryKey

      public boolean hasBinaryKey(String s)
      Description copied from interface: IWorkerContext
      Returns true if this worker context contains a binary for this key.
      Specified by:
      hasBinaryKey in interface IWorkerContext
      Parameters:
      s -
      Returns:
      true if binary is available for this key
    • getBinaryForKey

      public byte[] getBinaryForKey(String s)
      Description copied from interface: IWorkerContext
      Returns the binary for the key
      Specified by:
      getBinaryForKey in interface IWorkerContext
      Parameters:
      s -
      Returns:
    • hasPackage

      public boolean hasPackage(String id, String ver)
      Specified by:
      hasPackage in interface IWorkerContext
      Returns:
      true if the nominated package has been loaded
    • hasPackage

      public boolean hasPackage(PackageInformation packageVersion)
      Specified by:
      hasPackage in interface IWorkerContext
      Returns:
      true if the nominated package has been loaded (by id and version)
    • getPackage

      Specified by:
      getPackage in interface IWorkerContext
      Returns:
      package information for nominated package
    • getClientRetryCount

      public int getClientRetryCount()
      Specified by:
      getClientRetryCount in interface IWorkerContext
    • setClientRetryCount

      public IWorkerContext setClientRetryCount(int value)
      Specified by:
      setClientRetryCount in interface IWorkerContext
    • clock

      public org.hl7.fhir.utilities.TimeTracker clock()
      Specified by:
      clock in interface IWorkerContext
      Returns:
      time tracker for when the context is being loaded (0 = start of loading)
    • getPackageTracker

      Specified by:
      getPackageTracker in interface IWorkerContext
    • getPackageForUrl

      Description copied from interface: IWorkerContext
      Note: take care with this method - there are multiple packages with the same canonical (different sub-packages, different versions)
      Specified by:
      getPackageForUrl in interface IWorkerContext
      Parameters:
      s - - canonical URL
      Returns:
      - package information for the most recent package with the given canonical
    • convertConceptValidationOptions

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

      public <T extends Resource> List<T> fetchResourcesByType(Class<T> theClass)
      Description copied from interface: IWorkerContext
      Fetch all the resources of a particular type. if class == (null | Resource | DomainResource | CanonicalResource) return everything Note: this forces every resource to be loaded; this might take a very long time. Some implementations require some flag to be set elsewhere to allow this method to be called for some types to prevent the method from accidentally being called (ValueSets can take minutes to load, since there are so many in scope)
      Specified by:
      fetchResourcesByType in interface IWorkerContext
      Parameters:
      theClass - the type of resource to load
      Returns:
      all the resources
    • fetchResourceVersions

      public <T extends Resource> List<T> fetchResourceVersions(Class<T> class_, String url)
      Description copied from interface: IWorkerContext
      Fetch all the versions of a resource.
      Specified by:
      fetchResourceVersions in interface IWorkerContext
      Parameters:
      class_ - the type of resource to load
      Returns:
      all the resources
    • setPackageTracker

      Specified by:
      setPackageTracker in interface IWorkerContext
    • getSpecUrl

      public String getSpecUrl()
      Specified by:
      getSpecUrl in interface IWorkerContext
      Returns:
      The URL that points to the specification for the version loaded
    • getProfiledElementBuilder

      public PEBuilder getProfiledElementBuilder(PEBuilder.PEElementPropertiesPolicy thePEElementPropertiesPolicy, boolean theB)
      Specified by:
      getProfiledElementBuilder in interface IWorkerContext
    • isForPublication

      public boolean isForPublication()
      Specified by:
      isForPublication in interface IWorkerContext
    • setForPublication

      public void setForPublication(boolean b)
      Specified by:
      setForPublication in interface IWorkerContext
    • findTxResource

      public <T extends Resource> T findTxResource(Class<T> class_, String canonical, String version, Resource sourceOfReference)
      Description copied from interface: IWorkerContext
      this first does a fetch resource, and if nothing is found, looks in the terminology eco-system for a matching definition for the resource
      Specified by:
      findTxResource in interface IWorkerContext
    • findTxResource

      public <T extends Resource> T findTxResource(Class<T> class_, String canonical)
      Description copied from interface: IWorkerContext
      this first does a fetch resource, and if nothing is found, looks in the terminology eco-system for a matching definition for the resource
      Specified by:
      findTxResource in interface IWorkerContext
    • subsumes

      public Boolean subsumes(org.hl7.fhir.utilities.validation.ValidationOptions optionsArg, Coding parent, Coding child)
      Description copied from interface: IWorkerContext
      ask the terminology system whether parent subsumes child.
      Specified by:
      subsumes in interface IWorkerContext
      Returns:
      true if it does, false if it doesn't, and null if it's not know whether it does
    • validateTxResource

      public OperationOutcome validateTxResource(org.hl7.fhir.utilities.validation.ValidationOptions options, Resource resource)
      Description copied from interface: IWorkerContext
      Validate the actual terminology resource itself on the appropriate terminology server (used for ECL validation)
      Specified by:
      validateTxResource in interface IWorkerContext
      Parameters:
      options -
      resource -
      Returns: