public class ProfileUtilities extends TranslatingUtilities
| Modifier and Type | Class and Description |
|---|---|
static class |
ProfileUtilities.ElementDefinitionComparer |
static class |
ProfileUtilities.ElementDefinitionHolder |
class |
ProfileUtilities.ElementRedirection |
class |
ProfileUtilities.ExtensionContext |
static interface |
ProfileUtilities.ProfileKnowledgeProvider |
class |
ProfileUtilities.SliceList |
class |
ProfileUtilities.SpanEntry |
class |
ProfileUtilities.TypeSlice |
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) |
void |
generateCsvs(OutputStream dest,
StructureDefinition structure,
boolean asXml) |
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 |
generateSchematrons(OutputStream dest,
StructureDefinition structure) |
void |
generateSnapshot(StructureDefinition base,
StructureDefinition derived,
String url,
String webUrl,
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) |
void |
generateXlsx(OutputStream dest,
StructureDefinition structure,
boolean asXml,
boolean hideMustSupportFalse) |
void |
genTargetLink(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen,
String profileBaseFileName,
String corePath,
org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell c,
ElementDefinition.TypeRefComponent t,
String u) |
static List<ElementDefinition> |
getChildList(StructureDefinition structure,
ElementDefinition element) |
static List<ElementDefinition> |
getChildList(StructureDefinition structure,
ElementDefinition element,
boolean diff) |
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> |
getChildList(StructureDefinition profile,
String path,
String id,
boolean diff) |
static List<ElementDefinition> |
getChildMap(StructureDefinition profile,
ElementDefinition element) |
ProfileUtilities.ElementDefinitionComparer |
getComparer(ProfileUtilities.ElementDefinitionComparer cmp,
ProfileUtilities.ElementDefinitionHolder child) |
StructureDefinition |
getProfile(StructureDefinition source,
String url) |
static List<ElementDefinition> |
getSliceList(StructureDefinition profile,
ElementDefinition element) |
org.hl7.fhir.utilities.TerminologyServiceOptions |
getTerminologyServiceOptions() |
org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModel |
initSpanningTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen,
String prefix,
boolean isLogical,
String id) |
static ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent |
interpretR2Discriminator(String discriminator,
boolean isExists) |
boolean |
isDebug() |
boolean |
isIgmode() |
boolean |
isNewSlicingProcessing() |
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 |
setDebug(boolean debug) |
void |
setIds(StructureDefinition sd,
boolean checkFirst) |
void |
setIgmode(boolean igmode) |
void |
setNewSlicingProcessing(boolean newSlicingProcessing) |
void |
setTerminologyServiceOptions(org.hl7.fhir.utilities.TerminologyServiceOptions terminologyServiceOptions) |
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 profile, String path, String id, boolean diff)
public static List<ElementDefinition> getChildList(StructureDefinition structure, ElementDefinition element, boolean diff)
public 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 webUrl, 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 URL (e.g. the canonical URL)webUrl - - where the base has relative urls in markdown, these need to be converted to absolutes by prepending this URL (this is not the same as the canonical URL)trimDifferential - - 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 void genTargetLink(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String profileBaseFileName, String corePath, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell c, ElementDefinition.TypeRefComponent t, String u)
public 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 ProfileUtilities.ElementDefinitionComparer getComparer(ProfileUtilities.ElementDefinitionComparer cmp, ProfileUtilities.ElementDefinitionHolder child) throws org.hl7.fhir.exceptions.FHIRException, Error
org.hl7.fhir.exceptions.FHIRExceptionErrorpublic void generateSchematrons(OutputStream dest, StructureDefinition structure) throws IOException, org.hl7.fhir.exceptions.DefinitionException
IOExceptionorg.hl7.fhir.exceptions.DefinitionExceptionpublic void generateCsvs(OutputStream dest, StructureDefinition structure, boolean asXml) throws IOException, org.hl7.fhir.exceptions.DefinitionException, Exception
IOExceptionorg.hl7.fhir.exceptions.DefinitionExceptionExceptionpublic void generateXlsx(OutputStream dest, StructureDefinition structure, boolean asXml, boolean hideMustSupportFalse) throws IOException, org.hl7.fhir.exceptions.DefinitionException, Exception
IOExceptionorg.hl7.fhir.exceptions.DefinitionExceptionExceptionpublic 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, String id)
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)
public org.hl7.fhir.utilities.TerminologyServiceOptions getTerminologyServiceOptions()
public void setTerminologyServiceOptions(org.hl7.fhir.utilities.TerminologyServiceOptions terminologyServiceOptions)
public boolean isNewSlicingProcessing()
public void setNewSlicingProcessing(boolean newSlicingProcessing)
public boolean isDebug()
public void setDebug(boolean debug)
Copyright © 2014–2021 Health Level 7. All rights reserved.