Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Mirth transformer for hl7 v3

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mirth transformer for hl7 v3

    I am using DatabaseReader for reading values and transforning to HL7 v3 messages. From the parsed tree i am mapping the necessary fields. But in one of my fields, i am getting multiple values ( patient and his service orders ). How do i map this field? i am using message builder? Can i use any javascript for this?

  • #2
    Re:Mirth transformer for hl7 v3

    Post your channel.

    I assume you're dealing with a message that has multiple OBX segments. Search the forum for: multiple segments there should be a few examples.
    Jon Bartels

    Zen is hiring!!!!
    http://consultzen.com/careers/
    Talented healthcare IT professionals wanted. Engineers to sales to management.
    Good benefits, great working environment, genuinely interesting work.

    Comment


    • #3
      Re:Mirth transformer for hl7 v3

      thanks for your reply.

      This is my channel

      <com.webreach.mirth.model.Channel>
      <id>736e7d9c-1517-484d-a769-505bf519eae6</id>
      <name>MedicalSummary</name>
      <description>MedicalSummary CDA.</description>
      <enabled>true</enabled>
      <version>1.7.1.3422</version>
      <lastModified>
      <time>1213193247718</time>
      <timezone>Asia/Calcutta</timezone>
      </lastModified>
      <revision>73</revision>
      <sourceConnector>
      <name>sourceConnector</name>
      <properties>
      <property name="ackScript"></property>
      <property name="pollingType">interval</property>
      <property name="pollingFrequency">5000</property>
      <property name="username">root</property>
      <property name="DataType">Database Reader</property>
      <property name="useAck">1</property>
      <property name="useScript">0</property>
      <property name="URL">jdbc:mysql://atechdb1.dev.atech.net:3306/his_db</property>
      <property name="query">select l.his_order_id,l.id,pm.mrd_number,pm.firstname,pm. middlename,pm.lastname,sm.description,
      m.idf,m.number,m.form,m.creator,m.time,m.last_time ,m.last_filler,
      m.data_quality,m.change_group,m.execute_group,m.Da te,m.Unit,
      m.Bed_No,m.Age,m.Consultant,m.Doa,m.Dop,m.Dod,m.He ight,m.Weight,
      m.Bloodgroup,m.Discharging_Status,m.Icdprimary,m.I cdsecondary,
      m.Drugallergies,m.Diagnosis,m.History,m.Medonadm,m .Pasthistory,
      m.Personalhistory,m.Familyhistory,m.Clinicalexam,m .Labresults,
      m.Investigations,m.Course,m.Prognosis,m.Advice,m.D iet,
      m.Physical,m.Medication,m.Plan,m.Priority,m.Signed by,m.Dsprescription
      from ClinicalDocs.Medical_Dischargesummary_v0_values m
      ,his_db.lab_order l left join
      his_db.service_order so on (l.his_order_id = so.id)
      ,his_db.service_master sm
      ,his_db.patient_master pm
      ,ClinicalDocs.hl7_ob_trxns h
      where 1=1
      and m.idf = pm.id
      and l.patient_id = pm.id
      and so.service_id = sm.id
      and h.entity_id= m.idf
      and h.status=&apos;NEW&apos;
      ;</property>
      <property name="script"></property>
      <property name="password">saras123</property>
      <property name="host">query</property>
      <property name="driver">com.mysql.jdbc.Driver</property>
      <property name="ack">UPDATE ClinicalDocs.hl7_ob_trxns h ,
      ClinicalDocs.Medical_Dischargesummary_v0_values m
      SET h.status = &apos;PRO&apos;
      WHERE h.entity_id= m.idf
      AND h.status=&apos;NEW&apos;</property>
      </properties>
      <transformer>
      <steps>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>0</sequenceNumber>
      <script>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][0][&apos;section&apos;][&apos;text&apos;] = validate(msg[&apos;m.history&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.history&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][0][&apos;section&apos;][&apos;text&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>1</sequenceNumber>
      <script>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][2][&apos;section&apos;][&apos;text&apos;] = validate(msg[&apos;m.dsprescription&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.dsprescription&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][2][&apos;section&apos;][&apos;text&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>2</sequenceNumber>
      <script>tmp[&apos;recordTarget&apos;][&apos;patientRole&apos;][&apos;patient&apos;][&apos;name&apos;][&apos;given&apos;] = validate(msg[&apos;pm.full_name&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;pm.full_name&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;recordTarget&apos;][&apos;patientRole&apos;][&apos;patient&apos;][&apos;name&apos;][&apos;given&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>3</sequenceNumber>
      <script>tmp[&apos;recordTarget&apos;][&apos;patientRole&apos;][&apos;patient&apos;][&apos;birthTime&apos;][&apos;@value&apos;] = validate(msg[&apos;m.age&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.age&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;recordTarget&apos;][&apos;patientRole&apos;][&apos;patient&apos;][&apos;birthTime&apos;][&apos;@value&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>4</sequenceNumber>
      <script>tmp[&apos;title&apos;] = validate(msg[&apos;m.form&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.form&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;title&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>5</sequenceNumber>
      <script>tmp[&apos;effectiveTime&apos;][&apos;@value&apos;] = validate(msg[&apos;m.time&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.time&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;effectiveTime&apos;][&apos;@value&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>6</sequenceNumber>
      <script>tmp[&apos;author&apos;][&apos;assignedAuthor&apos;][&apos;assignedPerson&apos;][&apos;name&apos;][&apos;given&apos;] = validate(msg[&apos;m.consultant&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.consultant&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;author&apos;][&apos;assignedAuthor&apos;][&apos;assignedPerson&apos;][&apos;name&apos;][&apos;given&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>7</sequenceNumber>
      <script>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][3][&apos;section&apos;][&apos;text&apos;] = validate(msg[&apos;m.drugallergies&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.drugallergies&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][3][&apos;section&apos;][&apos;text&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>8</sequenceNumber>
      <script>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][9][&apos;section&apos;][&apos;text&apos;] = validate(msg[&apos;m.diagnosis&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.diagnosis&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][9][&apos;section&apos;][&apos;text&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>9</sequenceNumber>
      <script>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][8][&apos;section&apos;][&apos;text&apos;] = validate(msg[&apos;m.physical&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.physical&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][8][&apos;section&apos;][&apos;text&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>10</sequenceNumber>
      <script>tmp[&apos;code&apos;][&apos;@displayName&apos;] = validate(msg[&apos;m.form&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.form&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;code&apos;][&apos;@displayName&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>11</sequenceNumber>
      <script>tmp[&apos;legalAuthenticator&apos;][&apos;assignedEntity&apos;][&apos;assignedPerson&apos;][&apos;name&apos;][&apos;given&apos;] = validate(msg[&apos;m.creator&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.creator&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;legalAuthenticator&apos;][&apos;assignedEntity&apos;][&apos;assignedPerson&apos;][&apos;name&apos;][&apos;given&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>12</sequenceNumber>
      <script>tmp[&apos;author&apos;][&apos;assignedAuthor&apos;][&apos;assignedPerson&apos;][&apos;name&apos;][&apos;given&apos;] = validate(msg[&apos;m.signedby&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.signedby&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;author&apos;][&apos;assignedAuthor&apos;][&apos;assignedPerson&apos;][&apos;name&apos;][&apos;given&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>13</sequenceNumber>
      <script>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][4][&apos;section&apos;][&apos;text&apos;] = validate(msg[&apos;m.familyhistory&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.familyhistory&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][4][&apos;section&apos;][&apos;text&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>14</sequenceNumber>
      <script>tmp[&apos;componentOf&apos;][&apos;encompassingEncounter&apos;][&apos;encounterParticipant&apos;][&apos;assignedEntity&apos;][&apos;assignedPerson&apos;][&apos;name&apos;][&apos;given&apos;] = validate(msg[&apos;m.signedby&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.signedby&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;componentOf&apos;][&apos;encompassingEncounter&apos;][&apos;encounterParticipant&apos;][&apos;assignedEntity&apos;][&apos;assignedPerson&apos;][&apos;name&apos;][&apos;given&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>15</sequenceNumber>
      <script>tmp[&apos;recordTarget&apos;][&apos;patientRole&apos;][&apos;id&apos;] = validate(msg[&apos;p.mrd_number&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;p.mrd_number&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;recordTarget&apos;][&apos;patientRole&apos;][&apos;id&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>16</sequenceNumber>
      <script>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][7][&apos;section&apos;][&apos;entry&apos;][0][&apos;observation&apos;][&apos;code&apos;][&apos;@displayName&apos;] = validate(msg[&apos;sm.description&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;sm.description&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][7][&apos;section&apos;][&apos;entry&apos;][0][&apos;observation&apos;][&apos;code&apos;][&apos;@displayName&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      <com.webreach.mirth.model.Step>
      <sequenceNumber>17</sequenceNumber>
      <script>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][2][&apos;section&apos;][&apos;text&apos;] = validate(msg[&apos;m.dsprescription&apos;].toString(), &apos;&apos;, new Array());</script>
      <type>Message Builder</type>
      <data class="map">
      <entry>
      <string>Mapping</string>
      <string>msg[&apos;m.dsprescription&apos;].toString()</string>
      </entry>
      <entry>
      <string>Variable</string>
      <string>tmp[&apos;component&apos;][&apos;structuredBody&apos;][&apos;component&apos;][2][&apos;section&apos;][&apos;text&apos;]</string>
      </entry>
      <entry>
      <string>RegularExpressions</string>
      <list/>
      </entry>
      <entry>
      <string>DefaultValue</string>
      <string></string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      </steps>
      <inboundTemplate>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#x0D;&lt;result&gt;&#x0D; &lt;l.his_order_id&gt;value&lt;/l.his_order_id&gt;&#x0D; &lt;l.id&gt;value&lt;/l.id&gt;&#x0D; &lt;pm.mrd_number&gt;value&lt;/pm.mrd_number&gt;&#x0D; &lt;pm.firstname&gt;value&lt;/pm.firstname&gt;&#x0D; &lt;pm.middlename&gt;value&lt;/pm.middlename&gt;&#x0D; &lt;pm.lastname&gt;value&lt;/pm.lastname&gt;&#x0D; &lt;sm.description&gt;value&lt;/sm.description&gt;&#x0D; &lt;m.idf&gt;value&lt;/m.idf&gt;&#x0D; &lt;m.number&gt;value&lt;/m.number&gt;&#x0D; &lt;m.form&gt;value&lt;/m.form&gt;&#x0D; &lt;m.creator&gt;value&lt;/m.creator&gt;&#x0D; &lt;m.time&gt;value&lt;/m.time&gt;&#x0D; &lt;m.last_time&gt;value&lt;/m.last_time&gt;&#x0D; &lt;m.last_filler&gt;value&lt;/m.last_filler&gt;&#x0D; &lt;m.data_quality&gt;value&lt;/m.data_quality&gt;&#x0D; &lt;m.change_group&gt;value&lt;/m.change_group&gt;&#x0D; &lt;m.execute_group&gt;value&lt;/m.execute_group&gt;&#x0D; &lt;m.date&gt;value&lt;/m.date&gt;&#x0D; &lt;m.unit&gt;value&lt;/m.unit&gt;&#x0D; &lt;m.bed_no&gt;value&lt;/m.bed_no&gt;&#x0D; &lt;m.age&gt;value&lt;/m.age&gt;&#x0D; &lt;m.consultant&gt;value&lt;/m.consultant&gt;&#x0D; &lt;m.doa&gt;value&lt;/m.doa&gt;&#x0D; &lt;m.dop&gt;value&lt;/m.dop&gt;&#x0D; &lt;m.dod&gt;value&lt;/m.dod&gt;&#x0D; &lt;m.height&gt;value&lt;/m.height&gt;&#x0D; &lt;m.weight&gt;value&lt;/m.weight&gt;&#x0D; &lt;m.bloodgroup&gt;value&lt;/m.bloodgroup&gt;&#x0D; &lt;m.discharging_status&gt;value&lt;/m.discharging_status&gt;&#x0D; &lt;m.icdprimary&gt;value&lt;/m.icdprimary&gt;&#x0D; &lt;m.icdsecondary&gt;value&lt;/m.icdsecondary&gt;&#x0D; &lt;m.drugallergies&gt;value&lt;/m.drugallergies&gt;&#x0D; &lt;m.diagnosis&gt;value&lt;/m.diagnosis&gt;&#x0D; &lt;m.history&gt;value&lt;/m.history&gt;&#x0D; &lt;m.medonadm&gt;value&lt;/m.medonadm&gt;&#x0D; &lt;m.pasthistory&gt;value&lt;/m.pasthistory&gt;&#x0D; &lt;m.personalhistory&gt;value&lt;/m.personalhistory&gt;&#x0D; &lt;m.familyhistory&gt;value&lt;/m.familyhistory&gt;&#x0D; &lt;m.clinicalexam&gt;value&lt;/m.clinicalexam&gt;&#x0D; &lt;m.labresults&gt;value&lt;/m.labresults&gt;&#x0D; &lt;m.investigations&gt;value&lt;/m.investigations&gt;&#x0D; &lt;m.course&gt;value&lt;/m.course&gt;&#x0D; &lt;m.prognosis&gt;value&lt;/m.prognosis&gt;&#x0D; &lt;m.advice&gt;value&lt;/m.advice&gt;&#x0D; &lt;m.diet&gt;value&lt;/m.diet&gt;&#x0D; &lt;m.physical&gt;value&lt;/m.physical&gt;&#x0D; &lt;m.medication&gt;value&lt;/m.medication&gt;&#x0D; &lt;m.plan&gt;value&lt;/m.plan&gt;&#x0D; &lt;m.priority&gt;value&lt;/m.priority&gt;&#x0D; &lt;m.signedby&gt;value&lt;/m.signedby&gt;&#x0D; &lt;m.dsprescription&gt;value&lt;/m.dsprescription&gt;&#x0D;&lt;/result&gt;&#x0D;</inboundTemplate>
      <outboundTemplate>&lt;?xml version=&quot;1.0&quot;?&gt;&#x0D;&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;CDA.xsl&quot;?&gt;&#x0D;&lt;!--&#x0D;Readers should be aware of the evolving &quot;Using SNOMED CT in HL7 Version 3&quot; implementation guide, currently in a draft state. The guide, co-developed by HL7 and the College of American Pathologists, will be balloted by HL7 as an Informative Document. Recommendations in the final published guide should usurp patterns of SNOMED CT usage found in this sample instance.&#x0D;--&gt;&#x0D;&lt;ClinicalDocument xmlns=&quot;urn:hl7-org:v3&quot;&#x0D; xmlns:voc=&quot;urn:hl7-org:v3/voc&quot;&#x0D; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&#x0D; xsi:schemaLocation=&quot;urn:hl7-org:v3 ../schemas/CDA.xsd&quot;&gt;&#x0D; &lt;!-- &#x0D;******************************************** ************&#x0D; CDA Header&#x0D;************************************** ******************&#x0D;--&gt;&#x0D; &lt;typeId root=&quot;2.16.840.1.113883.1.3&quot; extension=&quot;POCD_HD000040&quot;/&gt;&#x0D; &lt;templateId root=&quot;2.16.840.1.113883.3.27.1776&quot;/&gt;&#x0D; &lt;id extension=&quot;c266&quot; root=&quot;2.16.840.1.113883.19.4&quot;/&gt;&#x0D; &lt;code code=&quot;11488-4&quot; codeSystem=&quot;2.16.840.1.113883.6.1&quot; codeSystemName=&quot;LOINC&quot; displayName=&quot;Consultation note&quot;/&gt;&#x0D; &lt;title&gt;Good Health Clinic Consultation Note&lt;/title&gt;&#x0D; &lt;effectiveTime value=&quot;20000407&quot;/&gt;&#x0D; &lt;confidentialityCode code=&quot;N&quot; codeSystem=&quot;2.16.840.1.113883.5.25&quot;/&gt;&#x0D; &lt;languageCode code=&quot;en-US&quot;/&gt;&#x0D; &lt;setId extension=&quot;BB35&quot; root=&quot;2.16.840.1.113883.19.7&quot;/&gt;&#x0D; &lt;versionNumber value=&quot;2&quot;/&gt;&#x0D; &lt;recordTarget&gt;&#x0D; &lt;patientRole&gt;&#x0D; &lt;id extension=&quot;12345&quot; root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;patient&gt;&#x0D; &lt;name&gt;&#x0D; &lt;given&gt;Henry&lt;/given&gt;&#x0D; &lt;family&gt;Levin&lt;/family&gt;&#x0D; &lt;suffix&gt;the 7th&lt;/suffix&gt;&#x0D; &lt;/name&gt;&#x0D; &lt;administrativeGenderCode code=&quot;M&quot; codeSystem=&quot;2.16.840.1.113883.5.1&quot;/&gt;&#x0D; &lt;birthTime value=&quot;19320924&quot;/&gt;&#x0D; &lt;/patient&gt;&#x0D; &lt;providerOrganization&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;/providerOrganization&gt;&#x0D; &lt;/patientRole&gt;&#x0D; &lt;/recordTarget&gt;&#x0D; &lt;author&gt;&#x0D; &lt;time value=&quot;2000040714&quot;/&gt;&#x0D; &lt;assignedAuthor&gt;&#x0D; &lt;id extension=&quot;KP00017&quot; root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;assignedPerson&gt;&#x0D; &lt;name&gt;&#x0D; &lt;given&gt;Robert&lt;/given&gt;&#x0D; &lt;family&gt;Dolin&lt;/family&gt;&#x0D; &lt;suffix&gt;MD&lt;/suffix&gt;&#x0D; &lt;/name&gt;&#x0D; &lt;/assignedPerson&gt;&#x0D; &lt;representedOrganization&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;/representedOrganization&gt;&#x0D; &lt;/assignedAuthor&gt;&#x0D; &lt;/author&gt;&#x0D; &lt;custodian&gt;&#x0D; &lt;assignedCustodian&gt;&#x0D; &lt;representedCustodianOrganization&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;name&gt;Good Health Clinic&lt;/name&gt;&#x0D; &lt;/representedCustodianOrganization&gt;&#x0D; &lt;/assignedCustodian&gt;&#x0D; &lt;/custodian&gt;&#x0D; &lt;legalAuthenticator&gt;&#x0D; &lt;time value=&quot;20000408&quot;/&gt;&#x0D; &lt;signatureCode code=&quot;S&quot;/&gt;&#x0D; &lt;assignedEntity&gt;&#x0D; &lt;id extension=&quot;KP00017&quot; root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;assignedPerson&gt;&#x0D; &lt;name&gt;&#x0D; &lt;given&gt;Robert&lt;/given&gt;&#x0D; &lt;family&gt;Dolin&lt;/family&gt;&#x0D; &lt;suffix&gt;MD&lt;/suffix&gt;&#x0D; &lt;/name&gt;&#x0D; &lt;/assignedPerson&gt;&#x0D; &lt;representedOrganization&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;/representedOrganization&gt;&#x0D; &lt;/assignedEntity&gt;&#x0D; &lt;/legalAuthenticator&gt;&#x0D; &lt;relatedDocument typeCode=&quot;RPLC&quot;&gt;&#x0D; &lt;parentDocument&gt;&#x0D; &lt;id extension=&quot;a123&quot; root=&quot;2.16.840.1.113883.19.4&quot;/&gt;&#x0D; &lt;setId extension=&quot;BB35&quot; root=&quot;2.16.840.1.113883.19.7&quot;/&gt;&#x0D; &lt;versionNumber value=&quot;1&quot;/&gt;&#x0D; &lt;/parentDocument&gt;&#x0D; &lt;/relatedDocument&gt;&#x0D; &lt;componentOf&gt;&#x0D; &lt;encompassingEncounter&gt;&#x0D; &lt;id extension=&quot;KPENC1332&quot; root=&quot;2.16.840.1.113883.19.6&quot;/&gt;&#x0D; &lt;effectiveTime value=&quot;20000407&quot;/&gt;&#x0D; &lt;encounterParticipant typeCode=&quot;CON&quot;&gt;&#x0D; &lt;time value=&quot;20000407&quot;/&gt;&#x0D; &lt;assignedEntity&gt;&#x0D; &lt;id extension=&quot;KP00017&quot; root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;assignedPerson&gt;&#x0D; &lt;name&gt;&#x0D; &lt;given&gt;Robert&lt;/given&gt;&#x0D; &lt;family&gt;Dolin&lt;/family&gt;&#x0D; &lt;suffix&gt;MD&lt;/suffix&gt;&#x0D; &lt;/name&gt;&#x0D; &lt;/assignedPerson&gt;&#x0D; &lt;representedOrganization&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.5&quot;/&gt;&#x0D; &lt;/representedOrganization&gt;&#x0D; &lt;/assignedEntity&gt;&#x0D; &lt;/encounterParticipant&gt;&#x0D; &lt;location&gt;&#x0D; &lt;healthCareFacility classCode=&quot;DSDLOC&quot;&gt;&#x0D; &lt;code code=&quot;GIM&quot; codeSystem=&quot;2.16.840.1.113883.5.10588&quot; displayName=&quot;General internal medicine clinic&quot;/&gt;&#x0D; &lt;/healthCareFacility&gt;&#x0D; &lt;/location&gt;&#x0D; &lt;/encompassingEncounter&gt;&#x0D; &lt;/componentOf&gt;&#x0D; &lt;!-- &#x0D;******************************************** ************&#x0D; CDA Body&#x0D;**************************************** ****************&#x0D;--&gt;&#x0D; &lt;component&gt;&#x0D; &lt;structuredBody&gt;&#x0D; &lt;!-- &#x0D;******************************************** ************&#x0D; History of Present Illness section&#x0D;************************************* *******************&#x0D;--&gt;&#x0D; &lt;component&gt;&#x0D; &lt;section&gt;&#x0D; &lt;code code=&quot;10164-2&quot; codeSystem=&quot;2.16.840.1.113883.6.1&quot; codeSystemName=&quot;LOINC&quot;/&gt;&#x0D; &lt;title&gt;History of Present Illness&lt;/title&gt;&#x0D; &lt;text&gt;&#x0D; &lt;content styleCode=&quot;Bold&quot;&gt;Henry Levin, the 7&lt;sup&gt;th&lt;/sup&gt;&#x0D; &lt;/content&gt; is a 67 year old male referred for further asthma management. Onset of asthma in his &lt;content revised=&quot;delete&quot;&gt;twenties&lt;/content&gt;&#x0D; &lt;content revised=&quot;insert&quot;&gt;teens&lt;/content&gt;. He was hospitalized twice last year, and already twice this year. He has not been able to be weaned off steroids for the past several months. &#x0D; &lt;/text&gt;&#x0D; &lt;/section&gt;&#x0D; &lt;/component&gt;&#x0D; &lt;!-- &#x0D;******************************************** ************&#x0D; Past Medical History section&#x0D;************************************* *******************&#x0D;--&gt;&#x0D; &lt;component&gt;&#x0D; &lt;section&gt;&#x0D; &lt;code code=&quot;10153-2&quot; codeSystem=&quot;2.16.840.1.113883.6.1&quot; codeSystemName=&quot;LOINC&quot;/&gt;&#x0D; &lt;title&gt;Past Medical History&lt;/title&gt;&#x0D; &lt;text&gt;&#x0D; &lt;list&gt;&#x0D; &lt;item&gt;&#x0D; &lt;content ID=&quot;a1&quot;&gt;Asthma&lt;/content&gt;&#x0D; &lt;/item&gt;&#x0D; &lt;item&gt;&#x0D; &lt;content ID=&quot;a2&quot;&gt;Hypertension (see HTN.cda for details)&lt;/content&gt;&#x0D; &lt;/item&gt;&#x0D; &lt;item&gt;&#x0D; &lt;content ID=&quot;a3&quot;&gt;Osteoarthritis, &#x0D; &lt;content ID=&quot;a4&quot;&gt;right knee&lt;/content&gt;&#x0D; &lt;/content&gt;&#x0D; &lt;/item&gt;&#x0D; &lt;/list&gt;&#x0D; &lt;/text&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;COND&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;195967001&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Asthma&quot;&gt;&#x0D; &lt;originalText&gt;&#x0D; &lt;reference value=&quot;#a1&quot;/&gt;&#x0D; &lt;/originalText&gt;&#x0D; &lt;/code&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;effectiveTime value=&quot;1950&quot;/&gt;&#x0D; &lt;reference typeCode=&quot;XCRPT&quot;&gt;&#x0D; &lt;externalObservation&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.1.2765&quot;/&gt;&#x0D; &lt;/externalObservation&gt;&#x0D; &lt;/reference&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;COND&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;59621000&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;HTN&quot;&gt;&#x0D; &lt;originalText&gt;&#x0D; &lt;reference value=&quot;#a2&quot;/&gt;&#x0D; &lt;/originalText&gt;&#x0D; &lt;/code&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;reference typeCode=&quot;SPRT&quot;&gt;&#x0D; &lt;seperatableInd value=&quot;false&quot;/&gt;&#x0D; &lt;externalDocument&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.4.789&quot;/&gt;&#x0D; &lt;text mediaType=&quot;multipart/related&quot;&gt;&#x0D; &lt;reference value=&quot;HTN.cda&quot;/&gt;&#x0D; &lt;/text&gt;&#x0D; &lt;setId root=&quot;2.16.840.1.113883.19.7.2465&quot;/&gt;&#x0D; &lt;versionNumber value=&quot;1&quot;/&gt;&#x0D; &lt;/externalDocument&gt;&#x0D; &lt;/reference&gt;&#x0D; &lt;reference typeCode=&quot;XCRPT&quot;&gt;&#x0D; &lt;externalObservation&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.1.2005&quot;/&gt;&#x0D; &lt;/externalObservation&gt;&#x0D; &lt;/reference&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;COND&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code xsi:type=&quot;CD&quot; code=&quot;396275006&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Osteoarthritis&quot;&gt;&#x0D; &lt;originalText&gt;&#x0D; &lt;reference value=&quot;#a3&quot;/&gt;&#x0D; &lt;/originalText&gt;&#x0D; &lt;/code&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;targetSiteCode code=&quot;49076000&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Knee joint&quot;&gt;&#x0D; &lt;originalText&gt;&#x0D; &lt;reference value=&quot;#a4&quot;/&gt;&#x0D; &lt;/originalText&gt;&#x0D; &lt;qualifier&gt;&#x0D; &lt;name code=&quot;78615007&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;with laterality&quot;/&gt;&#x0D; &lt;value code=&quot;24028007&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;right&quot;/&gt;&#x0D; &lt;/qualifier&gt;&#x0D; &lt;/targetSiteCode&gt;&#x0D; &lt;reference typeCode=&quot;XCRPT&quot;&gt;&#x0D; &lt;externalObservation&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.1.1805&quot;/&gt;&#x0D; &lt;/externalObservation&gt;&#x0D; &lt;/reference&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;/section&gt;&#x0D; &lt;/component&gt;&#x0D; &lt;!-- &#x0D;******************************************** ************&#x0D; Medications section&#x0D;************************************* *******************&#x0D;--&gt;&#x0D; &lt;component&gt;&#x0D; &lt;section&gt;&#x0D; &lt;code code=&quot;10160-0&quot; codeSystem=&quot;2.16.840.1.113883.6.1&quot; codeSystemName=&quot;LOINC&quot;/&gt;&#x0D; &lt;title&gt;Medications&lt;/title&gt;&#x0D; &lt;text&gt;&#x0D; &lt;list&gt;&#x0D; &lt;item&gt;Theodur 200mg BID&lt;/item&gt;&#x0D; &lt;item&gt;Proventil inhaler 2puffs QID PRN&lt;/item&gt;&#x0D; &lt;item&gt;Prednisone 20mg qd&lt;/item&gt;&#x0D; &lt;item&gt;HCTZ 25mg qd&lt;/item&gt;&#x0D; &lt;/list&gt;&#x0D; &lt;/text&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;substanceAdministration classCode=&quot;SBADM&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;text&gt;Theodur 200mg BID&lt;/text&gt;&#x0D; &lt;effectiveTime xsi:type=&quot;PIVL_TS&quot; institutionSpecified=&quot;true&quot;&gt;&#x0D; &lt;period value=&quot;12&quot; unit=&quot;h&quot;/&gt;&#x0D; &lt;/effectiveTime&gt;&#x0D; &lt;routeCode code=&quot;PO&quot; codeSystem=&quot;2.16.840.1.113883.5.112&quot; codeSystemName=&quot;RouteOfAdministration&quot;/&gt;&#x0D; &lt;doseQuantity value=&quot;200&quot; unit=&quot;mg&quot;/&gt;&#x0D; &lt;consumable&gt;&#x0D; &lt;manufacturedProduct&gt;&#x0D; &lt;manufacturedLabeledDrug&gt;&#x0D; &lt;code code=&quot;66493003&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Theophylline&quot;/&gt;&#x0D; &lt;/manufacturedLabeledDrug&gt;&#x0D; &lt;/manufacturedProduct&gt;&#x0D; &lt;/consumable&gt;&#x0D; &lt;/substanceAdministration&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;substanceAdministration classCode=&quot;SBADM&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;text&gt;Proventil inhaler 2puffs QID PRN&lt;/text&gt;&#x0D; &lt;effectiveTime xsi:type=&quot;PIVL_TS&quot; institutionSpecified=&quot;true&quot;&gt;&#x0D; &lt;period value=&quot;6&quot; unit=&quot;h&quot;/&gt;&#x0D; &lt;/effectiveTime&gt;&#x0D; &lt;priorityCode code=&quot;PRN&quot;/&gt;&#x0D; &lt;routeCode code=&quot;IPINHL&quot; codeSystem=&quot;2.16.840.1.113883.5.112&quot; codeSystemName=&quot;RouteOfAdministration&quot; displayName=&quot;Inhalation, oral&quot;/&gt;&#x0D; &lt;doseQuantity value=&quot;2&quot;/&gt;&#x0D; &lt;consumable&gt;&#x0D; &lt;manufacturedProduct&gt;&#x0D; &lt;manufacturedLabeledDrug&gt;&#x0D; &lt;code code=&quot;91143003&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Albuterol&quot;/&gt;&#x0D; &lt;/manufacturedLabeledDrug&gt;&#x0D; &lt;/manufacturedProduct&gt;&#x0D; &lt;/consumable&gt;&#x0D; &lt;/substanceAdministration&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;substanceAdministration classCode=&quot;SBADM&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.8.1&quot;/&gt;&#x0D; &lt;text&gt;Prednisone 20mg qd&lt;/text&gt;&#x0D; &lt;effectiveTime xsi:type=&quot;PIVL_TS&quot; institutionSpecified=&quot;true&quot;&gt;&#x0D; &lt;period value=&quot;24&quot; unit=&quot;h&quot;/&gt;&#x0D; &lt;/effectiveTime&gt;&#x0D; &lt;routeCode code=&quot;PO&quot; codeSystem=&quot;2.16.840.1.113883.5.112&quot; codeSystemName=&quot;RouteOfAdministration&quot;/&gt;&#x0D; &lt;doseQuantity value=&quot;20&quot; unit=&quot;mg&quot;/&gt;&#x0D; &lt;consumable&gt;&#x0D; &lt;manufacturedProduct&gt;&#x0D; &lt;manufacturedLabeledDrug&gt;&#x0D; &lt;code code=&quot;10312003&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Prednisone preparation&quot;/&gt;&#x0D; &lt;/manufacturedLabeledDrug&gt;&#x0D; &lt;/manufacturedProduct&gt;&#x0D; &lt;/consumable&gt;&#x0D; &lt;/substanceAdministration&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;substanceAdministration classCode=&quot;SBADM&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;text&gt;HCTZ 25mg qd&lt;/text&gt;&#x0D; &lt;effectiveTime xsi:type=&quot;PIVL_TS&quot; institutionSpecified=&quot;true&quot;&gt;&#x0D; &lt;period value=&quot;24&quot; unit=&quot;h&quot;/&gt;&#x0D; &lt;/effectiveTime&gt;&#x0D; &lt;routeCode code=&quot;PO&quot; codeSystem=&quot;2.16.840.1.113883.5.112&quot; codeSystemName=&quot;RouteOfAdministration&quot;/&gt;&#x0D; &lt;consumable&gt;&#x0D; &lt;manufacturedProduct&gt;&#x0D; &lt;manufacturedLabeledDrug&gt;&#x0D; &lt;code code=&quot;376209006&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Hydrochlorothiazide 25mg tablet&quot;/&gt;&#x0D; &lt;/manufacturedLabeledDrug&gt;&#x0D; &lt;/manufacturedProduct&gt;&#x0D; &lt;/consumable&gt;&#x0D; &lt;/substanceAdministration&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;/section&gt;&#x0D; &lt;/component&gt;&#x0D; &lt;!-- &#x0D;******************************************** ************&#x0D; Allergies &amp; Adverse Reactions section&#x0D;************************************* *******************&#x0D;--&gt;&#x0D; &lt;component&gt;&#x0D; &lt;section&gt;&#x0D; &lt;code code=&quot;10155-0&quot; codeSystem=&quot;2.16.840.1.113883.6.1&quot; codeSystemName=&quot;LOINC&quot;/&gt;&#x0D; &lt;title&gt;Allergies and Adverse Reactions&lt;/title&gt;&#x0D; &lt;text&gt;&#x0D; &lt;list&gt;&#x0D; &lt;item&gt;Penicillin - Hives&lt;/item&gt;&#x0D; &lt;item&gt;Aspirin - Wheezing&lt;/item&gt;&#x0D; &lt;item&gt;Codeine - Itching and nausea&lt;/item&gt;&#x0D; &lt;/list&gt;&#x0D; &lt;/text&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code xsi:type=&quot;CD&quot; code=&quot;247472004&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Hives&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;entryRelationship typeCode=&quot;MFST&quot;&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code xsi:type=&quot;CD&quot; code=&quot;91936005&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Allergy to penicillin&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entryRelationship&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;56018004&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Wheezing&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;entryRelationship typeCode=&quot;MFST&quot;&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;293586001&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Allergy to aspirin&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entryRelationship&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;32738000&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Pruritis&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;entryRelationship typeCode=&quot;MFST&quot;&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.1.2010&quot;/&gt;&#x0D; &lt;code code=&quot;62014003&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Adverse reaction to drug&quot;&gt;&#x0D; &lt;qualifier&gt;&#x0D; &lt;name code=&quot;246075003&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;causative agent&quot;/&gt;&#x0D; &lt;value code=&quot;1476002&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;codeine&quot;/&gt;&#x0D; &lt;/qualifier&gt;&#x0D; &lt;/code&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entryRelationship&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;73879007&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Nausea&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;entryRelationship typeCode=&quot;MFST&quot;&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;id root=&quot;2.16.840.1.113883.19.1.2010&quot;/&gt;&#x0D; &lt;code code=&quot;84100007&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot;/&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entryRelationship&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;/section&gt;&#x0D; &lt;/component&gt;&#x0D; &lt;!-- &#x0D;******************************************** ************&#x0D; Family History section&#x0D;************************************* *******************&#x0D;--&gt;&#x0D; &lt;component&gt;&#x0D; &lt;section&gt;&#x0D; &lt;code code=&quot;10157-2&quot; codeSystem=&quot;2.16.840.1.113883.6.1&quot; codeSystemName=&quot;LOINC&quot;/&gt;&#x0D; &lt;title&gt;Family history&lt;/title&gt;&#x0D; &lt;text&gt;&#x0D; &lt;list&gt;&#x0D; &lt;item&gt;Father had fatal MI in his early 50&apos;s.&lt;/item&gt;&#x0D; &lt;item&gt;No cancer or diabetes.&lt;/item&gt;&#x0D; &lt;/list&gt;&#x0D; &lt;/text&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;22298006&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;MI&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;effectiveTime value=&quot;1970&quot;/&gt;&#x0D; &lt;subject&gt;&#x0D; &lt;relatedSubject classCode=&quot;PRS&quot;&gt;&#x0D; &lt;code code=&quot;FTH&quot; codeSystem=&quot;2.16.840.1.113883.5.111&quot;/&gt;&#x0D; &lt;/relatedSubject&gt;&#x0D; &lt;/subject&gt;&#x0D; &lt;entryRelationship typeCode=&quot;CAUS&quot;&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;399347008&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;death&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;effectiveTime value=&quot;1970&quot;/&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entryRelationship&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot; negationInd=&quot;true&quot;&gt;&#x0D; &lt;code code=&quot;275937001&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;Family history of cancer&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;effectiveTime&gt;&#x0D; &lt;high value=&quot;20000407&quot; inclusive=&quot;true&quot;/&gt;&#x0D; &lt;/effectiveTime&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;160274005&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;No family history of diabetes&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;effectiveTime&gt;&#x0D; &lt;high value=&quot;20000407&quot; inclusive=&quot;true&quot;/&gt;&#x0D; &lt;/effectiveTime&gt;&#x0D; &lt;/observation&gt;&#x0D; &lt;/entry&gt;&#x0D; &lt;/section&gt;&#x0D; &lt;/component&gt;&#x0D; &lt;!-- &#x0D;******************************************** ************&#x0D; Social History section&#x0D;************************************* *******************&#x0D;--&gt;&#x0D; &lt;component&gt;&#x0D; &lt;section&gt;&#x0D; &lt;code code=&quot;29762-2&quot; codeSystem=&quot;2.16.840.1.113883.6.1&quot; codeSystemName=&quot;LOINC&quot;/&gt;&#x0D; &lt;title&gt;Social History&lt;/title&gt;&#x0D; &lt;text&gt;&#x0D; &lt;list&gt;&#x0D; &lt;item&gt;Smoking :: 1 PPD between the ages of 20 and 55, and then he quit.&lt;/item&gt;&#x0D; &lt;item&gt;Alcohol :: rare&lt;/item&gt;&#x0D; &lt;/list&gt;&#x0D; &lt;/text&gt;&#x0D; &lt;entry&gt;&#x0D; &lt;observation classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#x0D; &lt;code code=&quot;266924008&quot; codeSystem=&quot;2.16.840.1.113883.6.96&quot; codeSystemName=&quot;SNOMED CT&quot; displayName=&quot;ex-heavy cigarette smoker (20-39/day)&quot;/&gt;&#x0D; &lt;statusCode code=&quot;completed&quot;/&gt;&#x0D; &lt;effectiveTime&gt;&#x0D;

      Comment


      • #4
        Re:Mirth transformer for hl7 v3

        i want to get multiple values for a single field in my output.

        Comment

        Working...
        X