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.StringConceptProperty| Constructor and Description |
|---|
DefaultProfileValidationSupport() |
| Modifier and Type | Method and Description |
|---|---|
ValueSetExpander.ValueSetExpansionOutcome |
expandValueSet(ca.uhn.fhir.context.FhirContext theContext,
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<StructureDefinition> |
fetchAllStructureDefinitions(ca.uhn.fhir.context.FhirContext theContext)
Load and return all possible structure definitions
|
CodeSystem |
fetchCodeSystem(ca.uhn.fhir.context.FhirContext theContext,
String theSystem)
Fetch a code system by ID
|
<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)
|
StructureDefinition |
fetchStructureDefinition(ca.uhn.fhir.context.FhirContext theContext,
String theUrl) |
void |
flush() |
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.
|
public DefaultProfileValidationSupport()
public ValueSetExpander.ValueSetExpansionOutcome expandValueSet(ca.uhn.fhir.context.FhirContext theContext, ValueSet.ConceptSetComponent theInclude)
IValidationSupportexpandValueSet in interface ca.uhn.fhir.context.support.IContextValidationSupport<ValueSet.ConceptSetComponent,ValueSetExpander.ValueSetExpansionOutcome,StructureDefinition,CodeSystem,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<ValueSet.ConceptSetComponent,ValueSetExpander.ValueSetExpansionOutcome,StructureDefinition,CodeSystem,CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>public List<StructureDefinition> fetchAllStructureDefinitions(ca.uhn.fhir.context.FhirContext theContext)
IValidationSupportfetchAllStructureDefinitions in interface ca.uhn.fhir.context.support.IContextValidationSupport<ValueSet.ConceptSetComponent,ValueSetExpander.ValueSetExpansionOutcome,StructureDefinition,CodeSystem,CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>fetchAllStructureDefinitions in interface IValidationSupportpublic CodeSystem fetchCodeSystem(ca.uhn.fhir.context.FhirContext theContext, String theSystem)
IValidationSupportfetchCodeSystem in interface ca.uhn.fhir.context.support.IContextValidationSupport<ValueSet.ConceptSetComponent,ValueSetExpander.ValueSetExpansionOutcome,StructureDefinition,CodeSystem,CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>fetchCodeSystem in interface IValidationSupporttheSystem - 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<ValueSet.ConceptSetComponent,ValueSetExpander.ValueSetExpansionOutcome,StructureDefinition,CodeSystem,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 StructureDefinition fetchStructureDefinition(ca.uhn.fhir.context.FhirContext theContext, String theUrl)
fetchStructureDefinition in interface ca.uhn.fhir.context.support.IContextValidationSupport<ValueSet.ConceptSetComponent,ValueSetExpander.ValueSetExpansionOutcome,StructureDefinition,CodeSystem,CodeSystem.ConceptDefinitionComponent,org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity>fetchStructureDefinition in interface IValidationSupportpublic 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<ValueSet.ConceptSetComponent,ValueSetExpander.ValueSetExpansionOutcome,StructureDefinition,CodeSystem,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 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<ValueSet.ConceptSetComponent,ValueSetExpander.ValueSetExpansionOutcome,StructureDefinition,CodeSystem,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 validatedCopyright © 2014–2018 University Health Network. All rights reserved.