Splitting OBX

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Splitting OBX

  • Creator
    Topic
  • #47673
    Scott Frye
    Participant

      I have this OBX

      OBX|1|ST|6881^BP #1^CC|1|143/79||||||F|||20050420231500||111491

      That I need to split to

      OBX|1|ST|6881^BP #1^CC|1|143||||||F|||20050420231500||111491

      OBX|2|ST|6881^BP #1^CC|1|79||||||F|||20050420231500||111491

      I want to do this in an xlate if possible.  Any suggestions?

    Viewing 2 reply threads
    • Author
      Replies
      • #56417
        Dennis Pfeifer
        Participant

          Is that the only OBX in the message? …

          Will it always apear in the 1st OBX ..

          you’ll need to take advantage of a’priori knowledge ..

          Dennis

        • #56418
          Scott Frye
          Participant

            Yes, that is the only OBX.  I’m familiar with how to create the second OBX, I’m just not sure how to split the blood pressure values.

          • #56419
            Dennis Pfeifer
            Participant

              Try this ..

              PATHCOPY 0(0).OBX(0) to 0(0).OBX(0)

              PATHCOPY 0(0).OBX(0) to 0(0).OBX(1)

              verify that the pathcopy duplicates the OBX first .. (i.e. verify that the repeat subscripts are correct).. yours may differ .. e.g. 0(1).OBX instead of 0(0).OBX(1)

              Then add ..

              copy 0(0).OBX(0).#5 to 0(0).OBX(0).#5

              pre xlate proc

              set xlateOutVals

                “/”] 0]]

                copy 0(0).OBX(0).#5 to 0(0).OBX(1).#5

                pre xlate proc

                set xlateOutVals

                  “/”] 1]]

                  Good luck ..

                  Dennis

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