The syntax of the mapping table is:
[fieldname] , [HL7 segment code] , [field number] , [sub-field number] , [format code]
The following is an example of a mapping table for importing SIU messages into the SCHEDULE table.
The mapping table is defined in the "Mapping" page of the MTSCHED profile record.
EVENTCODE,MSH,8
ACCTNO,PID,3,1
MRUN,PID,3,1
LASTNAME,PID,5,1
FIRSTNAME,PID,5,2
APPTSTART,SCH,11,4
APPTEND,SCH,11,5
DURATION,SCH,9
DURATIONUNITS,SCH,10
APPTSTATUS,SCH,25,1
DOCTOR,PV1,7,1
DOCNAME,PV1,7,2,DOCNAME