Our csv file coming like:
MRN1, Patientname1, DOB,Encounter#,Dignosisecode1,Code1decription1,
(cont at same line) diagnosisecode2,Code1decription2
Dignosisecode3,Code1decription3 …… (This varies, it can up to 25 or just one)
MRN2, Patientname2, DOB,Encounter#,Dignosisecode1,Code1decription1,
(cont at same line) diagnosisecode2,Code1decription2
Dignosisecode3,Code1decription3 …… (This varies, it can up to 25 or just one)
The outbound HL7 will be:
MSH..
EVN
PID|PATIENT1|||||||
DG1|1|Dignosisecode1| Code1decription1||||||
DG1|2|Dignosisecode1| Code1decription1||||||
… UP TO if they have
DG1|25|Dignosisecode1| Code1decription1||||||
MSH..
EVN
PID|PATIENT2|||||||
DG1|1|Dignosisecode1| Code1decription1||||||
DG1|2|Dignosisecode1| Code1decription1||||||
… UP TO if they have
DG1|25|Dignosisecode1| Code1decription1||||||
Thanks