Convert your FHIR JSON -> XML and back here. The CDA Book is sometimes listed for Kindle here and it is also SHIPPING from Amazon! See here for Errata.

Thursday, December 22, 2011

Happy Holidays HL7 V3 Style

<act moodCode='EVN' classCode='CLUSTER' xmlns="urn:org-hl7:v3"
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  <observation moodCode='GOL' classCode='OBS'>
    <code code='365107007' codeSystem='2.16.840.1.113883.6.96'/>
    <effectiveTime value='20111225'/>
    <value xsi:type='CD' code='286582007' codeSystem='2.16.840.1.113883.6.96'/>
    <repeatNumber value='1'/>
  </observation>

  <observation moodCode='GOLclassCode='OBS'>
    <code code='365107007' codeSystem='2.16.840.1.113883.6.96'/>
    <effectiveTime value='20111225'/>
    <value xsi:type='CD' code='286582007' codeSystem='2.16.840.1.113883.6.96'/>
    <repeatNumber value='2'/>
  </observation>
  <observation moodCode='GOLclassCode='OBS'>
    <code code='365107007' codeSystem='2.16.840.1.113883.6.96'/>
    <effectiveTime value='20120101'/>
    <value xsi:type='CD' code='112080002' codeSystem='2.16.840.1.113883.6.96'/>
  </observation>
  <participant typeCode='PRF'>
   <participantRole>
     <telecom value='http://motorcycleguy.blogspot.com'/>
     <person classCode='PSN'>
       <name><given>Keith</given><given>W.</given><family>Boone</family></name>
       <name><given>motorcycle_guy</given><name>
     </person>   </participantRole>
  </participant>
  <participant typeCode='SBJ'>
    <participantRole classCode='MBR'>
      <person classCode='PSN'><name>You</name></person>
    </participantRole>
  </participant>     
</act>

If you don't get it, check the comments for the answer.