Announcement

Collapse
No announcement yet.

Is this workable?

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

  • Is this workable?

    Hi guys! I'm customizing my sample HL7 message. I would like to know if there is a sequence of segments to follow. I'll be using one sample message only for ADT ORM messages so I would like to know if it would matter much.

    This is my sample incoming message in XML:

    <?xml version="1.0" encoding="UTF-8"?>
    <ADT_A01>
    <MSH>
    <MSH.1>|</MSH.1>
    <MSH.2>^~\\&amp;</MSH.2>
    <MSH.3>
    <HD.1>Mirth</HD.1>
    </MSH.3>
    <MSH.4>
    <HD.1>1</HD.1>
    </MSH.4>
    <MSH.5>
    <HD.1>jkddj</HD.1>
    </MSH.5>
    <MSH.6>
    <HD.1>12</HD.1>
    </MSH.6>
    <MSH.7>
    <TS.1>2006044535</TS.1>
    </MSH.7>
    <MSH.8>secured</MSH.8>
    <MSH.9>
    <MSG.1>ADT</MSG.1>
    <MSG.2>A04</MSG.2>
    </MSH.9>
    <MSH.10>603340</MSH.10>
    <MSH.11>
    <PT.1>D</PT.1>
    </MSH.11>
    <MSH.12>
    <VID.1>2.3.1</VID.1>
    </MSH.12>
    <MSH.13>226534</MSH.13>
    </MSH>
    <EVN>
    <EVN.1>A04</EVN.1>
    <EVN.2>
    <TS.1>20060404090742</TS.1>
    </EVN.2>
    </EVN>
    <PID>
    <PID.1>1</PID.1>
    <PID.2>
    <CX.1>0430</CX.1>
    <CX.4>
    <HD.1>Mirth</HD.1>
    </CX.4>
    <CX.5>PN</CX.5>
    </PID.2>
    <PID.3>
    <CX.1>999945682</CX.1>
    <CX.4>
    <HD.1>AccMgr</HD.1>
    </CX.4>
    <CX.5>MR</CX.5>
    <CX.6>
    <HD.1>1</HD.1>
    </CX.6>
    </PID.3>
    <PID.5>
    <XPN.1>
    <FN.1>TEST</FN.1>
    </XPN.1>
    <XPN.2>PATIENT MF</XPN.2>
    </PID.5>
    <PID.6>
    <XPN.1>
    <FN.1>CO</FN.1>
    </XPN.1>
    </PID.6>
    <PID.7>
    <TS.1>19570414</TS.1>
    </PID.7>
    <PID.8>M</PID.8>
    <PID.10>
    <CE.1>W</CE.1>
    </PID.10>
    <PID.11>
    <XAD.1>21 PALM MANOR</XAD.1>
    <XAD.3>EAST SYRACUSE</XAD.3>
    <XAD.4>NY</XAD.4>
    <XAD.5>130570000</XAD.5>
    <XAD.7>M</XAD.7>
    </PID.11>
    <PID.12>31</PID.12>
    <PID.15>
    <CE.1>E</CE.1>
    </PID.15>
    <PID.16>
    <CE.1>M</CE.1>
    </PID.16>
    <PID.18>
    <CX.1>6635130</CX.1>
    <CX.4>
    <HD.1>Mirth</HD.1>
    </CX.4>
    <CX.5>VN</CX.5>
    <CX.6>
    <HD.1>1</HD.1>
    </CX.6>
    </PID.18>
    <PID.19>000987655</PID.19>
    <PID.22>
    <CE.1>2</CE.1>
    </PID.22>
    <PID.27>
    <CE.1>NOT A VETERAN</CE.1>
    </PID.27>
    <PID.30>N&lt;CR&gt;</PID.30>
    </PID>
    <PD1/>
    <NK1/>
    <PV1/>
    <PV2/>
    <DB1/>
    <OBX/>
    <AL1/>
    <DG1/>
    <DRG/>
    <MRG>
    <MRG.1>
    <CX.1>0094231</CX.1>
    </MRG.1>
    <MRG.4>
    <CX.1>0094231</CX.1>
    </MRG.4>
    </MRG>
    <ADT_A01.PR1ROL>
    <PR1/>
    <ROL/>

    <PD1>
    <PD1.4>
    <XCN.1>1335</XCN.1>
    <XCN.2>
    <FN.1>ALCOTT</FN.1>
    </XCN.2>
    <XCN.3>KAREN</XCN.3>
    <XCN.9>
    <HD.1>AccMgr</HD.1>
    </XCN.9>
    <XCN.13>CI</XCN.13>
    </PD1.4>
    <PD1.7>I</PD1.7>
    </PD1>
    <NK1>
    <NK1.1>1</NK1.1>
    <NK1.2>
    <XPN.1>
    <FN.1>TEST</FN.1>
    </XPN.1>
    <XPN.2>MARGARET</XPN.2>
    </NK1.2>
    <NK1.3>
    <CE.1>W</CE.1>
    </NK1.3>
    <NK1.4>
    <XAD.1>21 PALM MANOR</XAD.1>
    <XAD.3>EAST SYRACUSE</XAD.3>
    <XAD.4>NY</XAD.4>
    <XAD.5>130570000</XAD.5>
    </NK1.4>
    <NK1.7>
    <CE.1>Y</CE.1>
    </NK1.7>
    </NK1>
    <PV1>
    <PV1.1>1</PV1.1>
    <PV1.2>E</PV1.2>
    <PV1.3>
    <PL.1>RECV</PL.1>
    <PL.2>ROOM/203</PL.2>
    <PL.3>RECV/203/02</PL.3>
    </PV1.3>
    <PV1.4>1</PV1.4>
    <PV1.7>
    <XCN.1>1281</XCN.1>
    <XCN.2>
    <FN.1>MARKHAM</FN.1>
    </XCN.2>
    <XCN.3>JOSEPH</XCN.3>
    <XCN.9>
    <HD.1>AccMgr</HD.1>
    </XCN.9>
    <XCN.13>CI</XCN.13>
    </PV1.7>
    <PV1.8>
    <XCN.1>1281</XCN.1>
    <XCN.2>
    <FN.1>LANG</FN.1>
    </XCN.2>
    <XCN.3>JOE</XCN.3>
    <XCN.9>
    <HD.1>Mirth</HD.1>
    </XCN.9>
    <XCN.13>CI</XCN.13>
    </PV1.8>
    <PV1.10>ED</PV1.10>
    <PV1.14>7</PV1.14>
    <PV1.15>S</PV1.15>
    <PV1.17>
    <XCN.1>see</XCN.1>
    <XCN.2>
    <FN.1>stephanie</FN.1>
    </XCN.2>
    </PV1.17>
    <PV1.18>62</PV1.18>
    <PV1.19>
    <CX.1>6635130</CX.1>
    <CX.4>
    <HD.1>AccMgr</HD.1>
    </CX.4>
    <CX.5>VN</CX.5>
    <CX.6>
    <HD.1>1</HD.1>
    </CX.6>
    </PV1.19>
    <PV1.20>
    <FC.1>865</FC.1>
    <FC.2>
    <TS.1>SP KOPP</TS.1>
    </FC.2>
    </PV1.20>
    <PV1.39>1</PV1.39>
    <PV1.41>A</PV1.41>
    <PV1.44>
    <TS.1>[20060404090500]</TS.1>
    </PV1.44>
    <PV1.45>
    <TS.1>[20060414090500]</TS.1>
    </PV1.45>
    </PV1>
    <PV2>
    <PV2.2>
    <CE.2>NO</CE.2>
    </PV2.2>
    <PV2.8>
    <TS.1>20060404090500</TS.1>
    </PV2.8>
    <PV2.38>S</PV2.38>
    </PV2>
    <DG1>
    <DG1.1>1</DG1.1>
    <DG1.3>
    <CE.2>HEADACHE</CE.2>
    </DG1.3>
    <DG1.4>HEADACHE</DG1.4>
    <DG1.5>
    <TS.1>exsmoker</TS.1>
    </DG1.5>
    <DG1.6>A</DG1.6>
    <DG1.15>0</DG1.15>
    </DG1>
    </ADT_A01.PR1ROL>
    <GT1>
    <GT1.1>1</GT1.1>
    <GT1.2>
    <CX.1>382582</CX.1>
    </GT1.2>
    <GT1.3>
    <XPN.1>
    <FN.1>TEST</FN.1>
    </XPN.1>
    <XPN.2>PATIENT MF</XPN.2>
    </GT1.3>
    <GT1.5>
    <XAD.1>21 PALM MANOR</XAD.1>
    <XAD.3>EAST SYRACUSE</XAD.3>
    <XAD.4>NY</XAD.4>
    <XAD.5>130570000</XAD.5>
    </GT1.5>
    <GT1.8>
    <TS.1>19570414</TS.1>
    </GT1.8>
    <GT1.9>M</GT1.9>
    <GT1.12>000987655</GT1.12>
    <GT1.20>11</GT1.20>
    </GT1>
    <ADT_A01.IN1IN2IN3>
    <IN1/>
    </ADT_A01.IN1IN2IN3>
    <ACC/>
    <UB1/>
    <UB2/>
    </ADT_A01>



    This is my sample outgoing message in HL7:


    MSH|^~\\&|Mirth|1|jkddj|12|2006044535|secured|ADT^ A04|603340|D|2.3.1|226534 <CR>
    EVN|A04|20060404090742 <CR>
    PID|1|0430^^^Mirth^PN|999945682^^^AccMgr^MR^1||TES T^PATIENT MF|CO|19570414|M||W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000^^M|31|||E|M||6635130^^^Mirth ^VN^1|000987655|||2|||||NOT A VETERAN|||N <CR>
    MRG|0094231|||0094231| <CR>
    PD1||||1335^ALCOTT^KAREN^^^^^^AccMgr^^^^CI|||I<CR>
    NK1|1|TEST^MARGARET|W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||Y<CR>
    PV1|1|E|RECV^ROOM/203^RECV/203/02|1|||1281^MARKHAM^JOSEPH^^^^^^AccMgr^^^^CI|1281^ LANG^JOE^^^^^^Mirth^^^^CI||ED||||7|S||see^stephani e|62|6635130^^^AccMgr^VN^1|865^SP KOPP|||||||||||||||||||1||A|||[20060404090500]|[20060414090500]<CR>
    PV2||^NO||||||20060404090500|||||||||||||||||||||| ||||||||S<CR>
    DG1|1||^HEADACHE|HEADACHE|exsmoker|A|||||||||0 <CR>
    GT1|1|382582|TEST^PATIENT MF||21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||19570414|M|||000987655|||| ||||11 <CR>


    I'm confused if this is workable in real time applications. Please, I need your suggestions. I stil need to add here OBR, ORC, OBX segments. Thank you so much!
    Tonet
Working...
X