public interface IWorkerContext
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IWorkerContext.ILoggingService |
static class |
IWorkerContext.ValidationResult |
| Modifier and Type | Method and Description |
|---|---|
List<MetadataResource> |
allConformanceResources() |
List<StructureDefinition> |
allStructures() |
void |
cacheResource(Resource res)
cache a resource for later retrieval using fetchResource.
|
ValueSetExpander.ValueSetExpansionOutcome |
expandVS(ElementDefinition.ElementDefinitionBindingComponent binding,
boolean cacheOk,
boolean heiarchical)
ValueSet Expansion - see $expand, but resolves the binding first
|
ValueSetExpander.ValueSetExpansionOutcome |
expandVS(ValueSet.ConceptSetComponent inc,
boolean heirarchical)
Value set expanion inside the internal expansion engine - used
for references to supported system (see "supportsSystem") for
which there is no value set.
|
ValueSetExpander.ValueSetExpansionOutcome |
expandVS(ValueSet source,
boolean cacheOk,
boolean heiarchical)
ValueSet Expansion - see $expand
|
CodeSystem |
fetchCodeSystem(String system)
Find the code system definition for the nominated system uri.
|
<T extends Resource> |
fetchResource(Class<T> class_,
String uri)
Find an identified resource.
|
Resource |
fetchResourceById(String type,
String uri)
Variation of fetchResource when you have a string type, and don't need the right class
The URI can have one of 3 formats:
- a full URL e.g.
|
<T extends Resource> |
fetchResourceWithException(Class<T> class_,
String uri) |
StructureDefinition |
fetchTypeDefinition(String typeName) |
List<ConceptMap> |
findMapsForSource(String url)
find concept maps for a source
|
String |
formatMessage(String theMessage,
Object... theMessageArguments) |
void |
generateSnapshot(StructureDefinition p) |
String |
getAbbreviation(String name)
returns the recommended tla for the type
|
Parameters |
getExpansionParameters() |
String |
getLinkForUrl(String corePath,
String s) |
Locale |
getLocale() |
IWorkerContext.ILoggingService |
getLogger() |
INarrativeGenerator |
getNarrativeGenerator(String prefix,
String basePath)
Get a generator that can generate narrative for the instance
|
String |
getOverrideVersionNs() |
IParser |
getParser(ParserType type)
Get a parser to read/write instances.
|
IParser |
getParser(String type)
Get a parser to read/write instances.
|
List<String> |
getResourceNames() |
Set<String> |
getResourceNamesAsSet() |
List<StructureDefinition> |
getStructures() |
StructureMap |
getTransform(String url) |
List<String> |
getTypeNames() |
org.fhir.ucum.UcumService |
getUcumService() |
String |
getVersion()
Get the versions of the definitions loaded in context
|
boolean |
hasCache() |
<T extends Resource> |
hasResource(Class<T> class_,
String uri)
find whether a resource is available.
|
boolean |
isNoTerminologyServer() |
List<StructureMap> |
listTransforms() |
IParser |
newJsonParser()
Get a JSON parser
|
IResourceValidator |
newValidator()
Get a validator that can check whether a resource is valid
|
IParser |
newXmlParser()
Get an XML parser
|
String |
oid2Uri(String code) |
void |
setExpansionProfile(Parameters expParameters) |
void |
setLocale(Locale locale) |
void |
setLogger(IWorkerContext.ILoggingService logger) |
void |
setOverrideVersionNs(String value) |
void |
setUcumService(org.fhir.ucum.UcumService ucumService) |
void |
setValidationMessageLanguage(Locale locale) |
boolean |
supportsSystem(String system)
True if the underlying terminology service provider will do
expansion and code validation for the terminology.
|
org.hl7.fhir.utilities.TranslationServices |
translator() |
Set<String> |
typeTails() |
IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options,
CodeableConcept code,
ValueSet vs) |
IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options,
Coding code,
ValueSet vs) |
IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options,
String system,
String code,
String display)
Validation of a code - consult the terminology service
to see whether it is known.
|
IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options,
String system,
String code,
String display,
ValueSet.ConceptSetComponent vsi)
Validation of a code - consult the terminology service
to see whether it is known.
|
IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options,
String system,
String code,
String display,
ValueSet vs)
Validation of a code - consult the terminology service
to see whether it is known.
|
IWorkerContext.ValidationResult |
validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options,
String code,
ValueSet vs) |
String getVersion()
org.fhir.ucum.UcumService getUcumService()
IParser getParser(ParserType type)
type - IParser getParser(String type)
type - IParser newJsonParser()
IParser newXmlParser()
INarrativeGenerator getNarrativeGenerator(String prefix, String basePath)
IResourceValidator newValidator() throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRException<T extends Resource> T fetchResource(Class<T> class_, String uri)
resource - Reference - org.hl7.fhir.exceptions.FHIRExceptionException<T extends Resource> T fetchResourceWithException(Class<T> class_, String uri) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionResource fetchResourceById(String type, String uri)
type - uri - <T extends Resource> boolean hasResource(Class<T> class_, String uri)
class_ - uri - void cacheResource(Resource res) throws org.hl7.fhir.exceptions.FHIRException
res - org.hl7.fhir.exceptions.FHIRExceptionList<String> getResourceNames()
Set<String> getResourceNamesAsSet()
List<String> getTypeNames()
List<StructureDefinition> allStructures()
List<StructureDefinition> getStructures()
List<MetadataResource> allConformanceResources()
void generateSnapshot(StructureDefinition p) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRExceptionParameters getExpansionParameters()
void setExpansionProfile(Parameters expParameters)
CodeSystem fetchCodeSystem(String system)
system - boolean supportsSystem(String system) throws org.hl7.fhir.exceptions.TerminologyServiceException
system - Exceptionorg.hl7.fhir.exceptions.TerminologyServiceExceptionList<ConceptMap> findMapsForSource(String url) throws org.hl7.fhir.exceptions.FHIRException
url - org.hl7.fhir.exceptions.FHIRExceptionValueSetExpander.ValueSetExpansionOutcome expandVS(ValueSet source, boolean cacheOk, boolean heiarchical)
source - ValueSetExpander.ValueSetExpansionOutcome expandVS(ElementDefinition.ElementDefinitionBindingComponent binding, boolean cacheOk, boolean heiarchical) throws org.hl7.fhir.exceptions.FHIRException
source - org.hl7.fhir.exceptions.FHIRExceptionValueSetExpander.ValueSetExpansionOutcome expandVS(ValueSet.ConceptSetComponent inc, boolean heirarchical) throws org.hl7.fhir.exceptions.TerminologyServiceException
inc - org.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.exceptions.TerminologyServiceExceptionString formatMessage(String theMessage, Object... theMessageArguments)
void setValidationMessageLanguage(Locale locale)
IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options, String system, String code, String display)
system - code - display - IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options, String system, String code, String display, ValueSet vs)
system - code - display - IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options, String code, ValueSet vs)
IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, ValueSet vs)
IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options, CodeableConcept code, ValueSet vs)
IWorkerContext.ValidationResult validateCode(org.hl7.fhir.utilities.validation.ValidationOptions options, String system, String code, String display, ValueSet.ConceptSetComponent vsi)
system - code - display - String getAbbreviation(String name)
name - boolean hasCache()
void setLogger(IWorkerContext.ILoggingService logger)
IWorkerContext.ILoggingService getLogger()
boolean isNoTerminologyServer()
org.hl7.fhir.utilities.TranslationServices translator()
List<StructureMap> listTransforms()
StructureMap getTransform(String url)
String getOverrideVersionNs()
void setOverrideVersionNs(String value)
StructureDefinition fetchTypeDefinition(String typeName)
void setUcumService(org.fhir.ucum.UcumService ucumService)
String getLinkForUrl(String corePath, String s)
Copyright © 2014–2021 Health Level 7. All rights reserved.