MEDPRE — EDIFACT Medical Prescription Message (D.08A)
The MEDPRE message is the dematerialised medical prescription sent by a prescriber to a pharmacy or to a payer: it carries the patient, prescriber, prescribed drugs, dosage, allowed substitutions and administrative references. This page summarises the segment structure as published by UN/CEFACT for directory D.08A.
Purpose
The MEDPRE message is the dematerialised medical prescription sent by a prescriber to a pharmacy or to a payer: it carries the patient, prescriber, prescribed drugs, dosage, allowed substitutions and administrative references.
This page focuses on the structure published by UN/CEFACT for directory D.08A. The segments listed, their status (M / C), position and repetition factor are extracted from the official file medpre_c.htm hosted on service.unece.org.
Segment structure
The MEDPRE D.08A message has 145 header entries, 0 detail entries and 0 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.
Header
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
0010 | UNH | Message header | M | 1 |
0020 | BGM | Beginning of message | M | 1 |
0030 | DTM | Date/time/period | C | ×9 |
0040 | FTX | Free text | C | ×9 |
0050 | SG1 | Group (×99) | M | ×99 |
0060 | SEQ | Sequence details | M | 1 |
0070 | PNA | Party identification | C | ×9 |
0080 | IDE | Identity | C | ×9 |
0090 | SPR | Organisation classification details | C | ×9 |
0100 | QUA | Qualification | C | ×9 |
0110 | EMP | Employment details | C | 1 |
0120 | ADR | Address | C | 1 |
0130 | COM | Communication contact | C | ×9 |
0140 | RFF | Reference | C | 1 |
0150 | SG2 | Group (×9) | C | ×9 |
0160 | DOC | Document/message details | M | 1 |
0170 | COM | Communication contact | C | 1 |
0180 | SG3 | Group (×1) | C | 1 |
0190 | ATT | Attribute | M | 1 |
0200 | PNA | Party identification | C | ×9 |
0210 | PDI | Person demographic information | C | 1 |
0220 | IDE | Identity | C | ×9 |
0230 | DTM | Date/time/period | C | ×2 |
0240 | NAT | Nationality | C | 1 |
0250 | AGR | Agreement identification | C | ×9 |
0260 | CCI | Characteristic/class id | C | ×2 |
0270 | STS | Status | C | 1 |
0280 | FTX | Free text | C | ×9 |
0290 | LAN | Language | C | 1 |
0300 | CAV | Characteristic value | C | 1 |
0310 | SG4 | Group (×9) | C | ×9 |
0320 | HAN | Handling instructions | M | 1 |
0330 | FTX | Free text | C | ×9 |
0340 | DTM | Date/time/period | C | ×2 |
0350 | SG5 | Group (×9) | C | ×9 |
0360 | ADR | Address | M | 1 |
0370 | COM | Communication contact | C | ×9 |
0380 | SG6 | Group (×99) | C | ×99 |
0390 | REL | Relationship | M | 1 |
0400 | PNA | Party identification | M | ×9 |
0410 | PDI | Person demographic information | C | 1 |
0420 | ADR | Address | C | 1 |
0430 | COM | Communication contact | C | ×9 |
0440 | LAN | Language | C | 1 |
0450 | CAV | Characteristic value | C | 1 |
0460 | SG7 | Group (×999) | C | ×999 |
0470 | LIN | Line item | M | 1 |
0480 | CIN | Clinical information | C | ×9 |
0490 | DTM | Date/time/period | C | ×9 |
0500 | PNA | Party identification | C | ×9 |
0510 | LAN | Language | C | 1 |
0520 | FTX | Free text | C | ×99 |
0530 | RSL | Result | C | 1 |
0540 | CLI | Clinical intervention | C | ×9 |
0550 | CCI | Characteristic/class id | C | ×9 |
0560 | SG8 | Group (×1) | C | 1 |
0570 | IMD | Item description | M | 1 |
0580 | STS | Status | M | 1 |
0590 | DSG | Dosage administration | C | ×9 |
0600 | INP | Parties and instruction | C | ×9 |
0610 | FTX | Free text | C | ×9 |
0620 | SCC | Scheduling conditions | C | ×9 |
0630 | QTY | Quantity | C | ×9 |
0640 | SG9 | Group (×1) | M | 1 |
0650 | GEI | Processing information | M | 1 |
0660 | IDE | Identity | M | ×9 |
0670 | DTM | Date/time/period | M | ×9 |
0680 | PTY | Priority | C | 1 |
0690 | AGR | Agreement identification | C | 1 |
0700 | LAN | Language | C | 1 |
0710 | STS | Status | C | 1 |
0720 | FTX | Free text | C | ×99 |
0730 | SG10 | Group (×9) | C | ×9 |
0740 | DOC | Document/message details | M | 1 |
0750 | IDE | Identity | C | 1 |
0760 | DTM | Date/time/period | C | 1 |
0770 | SG11 | Group (×1) | C | 1 |
0780 | TOD | Terms of delivery or transport | M | 1 |
0790 | TDT | Transport information | C | 1 |
0800 | FTX | Free text | C | ×9 |
0810 | DTM | Date/time/period | C | ×9 |
0820 | ADR | Address | C | 1 |
0830 | COM | Communication contact | C | ×9 |
0840 | PNA | Party identification | C | ×9 |
0850 | PTY | Priority | C | 1 |
0860 | PAC | Package | C | 1 |
0870 | SG12 | Group (×9) | C | ×9 |
0880 | FCA | Financial charges allocation | M | 1 |
0890 | PNA | Party identification | C | ×9 |
0900 | IDE | Identity | C | ×9 |
0910 | RCS | Requirements and conditions | C | ×9 |
0920 | SG13 | Group (×9) | C | ×9 |
0930 | ICD | Insurance cover description | M | 1 |
0940 | ALC | Allowance or charge | C | ×9 |
0950 | PCD | Percentage details | C | 1 |
0960 | MOA | Monetary amount | C | ×9 |
0970 | IDE | Identity | C | ×9 |
0980 | DTM | Date/time/period | C | ×9 |
0990 | SG14 | Group (×99) | C | ×99 |
1000 | LIN | Line item | M | 1 |
1010 | DSG | Dosage administration | C | ×9 |
1020 | IMD | Item description | M | 1 |
1030 | QTY | Quantity | C | ×9 |
1040 | PGI | Product group information | C | ×9 |
1050 | PNA | Party identification | C | ×9 |
1060 | PAC | Package | C | 1 |
1070 | IDE | Identity | C | ×9 |
1080 | DLM | Delivery limitations | C | ×9 |
1090 | EQN | Number of units | C | 1 |
1100 | PRC | Process identification | C | ×9 |
1110 | DTM | Date/time/period | C | ×9 |
1120 | STS | Status | C | 1 |
1130 | CIN | Clinical information | C | ×99 |
1140 | FTX | Free text | C | ×99 |
1150 | SG15 | Group (×99) | C | ×99 |
1160 | CAV | Characteristic value | M | 1 |
1170 | IMD | Item description | M | 1 |
1180 | QTY | Quantity | C | ×9 |
1190 | FTX | Free text | C | ×99 |
1200 | SG16 | Group (×99) | C | ×99 |
1210 | SEQ | Sequence details | M | 1 |
1220 | DSG | Dosage administration | C | ×9 |
1230 | QTY | Quantity | C | ×9 |
1240 | INP | Parties and instruction | C | ×9 |
1250 | DTM | Date/time/period | C | ×9 |
1260 | FTX | Free text | C | ×9 |
1270 | SCC | Scheduling conditions | C | ×9 |
1280 | CIN | Clinical information | C | ×9 |
1290 | PCI | Package identification | C | ×9 |
1300 | LAN | Language | C | 1 |
1310 | EQA | Attached equipment | C | ×9 |
1320 | SG17 | Group (×9) | C | ×9 |
1330 | FCA | Financial charges allocation | M | 1 |
1340 | PNA | Party identification | C | ×9 |
1350 | IDE | Identity | C | ×9 |
1360 | RCS | Requirements and conditions | C | ×9 |
1370 | SG18 | Group (×9) | C | ×9 |
1380 | ICD | Insurance cover description | M | 1 |
1390 | ALC | Allowance or charge | C | ×9 |
1400 | PCD | Percentage details | C | 1 |
1410 | MOA | Monetary amount | C | ×9 |
1420 | IDE | Identity | C | ×9 |
1430 | DTM | Date/time/period | C | ×9 |
1440 | CNT | Control total | C | 1 |
1450 | UNT | Message trailer | M | 1 |
Detail
No segment in this section.
Summary
No segment in this section.
Changes vs D.96A
The MEDPRE message is not published in directory D.96A. No "D.96A → D.08A" comparison line can therefore be produced — see the block below for details.
This message is not published in directory D.96A: it was introduced into the standard after that release and therefore has no historical baseline for comparison. The first directory indexed on ediverse.io sets the reference; later changes are then documented from one release to the next in subsequent directories.
Structural example
Minimal example of an MEDPRE D.08A message with mandatory segments only. The goal is to show the exact version declared in UNH (MEDPRE:D:08A:UN) — not to replicate a full business case.
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL008001'
UNH+1+MEDPRE:D:08A:UN'
BGM+380+MEDPRE-2026-0042+9'
DTM+137:20260514:102'
PNA+PAT+1820000007654::ZZZ+++SU:DUPONT+FN:JEAN'
PNA+HCP+9990000123456::ZZZ+++SU:MARTIN+FN:CLAIRE+TI:DR'
LIN+1++3400938000017:EN'
IMD+F++:::Doliprane 1000 mg comprimé'
QTY+52:30'
FTX+PRD+++1 cp matin, midi et soir pendant 5 jours'
UNT+10+1'
UNZ+1+CTRL008001' Common errors
- Misaligned UNH tokens — The
UNH+...+MEDPRE:D:08A:UNtoken must reflect exactly the directory in use — a mismatch between the UNH release and the release agreed with the partner is rejected by every strict validator. - Wrong UNT segment count — The value after
UNT+must include UNH and UNT themselves. By far the most common sender-side error, regardless of the directory in use. - Stale code lists — Between D.96A and D.08A, several code lists received new qualifiers (DTM status, RFF qualifier, NAD codes…). Reusing an older directory’s code tables triggers warnings or even rejections depending on the partner’s strict-conformance mode.
Related messages
Other versions of this message available on ediverse.io: MEDPRE D.01B, MEDPRE D.10A, MEDPRE D.16B, MEDPRE D.21B, MEDPRE D.24A, MEDPRE D.99B, MEDPRE D.00B, MEDPRE D.02B, MEDPRE D.05A, MEDPRE D.13B, MEDPRE D.18B, MEDPRE D.20B.