how to create multiple OBX segment in ORU message

lundi 2 février 2015

I am using Mirth Version 1.5.0.2272

I have to generate multiple OBX from the below XML. For each new line in <pob_obs.t_observation> tag there should be one new OBX.



Can any one help me in this regard.





<?xml version="1.0" encoding="UTF-8"?>

<result>

<pob_obs.c_mirthflag>F</pob_obs.c_mirthflag>

<worklist.d_adddate>2015-02-01 16:56:41.42</worklist.d_adddate>

<worklist.n_subno>1</worklist.n_subno>

<worklist.c_sex>M</worklist.c_sex>

<worklist.c_flag>C</worklist.c_flag>

<worklist.c_genname>FIRSTNAME </worklist.c_genname>

<worklist.c_adduser>TEST USER </worklist.c_adduser>

<worklist.c_title>Mst </worklist.c_title>

<worklist.n_doctorcode>1111</worklist.n_doctorcode>

<worklist.d_modifieddate>2015-02-01 16:56:41.42</worklist.d_modifieddate>

<worklist.n_nationcode>0</worklist.n_nationcode>

<worklist.c_clientcode>TEST </worklist.c_clientcode>

<worklist.d_dateofbirth>2005-11-03 00:00:00.0</worklist.d_dateofbirth>

<worklist.c_testregno>1500001 </worklist.c_testregno>

<worklist.d_testdate>2015-02-01 00:00:00.0</worklist.d_testdate>

<worklist.c_doctor>TEST DOCTOR </worklist.c_doctor>

<worklist.c_modifieduser>TEST USER </worklist.c_modifieduser>

<worklist.n_clientcode>111111</worklist.n_clientcode>

<worklist.n_departmentcode>11111</worklist.n_departmentcode>

<pob_obs.n_patienttestno>10000000</pob_obs.n_patienttestno>

<worklist.n_subdeptcode>1000</worklist.n_subdeptcode>

<worklist.n_tstsurrkey>1001111104</worklist.n_tstsurrkey>

<worklist.n_locationcode>10</worklist.n_locationcode>

<worklist.n_servicecode>11111</worklist.n_servicecode>

<worklist.v_remarks>CT ADRENALS W/ &amp; W/O CONTRAST</worklist.v_remarks>

<pob_obs.t_observation>{\rtf1\ansi\ansicpg1252\uc1 \deff0{\fonttbl&#xd;

{\f0\fswiss\fcharset0\fprq2 Arial;}&#xd;

{\f1\froman\fcharset0\fprq2 Times New Roman;}&#xd;

{\f2\froman\fcharset2\fprq2 Symbol;}}&#xd;

{\colortbl;\red0\green0\blue0;\red255\green255\blu e255;\red0\green0\blue0;}&#xd;

{\stylesheet{\s0\itap0\f0\fs24 [Normal];}{\*\cs10\additive Default Paragraph Font;}}&#xd;

{\*\generator TX_RTF32 11.0.401.502;}&#xd;

\deftab1134\paperw12240\paperh15840\margl0\margt0\ margr0\margb0\pard\itap0\plain\f1\fs24\cf3 prelim report 4th round 1st Feb 2015Prelim Completed.\par Final report testing by TEST on feb 1st 2015.}</pob_obs.t_observation>

<worklist.c_patienttype>P</worklist.c_patienttype>

<worklist.n_patienttestno>1006120173</worklist.n_patienttestno>

<worklist.c_lastname>LASTNAME </worklist.c_lastname>

<worklist.d_transactiondate>2015-02-01 00:00:00.0</worklist.d_transactiondate>

<worklist.v_phone/>

<worklist.c_fileno>MRN01 </worklist.c_fileno>

</result>





how to create multiple OBX segment in ORU message

0 commentaires:

Enregistrer un commentaire