public final class HapiWorkerContext extends Object implements IWorkerContext, ValueSetExpanderFactory, ValueSetExpander
IWorkerContext.ValidationResultValueSetExpander.ETooCostly, ValueSetExpander.ValueSetExpansionOutcome| Constructor and Description |
|---|
HapiWorkerContext(FhirContext theCtx,
IValidationSupport theValidationSupport) |
| Modifier and Type | Method and Description |
|---|---|
ValueSetExpander.ValueSetExpansionOutcome |
expand(ValueSet theSource) |
ValueSet.ValueSetExpansionComponent |
expandVS(ValueSet.ConceptSetComponent theInc)
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 theSource,
boolean theCacheOk)
ValueSet Expansion - see $expand
|
ValueSet |
fetchCodeSystem(String theSystem)
Find a value set for the nominated system uri.
|
<T extends Resource> |
fetchResource(Class<T> theClass,
String theUri)
Find an identified resource.
|
List<ConceptMap> |
findMapsForSource(String theUrl)
find concept maps for a source
|
ValueSetExpander |
getExpander() |
INarrativeGenerator |
getNarrativeGenerator(String thePrefix,
String theBasePath)
Get a generator that can generate narrative for the instance
|
IParser |
getParser(ParserType theType)
Get a parser to read/write instances.
|
IParser |
getParser(String theType)
Get a parser to read/write instances.
|
<T extends Resource> |
hasResource(Class<T> theClass_,
String theUri)
find whether a resource is available.
|
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
|
boolean |
supportsSystem(String theSystem)
True if the underlying terminology service provider will do
expansion and code validation for the terminology.
|
IWorkerContext.ValidationResult |
validateCode(CodeableConcept theCode,
ValueSet theVs) |
IWorkerContext.ValidationResult |
validateCode(Coding theCode,
ValueSet theVs) |
IWorkerContext.ValidationResult |
validateCode(String theSystem,
String theCode,
String theDisplay)
Validation of a code - consult the terminology service
to see whether it is known.
|
IWorkerContext.ValidationResult |
validateCode(String theSystem,
String theCode,
String theDisplay,
ValueSet.ConceptSetComponent theVsi)
Validation of a code - consult the terminology service
to see whether it is known.
|
IWorkerContext.ValidationResult |
validateCode(String theSystem,
String theCode,
String theDisplay,
ValueSet theVs)
Validation of a code - consult the terminology service
to see whether it is known.
|
public HapiWorkerContext(FhirContext theCtx, IValidationSupport theValidationSupport)
public ValueSet.ValueSetExpansionComponent expandVS(ValueSet.ConceptSetComponent theInc)
IWorkerContextexpandVS in interface IWorkerContextpublic ValueSet fetchCodeSystem(String theSystem)
IWorkerContextfetchCodeSystem in interface IWorkerContextpublic <T extends Resource> T fetchResource(Class<T> theClass, String theUri) throws EOperationOutcome, Exception
IWorkerContextfetchResource in interface IWorkerContextExceptionEOperationOutcomepublic INarrativeGenerator getNarrativeGenerator(String thePrefix, String theBasePath)
IWorkerContextgetNarrativeGenerator in interface IWorkerContextpublic IParser getParser(ParserType theType)
IWorkerContextgetParser in interface IWorkerContextpublic IParser getParser(String theType)
IWorkerContextgetParser in interface IWorkerContextpublic <T extends Resource> boolean hasResource(Class<T> theClass_, String theUri)
IWorkerContexthasResource in interface IWorkerContextpublic IParser newJsonParser()
IWorkerContextnewJsonParser in interface IWorkerContextpublic IResourceValidator newValidator() throws Exception
IWorkerContextnewValidator in interface IWorkerContextExceptionpublic IParser newXmlParser()
IWorkerContextnewXmlParser in interface IWorkerContextpublic boolean supportsSystem(String theSystem)
IWorkerContextsupportsSystem in interface IWorkerContextpublic IWorkerContext.ValidationResult validateCode(String theSystem, String theCode, String theDisplay)
IWorkerContextvalidateCode in interface IWorkerContextpublic IWorkerContext.ValidationResult validateCode(String theSystem, String theCode, String theDisplay, ValueSet.ConceptSetComponent theVsi)
IWorkerContextvalidateCode in interface IWorkerContextpublic IWorkerContext.ValidationResult validateCode(String theSystem, String theCode, String theDisplay, ValueSet theVs)
IWorkerContextvalidateCode in interface IWorkerContextpublic ValueSetExpander getExpander()
getExpander in interface ValueSetExpanderFactorypublic ValueSetExpander.ValueSetExpansionOutcome expand(ValueSet theSource) throws ValueSetExpander.ETooCostly, Exception
expand in interface ValueSetExpanderValueSetExpander.ETooCostlyExceptionpublic List<ConceptMap> findMapsForSource(String theUrl)
IWorkerContextfindMapsForSource in interface IWorkerContextpublic ValueSetExpander.ValueSetExpansionOutcome expandVS(ValueSet theSource, boolean theCacheOk)
IWorkerContextexpandVS in interface IWorkerContextpublic IWorkerContext.ValidationResult validateCode(Coding theCode, ValueSet theVs)
validateCode in interface IWorkerContextpublic IWorkerContext.ValidationResult validateCode(CodeableConcept theCode, ValueSet theVs)
validateCode in interface IWorkerContextCopyright © 2014–2015 University Health Network. All rights reserved.