as it stands i get eh^ehmp in msh-4 and I get a unique, more specific code in PV1-3.1 like EHHCTDIH. In the xlate when the code in PV1-3.1 matches the if statement than the code is run through a table. The table takes whatever code is in PV1-3.1 and replaces it with a new code that is then supposed to be placed in MSH-4. For example one of the output codes would be eh^ehmp1
Unfortunately after running the xlate/table i tend to get something like this…
MSH-4: eh^ehmp1^ehmp
This isn’t altogether shocking. At the suggestion of a friend I tried to set the table t convert like this…
source:
0(0).PV1(0).#3(0).[0]
@null
@null
destination:
0(0).MSH(0).#4(0).[0]
0(0).MSH(0).#4(0).[1]
0(0).MSH(0).#4(0).[2]
This, oddly, got me the output of eh^ehmp1^ehsudneork. the last piece is the first code on the source side of the table. Why the xlate decides that @null should become that code is beyond me.
Does anyone know a good way to blank out MSH-4 so that the table can place the eh^ehmp1 code in without adding extra sub-fields?
Let me know if I need to clarify any of this or post the xlate/table and a test encounter.
Thanks