Stream: implementers
Topic: StructureMaps: attribs, namespaces?
Marc de Graauw (Nov 21 2016 at 16:44):
After taking a good look a StructureMaps (tutorial and CDA examples), some questions remain. How do StructureMaps handle the difference between child attributes and elements (i.e. @code vs code) or namespaced children (i.e. hl7:code vs lab:code). Is this delegated to the "type related features"? Or is this information part of the source and target trees? Since CDA is in scope as source or target, such handling seems essential.
Oliver Egger (Nov 21 2016 at 18:32):
I'm currently also looking into StructureMaps/CDA examples/Mapping Tutorial. As far as I observed the namespace and mappings to attriutes/types are defined in the StructureDefinition. eg in fhir/build/guides/ccda2/mapping/logical/structuredefinition-ClinicalDocument.xml the namespace is defined with the extension:
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
<valueUri value="urn:hl7-org:v3"/>
</extension>
If an element contains text the representation can be set to xmlText instead of xmlAttr (http://build.fhir.org/elementdefinition.html#ElementDefinition). See fhir/build/guides/ccda2/mapping/logical/structuredefinition-ST.xml as an example.
Grahame Grieve (Nov 21 2016 at 19:55):
y. type handles thid
Marc de Graauw (Nov 21 2016 at 20:53):
Thanks, seems to be what I'm looking for.
Last updated: Apr 12 2022 at 19:14 UTC