combining OBX’s

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf combining OBX’s

  • Creator
    Topic
  • #51043
    Kevin Crist
    Participant

    We have a facility that wants all of our OBX’s for transcriptions to be combine by a “~”. they want us to take out the “OBX” and have the “~” instead of a carriage return. Has anyone done this before or have a good way to tackle this? Thanks for any and all ideas.

    MSH|^~&|PROSOLV|GSH|RCVAPP|GSH|200907070922||ORU^R01|PS1-20090707092211|P|2.3

    PID||001891|001891||SOLO^HANS|||M||||||||||9000000967|010-36-9875

    PV1|||||||0029^Watson^Phillip^|Philip D. Watson, DO, FACC|||||||||Reynaldo A. Carandang, MD

    OBR|1|V00296-1||CAROTID_DUPLEX^CAROTID DUPLEX^|||200907070904|||||||||||||||200907070922|||C||||||434.91^^I9M|0029^Watson^Phillip^|||0029^Watson^Phillip^~|1|TX|15160|1|Not For Clinical Use |~|2|TX|15160|1|                  Good Samaritian Hospital | ~|3|TX|15160|1|                  520 S. 7th St. |~|4|TX|15160|1|                  Vincennes, IN 47591 |~|TX|15160|1|                  812-885-3028 |

Viewing 1 reply thread
  • Author
    Replies
    • #68541
      Chris Williams
      Participant

      Kevin,

      I think what the destination system most likely wants is for you to have a single OBX rather than multiple OBX segments. They’re probably expecting you to concatenate all of the OBX-5 fields into one, separating them with “~”, so it looks like this:

      Quote:

      OBR|1|V00296-1||CAROTID_DUPLEX^CAROTID DUPLEX^|||200907070904|||||||||||||||200907070922|||C||||||434.91^^I9M|0029^Watson^Phillip^|||0029^Watson^Phillip^

      OBX|1|TX|15160|1|Not For Clinical Use ~                  Good Samaritian Hospital ~                  520 S. 7th St. ~                  Vincennes, IN 47591 ~                  812-885-3028 |

    • #68542
      Jim Kosloskey
      Participant

      Kevin,

      So just as Chris said you need to COPY all of the OBX info (except for OBX-5) from the first iteration of the inbound OBX segment to the first iteration of the outbound OBX segment – then:

      ITERATE over the inbound OBX group and COPY the OBX-5 field (OBX segment repetition) to the OBX-5 field repetition using the OBX group Iteration counter that you set in the OBX group ITERATE.

      The COPY would look something like this:

      1(0).1(0).1(%g1).OBX#5(0)  –> (0).1(0).10).OBX#5(%g1)  

      Assuming %g1 is your OBX grup counter – of course the address path notaiton will depend on your variant.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

Viewing 1 reply thread
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,105
Forums
28
Topics
9,278
Replies
34,382
Topic Tags
281