public interface IContextValidationSupport<EVS_IN,EVS_OUT,SDT,CST,CDCT,IST>
Implementations are not required to implement all of the functions
in this interface; in fact it is expected that most won't. Any
methods which are not implemented may simply return null
and calling code is expected to be able to handle this.
| Modifier and Type | Interface and Description |
|---|---|
static class |
IContextValidationSupport.BaseConceptProperty |
static class |
IContextValidationSupport.CodeValidationResult<CDCT,IST> |
static class |
IContextValidationSupport.CodingConceptProperty |
static class |
IContextValidationSupport.ConceptDesignation |
static class |
IContextValidationSupport.LookupCodeResult |
static class |
IContextValidationSupport.StringConceptProperty |
| Modifier and Type | Method and Description |
|---|---|
EVS_OUT |
expandValueSet(FhirContext theContext,
EVS_IN theInclude)
Expands the given portion of a ValueSet
|
List<IBaseResource> |
fetchAllConformanceResources(FhirContext theContext)
Load and return all conformance resources associated with this
validation support module.
|
List<SDT> |
fetchAllStructureDefinitions(FhirContext theContext)
Load and return all possible structure definitions
|
CST |
fetchCodeSystem(FhirContext theContext,
String theSystem)
Fetch a code system by ID
|
<T extends IBaseResource> |
fetchResource(FhirContext theContext,
Class<T> theClass,
String theUri)
Loads a resource needed by the validation (a StructureDefinition, or a
ValueSet)
|
SDT |
fetchStructureDefinition(FhirContext theCtx,
String theUrl) |
boolean |
isCodeSystemSupported(FhirContext theContext,
String theSystem)
Returns
true if codes in the given code system can be expanded
or validated |
IContextValidationSupport.LookupCodeResult |
lookupCode(FhirContext theContext,
String theSystem,
String theCode)
Look up a code using the system and code value
|
IContextValidationSupport.CodeValidationResult<CDCT,IST> |
validateCode(FhirContext theContext,
String theCodeSystem,
String theCode,
String theDisplay)
Validates that the given code exists and if possible returns a display
name.
|
EVS_OUT expandValueSet(FhirContext theContext, EVS_IN theInclude)
theInclude - The portion to includeList<IBaseResource> fetchAllConformanceResources(FhirContext theContext)
List<SDT> fetchAllStructureDefinitions(FhirContext theContext)
CST fetchCodeSystem(FhirContext theContext, String theSystem)
theSystem - The code system<T extends IBaseResource> T fetchResource(FhirContext theContext, Class<T> theClass, String theUri)
theContext - The HAPI FHIR Context object current in use by the validatortheClass - The type of the resource to loadtheUri - The resource URInull if no resource with the
given URI can be foundSDT fetchStructureDefinition(FhirContext theCtx, String theUrl)
boolean isCodeSystemSupported(FhirContext theContext, String theSystem)
true if codes in the given code system can be expanded
or validatedtheSystem - The URI for the code system, e.g. "http://loinc.org"true if codes in the given code system can be
validatedIContextValidationSupport.CodeValidationResult<CDCT,IST> validateCode(FhirContext theContext, String theCodeSystem, String theCode, String theDisplay)
Observation.code in the default profile.theCodeSystem - The code system, e.g. "http://loinc.org"theCode - The code, e.g. "1234-5"theDisplay - The display name, if it should also be validatedIContextValidationSupport.LookupCodeResult lookupCode(FhirContext theContext, String theSystem, String theCode)
theContext - The FHIR contexttheSystem - The CodeSystem URLtheCode - The codeCopyright © 2014–2019 University Health Network. All rights reserved.