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
|
ValueSet.ValueSetExpansionComponent |
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) |
List<ConceptMap> |
findMapsForSource(String url)
find concept maps for a source
|
String |
getAbbreviation(String name)
returns the recommended tla for the type
|
ExpansionProfile |
getExpansionProfile() |
INarrativeGenerator |
getNarrativeGenerator(String prefix,
String basePath)
Get a generator that can generate narrative for the instance
|
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() |
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(ExpansionProfile expProfile) |
void |
setLogger(IWorkerContext.ILoggingService logger) |
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(CodeableConcept code,
ValueSet vs) |
IWorkerContext.ValidationResult |
validateCode(Coding code,
ValueSet vs) |
IWorkerContext.ValidationResult |
validateCode(String system,
String code,
String display)
Validation of a code - consult the terminology service
to see whether it is known.
|
IWorkerContext.ValidationResult |
validateCode(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(String system,
String code,
String display,
ValueSet vs)
Validation of a code - consult the terminology service
to see whether it is known.
|
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<MetadataResource> allConformanceResources()
ExpansionProfile getExpansionProfile()
void setExpansionProfile(ExpansionProfile expProfile)
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.FHIRExceptionValueSet.ValueSetExpansionComponent expandVS(ValueSet.ConceptSetComponent inc, boolean heirarchical) throws org.hl7.fhir.exceptions.TerminologyServiceException
inc - org.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.exceptions.TerminologyServiceExceptionIWorkerContext.ValidationResult validateCode(String system, String code, String display)
system - code - display - IWorkerContext.ValidationResult validateCode(String system, String code, String display, ValueSet vs)
system - code - display - IWorkerContext.ValidationResult validateCode(Coding code, ValueSet vs)
IWorkerContext.ValidationResult validateCode(CodeableConcept code, ValueSet vs)
IWorkerContext.ValidationResult validateCode(String system, String code, String display, ValueSet.ConceptSetComponent vsi)
system - code - display - String getAbbreviation(String name)
name - boolean hasCache()
void setLogger(IWorkerContext.ILoggingService logger)
boolean isNoTerminologyServer()
org.hl7.fhir.utilities.TranslationServices translator()
List<StructureMap> listTransforms()
StructureMap getTransform(String url)
Copyright © 2014–2018 University Health Network. All rights reserved.