public abstract class StructureDefinitions extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ca.uhn.fhir.context.FhirContext |
context |
protected static Set<String> |
PRIMITIVE_TYPES |
protected ca.uhn.fhir.context.support.IContextValidationSupport |
validationSupport |
| Constructor and Description |
|---|
StructureDefinitions(ca.uhn.fhir.context.FhirContext context)
Creates a new instance with the given context.
|
| Modifier and Type | Method and Description |
|---|---|
abstract FhirConversionSupport |
conversionSupport()
Returns supporting functions to make FHIR conversion work independent of version.
|
static StructureDefinitions |
create(ca.uhn.fhir.context.FhirContext context)
Create a new instance of this class for the given version of FHIR.
|
abstract <T> T |
transform(DefinitionVisitor<T> visitor,
String resourceTypeUrl)
Transforms a FHIR resource to a type defined by the visitor.
|
abstract <T> T |
transform(DefinitionVisitor<T> visitor,
String resourceTypeUrl,
List<String> containedResourceTypeUrls)
Transforms a FHIR resource to a type defined by the visitor.
|
protected final ca.uhn.fhir.context.FhirContext context
protected final ca.uhn.fhir.context.support.IContextValidationSupport validationSupport
public StructureDefinitions(ca.uhn.fhir.context.FhirContext context)
context - the FHIR context.public abstract <T> T transform(DefinitionVisitor<T> visitor, String resourceTypeUrl)
T - the return type of the visitor.visitor - a visitor class to recursively transform the structure.resourceTypeUrl - the URL defining the resource type or profile.public abstract <T> T transform(DefinitionVisitor<T> visitor, String resourceTypeUrl, List<String> containedResourceTypeUrls)
T - the return type of the visitor.visitor - a visitor class to recursively transform the structure.resourceTypeUrl - the URL defining the resource type or profile.containedResourceTypeUrls - the URLs defining the resource types or profiles to be
contained to the given resource.public abstract FhirConversionSupport conversionSupport()
public static StructureDefinitions create(ca.uhn.fhir.context.FhirContext context)
context - The FHIR contextCopyright © 2020. All rights reserved.