public class ProfileUtilities extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProfileUtilities.ElementDefinitionComparer |
static class |
ProfileUtilities.ElementDefinitionHolder |
class |
ProfileUtilities.ExtensionContext |
static interface |
ProfileUtilities.ProfileKnowledgeProvider |
| Modifier and Type | Field and Description |
|---|---|
static String |
DERIVATION_POINTER |
static String |
IS_DERIVED |
static int |
STATUS_ERROR |
static int |
STATUS_FATAL |
static int |
STATUS_HINT |
static int |
STATUS_OK |
static int |
STATUS_WARNING |
static String |
UD_ERROR_STATUS |
| Constructor and Description |
|---|
ProfileUtilities(IWorkerContext context,
List<org.hl7.fhir.utilities.validation.ValidationMessage> messages,
ProfileUtilities.ProfileKnowledgeProvider pkp) |
public static final int STATUS_OK
public static final int STATUS_HINT
public static final int STATUS_WARNING
public static final int STATUS_ERROR
public static final int STATUS_FATAL
public static final String DERIVATION_POINTER
public static final String IS_DERIVED
public static final String UD_ERROR_STATUS
public ProfileUtilities(IWorkerContext context, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, ProfileUtilities.ProfileKnowledgeProvider pkp)
public String describeSlice(ElementDefinition.ElementDefinitionSlicingComponent slicing)
public void generateSchematrons(OutputStream dest, StructureDefinition structure) throws IOException, org.hl7.fhir.exceptions.DefinitionException
IOExceptionorg.hl7.fhir.exceptions.DefinitionExceptionpublic void generateSnapshot(StructureDefinition base, StructureDefinition derived, String url, String profileName) throws Exception
base - - the base structure on which the differential will be applieddifferential - - the differential to apply to the baseurl - - where the base has relative urls for profile references, these need to be converted to absolutes by prepending this URLtrimDifferential - - if this is true, then the snap short generator will remove any material in the element definitions that is not different to the baseExceptionpublic StructureDefinition getProfile(StructureDefinition source, String url)
public void sortDifferential(StructureDefinition base, StructureDefinition diff, String name, List<String> errors)
public static String describeExtensionContext(StructureDefinition ext)
public static List<ElementDefinition> getChildList(StructureDefinition structure, ElementDefinition element)
public static List<ElementDefinition> getChildList(StructureDefinition profile, String path)
structure - The structure to navigate intopath - The path of the element within the structure to get the children forpublic static List<ElementDefinition> getChildMap(StructureDefinition profile, ElementDefinition element) throws org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.DefinitionExceptionpublic static List<ElementDefinition> getChildMap(StructureDefinition profile, String name, String path, String nameReference) throws org.hl7.fhir.exceptions.DefinitionException
structure - The structure to navigate intopath - The path of the element within the structure to get the children fororg.hl7.fhir.exceptions.DefinitionExceptionExceptionpublic static boolean isPrimitive(String value)
public static String typeCode(List<ElementDefinition.TypeRefComponent> types)
Copyright © 2014–2018 University Health Network. All rights reserved.