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
DG1 Segment to ZRV Segment
Jared Miller
Hi everyone,
Working on a BAR^P01 interface between Optum CAC and McKesson Star and getting stuck on a particular spot so looking for some help. In the DG1 segments, anytime there is a reason for visit diagnosis I need remove that instance of the segment from the message but at the same time move DG1-2 (will be I9 or I10) and DG1-3 (code) in a ZRV segment.
If there is only one DG1 that is a reason for visit then I'm ok, but if there is more than one is where I'm getting stumped. Instead of having a ZRV segment for each DG1, I need to add an additional field to the ZRV.
See attachment for a better visual of what I'm trying to do. Let me know if you need further clarification, thanks!
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Jared,
Is the ZRV field in question defined as repeating?
If not how are the 'pieces' to be represented - as components?
Jared Miller
Jim,
The ZRV segment is defined at optional/repeating, but the fields of the ZRV are just optional currently.
Jim Kosloskey
I am assuming the : is your field separator.
Then it appears in the ZRV you have the first field is the coding system ID, the second field is a code, and the third field (maybe ore are additional fields).
Is there a limit to the number of codes the receiving system will honor or can there be any number?
From your example it looks like the ZRV is constructed for some sort of maximum number of codes.
A more useful construct might be for the code field to repeat but of course the receiving system would need to support that.
Jared Miller
Yes, : the field separator for Star. I will have to clarify with the vendor, but according to their specs the ZRV will accept 3 codes. The segment needs to repeat if there are both ICD-9 and ICD-10 codes.
Here's the vendor spec for the ZRV:
ZRV
Jim Kosloskey
Unless I am misunderstanding, I think you will not be able to use ITERATE on the inbound diagnosis codes to get the individual codes to the ZRV.
Instead use direct addressing notation.
So COPY the DG1 field something like this:
COPY ....DG1(0).#n --> ZRV(0).#2
COPY ....DG1(1).#n --> ZRV(0).#3
COPY ....DG1(2).#n --> ZRV(0).#4
Any iteration then of the DG1 which does not exist will populate the associated ZRV field with null and (if the ZRV-2 through ZRV-4 fields are defined as optional) no separators will appear.
I think this should work for you.
Jared Miller
Well since I won't know how many DG1 segments there will be in a given message or in which DG1 segment will have a 'VI' in DG1-6 (which indicates a reason for visit diagnosis) I think I have to use the ITERATE function, don't I?
System
Originally posted by Sallie Turner
Jared,
I already worked out this whole thing. Email me at sturner@gwinnettmedicalcenter.org and I can send you the variant, procs and xlate that I used to format the messages for Star. It was NOT pretty or easy!