Starter FHIR Implementation Guide
1.0.1 - draft
Starter FHIR Implementation Guide, published by Jembi Health Systems. This guide is not an authorized publication; it is the continuous build for version 1.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jembi/Starter-FHIR-IG/ and changes regularly. See the Directory of published versions
Draft as of 2024-11-17 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="ObservationToProprietaryBreastfeedingStatus"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap ObservationToProprietaryBreastfeedingStatus</b></p><a name="ObservationToProprietaryBreastfeedingStatus"> </a><a name="hcObservationToProprietaryBreastfeedingStatus"> </a><a name="ObservationToProprietaryBreastfeedingStatus-en-US"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>http://jembi.org/fhir/StructureMap/ObservationToProprietaryBreastfeedingStatus<span style="color: navy">" = "</span>ObservationToProprietaryBreastfeedingStatus<span style="color: navy">"
</span><b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-breastfeeding-status-observation.html" title="Observation - Breastfeeding Status">http://jembi.org/fhir/StructureDefinition/breastfeeding-status-observation</a><span style="color: navy">" </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-BreastfeedingStatusProprietaryLogicalModel.html" title="Breastfeeding Status Proprietary Logical Model">http://jembi.org/fhir/StructureDefinition/BreastfeedingStatusProprietaryLogicalModel</a><span style="color: navy">" </span><b>as </b><b>target</b>
<b>group </b>ObservationToProprietaryBreastfeedingStatus<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Observation, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>BreastfeedingStatusProprietaryLogicalModel<span style="color: navy">)</span><span style="color: navy"> {
</span> src.status<b> as </b><span style="color: maroon">status</span><span style="color: navy"><b> -> </b></span>tgt.observationStatus = <span style="color: maroon">status</span> <i>"SetObservationStatus"</i><span style="color: navy">;</span>
src.code<b> as </b><span style="color: maroon">codeableConcept</span><b> then</b><span style="color: navy"> {
</span> codeableConcept.coding<b> as </b><span style="color: maroon">coding</span><b> then</b><span style="color: navy"> {
</span> coding.code<b> as </b><span style="color: maroon">code</span><span style="color: navy"><b> -> </b></span>tgt.code = <span style="color: maroon">code</span> <i>"SetObservationCode"</i><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
src.effective<b> as </b><span style="color: maroon">authored</span><span style="color: navy"><b> -> </b></span>tgt.date = <span style="color: maroon">authored</span> <i>"SetObservationEffectiveDateTime"</i><span style="color: navy">;</span>
src.subject<b> as </b><span style="color: maroon">subject</span><b> then</b><span style="color: navy"> {
</span> subject.extension<b> as </b><span style="color: maroon">extension</span><b> where </b>(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')<b> then</b><span style="color: navy"> {
</span> extension.value<span style="color: navy"> : </span>string<b> as </b><span style="color: maroon">val</span><b> then</b><span style="color: navy"> {
</span> val<span style="color: navy"><b> -> </b></span>tgt.patient = <span style="color: maroon">val</span> <i>"SetObservationSubjectReference"</i><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
src.performer<b> as </b><span style="color: maroon">performer</span><b> then</b><span style="color: navy"> {
</span> performer.extension<b> as </b><span style="color: maroon">extension</span><b> where </b>(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')<b> then</b><span style="color: navy"> {
</span> extension.value<span style="color: navy"> : </span>string<b> as </b><span style="color: maroon">val</span><b> then</b><span style="color: navy"> {
</span> val<span style="color: navy"><b> -> </b></span>tgt.performer = <span style="color: maroon">val</span> <i>"SetObservationPerformerReference"</i><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
src.encounter<b> as </b><span style="color: maroon">encounter</span><b> then</b><span style="color: navy"> {
</span> encounter.extension<b> as </b><span style="color: maroon">extension</span><b> where </b>(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')<b> then</b><span style="color: navy"> {
</span> extension.value<span style="color: navy"> : </span>string<b> as </b><span style="color: maroon">val</span><b> then</b><span style="color: navy"> {
</span> val<span style="color: navy"><b> -> </b></span>tgt.encounter = <span style="color: maroon">val</span> <i>"SetObservationEncounterReference"</i><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>CodeableConcept<b> as </b><span style="color: maroon">codeableConcept</span><b> then</b><span style="color: navy"> {
</span> codeableConcept.coding<b> as </b><span style="color: maroon">coding</span><b> then</b><span style="color: navy"> {
</span> coding.code<b> as </b><span style="color: maroon">code</span><span style="color: navy"><b> -> </b></span>tgt.breastFeedingStatus = <span style="color: maroon">code</span> <i>"SetObservationValueCodingCode"</i><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url
value="http://jembi.org/fhir/StructureMap/ObservationToProprietaryBreastfeedingStatus"/>
<version value="1.0.1"/>
<name value="ObservationToProprietaryBreastfeedingStatus"/>
<status value="draft"/>
<date value="2024-11-17T13:26:33+00:00"/>
<publisher value="Jembi Health Systems"/>
<contact>
<name value="Jembi Health Systems"/>
<telecom>
<system value="url"/>
<value value="https://www.jembi.org/"/>
</telecom>
<telecom>
<system value="email"/>
<value value="info@jembi.org"/>
</telecom>
</contact>
<contact>
<name value="Richard Langford"/>
<telecom>
<system value="email"/>
<value value="richard.langford@jembi.org"/>
<use value="work"/>
</telecom>
</contact>
<jurisdiction>
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<code value="001"/>
<display value="World"/>
</coding>
</jurisdiction>
<structure>
<url
value="http://jembi.org/fhir/StructureDefinition/breastfeeding-status-observation"/>
<mode value="source"/>
</structure>
<structure>
<url
value="http://jembi.org/fhir/StructureDefinition/BreastfeedingStatusProprietaryLogicalModel"/>
<mode value="target"/>
</structure>
<group>
<name value="ObservationToProprietaryBreastfeedingStatus"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<type value="Observation"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="BreastfeedingStatusProprietaryLogicalModel"/>
<mode value="target"/>
</input>
<rule>
<name value="SetObservationStatus"/>
<source>
<context value="src"/>
<element value="status"/>
<variable value="status"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="observationStatus"/>
<transform value="copy"/>
<parameter>
<valueId value="status"/>
</parameter>
</target>
</rule>
<rule>
<name value="code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="codeableConcept"/>
</source>
<rule>
<name value="coding"/>
<source>
<context value="codeableConcept"/>
<element value="coding"/>
<variable value="coding"/>
</source>
<rule>
<name value="SetObservationCode"/>
<source>
<context value="coding"/>
<element value="code"/>
<variable value="code"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="code"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="SetObservationEffectiveDateTime"/>
<source>
<context value="src"/>
<element value="effective"/>
<variable value="authored"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="date"/>
<transform value="copy"/>
<parameter>
<valueId value="authored"/>
</parameter>
</target>
</rule>
<rule>
<name value="subject"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<rule>
<name value="extension"/>
<source>
<context value="subject"/>
<element value="extension"/>
<variable value="extension"/>
<condition
value="(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')"/>
</source>
<rule>
<name value="valueString"/>
<source>
<context value="extension"/>
<type value="string"/>
<element value="value"/>
<variable value="val"/>
</source>
<rule>
<name value="SetObservationSubjectReference"/>
<source>
<context value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="patient"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="performer"/>
<source>
<context value="src"/>
<element value="performer"/>
<variable value="performer"/>
</source>
<rule>
<name value="extension"/>
<source>
<context value="performer"/>
<element value="extension"/>
<variable value="extension"/>
<condition
value="(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')"/>
</source>
<rule>
<name value="valueString"/>
<source>
<context value="extension"/>
<type value="string"/>
<element value="value"/>
<variable value="val"/>
</source>
<rule>
<name value="SetObservationPerformerReference"/>
<source>
<context value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="performer"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="encounter"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="encounter"/>
</source>
<rule>
<name value="extension"/>
<source>
<context value="encounter"/>
<element value="extension"/>
<variable value="extension"/>
<condition
value="(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')"/>
</source>
<rule>
<name value="valueString"/>
<source>
<context value="extension"/>
<type value="string"/>
<element value="value"/>
<variable value="val"/>
</source>
<rule>
<name value="SetObservationEncounterReference"/>
<source>
<context value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="encounter"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="valueCodeableConcept"/>
<source>
<context value="src"/>
<type value="CodeableConcept"/>
<element value="value"/>
<variable value="codeableConcept"/>
</source>
<rule>
<name value="coding"/>
<source>
<context value="codeableConcept"/>
<element value="coding"/>
<variable value="coding"/>
</source>
<rule>
<name value="SetObservationValueCodingCode"/>
<source>
<context value="coding"/>
<element value="code"/>
<variable value="code"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="breastFeedingStatus"/>
<transform value="copy"/>
<parameter>
<valueId value="code"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</group>
</StructureMap>