infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
SIU iterate help
gmaloney
Sorry for yet another iterate question but I didn't find an example in the previous posts that seem to fit my needs. :?
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
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Gee,
I am guessing that your %f1 counter is placed improperly at the segment level in your destination fields. I suspect that should be a group repetition based on what I see in the Address Path for the Destination fields.
Can you show us the message layout from the HL/7 Configurator for your outbound message?
System
Originally posted by Matthew Laskin
Just developed this same xlate for a vendor. In my case, I had all of the associated procedures listed in AIS-3.1 for each applicable resource group. In my case, I was only interested in endoscopy cases, so the first iterate checks for "ENDO" in AIL-3.
I've attached the applicable xlate portions. Maybe this will help you with your code?
gmaloney
Jim-
here is the hl7 config that i am using in the xlate
MSH
SCH
[{ NTE } ]
[
{
PID
[ PV1 ]
[ PV2 ]
[{ OBX } ]
[{ DG1 } ]
}
]
{
{ RGS }
[
{
{ AIS }
[{ NTE } ]
}
]
[
{
[{ AIG } ]
[{ NTE } ]
}
]
[
{
[{ AIL } ]
[{ NTE } ]
}
]
[
{
{ AIP }
[{ NTE } ]
}
]
}