locked
How to upload HL7 file which is in XML format to Health RRS feed

  • Question

  • Sir,

    I'm having an HL7 file in XML format.How to upload this file in healthvault database.

    Thanks

    MAHESH.K

     


    MAHESH
    Monday, March 14, 2011 9:51 AM

Answers

  • This issue is resolved after converting the .HL7 file to CCD format. Initially partner was not converting the .HL7 file to CCD format while updating the file to HealthVault.

    Regards,

    Madan Kamuju

     

    • Marked as answer by Eric Gunnerson Wednesday, March 23, 2011 4:27 PM
    Wednesday, March 23, 2011 12:48 PM

All replies

  • Hello Mahesh,

    I think this question is similar your previous post , Could you please let me know whether you have followed all the links i have provided in that post. Have you downloaded the sample HL7 Clinical documents ? Have you compared your xml files with that files. Are finding any differences?

    Have you tried to upload your HL7 xml file through code and you can use the below sample code to upload CCD file.

    void UploadCCD()
         {
             XmlDocument ccdDoc = new XmlDocument();
             ccdDoc.Load(@"E:\HealthVaultSamples\ExampleCCD.xml");

             HealthRecordItem newCcdItem =
             new HealthRecordItem(
               new Guid("9c48a2b8-952c-4f5a-935d-f3292326bf54"), ccdDoc);
             PersonInfo.SelectedRecord.NewItem(newCcdItem);
             lblMessage.Text = "Uploaded CCD successfully";       
         }

    Please let me know if you get any exception when try to upload your HL7 xml file.

    Hope this helps and let me know if you have any further queries.

    Regards,

    Madan Kamuju

     

    Monday, March 14, 2011 3:12 PM
  • Hi Madan,

    Yes I have downloaded the HL7 Clinical documents but these files are different from what i'm having,i have copied the content of my file below.

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <HL7>
      <MSH>
        <MSH.1>|</MSH.1>
        <MSH.2>^~\&amp;</MSH.2>
        <MSH.4>
        </MSH.4>
        <MSH.5>
          <MSH.5.1>
          </MSH.5.1>
          <MSH.5.2>387564</MSH.5.2>
          <MSH.5.3>L-CL</MSH.5.3>
        </MSH.5>
        <MSH.6>
        </MSH.6>
        <MSH.7>
        </MSH.7>
        <MSH.8>20051114130431-0800</MSH.8>
        <MSH.9>
        </MSH.9>
        <MSH.10>
          <MSH.10.1>ORU</MSH.10.1>
          <MSH.10.2>R01</MSH.10.2>
          <MSH.10.3>ORU_R01</MSH.10.3>
        </MSH.10>
        <MSH.11>1234800</MSH.11>
        <MSH.12>P</MSH.12>
        <MSH.13>2.4</MSH.13>
        <MSH.14>
        </MSH.14>
        <MSH.15>
        </MSH.15>
        <MSH.16>SU</MSH.16>
        <MSH.17>
        </MSH.17>
        <MSH.18>
        </MSH.18>
        <MSH.19>
        </MSH.19>
        <MSH.20>
        </MSH.20>
        <MSH.21>
        </MSH.21>
        <MSH.22>ELINCS_MT-ORU-2_1.1</MSH.22>
      </MSH>
      <PID>
        <PID.1>
        </PID.1>
        <PID.2>
        </PID.2>
        <PID.3>
          <PID.3.1>27-83-23</PID.3.1>
          <PID.3.2>
          </PID.3.2>
          <PID.3.3>
          </PID.3.3>
          <PID.3.4>
          </PID.3.4>
          <PID.3.5>EL</PID.3.5>
        </PID.3>
        <PID.4>
        </PID.4>
        <PID.5>
          <PID.5.1>Detrees</PID.5.1>
          <PID.5.2>Kent</PID.5.2>
          <PID.5.3>C.</PID.5.3>
          <PID.5.4>
          </PID.5.4>
          <PID.5.5>
          </PID.5.5>
          <PID.5.6>
          </PID.5.6>
          <PID.5.7>L</PID.5.7>
        </PID.5>
        <PID.6>
        </PID.6>
        <PID.7>19660628</PID.7>
        <PID.8>M</PID.8>
      </PID>
      <OBR>
        <OBR.1>
        </OBR.1>
        <OBR.2>ORD889-09H8x</OBR.2>
        <OBR.3>
          <OBR.3.1>5788478-04334</OBR.3.1>
          <OBR.3.2>
          </OBR.3.2>
          <OBR.3.3>387564</OBR.3.3>
          <OBR.3.4>L-CL</OBR.3.4>
        </OBR.3>
        <OBR.4>
          <OBR.4.1>087-0714</OBR.4.1>
          <OBR.4.2>Lipid Panel, Serum</OBR.4.2>
          <OBR.4.3>99lab</OBR.4.3>
          <OBR.4.4>80061</OBR.4.4>
          <OBR.4.5>Lipid Panel, serum</OBR.4.5>
          <OBR.4.6>C4</OBR.4.6>
        </OBR.4>
        <OBR.5>
        </OBR.5>
        <OBR.6>
        </OBR.6>
        <OBR.7>20051114125444-0800</OBR.7>
        <OBR.8>
        </OBR.8>
        <OBR.9>
        </OBR.9>
        <OBR.10>
        </OBR.10>
        <OBR.11>L</OBR.11>
        <OBR.12>
        </OBR.12>
        <OBR.13>
        </OBR.13>
        <OBR.14>20051114094500-0800</OBR.14>
        <OBR.15>
          <OBR.15.1>
            <OBR.15.1.1>BLDV</OBR.15.1.1>
            <OBR.15.1.2>Blood venous</OBR.15.1.2>
            <OBR.15.1.3>HL70070</OBR.15.1.3>
          </OBR.15.1>
        </OBR.15>
        <OBR.16>
          <OBR.16.1>49785622</OBR.16.1>
          <OBR.16.2>Sparkes</OBR.16.2>
          <OBR.16.3>Benjamin</OBR.16.3>
          <OBR.16.4>
          </OBR.16.4>
          <OBR.16.5>
          </OBR.16.5>
          <OBR.16.6>
          </OBR.16.6>
          <OBR.16.7>
          </OBR.16.7>
          <OBR.16.8>
          </OBR.16.8>
          <OBR.16.9>
          </OBR.16.9>
          <OBR.16.10>
          </OBR.16.10>
          <OBR.16.11>
          </OBR.16.11>
          <OBR.16.12>
          </OBR.16.12>
          <OBR.16.13>UPIN</OBR.16.13>
        </OBR.16>
        <OBR.17>
        </OBR.17>
        <OBR.18>
        </OBR.18>
        <OBR.19>
        </OBR.19>
        <OBR.20>
        </OBR.20>
        <OBR.21>
        </OBR.21>
        <OBR.22>20051114125444-0800</OBR.22>
        <OBR.23>
        </OBR.23>
        <OBR.24>
        </OBR.24>
        <OBR.25>F</OBR.25>
        <NTE>
          <NTE.1>1</NTE.1>
          <NTE.2>
          </NTE.2>
          <NTE.3>This is a final test result</NTE.3>
        </NTE>
        <OBX>
          <OBX.1>1</OBX.1>
          <OBX.2>NM</OBX.2>
          <OBX.3>
            <OBX.3.1>14647-2</OBX.3.1>
            <OBX.3.2>TOTAL CHOLESTEROL</OBX.3.2>
            <OBX.3.3>LN</OBX.3.3>
            <OBX.3.4>929-12</OBX.3.4>
            <OBX.3.5>Cholesterol, Total</OBX.3.5>
            <OBX.3.6>99Lab</OBX.3.6>
          </OBX.3>
          <OBX.4>
          </OBX.4>
          <OBX.5>220</OBX.5>
          <OBX.6>
            <OBX.6.1>
            </OBX.6.1>
            <OBX.6.2>mg/dL</OBX.6.2>
          </OBX.6>
          <OBX.7>Recommended: &lt;200; Moderate Risk: 200-239;High Risk: &gt;240</OBX.7>
          <OBX.8>H</OBX.8>
          <OBX.9>
          </OBX.9>
          <OBX.10>
          </OBX.10>
          <OBX.11>F</OBX.11>
          <OBX.12>
          </OBX.12>
          <OBX.13>
          </OBX.13>
          <OBX.14>
          </OBX.14>
          <OBX.15>
            <OBX.15.1>10D987432</OBX.15.1>
            <OBX.15.2>AccuLabs\T\11636 Administration Ave.\T\St. Louis\T\MO\T\63146\T\John Smith, MD</OBX.15.2>
            <OBX.15.3>L-CLNTE</OBX.15.3>
          </OBX.15>
          <OBX.16>1</OBX.16>
          <OBX.17>
          </OBX.17>
          <OBX.18>This is a final analyte</OBX.18>
        </OBX>
        <OBX>
          <OBX.1>2</OBX.1>
          <OBX.2>NM</OBX.2>
          <OBX.3>
            <OBX.3.1>13457-7</OBX.3.1>
            <OBX.3.2>LDL CHOLESTEROL</OBX.3.2>
            <OBX.3.3>LN</OBX.3.3>
            <OBX.3.4>929-13</OBX.3.4>
            <OBX.3.5>Cholesterol, LDL</OBX.3.5>
            <OBX.3.6>99Lab</OBX.3.6>
          </OBX.3>
          <OBX.4>
          </OBX.4>
          <OBX.5>165</OBX.5>
          <OBX.6>
            <OBX.6.1>
            </OBX.6.1>
            <OBX.6.2>mg/dL</OBX.6.2>
          </OBX.6>
          <OBX.7>Recommended: &lt;130; Moderate Risk: 130-159;High Risk: &gt;160</OBX.7>
          <OBX.8>HH</OBX.8>
          <OBX.9>
          </OBX.9>
          <OBX.10>
          </OBX.10>
          <OBX.11>F</OBX.11>
          <OBX.12>
          </OBX.12>
          <OBX.13>
          </OBX.13>
          <OBX.14>
          </OBX.14>
          <OBX.15>
            <OBX.15.1>10D987432</OBX.15.1>
            <OBX.15.2>AccuLabs\T\11636 Administration Ave.\T\St. Louis\T\MO\T\63146\T\John Smith, MD</OBX.15.2>
            <OBX.15.3>L-CL</OBX.15.3>
          </OBX.15>
        </OBX>
        <OBX>
          <OBX.1>3</OBX.1>
          <OBX.2>NM</OBX.2>
          <OBX.3>
            <OBX.3.1>14646-4</OBX.3.1>
            <OBX.3.2>HDL CHOLESTEROL</OBX.3.2>
            <OBX.3.3>LN</OBX.3.3>
            <OBX.3.4>929-14</OBX.3.4>
            <OBX.3.5>Cholesterol, HDL</OBX.3.5>
            <OBX.3.6>99Lab</OBX.3.6>
          </OBX.3>
          <OBX.4>
          </OBX.4>
          <OBX.5>55</OBX.5>
          <OBX.6>
            <OBX.6.1>
            </OBX.6.1>
            <OBX.6.2>mg/dL</OBX.6.2>
          </OBX.6>
          <OBX.7>29-72</OBX.7>
          <OBX.8>
          </OBX.8>
          <OBX.9>
          </OBX.9>
          <OBX.10>
          </OBX.10>
          <OBX.11>F</OBX.11>
          <OBX.12>
          </OBX.12>
          <OBX.13>
          </OBX.13>
          <OBX.14>
          </OBX.14>
          <OBX.15>
            <OBX.15.1>10D987432</OBX.15.1>
            <OBX.15.2>AccuLabs\T\11636 Administration Ave.\T\St. Louis\T\MO\T\63146\T\John Smith, MD</OBX.15.2>
            <OBX.15.3>L-CL</OBX.15.3>
          </OBX.15>
        </OBX>
        <OBX>
          <OBX.1>4</OBX.1>
          <OBX.2>NM</OBX.2>
          <OBX.3>
            <OBX.3.1>14927-8</OBX.3.1>
            <OBX.3.2>TRIGLYCERIDES</OBX.3.2>
            <OBX.3.3>LN</OBX.3.3>
            <OBX.3.4>929-15</OBX.3.4>
            <OBX.3.5>Triglycerides</OBX.3.5>
            <OBX.3.6>99Lab</OBX.3.6>
          </OBX.3>
          <OBX.4>
          </OBX.4>
          <OBX.5>100</OBX.5>
          <OBX.6>
            <OBX.6.1>
            </OBX.6.1>
            <OBX.6.2>mg/dL</OBX.6.2>
          </OBX.6>
          <OBX.7>40-160</OBX.7>
          <OBX.8>
          </OBX.8>
          <OBX.9>
          </OBX.9>
          <OBX.10>
          </OBX.10>
          <OBX.11>F</OBX.11>
          <OBX.12>
          </OBX.12>
          <OBX.13>
          </OBX.13>
          <OBX.14>
          </OBX.14>
          <OBX.15>
            <OBX.15.1>10D987432</OBX.15.1>
            <OBX.15.2>AccuLabs\T\11636 Administration Ave.\T\St. Louis\T\MO\T\63146\T\John Smith, MD</OBX.15.2>
            <OBX.15.3>L-CL</OBX.15.3>
          </OBX.15>
        </OBX>
      </OBR>
    </HL7>

     

    Regards

    MAHESH.K


    MAHESH
    Tuesday, March 15, 2011 5:35 AM
  •  

    I am handling this issue through email communication with the partner directly. I will update once the issue is resolved.

    Regards,

    Madan Kamuju

    Tuesday, March 15, 2011 10:42 AM
  • This issue is resolved after converting the .HL7 file to CCD format. Initially partner was not converting the .HL7 file to CCD format while updating the file to HealthVault.

    Regards,

    Madan Kamuju

     

    • Marked as answer by Eric Gunnerson Wednesday, March 23, 2011 4:27 PM
    Wednesday, March 23, 2011 12:48 PM