XML Xlate Does Add Precision work with TS fields?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf XML Xlate Does Add Precision work with TS fields?

  • Creator
    Topic
  • #51551
    Jim Kosloskey
    Participant

      Cloverleaf 5.6.

      Does the ‘Add Precision’ switch in the DATECOPYOPT Action actuall provide the offset when an outbound XML TS type field is populated without precision as it does with HL/7?

      email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

    Viewing 2 reply threads
    • Author
      Replies
      • #70747
        Jim Kosloskey
        Participant

          Since no one replied, I am going to guess no one knows.

          So I will share what I have observed.

          We are CL 5.6. When I populate an XML element that is defined via a schema as a Time Stamp type field (TS) I expect turning precision on via the DATECOPYOPT to work the same way as it does with say HL/7 messages.

          However, that is not what I experienced.

          I think I am doing it right (not much room for error) so my obvious question regards whether adding precision is supposed to work with XML.

          At this point I will have to say it is my opinion it does not.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

        • #70748
          Bob Richardson
          Participant

            Jim,

            I would agree with your observation that only the HL7 V2 is affected by the date precision option.  For XML it is a datatype specification in the schema from my limited experience in dealing with this message format

            in Cloverleaf.

            Or in other words zero impact on an XML output record in an Xlate.

            BobR

          • #70749
            Jim Kosloskey
            Participant

              Bob,

              Well Add Precision does work for FRL as well. Interestingly I tried it for VRL and it did not work there.

              I may not have been testing the XML properly to determine if TS is adjusted with add precision on.

              I was using a literal to populate the field and since the Source is really a string perhaps the Xlate does not think it is doing a date conversion so DATECOPYOPT does not come into play.

              However when tested properly for HL/7 (2.x), and FRL the precision is added – but not for VRL.

              I think I will revamp my test for XML later and see what happens.

              In any case I think it should work for VRL. If I determine that it does not work for XML as well (when tested properly) I will report that.

              email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

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