I was doing a PATHCOPY from 1(0).PV1(0) to 0(0).PV1(0), but the paths were correct. I noticed that the source had 52 fields and the target only had 50. To try to step around this, I decided to try a simple copy from…
1(0).PV1(0).#1(0).[0] to 0(0).PV1(0).#1(0).[0] (set ID to set ID)
No luck. Thinking it may be a corrupted Xlate, I decided to create a new one and make it as amazingly simple as possible. Here it is…
prologue
xlt_infile: hl7 2.3 Epic_v23 ADT_BASIC
who: stroutm
date: August 31, 2015 12:01:12 PM CDT
xlt_outfile: hl7 2.2 cerner_v22 ADT_A01
type: xlt
version: 7.0
end_prologue
{ { OP COPY }
{ ERR 0 }
{ IN {{1(0).PV1(0).#1(0).[0]}} }
{ OUT {{0(0).PV1(0).#1(0).[0]}} }
}
I verified that PV1-1 in both the source and target formats are identical, using the same field ID, type and length. When I run this Xlate in the testing tool, I still get the following…
MESSAGE 1
[0:TEST] Mismatched IR Tags
[0:TEST] Data fetch warning: Mismatched IR Tags
0(0).MSH(0) : >|^~&|||||||ADT^A01||P|2.2< 0(0).EVN(0) : >|A01< 0(0).PID(0) : >< 0(0).PV1(0) : >< I don’t know why the other segments are being sent, but I assume it is a “feature” of Cloverleaf. I also don’t understand why this simple single field Xlate could cause a Mismatched IR Tags error. At this point, I figured it had to be a problem with the source message. I started deleting one segment off the end at a time and testing until the error stopped. I finally found that if any of the IN1 segment existed in the message, I would get the IR Tag error. As soon as it was deleted, the message translated cleanly. However, PV1-1 still didn’t copy into the target message. I looked closely at the 2.3 variant and the 2.2 variant. The 2.3 for an A09 had IN1 and IN2 segments in it. The 2.2 didn’t. This shouldn’t matter though as Cloverleaf typically just ignores the segments that aren’t in the target message, and if this was a problem, why didn’t freak out about the IN1, but not about the ZPV segment that existed in the 2.3, but not the 2.2? Any why is PV1-1 still not copying into the target message? I did find that if I change the message type to anything other than an A09, the xlate works perfectly. I dug into the A09 format both within the app and in UltraEdit and found nothing noteworthy or different than any of the other formats. Any thoughts?