Xlate Question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Xlate Question

  • Creator
    Topic
  • #48201
    Jared Miller
    Participant

      Going thru spec meetings with Cerner and McKesson for MSPQ issues.  Cerner sends their MSP via a Z segment in one recurring field with the question number (Q1, Q2, etc) and the answer to that question.  McKesson has a Z segment where each MSPQ is assigned a specific field assigned to it.  So the structure is as follows:

      Cerner – ZQA|||Q1^Black Lung^Y~Q2^10/14/1972~Q3^…..etc.

      McKesson – ZPM|Y|10/14/1972|N|……etc

      The question is has anyone ever done a xlate or written any tcl that could look thru the recurring field for the Q1 and then map that to the ZPM field McKesson wants it in?  I’ve mapped recurring field to recurring field before, but never a recurring field to different fields in a segment.

      Any questions or ideas??

    Viewing 0 reply threads
    • Author
      Replies
      • #57995
        Rentian Huang
        Participant

          Jared,

          You can try it in an Xlate:

          ITERATE on the field %f1

            COPY  ZQA-3(%f1) to ZPM segment

          And you might need to number the ZPM’s SET-ID, if it has any.

          Sam   8)

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