ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.
MEDPRE D.00B

MEDPRE — EDIFACT Medical Prescription Message (D.00B)

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.00B.

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.00B. 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.00B message has 144 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.

Pos.TagNameSRep.
0010UNHMessage headerM1
0020BGMBeginning of messageM1
0030DTMDate/time/periodC×9
0040FTXFree textC×9
0050  SG1Group (×99)M×99
0060  SEQSequence detailsM1
0070  PNAParty identificationC×9
0080  IDEIdentityC×9
0090  SPROrganisation classification detailsC×9
0100  QUAQualificationC×9
0110  EMPEmployment detailsC1
0120  ADRAddressC1
0130  COMCommunication contactC×9
0140  RFFReferenceC1
0150    SG2Group (×9)C×9
0160    DOCDocument/message detailsM1
0170    COMCommunication contactC1
0180      SG3Group (×1)C1
0190      ATTAttributeM1
0200      PNAParty identificationC×9
0210      PDIPerson demographic informationC1
0220      IDEIdentityC×9
0230      DTMDate/time/periodC×2
0240      NATNationalityC1
0250      AGRAgreement identificationC×9
0260      CCICharacteristic/class idC×2
0270      STSStatusC1
0280      FTXFree textC×9
0290      LANLanguageC1
0300      CAVCharacteristic valueC1
0310        SG4Group (×9)C×9
0320        HANHandling instructionsM1
0330        FTXFree textC×9
0340        DTMDate/time/periodC×2
0350          SG5Group (×9)C×9
0360          ADRAddressM1
0370          COMCommunication contactC×9
0380            SG6Group (×99)C×99
0390            RELRelationshipM1
0400            PNAParty identificationM×9
0410            PDIPerson demographic informationC1
0420            ADRAddressC1
0430            COMCommunication contactC×9
0440            LANLanguageC1
0450            CAVCharacteristic valueC1
0460              SG7Group (×999)C×999
0470              LINLine itemM1
0480              CINClinical informationC×9
0490              DTMDate/time/periodC×9
0500              PNAParty identificationC×9
0510              LANLanguageC1
0520              FTXFree textC×99
0530              RSLResultC1
0540              CLIClinical interventionC×9
0550              CCICharacteristic/class idC×9
0560                SG8Group (×1)C1
0570                IMDItem descriptionM1
0580                STSStatusM1
0590                DSGDosage administrationC×9
0600                INPParties and instructionC×9
0610                FTXFree textC×9
0620                SCCScheduling conditionsC×9
0630                QTYQuantityC×9
0640                  SG9Group (×1)M1
0660                  IDEIdentityM×9
0670                  DTMDate/time/periodM×9
0680                  PTYPriorityC1
0690                  AGRAgreement identificationC1
0700                  LANLanguageC1
0710                  STSStatusC1
0720                  FTXFree textC×99
0730                    SG10Group (×9)C×9
0740                    DOCDocument/message detailsM1
0750                    IDEIdentityC1
0760                    DTMDate/time/periodC1
0770                      SG11Group (×1)C1
0780                      TODTerms of delivery or transportM1
0790                      TDTDetails of transportC1
0800                      FTXFree textC×9
0810                      DTMDate/time/periodC×9
0820                      ADRAddressC1
0830                      COMCommunication contactC×9
0840                      PNAParty identificationC×9
0850                      PTYPriorityC1
0860                      PACPackageC1
0870                        SG12Group (×9)C×9
0880                        FCAFinancial charges allocationM1
0890                        PNAParty identificationC×9
0900                        IDEIdentityC×9
0910                        RCSRequirements and conditionsC×9
0920                          SG13Group (×9)C×9
0930                          ICDInsurance cover descriptionM1
0940                          ALCAllowance or chargeC×9
0950                          PCDPercentage detailsC1
0960                          MOAMonetary amountC×9
0970                          IDEIdentityC×9
0980                          DTMDate/time/periodC×9
0990                            SG14Group (×99)C×99
1000                            LINLine itemM1
1010                            DSGDosage administrationC×9
1020                            IMDItem descriptionM1
1030                            QTYQuantityC×9
1040                            PGIProduct group informationC×9
1050                            PNAParty identificationC×9
1060                            PACPackageC1
1070                            IDEIdentityC×9
1080                            DLMDelivery limitationsC×9
1090                            EQNNumber of unitsC1
1100                            PRCProcess identificationC×9
1110                            DTMDate/time/periodC×9
1120                            STSStatusC1
1130                            CINClinical informationC×99
1140                            FTXFree textC×99
1150                              SG15Group (×99)C×99
1160                              CAVCharacteristic valueM1
1170                              IMDItem descriptionM1
1180                              QTYQuantityC×9
1190                              FTXFree textC×99
1200                                SG16Group (×99)C×99
1210                                SEQSequence detailsM1
1220                                DSGDosage administrationC×9
1230                                QTYQuantityC×9
1240                                INPParties and instructionC×9
1250                                DTMDate/time/periodC×9
1260                                FTXFree textC×9
1270                                SCCScheduling conditionsC×9
1280                                CINClinical informationC×9
1290                                PCIPackage identificationC×9
1300                                LANLanguageC1
1310                                EQAAttached equipmentC×9
1320                                  SG17Group (×9)C×9
1330                                  FCAFinancial charges allocationM1
1340                                  PNAParty identificationC×9
1350                                  IDEIdentityC×9
1360                                  RCSRequirements and conditionsC×9
1370                                    SG18Group (×9)C×9
1380                                    ICDInsurance cover descriptionM1
1390                                    ALCAllowance or chargeC×9
1400                                    PCDPercentage detailsC1
1410                                    MOAMonetary amountC×9
1420                                    IDEIdentityC×9
1430                                    DTMDate/time/periodC×9
1440                                    CNTControl totalC1
1450UNTMessage trailerM1

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.00B" 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.00B message with mandatory segments only. The goal is to show the exact version declared in UNH (MEDPRE:D:00B:UN) — not to replicate a full business case.

edifact medpre-d00b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL000001'
UNH+1+MEDPRE:D:00B: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+CTRL000001'

Common errors

  • Misaligned UNH tokens — The UNH+...+MEDPRE:D:00B:UN token 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.00B, 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.

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.02B, MEDPRE D.05A, MEDPRE D.08A, MEDPRE D.13B, MEDPRE D.18B, MEDPRE D.20B.

← All EDIFACT versions