public class DefaultProfileValidationSupport extends Object implements IValidationSupport
IValidationSupport.CodeValidationResultca.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| Constructor and Description |
|---|
DefaultProfileValidationSupport() |
| Modifier and Type | Method and Description |
|---|---|
org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome |
expandValueSet(ca.uhn.fhir.context.FhirContext theContext,
org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent theInclude)
Expands the given portion of a ValueSet
|
List<org.hl7.fhir.instance.model.api.IBaseResource> |
fetchAllConformanceResources(ca.uhn.fhir.context.FhirContext theContext) |
List<org.hl7.fhir.r4.model.StructureDefinition> |
fetchAllStructureDefinitions(ca.uhn.fhir.context.FhirContext theContext)
Load and return all possible structure definitions
|
org.hl7.fhir.r4.model.CodeSystem |
fetchCodeSystem(ca.uhn.fhir.context.FhirContext theContext,
String theSystem)
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.r4.model.StructureDefinition |
fetchStructureDefinition(ca.uhn.fhir.context.FhirContext theContext,
String theUrl) |
org.hl7.fhir.r4.model.ValueSet |
fetchValueSet(ca.uhn.fhir.context.FhirContext theContext,
String uri)
Fetch a valueset by Uri
|
void |
flush() |
org.hl7.fhir.r4.model.StructureDefinition |
generateSnapshot(org.hl7.fhir.r4.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 |
ca.uhn.fhir.context.support.IContextValidationSupport.LookupCodeResult |
lookupCode(ca.uhn.fhir.context.FhirContext theContext,
String theSystem,
String theCode) |
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.
|
public DefaultProfileValidationSupport()
public org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome expandValueSet(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent theInclude)
IValidationSupportexpandValueSet in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>expandValueSet in interface IValidationSupporttheInclude - The portion to includepublic List<org.hl7.fhir.instance.model.api.IBaseResource> fetchAllConformanceResources(ca.uhn.fhir.context.FhirContext theContext)
fetchAllConformanceResources in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>public List<org.hl7.fhir.r4.model.StructureDefinition> fetchAllStructureDefinitions(ca.uhn.fhir.context.FhirContext theContext)
IValidationSupportfetchAllStructureDefinitions in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>fetchAllStructureDefinitions in interface IValidationSupportpublic org.hl7.fhir.r4.model.CodeSystem fetchCodeSystem(ca.uhn.fhir.context.FhirContext theContext, String theSystem)
IValidationSupportfetchCodeSystem in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>fetchCodeSystem in interface IValidationSupporttheSystem - Canonical Uri of the code systempublic <T extends org.hl7.fhir.instance.model.api.IBaseResource> T fetchResource(ca.uhn.fhir.context.FhirContext theContext, Class<T> theClass, String theUri)
IValidationSupportfetchResource in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>fetchResource in interface IValidationSupporttheContext - 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 foundpublic org.hl7.fhir.r4.model.StructureDefinition fetchStructureDefinition(ca.uhn.fhir.context.FhirContext theContext, String theUrl)
fetchStructureDefinition in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>fetchStructureDefinition in interface IValidationSupportpublic org.hl7.fhir.r4.model.ValueSet fetchValueSet(ca.uhn.fhir.context.FhirContext theContext, String uri)
IValidationSupportfetchValueSet in interface IValidationSupporturi - Canonical Uri of the ValueSetpublic void flush()
public boolean isCodeSystemSupported(ca.uhn.fhir.context.FhirContext theContext, String theSystem)
IValidationSupporttrue if codes in the given code system can be expanded
or validatedisCodeSystemSupported in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>isCodeSystemSupported in interface IValidationSupporttheSystem - The URI for the code system, e.g. "http://loinc.org"true if codes in the given code system can be
validatedpublic org.hl7.fhir.r4.model.StructureDefinition generateSnapshot(org.hl7.fhir.r4.model.StructureDefinition theInput, String theUrl, String theWebUrl, String theProfileName)
IValidationSupportgenerateSnapshot in interface IValidationSupportpublic IValidationSupport.CodeValidationResult validateCode(ca.uhn.fhir.context.FhirContext theContext, String theCodeSystem, String theCode, String theDisplay)
IValidationSupportObservation.code in the default profile.validateCode in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>validateCode in interface IValidationSupporttheCodeSystem - The code system, e.g. "http://loinc.org"theCode - The code, e.g. "1234-5"theDisplay - The display name, if it should also be validatedpublic ca.uhn.fhir.context.support.IContextValidationSupport.LookupCodeResult lookupCode(ca.uhn.fhir.context.FhirContext theContext, String theSystem, String theCode)
lookupCode in interface ca.uhn.fhir.context.support.IContextValidationSupport<org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent,org.hl7.fhir.r4.terminologies.ValueSetExpander.ValueSetExpansionOutcome,org.hl7.fhir.r4.model.StructureDefinition,org.hl7.fhir.r4.model.CodeSystem,org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>Copyright © 2014–2019 University Health Network. All rights reserved.