public class ProfileUtilities extends TranslatingUtilities
| Modifier and Type | Class and Description |
|---|---|
static class |
ProfileUtilities.ElementDefinitionComparer |
static class |
ProfileUtilities.ElementDefinitionHolder |
class |
ProfileUtilities.ExtensionContext |
static interface |
ProfileUtilities.ProfileKnowledgeProvider |
class |
ProfileUtilities.SpanEntry |
TranslatingUtilities.TranslationServices| 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) |
egt, gtpublic 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 boolean isIgmode()
public void setIgmode(boolean igmode)
public static List<ElementDefinition> getChildMap(StructureDefinition profile, ElementDefinition element) throws org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.DefinitionExceptionpublic static List<ElementDefinition> getSliceList(StructureDefinition profile, ElementDefinition element) throws org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.DefinitionExceptionpublic static List<ElementDefinition> getChildList(StructureDefinition profile, String path, String id)
structure - The structure to navigate intopath - The path of the element within the structure to get the children forpublic static List<ElementDefinition> getChildList(StructureDefinition structure, ElementDefinition element)
public void updateMaps(StructureDefinition base, StructureDefinition derived) throws org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.DefinitionExceptionpublic void generateSnapshot(StructureDefinition base, StructureDefinition derived, String url, String profileName) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException
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 baseorg.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.exceptions.DefinitionExceptionExceptionpublic static String typeCode(List<ElementDefinition.TypeRefComponent> types)
public void closeDifferential(StructureDefinition base, StructureDefinition derived) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionpublic static String describeExtensionContext(StructureDefinition ext)
public String describeSlice(ElementDefinition.ElementDefinitionSlicingComponent slicing)
public boolean isPrimitive(String value)
public StructureDefinition getProfile(StructureDefinition source, String url)
public void sortDifferential(StructureDefinition base, StructureDefinition diff, String name, List<String> errors) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionpublic void generateSchematrons(OutputStream dest, StructureDefinition structure) throws IOException, org.hl7.fhir.exceptions.DefinitionException
IOExceptionorg.hl7.fhir.exceptions.DefinitionExceptionpublic void setIds(StructureDefinition sd, boolean checkFirst) throws org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.DefinitionExceptionpublic List<Element> generateExamples(StructureDefinition sd, boolean evenWhenNoExamples) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionpublic void populateLogicalSnapshot(StructureDefinition sd) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionpublic void cleanUpDifferential(StructureDefinition sd)
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateSpanningTable(StructureDefinition profile, String imageFolder, boolean onlyConstraints, String constraintPrefix, Set<String> outputTracker) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModel initSpanningTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String prefix, boolean isLogical)
public static ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent interpretR2Discriminator(String discriminator, boolean isExists)
public static String buildR2Discriminator(ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent t) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionCopyright © 2014–2018 University Health Network. All rights reserved.