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() |
ValueSet.ValueSetExpansionComponent |
expandVS(ValueSet.ConceptSetComponent inc,
boolean heiarchical)
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.
|
<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() |
List<String> |
getTypeNames() |
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() |
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.
|
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()
IParser getParser(ParserType type)
type - IParser getParser(String type)
type - IParser newJsonParser()
IParser newXmlParser()
INarrativeGenerator getNarrativeGenerator(String prefix, String basePath)
IResourceValidator newValidator() throws FHIRException
FHIRException<T extends Resource> T fetchResource(Class<T> class_, String uri)
resource - Reference - FHIRExceptionException<T extends Resource> T fetchResourceWithException(Class<T> class_, String uri) throws FHIRException
FHIRException<T extends Resource> boolean hasResource(Class<T> class_, String uri)
class_ - uri - List<String> getResourceNames()
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 TerminologyServiceException
system - ExceptionTerminologyServiceExceptionList<ConceptMap> findMapsForSource(String url)
url - ValueSetExpander.ValueSetExpansionOutcome expandVS(ValueSet source, boolean cacheOk, boolean heiarchical)
source - ValueSet.ValueSetExpansionComponent expandVS(ValueSet.ConceptSetComponent inc, boolean heiarchical) throws TerminologyServiceException
inc - FHIRExceptionTerminologyServiceExceptionIWorkerContext.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()
Copyright © 2014–2017 University Health Network. All rights reserved.