I do not have it easy here lately….LOL! I could use some help or tips with the following inbound message and situation: –Is this even doable?
ORC|RE|13-1433-A|DPP-13-000029||||||201308291420|PK||18302C^Purcell^Carol^^^^PAC
OBR|1|13-1433-A|DPP-13-000029|DERMP^Surgical Procedure|||201308260000|||||||201308261328|LEFT RING FINGER~LEFT LEG~RIGHT TEMPLE|18302C^Purcell^Carol^^^^PAC||||||201308291420|||F|||||||^PATHOLOGIST^TEST^^^^
OBX|1|FT|REPORT|1|CASE: DPP-13-000029||||||F|||201308291404
OBX|2|FT|REPORT|2|PATIENT: DAFFY DUCK||||||F|||201308291404
OBX|3|FT|REPORT|3|||||||F|||201308291404
OBX|4|FT|REPORT|4|SPECIMENS SUBMITTED:||||||F|||201308291404
OBX|5|FT|REPORT|5|A. LEFT RING FINGER||||||F|||201308291404
OBX|6|FT|REPORT|6|B. LEFT LEG||||||F|||201308291404
OBX|7|FT|REPORT|7|C. RIGHT TEMPLE||||||F|||201308291404
OBX|8|FT|REPORT|8|||||||F|||201308291404
OBX|9|FT|REPORT|9|||||||F|||201308291404
OBX|10|FT|REPORT|10|DIAGNOSIS: TEST CASE. DO NOT DISTRIBUTE.||||||F|||201308291404
OBX|11|FT|REPORT|11|A. SKIN, LEFT RING FINGER; PUNCH BIOPSY:||||||F|||201308291404
OBX|12|FT|REPORT|12| – COMPOUND MELANOCYTIC NEVUS||||||F|||201308291404
OBX|13|FT|REPORT|13|B. SKIN, LEFT LEG; SHAVE BIOPSY:||||||F|||201308291404
WHEN you see SPECIMENS SUBMITTED in an OBX segment, I need to count the subsequent OBX segments where OBX 5 has values such as A.LEFT, B.LEFT etc. For each of these I need to create an OBR segment followed by the entire message as it is, after the OBR.
The OBR would look like this