Announcement

Collapse
No announcement yet.

how to add a tag in hl7?

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

  • how to add a tag in hl7?

    HI! HOw can I write the javascript code to add a <CR> tag before each segment ends?
    e.g.
    MSH|^~\\&|PAHHIS||PACSRIS||200511080818||ADT^A04|2 23544|P|2.3|223544|<CR>|||
    EVN|A04|200511080817|<CR>
    PID|1|0217788|590683||TERESA TAMBUNAN|200109020000|F|4Y 2M||||||||||||||||||||||<CR>
    PV1|1||CPAE^ROOM125||||YPKM^PONG KWAI MENG - YPKM||||||||||||V1626672|||||||||||||||||||||||||2 00511080817|||||||||<CR>
    

    Can somebody please give me a sample code to test with, Thanks guys!!!

    Post edited by: shifting_18, at: 05/21/2007 00:01
    Tonet

  • #2
    Re:how to add a tag in hl7?

    The <CR> is the '\\r' byte:

    var msj="MSH|^~&|PAHHIS||PACSRIS||200511080818||ADT^A0 4|223544|P|2.3|223544|\\r";
    msj+="EVN|A04|200511080817|\\r";
    ...

    Comment


    • #3
      Re:how to add a tag in hl7?

      HI!
      The Hl7 is on the outgoing message. How can I make use of the message builder if I'll declare them as string in javascript?

      I also need to add <OxOb> before MSH. I really can't figure out on how to do this.. Can you please explain further? Thank you very much! This will be a great help!
      Tonet

      Comment

      Working...
      X