My vendor is asking that when we send over an SIU message that contains multiple procedures in AIS.3 that we need to send over repeating RGS, AIS, AIL and AIP segments. Example below. Note to keep the post sort i will have removed the MSH, SCH, NTE, PID and PV1 segments from my examples.
Vendor example of an SIU with multiple procedure codes:
RGS|1|
AIS|1||EGD|20140107130000|
AIL|1||^ROOM 3^|||20140107130000|||60|MIN|||
AIP|1||PHYSID^DRLASTNAME^DOCTORFIRSTNAME|Doctor|
RGS|2|
AIS|2||COL|20140107130000|
AIL|2||^ROOM 3^|||20140107130000|
AIP|2||PHYSID^DRLASTNAME^DOCTORFIRSTNAME|Doctor
Vendor example if only one procedure code:
RGS|1|
AIS|1||EGD|20140107130000|
AIL|1||^ROOM 3^|||20140107130000|||60|MIN|||
AIP|1||PHYSID^DRLASTNAME^DOCTORFIRSTNAME|Doctor
Our SIU interface from our EMR generates a message like this:
RGS|1||101001360^87 AMBULATORY SURGERY
AIS|1||GI2^EGD (GI DEPT USE ONLY)^EXTSCCEAP^^~GI54^COLONOSCOPY W/EGD (GI DEPT USE ONLY)^EXTSCCEAP^^|20140107092000||||||Sch
AIG|1||R101^ENDOSCOPY SUITE 1|2^RESOURCE||||20140107092000|0|MIN|40|MIN
AIP|1||0070^HEE^VERNON^^|||20140107092000|0|MIN|40|MIN
My xlate generates the message looking like this:
Note, that the segments aren’t in order and that the AIS segment 1 and 2 contains similar information and does not show the other procedure.
2(0).0(0).RGS(0) : >|1||101001360^87 AMBULATORY SURGERY< 2(0).0(0).RGS(1) : >|2||101001360^87 AMBULATORY SURGERY< 2(0).1(0).0(0).AIS(0) : >|1||GI2^EGD (GI DEPT USE ONLY)^EXTSCCEAP~GI2^EGD (GI DEPT USE ONLY)^EXTSCCEAP|^^^20140106100000||||||Sch< 2(0).1(0).0(0).AIS(1) : >|2||GI2^EGD (GI DEPT USE ONLY)|||||||Sch< 2(0).3(0).0(0).AIL(0) : >|1||R102^ENDOSCOPY SUITE 2< 2(0).3(0).0(0).AIL(1) : >|2||R102^ENDOSCOPY SUITE 2< 2(0).4(0).0(0).AIP(0) : >|1||0336^CASIMO^MATTHEW|Doctor< 2(0).4(0).0(0).AIP(1) : >|2||0336^CASIMO^MATTHEW|Doctor< I have attached my xlate and I was hoping that someone can assist me with how I should correctly build my iterate logic. Please. 😕 Thank you. Ginny