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.SliceList |
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) |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildR2Discriminator(ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent t) |
void |
cleanUpDifferential(StructureDefinition sd) |
void |
closeDifferential(StructureDefinition base,
StructureDefinition derived) |
static String |
describeExtensionContext(StructureDefinition ext) |
String |
describeSlice(ElementDefinition.ElementDefinitionSlicingComponent slicing) |
List<Element> |
generateExamples(StructureDefinition sd,
boolean evenWhenNoExamples) |
org.hl7.fhir.utilities.xhtml.XhtmlNode |
generateExtensionTable(String defFile,
StructureDefinition ed,
String imageFolder,
boolean inlineGraphics,
boolean full,
String corePath,
String imagePath,
Set<String> outputTracker) |
org.hl7.fhir.utilities.xhtml.XhtmlNode |
generateGrid(String defFile,
StructureDefinition profile,
String imageFolder,
boolean inlineGraphics,
String profileBaseFileName,
String corePath,
String imagePath,
Set<String> outputTracker) |
void |
generateSnapshot(StructureDefinition base,
StructureDefinition derived,
String url,
String profileName)
Given a base (snapshot) profile structure, and a differential profile, generate a new snapshot profile
|
org.hl7.fhir.utilities.xhtml.XhtmlNode |
generateSpanningTable(StructureDefinition profile,
String imageFolder,
boolean onlyConstraints,
String constraintPrefix,
Set<String> outputTracker) |
org.hl7.fhir.utilities.xhtml.XhtmlNode |
generateTable(String defFile,
StructureDefinition profile,
boolean diff,
String imageFolder,
boolean inlineGraphics,
String profileBaseFileName,
boolean snapshot,
String corePath,
String imagePath,
boolean logicalModel,
boolean allInvariants,
Set<String> outputTracker) |
static List<ElementDefinition> |
getChildList(StructureDefinition structure,
ElementDefinition element) |
static List<ElementDefinition> |
getChildList(StructureDefinition profile,
String path,
String id)
Given a Structure, navigate to the element given by the path and return the direct children of that element
|
static List<ElementDefinition> |
getChildMap(StructureDefinition profile,
ElementDefinition element) |
StructureDefinition |
getProfile(StructureDefinition source,
String url) |
static List<ElementDefinition> |
getSliceList(StructureDefinition profile,
ElementDefinition element) |
org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModel |
initSpanningTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen,
String prefix,
boolean isLogical) |
static ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent |
interpretR2Discriminator(String discriminator,
boolean isExists) |
boolean |
isIgmode() |
boolean |
isPrimitive(String value) |
boolean |
isThrowException() |
static StructureDefinition |
makeExtensionForVersionedURL(IWorkerContext context,
String url) |
void |
populateLogicalSnapshot(StructureDefinition sd) |
static String |
sdNs(String type,
String overrideVersionNs) |
void |
setIds(StructureDefinition sd,
boolean checkFirst) |
void |
setIgmode(boolean igmode) |
void |
setThrowException(boolean exception) |
void |
sortDifferential(StructureDefinition base,
StructureDefinition diff,
String name,
List<String> errors) |
static String |
typeCode(List<ElementDefinition.TypeRefComponent> types) |
void |
updateMaps(StructureDefinition base,
StructureDefinition derived) |
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 org.hl7.fhir.utilities.xhtml.XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static String describeExtensionContext(StructureDefinition ext)
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateTable(String defFile, StructureDefinition profile, boolean diff, String imageFolder, boolean inlineGraphics, String profileBaseFileName, boolean snapshot, String corePath, String imagePath, boolean logicalModel, boolean allInvariants, Set<String> outputTracker) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic org.hl7.fhir.utilities.xhtml.XhtmlNode generateGrid(String defFile, StructureDefinition profile, String imageFolder, boolean inlineGraphics, String profileBaseFileName, String corePath, String imagePath, Set<String> outputTracker) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic 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 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.FHIRExceptionpublic static StructureDefinition makeExtensionForVersionedURL(IWorkerContext context, String url)
public boolean isThrowException()
public void setThrowException(boolean exception)
Copyright © 2014–2018 University Health Network. All rights reserved.