public final class HapiWorkerContext extends Object implements org.hl7.fhir.r4.context.IWorkerContext, org.hl7.fhir.r4.terminologies.ValueSetExpander, org.hl7.fhir.r4.terminologies.ValueSetExpanderFactory
org.hl7.fhir.r4.context.IWorkerContext.ILoggingService, org.hl7.fhir.r4.context.IWorkerContext.ValidationResultorg.hl7.fhir.r4.terminologies.ValueSetExpander.ETooCostly, org.hl7.fhir.r4.terminologies.ValueSetExpander.TerminologyServiceErrorClass, org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome| Constructor and Description |
|---|
HapiWorkerContext(ca.uhn.fhir.context.FhirContext theCtx,
IValidationSupport theValidationSupport) |
| Modifier and Type | Method and Description |
|---|---|
List<org.hl7.fhir.r4.model.MetadataResource> |
allConformanceResources() |
List<org.hl7.fhir.r4.model.StructureDefinition> |
allStructures() |
void |
cacheResource(org.hl7.fhir.r4.model.Resource theRes) |
org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome |
expand(org.hl7.fhir.r4.model.ValueSet theSource,
org.hl7.fhir.r4.model.Parameters theProfile) |
org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome |
expandVS(org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionBindingComponent theBinding,
boolean theCacheOk,
boolean theHeiarchical) |
org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome |
expandVS(org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent theInc,
boolean theHeiarchical) |
org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome |
expandVS(org.hl7.fhir.r4.model.ValueSet theSource,
boolean theCacheOk,
boolean theHeiarchical) |
org.hl7.fhir.r4.model.CodeSystem |
fetchCodeSystem(String theSystem) |
<T extends org.hl7.fhir.r4.model.Resource> |
fetchResource(Class<T> theClass,
String theUri) |
org.hl7.fhir.r4.model.Resource |
fetchResourceById(String theType,
String theUri) |
<T extends org.hl7.fhir.r4.model.Resource> |
fetchResourceWithException(Class<T> theClass,
String theUri) |
org.hl7.fhir.r4.model.StructureDefinition |
fetchTypeDefinition(String typeName) |
List<org.hl7.fhir.r4.model.ConceptMap> |
findMapsForSource(String theUrl) |
void |
generateSnapshot(org.hl7.fhir.r4.model.StructureDefinition p) |
String |
getAbbreviation(String theName) |
org.hl7.fhir.r4.terminologies.ValueSetExpander |
getExpander() |
org.hl7.fhir.r4.model.Parameters |
getExpansionParameters() |
org.hl7.fhir.r4.context.IWorkerContext.ILoggingService |
getLogger() |
org.hl7.fhir.r4.utils.INarrativeGenerator |
getNarrativeGenerator(String thePrefix,
String theBasePath) |
String |
getOverrideVersionNs() |
org.hl7.fhir.r4.formats.IParser |
getParser(org.hl7.fhir.r4.formats.ParserType theType) |
org.hl7.fhir.r4.formats.IParser |
getParser(String theType) |
List<String> |
getResourceNames() |
Set<String> |
getResourceNamesAsSet() |
List<org.hl7.fhir.r4.model.StructureDefinition> |
getStructures() |
org.hl7.fhir.r4.model.StructureMap |
getTransform(String url) |
List<String> |
getTypeNames() |
org.fhir.ucum.UcumService |
getUcumService() |
String |
getVersion() |
boolean |
hasCache() |
<T extends org.hl7.fhir.r4.model.Resource> |
hasResource(Class<T> theClass_,
String theUri) |
boolean |
isNoTerminologyServer() |
List<org.hl7.fhir.r4.model.StructureMap> |
listTransforms() |
org.hl7.fhir.r4.formats.IParser |
newJsonParser() |
org.hl7.fhir.r4.utils.IResourceValidator |
newValidator() |
org.hl7.fhir.r4.formats.IParser |
newXmlParser() |
String |
oid2Uri(String theCode) |
void |
setExpansionProfile(org.hl7.fhir.r4.model.Parameters theExpParameters) |
void |
setLogger(org.hl7.fhir.r4.context.IWorkerContext.ILoggingService theLogger) |
void |
setOverrideVersionNs(String value) |
void |
setUcumService(org.fhir.ucum.UcumService ucumService) |
boolean |
supportsSystem(String theSystem) |
org.hl7.fhir.utilities.TranslationServices |
translator() |
Set<String> |
typeTails() |
org.hl7.fhir.r4.context.IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions,
org.hl7.fhir.r4.model.CodeableConcept theCode,
org.hl7.fhir.r4.model.ValueSet theVs) |
org.hl7.fhir.r4.context.IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions,
org.hl7.fhir.r4.model.Coding theCode,
org.hl7.fhir.r4.model.ValueSet theVs) |
org.hl7.fhir.r4.context.IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions,
String theSystem,
String theCode,
String theDisplay) |
org.hl7.fhir.r4.context.IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions,
String theSystem,
String theCode,
String theDisplay,
org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent theVsi) |
org.hl7.fhir.r4.context.IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions,
String theSystem,
String theCode,
String theDisplay,
org.hl7.fhir.r4.model.ValueSet theVs) |
org.hl7.fhir.r4.context.IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions,
String code,
org.hl7.fhir.r4.model.ValueSet vs) |
public HapiWorkerContext(ca.uhn.fhir.context.FhirContext theCtx, IValidationSupport theValidationSupport)
public List<org.hl7.fhir.r4.model.StructureDefinition> allStructures()
allStructures in interface org.hl7.fhir.r4.context.IWorkerContextpublic List<org.hl7.fhir.r4.model.StructureDefinition> getStructures()
getStructures in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.model.CodeSystem fetchCodeSystem(String theSystem)
fetchCodeSystem in interface org.hl7.fhir.r4.context.IWorkerContextpublic List<org.hl7.fhir.r4.model.ConceptMap> findMapsForSource(String theUrl)
findMapsForSource in interface org.hl7.fhir.r4.context.IWorkerContextpublic String getAbbreviation(String theName)
getAbbreviation in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.terminologies.ValueSetExpander getExpander()
getExpander in interface org.hl7.fhir.r4.terminologies.ValueSetExpanderFactorypublic org.hl7.fhir.r4.utils.INarrativeGenerator getNarrativeGenerator(String thePrefix, String theBasePath)
getNarrativeGenerator in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.formats.IParser getParser(org.hl7.fhir.r4.formats.ParserType theType)
getParser in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.formats.IParser getParser(String theType)
getParser in interface org.hl7.fhir.r4.context.IWorkerContextpublic List<String> getResourceNames()
getResourceNames in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.formats.IParser newJsonParser()
newJsonParser in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.utils.IResourceValidator newValidator()
newValidator in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.formats.IParser newXmlParser()
newXmlParser in interface org.hl7.fhir.r4.context.IWorkerContextpublic String oid2Uri(String theCode)
oid2Uri in interface org.hl7.fhir.r4.context.IWorkerContextpublic boolean supportsSystem(String theSystem)
supportsSystem in interface org.hl7.fhir.r4.context.IWorkerContextpublic Set<String> typeTails()
typeTails in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions, org.hl7.fhir.r4.model.CodeableConcept theCode, org.hl7.fhir.r4.model.ValueSet theVs)
validateCode in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions, org.hl7.fhir.r4.model.Coding theCode, org.hl7.fhir.r4.model.ValueSet theVs)
validateCode in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions, String theSystem, String theCode, String theDisplay)
validateCode in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions, String theSystem, String theCode, String theDisplay, org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent theVsi)
validateCode in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions, String theSystem, String theCode, String theDisplay, org.hl7.fhir.r4.model.ValueSet theVs)
validateCode in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.context.IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.TerminologyServiceOptions theOptions, String code, org.hl7.fhir.r4.model.ValueSet vs)
validateCode in interface org.hl7.fhir.r4.context.IWorkerContextpublic List<org.hl7.fhir.r4.model.MetadataResource> allConformanceResources()
allConformanceResources in interface org.hl7.fhir.r4.context.IWorkerContextpublic void generateSnapshot(org.hl7.fhir.r4.model.StructureDefinition p) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException
generateSnapshot in interface org.hl7.fhir.r4.context.IWorkerContextorg.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic org.hl7.fhir.r4.model.Parameters getExpansionParameters()
getExpansionParameters in interface org.hl7.fhir.r4.context.IWorkerContextpublic void setExpansionProfile(org.hl7.fhir.r4.model.Parameters theExpParameters)
setExpansionProfile in interface org.hl7.fhir.r4.context.IWorkerContextpublic boolean hasCache()
hasCache in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome expand(org.hl7.fhir.r4.model.ValueSet theSource, org.hl7.fhir.r4.model.Parameters theProfile)
expand in interface org.hl7.fhir.r4.terminologies.ValueSetExpanderpublic org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r4.model.ValueSet theSource, boolean theCacheOk, boolean theHeiarchical)
expandVS in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent theInc, boolean theHeiarchical) throws org.hl7.fhir.exceptions.TerminologyServiceException
expandVS in interface org.hl7.fhir.r4.context.IWorkerContextorg.hl7.fhir.exceptions.TerminologyServiceExceptionpublic void setLogger(org.hl7.fhir.r4.context.IWorkerContext.ILoggingService theLogger)
setLogger in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.context.IWorkerContext.ILoggingService getLogger()
getLogger in interface org.hl7.fhir.r4.context.IWorkerContextpublic String getVersion()
getVersion in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.fhir.ucum.UcumService getUcumService()
getUcumService in interface org.hl7.fhir.r4.context.IWorkerContextpublic boolean isNoTerminologyServer()
isNoTerminologyServer in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.utilities.TranslationServices translator()
translator in interface org.hl7.fhir.r4.context.IWorkerContextpublic List<org.hl7.fhir.r4.model.StructureMap> listTransforms()
listTransforms in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.model.StructureMap getTransform(String url)
getTransform in interface org.hl7.fhir.r4.context.IWorkerContextpublic String getOverrideVersionNs()
getOverrideVersionNs in interface org.hl7.fhir.r4.context.IWorkerContextpublic void setOverrideVersionNs(String value)
setOverrideVersionNs in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.model.StructureDefinition fetchTypeDefinition(String typeName)
fetchTypeDefinition in interface org.hl7.fhir.r4.context.IWorkerContextpublic void setUcumService(org.fhir.ucum.UcumService ucumService)
setUcumService in interface org.hl7.fhir.r4.context.IWorkerContextpublic List<String> getTypeNames()
getTypeNames in interface org.hl7.fhir.r4.context.IWorkerContextpublic <T extends org.hl7.fhir.r4.model.Resource> T fetchResource(Class<T> theClass, String theUri)
fetchResource in interface org.hl7.fhir.r4.context.IWorkerContextpublic <T extends org.hl7.fhir.r4.model.Resource> T fetchResourceWithException(Class<T> theClass, String theUri) throws org.hl7.fhir.exceptions.FHIRException
fetchResourceWithException in interface org.hl7.fhir.r4.context.IWorkerContextorg.hl7.fhir.exceptions.FHIRExceptionpublic org.hl7.fhir.r4.model.Resource fetchResourceById(String theType, String theUri)
fetchResourceById in interface org.hl7.fhir.r4.context.IWorkerContextpublic <T extends org.hl7.fhir.r4.model.Resource> boolean hasResource(Class<T> theClass_, String theUri)
hasResource in interface org.hl7.fhir.r4.context.IWorkerContextpublic void cacheResource(org.hl7.fhir.r4.model.Resource theRes) throws org.hl7.fhir.exceptions.FHIRException
cacheResource in interface org.hl7.fhir.r4.context.IWorkerContextorg.hl7.fhir.exceptions.FHIRExceptionpublic Set<String> getResourceNamesAsSet()
getResourceNamesAsSet in interface org.hl7.fhir.r4.context.IWorkerContextpublic org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandVS(org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionBindingComponent theBinding, boolean theCacheOk, boolean theHeiarchical) throws org.hl7.fhir.exceptions.FHIRException
expandVS in interface org.hl7.fhir.r4.context.IWorkerContextorg.hl7.fhir.exceptions.FHIRExceptionCopyright © 2014–2019 University Health Network. All rights reserved.