Cloverleaf configuration to convert UTC to localtime

Clovertech Forums Cloverleaf Cloverleaf configuration to convert UTC to localtime

  • Creator
    Topic
  • #120668
    Varun
    Participant

      Hi Everyone,

      we have a need to send HL7 observation result with UTC offset value HL7 receiver clients. in one of our install base using the cloverleaf engine we did ADD UTC offset value to the passing hl7 message ORU but EMR ignored the UTC value and treated the time as local time. Is there a configuration in cloverleaf engine to convert the UTC value to local time so that in DST scenario there wont be a manual intervention required that way.

      Sample Hl7 message: MSH|^~\&|GE IHE Gateway^urn:uuid:b5860468-3307-438c-a2fd-52bdad269814^URN|GE Healthcare|TODO-Enter_Name|TODO-Enter_Name|20230331085500.0750+0000||ORU^R01^ORU_R01|37e5e537-7391-41a7-a8d4-6ecc1fab50de-7|P|2.6|||NE|NE||UNICODE UTF-8|||PCD_DEC_001^IHE PCD^1.3.6.1.4.1.19376.1.6.1.1.1^ISO PID|||78906^^^A^VN||G^Harish^^^^^L|||M PV1||I|ICU^R1^B1^GE||||||||||||||||78906^^^A^VN OBR|1|37e5e537739141a7a8d46ecc1fab50de7^GE IHE Gateway^urn:uuid:b5860468-3307-438c-a2fd-52bdad269814^URN|37e5e537739141a7a8d46ecc1fab50de7^GE IHE Gateway^urn:uuid:b5860468-3307-438c-a2fd-52bdad269814^URN|182777000^monitoring of patient^SCT|||20230331085500.0727+0000 OBX|1||69965^MDC_DEV_MON_PHYSIO_MULTI_PARAM_MDS^MDC|1.0.0.0|||||||X OBX|2||70666^MDC_DEV_ECG_RESP_VMD^MDC|1.6.0.0|||||||X OBX|3|NM|151562^MDC_RESP_RATE^MDC|1.6.0.1|29|{breath}/min^{breath}/min^UCUM|||||R|||||||SRW22410005SA^SetFriendlyName^urn:uuid:ac451e19-5d50-4bf9-a893-4599273c8ee4^URN OBX|4||69642^MDC_DEV_ANALY_SAT_O2_VMD^MDC|1.22.0.0|||||||X OBX|5|NM|150456^MDC_PULS_OXIM_SAT_O2^MDC|1.22.0.1|92|%^%^UCUM|||||R|||||||SRW22410005SA^SetFriendlyName^urn:uuid:ac451e19-5d50-4bf9-a893-4599273c8ee4^URN OBX|6|NM|149530^MDC_PULS_OXIM_PULS_RATE^MDC|1.22.0.2|80|{beat}/min^{beat}/min^UCUM|||||R|||||||SRW22410005SA^SetFriendlyName^urn:uuid:ac451e19-5d50-4bf9-a893-4599273c8ee4^URN

       

      do let us know if you need more information. I am not technically well versed in the TCL scripting or XLATE management. please consider this to guide us in this regards

    Viewing 1 reply thread
    • Author
      Replies
      • #120669
        Varun
        Participant

          Hi Everyone,

          we have a need to send HL7 observation result with UTC offset value HL7 receiver clients. in one of our install base using the cloverleaf engine we did ADD UTC offset value to the passing hl7 message ORU but EMR ignored the UTC value and treated the time as local time. Is there a configuration in cloverleaf engine to convert the UTC value to local time so that in DST scenario there wont be a manual intervention required that way.

          Sample Hl7 message: MSH|*******

          OBR|1|37e5e537739141a7a8d46ecc1fab50de7^**^urn:uuid:b5860468-3307-438c-a2fd-52bdad269814^URN|37e5e537739141a7a8d46ecc1fab50de7^***^urn:uuid:b5860468-3307-438c-a2fd-52bdad269814^URN|182777000^monitoring of patient^SCT|||20230331085500.0727+0000

           

          do let us know if you need more information. I am not technically well versed in the TCL scripting or XLATE management. please consider this to guide us in this regards

        • #120670
          Charlie Bursell
          Participant

            set tm “20230331085500.0727+0000”

            # I don’t know what to do with .0727 seconds so I will ignore
            # The clock command needs a space between date and time (List)

            set trimed  “[string range $tm 0 7]   [string range $tm 8 13]”

            set localTm [clock format [clock scan $trimed -timezone :UTC] -format %Y%m%d%H%M%S]

            echo $localTime => 20230331155500

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.