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<ValidationMessage> messages,
ProfileUtilities.ProfileKnowledgeProvider pkp) |
egt, gtgetTranslator, hasTranslator, setTranslator, toStr, toStr, translate, translatepublic 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<ValidationMessage> messages, ProfileUtilities.ProfileKnowledgeProvider pkp)
public boolean isIgmode()
public void setIgmode(boolean igmode)
public static List<ElementDefinition> getChildMap(StructureDefinition profile, ElementDefinition element) throws DefinitionException
DefinitionExceptionpublic static List<ElementDefinition> getSliceList(StructureDefinition profile, ElementDefinition element) throws DefinitionException
DefinitionExceptionpublic 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> getChildList(StructureDefinition structure, ElementDefinition element)
public void updateMaps(StructureDefinition base, StructureDefinition derived) throws DefinitionException
DefinitionExceptionpublic void generateSnapshot(StructureDefinition base, StructureDefinition derived, String url, String profileName) throws DefinitionException, 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 baseFHIRExceptionDefinitionExceptionExceptionpublic static String typeCode(List<ElementDefinition.TypeRefComponent> types)
public void closeDifferential(StructureDefinition base, StructureDefinition derived) throws FHIRException
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 FHIRException
FHIRExceptionpublic void generateSchematrons(OutputStream dest, StructureDefinition structure) throws IOException, DefinitionException
IOExceptionDefinitionExceptionpublic void setIds(StructureDefinition sd, boolean checkFirst) throws DefinitionException
DefinitionExceptionpublic List<Element> generateExamples(StructureDefinition sd, boolean evenWhenNoExamples) throws FHIRException
FHIRExceptionpublic void populateLogicalSnapshot(StructureDefinition sd) throws FHIRException
FHIRExceptionpublic void cleanUpDifferential(StructureDefinition sd)
public HierarchicalTableGenerator.TableModel initSpanningTable(HierarchicalTableGenerator gen, String prefix, boolean isLogical)
public static ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent interpretR2Discriminator(String discriminator)
public static String buildR2Discriminator(ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent t) throws FHIRException
FHIRExceptionCopyright © 2014–2017 University Health Network. All rights reserved.