MDCADT ;HINES OIFO/DP/BJ/TJ - HL7 Build ADT Axx Messages;10 Aug 2007
Source file <MDCADT.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
VALID | ;HL7 MESSAGE BUILDER
; Creates HL7 V2.4 "Axx Type" message ; stolen from GMVVDEF1 ; segments returned will fall into 1 of four categories ; Case 1 = simple unsubscripted variable e.g. SEG="IN1^Blue Cross.....^^" ; Case 2 = single segment, 2 or more nodes e.g. SEG="PD1^Smith,John...^^" ; SEG(1)="3505 94ST^....^^" ; Case 3 = Multiple segments, 1 node each e.g. SEG(1,0)="NK1^Smith,Mary^2...^^" ; SEG(2,0)="NK1^Smith,Joey^3...^^" ; Case 4 = Multiple segments, 1 or more nodes e.g. SEG(1,0)="ZCL^ data ...^^" ; SEG(1,0,1)="^ more data ...^^" ; SEG(1,0,2)="^ end of data ...^^" ; SEG(2,0)="ZCL^ all of segment ^^" ; SEG(3,0)="ZCL^ another segment ^^" ; SEG(3,0,1)=" etc., etc. ^^" ; I $D(SEG)=1 Case 1 ; I $D(SEG)=11 Case 2 ; I $D(SEG)=10 Case 3 or 4 |
|
BLDMSG(KEY,VFLAG,OUT,MSHP,MDCEVN) | ;
|
|
EVN | ; EVN - Event Type with EVN.7.1 - required
|
|
PID | ; PID - Patient Identification - required
|
|
PV1 | ; PV1 - Patient Visit - required or empty
|
|
SAVE | ;
|
|
ERR(MDCERR) | ;
; Input: MDCERR - Error message. |
|
MAILERR | ; mail error notification to g.developers
|