I am running into a situation where I have to remove one OBX segment, which I am converting into an NTE segment, as follows:
Inbound:
OBX|1|NM|GLUF^Glucose, fasting|1.1|6.6|mmol/L|(3.3-6.0)|H|||F OBX|2|FT|GLUF^Glucose, fasting|1.2|Impaired fasting glucose 6.1-6.9 mmol/L~Diabetic >6.9 mmol/L||||||F
Outbound:
OBX|1|NM|GLUF^Glucose, fasting|1.1|6.6|mmol/L|(3.3-6.0)|H|||F OBX|2|FT|GLUF^Glucose, fasting|1.2|Impaired fasting glucose 6.1-6.9 mmol/L~Diabetic >6.9 mmol/L||||||F
NTE|||Impaired fasting glucose 6.1-6.9 mmol/L NTE|||Diabetic >6.9 mmol/L
Receiving system wants me to remove the second instance of OBX, in this case:
OBX|2|FT|GLUF^Glucose, fasting|1.2|Impaired fasting glucose 6.1-6.9 mmol/L~Diabetic >6.9 mmol/L||||||F
I am using an xlate to do this OBX-NTE conversion. Is there is a way to remove the same OBX segment (which is being converted into an NTE) inside an xlate?
Any ideas how to accomplish this?
Thanks.
Arslan Khan