public interface IValidationSupport extends ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r5.model.StructureDefinition,org.hl7.fhir.r5.model.CodeSystem,org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>
Modifier and Type | Interface and Description |
---|---|
static class |
IValidationSupport.CodeValidationResult |
ca.uhn.fhir.context.support.IContextValidationSupport.BaseConceptProperty, ca.uhn.fhir.context.support.IContextValidationSupport.CodingConceptProperty, ca.uhn.fhir.context.support.IContextValidationSupport.ConceptDesignation, ca.uhn.fhir.context.support.IContextValidationSupport.LookupCodeResult, ca.uhn.fhir.context.support.IContextValidationSupport.StringConceptProperty
Modifier and Type | Method and Description |
---|---|
org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome |
expandValueSet(ca.uhn.fhir.context.FhirContext theContext,
org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent theInclude)
Expands the given portion of a ValueSet
|
List<org.hl7.fhir.r5.model.StructureDefinition> |
fetchAllStructureDefinitions(ca.uhn.fhir.context.FhirContext theContext)
Load and return all possible structure definitions
|
org.hl7.fhir.r5.model.CodeSystem |
fetchCodeSystem(ca.uhn.fhir.context.FhirContext theContext,
String uri)
Fetch a code system by Uri
|
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
fetchResource(ca.uhn.fhir.context.FhirContext theContext,
Class<T> theClass,
String theUri)
Loads a resource needed by the validation (a StructureDefinition, or a
ValueSet)
|
org.hl7.fhir.r5.model.StructureDefinition |
fetchStructureDefinition(ca.uhn.fhir.context.FhirContext theCtx,
String theUrl) |
org.hl7.fhir.r5.model.ValueSet |
fetchValueSet(ca.uhn.fhir.context.FhirContext theContext,
String uri)
Fetch a valueset by Uri
|
org.hl7.fhir.r5.model.StructureDefinition |
generateSnapshot(org.hl7.fhir.r5.model.StructureDefinition theInput,
String theUrl,
String theWebUrl,
String theProfileName)
Generate a snapshot from the given differential profile.
|
boolean |
isCodeSystemSupported(ca.uhn.fhir.context.FhirContext theContext,
String theSystem)
Returns
true if codes in the given code system can be expanded
or validated |
IValidationSupport.CodeValidationResult |
validateCode(ca.uhn.fhir.context.FhirContext theContext,
String theCodeSystem,
String theCode,
String theDisplay)
Validates that the given code exists and if possible returns a display
name.
|
org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandValueSet(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent theInclude)
expandValueSet
in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r5.model.StructureDefinition,org.hl7.fhir.r5.model.CodeSystem,org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>
theInclude
- The portion to includeList<org.hl7.fhir.r5.model.StructureDefinition> fetchAllStructureDefinitions(ca.uhn.fhir.context.FhirContext theContext)
fetchAllStructureDefinitions
in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r5.model.StructureDefinition,org.hl7.fhir.r5.model.CodeSystem,org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>
org.hl7.fhir.r5.model.CodeSystem fetchCodeSystem(ca.uhn.fhir.context.FhirContext theContext, String uri)
fetchCodeSystem
in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r5.model.StructureDefinition,org.hl7.fhir.r5.model.CodeSystem,org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>
uri
- Canonical Uri of the code systemorg.hl7.fhir.r5.model.ValueSet fetchValueSet(ca.uhn.fhir.context.FhirContext theContext, String uri)
uri
- Canonical Uri of the ValueSet<T extends org.hl7.fhir.instance.model.api.IBaseResource> T fetchResource(ca.uhn.fhir.context.FhirContext theContext, Class<T> theClass, String theUri)
fetchResource
in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r5.model.StructureDefinition,org.hl7.fhir.r5.model.CodeSystem,org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>
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 foundorg.hl7.fhir.r5.model.StructureDefinition fetchStructureDefinition(ca.uhn.fhir.context.FhirContext theCtx, String theUrl)
fetchStructureDefinition
in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r5.model.StructureDefinition,org.hl7.fhir.r5.model.CodeSystem,org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>
boolean isCodeSystemSupported(ca.uhn.fhir.context.FhirContext theContext, String theSystem)
true
if codes in the given code system can be expanded
or validatedisCodeSystemSupported
in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r5.model.StructureDefinition,org.hl7.fhir.r5.model.CodeSystem,org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>
theSystem
- The URI for the code system, e.g. "http://loinc.org"
true
if codes in the given code system can be
validatedorg.hl7.fhir.r5.model.StructureDefinition generateSnapshot(org.hl7.fhir.r5.model.StructureDefinition theInput, String theUrl, String theWebUrl, String theProfileName)
theInput
- theUrl
- theWebUrl
- theProfileName
- IValidationSupport.CodeValidationResult validateCode(ca.uhn.fhir.context.FhirContext theContext, String theCodeSystem, String theCode, String theDisplay)
Observation.code
in the default profile.validateCode
in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r5.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r5.model.StructureDefinition,org.hl7.fhir.r5.model.CodeSystem,org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>
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 validatedCopyright © 2014–2019 University Health Network. All rights reserved.