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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hl7.fhir.r5.context.IWorkerContext
org.hl7.fhir.r5.context.IWorkerContext.CodingValidationRequest, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader, org.hl7.fhir.r5.context.IWorkerContext.ILoggingService, org.hl7.fhir.r5.context.IWorkerContext.ValidationResult
-
Field Summary
Fields inherited from class org.hl7.fhir.utilities.i18n.I18nBase
KEY_DELIMITER, PLURAL_SUFFIX
-
Constructor Summary
ConstructorDescriptionVersionSpecificWorkerContextWrapper
(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.hapi.converters.canonical.VersionCanonicalizer theVersionCanonicalizer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cachePackage
(org.hl7.fhir.r5.model.PackageInformation packageInformation) void
cacheResource
(org.hl7.fhir.r5.model.Resource res) void
cacheResourceFromPackage
(org.hl7.fhir.r5.model.Resource res, org.hl7.fhir.r5.model.PackageInformation packageDetails) org.hl7.fhir.utilities.TimeTracker
clock()
static ca.uhn.fhir.context.support.ConceptValidationOptions
convertConceptValidationOptions
(org.hl7.fhir.utilities.validation.ValidationOptions theOptions) org.hl7.fhir.r5.terminologies.expansion.ValueSetExpansionOutcome
expandVS
(org.hl7.fhir.r5.model.Resource src, org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent binding, boolean cacheOk, boolean Hierarchical) org.hl7.fhir.r5.terminologies.expansion.ValueSetExpansionOutcome
expandVS
(org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent inc, boolean hierarchical, boolean noInactive) org.hl7.fhir.r5.terminologies.expansion.ValueSetExpansionOutcome
expandVS
(org.hl7.fhir.r5.model.ValueSet source, boolean cacheOk, boolean Hierarchical) org.hl7.fhir.r5.terminologies.expansion.ValueSetExpansionOutcome
expandVS
(org.hl7.fhir.r5.model.ValueSet source, boolean cacheOk, boolean heiarchical, boolean incompleteOk) org.hl7.fhir.r5.model.CodeSystem
fetchCodeSystem
(String system) org.hl7.fhir.r5.model.CodeSystem
fetchCodeSystem
(String system, String verison) <T extends org.hl7.fhir.r5.model.Resource>
TfetchResource
(Class<T> class_, String uri) <T extends org.hl7.fhir.r5.model.Resource>
TfetchResource
(Class<T> class_, String uri, String version) <T extends org.hl7.fhir.r5.model.Resource>
TfetchResource
(Class<T> class_, String uri, org.hl7.fhir.r5.model.Resource canonicalForSource) org.hl7.fhir.r5.model.Resource
fetchResourceById
(String type, String uri) <T extends org.hl7.fhir.r5.model.Resource>
TfetchResourceRaw
(Class<T> class_, String uri) <T extends org.hl7.fhir.r5.model.Resource>
List<T> fetchResourcesByType
(Class<T> theClass) <T extends org.hl7.fhir.r5.model.Resource>
TfetchResourceWithException
(Class<T> class_, String uri) <T extends org.hl7.fhir.r5.model.Resource>
TfetchResourceWithException
(Class<T> class_, String uri, org.hl7.fhir.r5.model.Resource sourceOfReference) org.hl7.fhir.r5.model.CodeSystem
fetchSupplementedCodeSystem
(String system) org.hl7.fhir.r5.model.CodeSystem
fetchSupplementedCodeSystem
(String system, String version) org.hl7.fhir.r5.model.StructureDefinition
fetchTypeDefinition
(String typeName) List
<org.hl7.fhir.r5.model.StructureDefinition> fetchTypeDefinitions
(String typeName) byte[]
int
org.hl7.fhir.r5.model.Parameters
org.hl7.fhir.r5.context.IWorkerContext.ILoggingService
org.hl7.fhir.r5.model.PackageInformation
getPackage
(String id, String ver) org.hl7.fhir.r5.model.PackageInformation
org.hl7.fhir.r5.context.IWorkerContextManager.IPackageLoadingTracker
org.hl7.fhir.r5.profilemodel.PEBuilder
getProfiledElementBuilder
(org.hl7.fhir.r5.profilemodel.PEBuilder.PEElementPropertiesPolicy thePEElementPropertiesPolicy, boolean theB) org.fhir.ucum.UcumService
boolean
boolean
hasPackage
(String id, String ver) boolean
hasPackage
(org.hl7.fhir.r5.model.PackageInformation packageInformation) <T extends org.hl7.fhir.r5.model.Resource>
booleanhasResource
(Class<T> class_, String uri) void
boolean
boolean
int
loadFromPackage
(org.hl7.fhir.utilities.npm.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader) int
loadFromPackage
(org.hl7.fhir.utilities.npm.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader, List<String> types) int
loadFromPackageAndDependencies
(org.hl7.fhir.utilities.npm.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader, org.hl7.fhir.utilities.npm.BasePackageCacheManager pcm) org.hl7.fhir.r5.utils.validation.IResourceValidator
newVersionSpecificWorkerContextWrapper
(ca.uhn.fhir.context.support.IValidationSupport theValidationSupport) org.hl7.fhir.r5.context.IWorkerContext
setClientRetryCount
(int value) void
setExpansionProfile
(org.hl7.fhir.r5.model.Parameters expParameters) void
setForPublication
(boolean b) void
void
setLogger
(org.hl7.fhir.r5.context.IWorkerContext.ILoggingService logger) org.hl7.fhir.r5.context.IWorkerContext
setPackageTracker
(org.hl7.fhir.r5.context.IWorkerContextManager.IPackageLoadingTracker packageTracker) void
setUcumService
(org.fhir.ucum.UcumService ucumService) boolean
supportsSystem
(String system) org.hl7.fhir.utilities.TranslationServices
org.hl7.fhir.r5.context.IWorkerContext.ValidationResult
validateCode
(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String system, String version, String code, String display) 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) org.hl7.fhir.r5.context.IWorkerContext.ValidationResult
validateCode
(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String code, org.hl7.fhir.r5.model.ValueSet theValueSet) 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) 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) 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) 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) void
validateCodeBatchByRef
(org.hl7.fhir.utilities.validation.ValidationOptions validationOptions, List<? extends org.hl7.fhir.r5.context.IWorkerContext.CodingValidationRequest> list, String s) Methods inherited from class org.hl7.fhir.utilities.i18n.I18nBase
formatMessage, formatMessagePlural, getPluralKey, getPluralKeys, getRootKeyFromPlural, isWarnAboutMissingMessages, messageKeyExistsForLocale, setPluralRules, setValidationMessageLanguage, setWarnAboutMissingMessages
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.r5.context.IWorkerContext
formatMessage, formatMessagePlural, setValidationMessageLanguage
-
Constructor Details
-
VersionSpecificWorkerContextWrapper
public VersionSpecificWorkerContextWrapper(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.hapi.converters.canonical.VersionCanonicalizer theVersionCanonicalizer)
-
-
Method Details
-
getBinaryKeysAsSet
- Specified by:
getBinaryKeysAsSet
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
hasBinaryKey
- Specified by:
hasBinaryKey
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getBinaryForKey
- Specified by:
getBinaryForKey
in interfaceorg.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 interfaceorg.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, List<String> types) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException - Specified by:
loadFromPackage
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
- Throws:
FileNotFoundException
IOException
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 interfaceorg.hl7.fhir.r5.context.IWorkerContext
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasPackage
- Specified by:
hasPackage
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
hasPackage
- Specified by:
hasPackage
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getPackage
- Specified by:
getPackage
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getClientRetryCount
- Specified by:
getClientRetryCount
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setClientRetryCount
- Specified by:
setClientRetryCount
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
clock
- Specified by:
clock
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getPackageTracker
- Specified by:
getPackageTracker
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setPackageTracker
public org.hl7.fhir.r5.context.IWorkerContext setPackageTracker(org.hl7.fhir.r5.context.IWorkerContextManager.IPackageLoadingTracker packageTracker) - Specified by:
setPackageTracker
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getSpecUrl
- Specified by:
getSpecUrl
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getProfiledElementBuilder
public org.hl7.fhir.r5.profilemodel.PEBuilder getProfiledElementBuilder(org.hl7.fhir.r5.profilemodel.PEBuilder.PEElementPropertiesPolicy thePEElementPropertiesPolicy, boolean theB) - Specified by:
getProfiledElementBuilder
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getPackageForUrl
- Specified by:
getPackageForUrl
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getExpansionParameters
- Specified by:
getExpansionParameters
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setExpansionProfile
- Specified by:
setExpansionProfile
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
cacheResource
- Specified by:
cacheResource
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
cacheResourceFromPackage
public void cacheResourceFromPackage(org.hl7.fhir.r5.model.Resource res, org.hl7.fhir.r5.model.PackageInformation packageDetails) throws org.hl7.fhir.exceptions.FHIRException - Specified by:
cacheResourceFromPackage
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
cachePackage
- Specified by:
cachePackage
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
expandVS
public org.hl7.fhir.r5.terminologies.expansion.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r5.model.ValueSet source, boolean cacheOk, boolean Hierarchical) - Specified by:
expandVS
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
expandVS
public org.hl7.fhir.r5.terminologies.expansion.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r5.model.Resource src, org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent binding, boolean cacheOk, boolean Hierarchical) - Specified by:
expandVS
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
expandVS
public org.hl7.fhir.r5.terminologies.expansion.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent inc, boolean hierarchical, boolean noInactive) throws org.hl7.fhir.exceptions.TerminologyServiceException - Specified by:
expandVS
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
- Throws:
org.hl7.fhir.exceptions.TerminologyServiceException
-
getLocale
- Specified by:
getLocale
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
- Overrides:
getLocale
in classorg.hl7.fhir.utilities.i18n.I18nBase
-
setLocale
- Specified by:
setLocale
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
- Overrides:
setLocale
in classorg.hl7.fhir.utilities.i18n.I18nBase
-
fetchCodeSystem
- Specified by:
fetchCodeSystem
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchCodeSystem
- Specified by:
fetchCodeSystem
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchSupplementedCodeSystem
- Specified by:
fetchSupplementedCodeSystem
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchSupplementedCodeSystem
- Specified by:
fetchSupplementedCodeSystem
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchResourceRaw
- Specified by:
fetchResourceRaw
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchResource
- Specified by:
fetchResource
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchResourceById
- Specified by:
fetchResourceById
in interfaceorg.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 interfaceorg.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 interfaceorg.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.Resource canonicalForSource) - Specified by:
fetchResource
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchResourceWithException
public <T extends org.hl7.fhir.r5.model.Resource> T fetchResourceWithException(Class<T> class_, String uri, org.hl7.fhir.r5.model.Resource sourceOfReference) throws org.hl7.fhir.exceptions.FHIRException - Specified by:
fetchResourceWithException
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getResourceNames
- Specified by:
getResourceNames
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getResourceNamesAsSet
- Specified by:
getResourceNamesAsSet
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchTypeDefinition
- Specified by:
fetchTypeDefinition
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchTypeDefinitions
- Specified by:
fetchTypeDefinitions
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getUcumService
- Specified by:
getUcumService
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setUcumService
- Specified by:
setUcumService
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getVersion
- Specified by:
getVersion
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
hasResource
- Specified by:
hasResource
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
isNoTerminologyServer
- Specified by:
isNoTerminologyServer
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getCodeSystemsUsed
- Specified by:
getCodeSystemsUsed
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
newValidator
- Specified by:
newValidator
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getNSUrlMap
- Specified by:
getNSUrlMap
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getLogger
- Specified by:
getLogger
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setLogger
- Specified by:
setLogger
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
supportsSystem
- Specified by:
supportsSystem
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
translator
- Specified by:
translator
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
expandVS
public org.hl7.fhir.r5.terminologies.expansion.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r5.model.ValueSet source, boolean cacheOk, boolean heiarchical, boolean incompleteOk) - Specified by:
expandVS
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
validateCodeBatchByRef
public void validateCodeBatchByRef(org.hl7.fhir.utilities.validation.ValidationOptions validationOptions, List<? extends org.hl7.fhir.r5.context.IWorkerContext.CodingValidationRequest> list, String s) - Specified by:
validateCodeBatchByRef
in interfaceorg.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 interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
invalidateCaches
-
fetchResourcesByType
- Specified by:
fetchResourcesByType
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
isForPublication
- Specified by:
isForPublication
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setForPublication
- Specified by:
setForPublication
in interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
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)
-