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 ADT messages into the MPI table.
The mapping table is defined in the "Mapping" page of the MTMPI profile record.
MRUN,PID,3,1
PTNAME,PID,5,,NAME
BIRTHDT,PID,7,,DATE
SEX,PID,8
ADDRESS,PID,11
ACCTNO,PID,18,1
PATTYPE,PV1,2
LOCATION,PV1,3
ATTDR,PV1,7,1
ATTDRNAME,PV1,7,2,DOCNAME
REFDR,PV1,8,1
REFDRNAME,PV1,8,2,DOCNAME
CONSULT,PV1,9,1
CONSULTNM,PV1,9,2,DOCNAME
PATSERV,PV1,10
ADMDR,PV1,17,1
ADMDRNAME,PV1,17,2,DOCNAME
VISITDT,PV1,44,,DATE
DISDT,PV1,45,,DATE
EVENTDT,EVN,2,,DATE
EVENTTM,EVN,2,,TIME
EVENTCODE,EVN,1