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 Modifier and Type Class Description static interfaceVersionSpecificWorkerContextWrapper.IVersionTypeConverter-
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.PackageVersion, org.hl7.fhir.r5.context.IWorkerContext.ValidationResult
-
-
Field Summary
Fields Modifier and Type Field Description static VersionSpecificWorkerContextWrapper.IVersionTypeConverterIDENTITY_VERSION_TYPE_CONVERTER
-
Constructor Summary
Constructors Constructor Description VersionSpecificWorkerContextWrapper(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, VersionSpecificWorkerContextWrapper.IVersionTypeConverter theModelConverter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.hl7.fhir.r5.model.CanonicalResource>allConformanceResources()List<org.hl7.fhir.r5.model.StructureDefinition>allStructures()voidcachePackage(org.hl7.fhir.r5.context.IWorkerContext.PackageVersion packageDetails, List<org.hl7.fhir.r5.context.IWorkerContext.PackageVersion> dependencies)voidcacheResource(org.hl7.fhir.r5.model.Resource res)voidcacheResourceFromPackage(org.hl7.fhir.r5.model.Resource res, org.hl7.fhir.r5.context.IWorkerContext.PackageVersion packageDetails)static ca.uhn.fhir.context.support.ConceptValidationOptionsconvertConceptValidationOptions(org.hl7.fhir.utilities.validation.ValidationOptions theOptions)org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcomeexpandVS(org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent binding, boolean cacheOk, boolean Hierarchical)org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcomeexpandVS(org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent inc, boolean heirarchical)org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcomeexpandVS(org.hl7.fhir.r5.model.ValueSet source, boolean cacheOk, boolean Hierarchical)org.hl7.fhir.r5.model.CodeSystemfetchCodeSystem(String system)org.hl7.fhir.r5.model.StructureDefinitionfetchRawProfile(String url)<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, org.hl7.fhir.r5.model.CanonicalResource canonicalForSource)org.hl7.fhir.r5.model.ResourcefetchResourceById(String type, String uri)<T extends org.hl7.fhir.r5.model.Resource>
TfetchResourceWithException(Class<T> class_, String uri)org.hl7.fhir.r5.model.StructureDefinitionfetchTypeDefinition(String typeName)List<org.hl7.fhir.r5.model.ConceptMap>findMapsForSource(String url)voidgenerateSnapshot(org.hl7.fhir.r5.model.StructureDefinition input)voidgenerateSnapshot(org.hl7.fhir.r5.model.StructureDefinition theStructureDefinition, boolean theB)StringgetAbbreviation(String name)Map<String,byte[]>getBinaries()intgetClientRetryCount()org.hl7.fhir.r5.model.ParametersgetExpansionParameters()StringgetLinkForUrl(String corePath, String url)LocalegetLocale()org.hl7.fhir.r5.context.IWorkerContext.ILoggingServicegetLogger()StringgetOverrideVersionNs()org.hl7.fhir.r5.formats.IParsergetParser(String type)org.hl7.fhir.r5.formats.IParsergetParser(org.hl7.fhir.r5.formats.ParserType type)List<String>getResourceNames()Set<String>getResourceNamesAsSet()List<org.hl7.fhir.r5.model.StructureDefinition>getStructures()org.hl7.fhir.r5.model.StructureMapgetTransform(String url)List<String>getTypeNames()org.fhir.ucum.UcumServicegetUcumService()StringgetVersion()booleanhasCache()booleanhasPackage(String id, String ver)<T extends org.hl7.fhir.r5.model.Resource>
booleanhasResource(Class<T> class_, String uri)voidinvalidateCaches()booleanisNoTerminologyServer()List<org.hl7.fhir.r5.model.StructureMap>listTransforms()intloadFromPackage(org.hl7.fhir.utilities.cache.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader)intloadFromPackage(org.hl7.fhir.utilities.cache.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader, String[] types)intloadFromPackageAndDependencies(org.hl7.fhir.utilities.cache.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader, org.hl7.fhir.utilities.cache.BasePackageCacheManager pcm)org.hl7.fhir.r5.formats.IParsernewJsonParser()org.hl7.fhir.r5.utils.IResourceValidatornewValidator()org.hl7.fhir.r5.formats.IParsernewXmlParser()Stringoid2Uri(String code)org.hl7.fhir.r5.context.IWorkerContextsetClientRetryCount(int value)voidsetExpansionProfile(org.hl7.fhir.r5.model.Parameters expParameters)voidsetLocale(Locale locale)voidsetLogger(org.hl7.fhir.r5.context.IWorkerContext.ILoggingService logger)voidsetOverrideVersionNs(String value)voidsetUcumService(org.fhir.ucum.UcumService ucumService)booleansupportsSystem(String system)org.hl7.fhir.utilities.TranslationServicestranslator()org.hl7.fhir.r5.context.IWorkerContext.ValidationResultvalidateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String system, String code, String display)org.hl7.fhir.r5.context.IWorkerContext.ValidationResultvalidateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String theSystem, String theCode, String display, org.hl7.fhir.r5.model.ValueSet theValueSet)org.hl7.fhir.r5.context.IWorkerContext.ValidationResultvalidateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, String code, org.hl7.fhir.r5.model.ValueSet theValueSet)org.hl7.fhir.r5.context.IWorkerContext.ValidationResultvalidateCode(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.ValidationResultvalidateCode(org.hl7.fhir.utilities.validation.ValidationOptions theOptions, org.hl7.fhir.r5.model.Coding theCoding, org.hl7.fhir.r5.model.ValueSet theValueSet)voidvalidateCodeBatch(org.hl7.fhir.utilities.validation.ValidationOptions options, List<? extends org.hl7.fhir.r5.context.IWorkerContext.CodingValidationRequest> codes, org.hl7.fhir.r5.model.ValueSet vs)-
Methods inherited from class org.hl7.fhir.utilities.i18n.I18nBase
formatMessage, isWarnAboutMissingMessages, setValidationMessageLanguage, setWarnAboutMissingMessages
-
-
-
-
Field Detail
-
IDENTITY_VERSION_TYPE_CONVERTER
public static final VersionSpecificWorkerContextWrapper.IVersionTypeConverter IDENTITY_VERSION_TYPE_CONVERTER
-
-
Constructor Detail
-
VersionSpecificWorkerContextWrapper
public VersionSpecificWorkerContextWrapper(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, VersionSpecificWorkerContextWrapper.IVersionTypeConverter theModelConverter)
-
-
Method Detail
-
allConformanceResources
public List<org.hl7.fhir.r5.model.CanonicalResource> allConformanceResources()
- Specified by:
allConformanceResourcesin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getLinkForUrl
public String getLinkForUrl(String corePath, String url)
- Specified by:
getLinkForUrlin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getBinaries
public Map<String,byte[]> getBinaries()
- Specified by:
getBinariesin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
loadFromPackage
public int loadFromPackage(org.hl7.fhir.utilities.cache.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
- Specified by:
loadFromPackagein interfaceorg.hl7.fhir.r5.context.IWorkerContext- Throws:
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRException
-
loadFromPackage
public int 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:
loadFromPackagein interfaceorg.hl7.fhir.r5.context.IWorkerContext- Throws:
org.hl7.fhir.exceptions.FHIRException
-
loadFromPackageAndDependencies
public int loadFromPackageAndDependencies(org.hl7.fhir.utilities.cache.NpmPackage pi, org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loader, org.hl7.fhir.utilities.cache.BasePackageCacheManager pcm) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
- Specified by:
loadFromPackageAndDependenciesin interfaceorg.hl7.fhir.r5.context.IWorkerContext- Throws:
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRException
-
hasPackage
public boolean hasPackage(String id, String ver)
- Specified by:
hasPackagein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getClientRetryCount
public int getClientRetryCount()
- Specified by:
getClientRetryCountin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setClientRetryCount
public org.hl7.fhir.r5.context.IWorkerContext setClientRetryCount(int value)
- Specified by:
setClientRetryCountin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
generateSnapshot
public void generateSnapshot(org.hl7.fhir.r5.model.StructureDefinition input) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
generateSnapshotin interfaceorg.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:
generateSnapshotin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getExpansionParameters
public org.hl7.fhir.r5.model.Parameters getExpansionParameters()
- Specified by:
getExpansionParametersin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setExpansionProfile
public void setExpansionProfile(org.hl7.fhir.r5.model.Parameters expParameters)
- Specified by:
setExpansionProfilein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
allStructures
public List<org.hl7.fhir.r5.model.StructureDefinition> allStructures()
- Specified by:
allStructuresin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getStructures
public List<org.hl7.fhir.r5.model.StructureDefinition> getStructures()
- Specified by:
getStructuresin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
cacheResource
public void cacheResource(org.hl7.fhir.r5.model.Resource res)
- Specified by:
cacheResourcein interfaceorg.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:
cacheResourceFromPackagein interfaceorg.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:
cachePackagein interfaceorg.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:
expandVSin interfaceorg.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:
expandVSin interfaceorg.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:
expandVSin interfaceorg.hl7.fhir.r5.context.IWorkerContext- Throws:
org.hl7.fhir.exceptions.TerminologyServiceException
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceorg.hl7.fhir.r5.context.IWorkerContext- Overrides:
getLocalein classorg.hl7.fhir.utilities.i18n.I18nBase
-
setLocale
public void setLocale(Locale locale)
- Specified by:
setLocalein interfaceorg.hl7.fhir.r5.context.IWorkerContext- Overrides:
setLocalein classorg.hl7.fhir.utilities.i18n.I18nBase
-
fetchCodeSystem
public org.hl7.fhir.r5.model.CodeSystem fetchCodeSystem(String system)
- Specified by:
fetchCodeSystemin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchResource
public <T extends org.hl7.fhir.r5.model.Resource> T fetchResource(Class<T> class_, String uri)
- Specified by:
fetchResourcein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchResourceById
public org.hl7.fhir.r5.model.Resource fetchResourceById(String type, String uri)
- Specified by:
fetchResourceByIdin 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:
fetchResourceWithExceptionin 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, org.hl7.fhir.r5.model.CanonicalResource canonicalForSource)
- Specified by:
fetchResourcein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
findMapsForSource
public List<org.hl7.fhir.r5.model.ConceptMap> findMapsForSource(String url)
- Specified by:
findMapsForSourcein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getAbbreviation
public String getAbbreviation(String name)
- Specified by:
getAbbreviationin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getParser
public org.hl7.fhir.r5.formats.IParser getParser(org.hl7.fhir.r5.formats.ParserType type)
- Specified by:
getParserin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getParser
public org.hl7.fhir.r5.formats.IParser getParser(String type)
- Specified by:
getParserin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getResourceNames
public List<String> getResourceNames()
- Specified by:
getResourceNamesin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getResourceNamesAsSet
public Set<String> getResourceNamesAsSet()
- Specified by:
getResourceNamesAsSetin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getTransform
public org.hl7.fhir.r5.model.StructureMap getTransform(String url)
- Specified by:
getTransformin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getOverrideVersionNs
public String getOverrideVersionNs()
- Specified by:
getOverrideVersionNsin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setOverrideVersionNs
public void setOverrideVersionNs(String value)
- Specified by:
setOverrideVersionNsin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchTypeDefinition
public org.hl7.fhir.r5.model.StructureDefinition fetchTypeDefinition(String typeName)
- Specified by:
fetchTypeDefinitionin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
fetchRawProfile
public org.hl7.fhir.r5.model.StructureDefinition fetchRawProfile(String url)
- Specified by:
fetchRawProfilein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getTypeNames
public List<String> getTypeNames()
- Specified by:
getTypeNamesin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getUcumService
public org.fhir.ucum.UcumService getUcumService()
- Specified by:
getUcumServicein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setUcumService
public void setUcumService(org.fhir.ucum.UcumService ucumService)
- Specified by:
setUcumServicein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
hasCache
public boolean hasCache()
- Specified by:
hasCachein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
hasResource
public <T extends org.hl7.fhir.r5.model.Resource> boolean hasResource(Class<T> class_, String uri)
- Specified by:
hasResourcein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
isNoTerminologyServer
public boolean isNoTerminologyServer()
- Specified by:
isNoTerminologyServerin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
listTransforms
public List<org.hl7.fhir.r5.model.StructureMap> listTransforms()
- Specified by:
listTransformsin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
newJsonParser
public org.hl7.fhir.r5.formats.IParser newJsonParser()
- Specified by:
newJsonParserin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
newValidator
public org.hl7.fhir.r5.utils.IResourceValidator newValidator()
- Specified by:
newValidatorin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
newXmlParser
public org.hl7.fhir.r5.formats.IParser newXmlParser()
- Specified by:
newXmlParserin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
oid2Uri
public String oid2Uri(String code)
- Specified by:
oid2Uriin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
getLogger
public org.hl7.fhir.r5.context.IWorkerContext.ILoggingService getLogger()
- Specified by:
getLoggerin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
setLogger
public void setLogger(org.hl7.fhir.r5.context.IWorkerContext.ILoggingService logger)
- Specified by:
setLoggerin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
supportsSystem
public boolean supportsSystem(String system)
- Specified by:
supportsSystemin interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
translator
public org.hl7.fhir.utilities.TranslationServices translator()
- Specified by:
translatorin 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 code, String display)
- Specified by:
validateCodein 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 theCode, String display, org.hl7.fhir.r5.model.ValueSet theValueSet)
- Specified by:
validateCodein 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:
validateCodein 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:
validateCodein 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:
validateCodeBatchin 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:
validateCodein interfaceorg.hl7.fhir.r5.context.IWorkerContext
-
invalidateCaches
public void invalidateCaches()
-
convertConceptValidationOptions
public static ca.uhn.fhir.context.support.ConceptValidationOptions convertConceptValidationOptions(org.hl7.fhir.utilities.validation.ValidationOptions theOptions)
-
-