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

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

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

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

Pos.TagNameSRep.
00010UNHMessage headerM1
00020BGMBeginning of messageM1
00030DTMDate/time/periodC×9
00040FTXFree textC×9
00050  SG1Group (×99)M×99
00060  SEQSequence detailsM1
00070  PNAParty identificationC×9
00080  IDEIdentityC×9
00090  SPROrganisation classification detailsC×9
00100  QUAQualificationC×9
00110  EMPEmployment detailsC1
00120  ADRAddressC1
00130  COMCommunication contactC×9
00140  RFFReferenceC1
00150    SG2Group (×9)C×9
00160    DOCDocument/message detailsM1
00170    COMCommunication contactC1
00180      SG3Group (×1)C1
00190      ATTAttributeM1
00200      PNAParty identificationC×9
00210      PDIPerson demographic informationC1
00220      IDEIdentityC×9
00230      DTMDate/time/periodC×2
00240      NATNationalityC1
00250      AGRAgreement identificationC×9
00260      CCICharacteristic/class idC×2
00270      STSStatusC1
00280      FTXFree textC×9
00290      LANLanguageC1
00300      CAVCharacteristic valueC1
00310        SG4Group (×9)C×9
00320        HANHandling instructionsM1
00330        FTXFree textC×9
00340        DTMDate/time/periodC×2
00350          SG5Group (×9)C×9
00360          ADRAddressM1
00370          COMCommunication contactC×9
00380            SG6Group (×99)C×99
00390            RELRelationshipM1
00400            PNAParty identificationM×9
00410            PDIPerson demographic informationC1
00420            ADRAddressC1
00430            COMCommunication contactC×9
00440            LANLanguageC1
00450            CAVCharacteristic valueC1
00460              SG7Group (×999)C×999
00470              LINLine itemM1
00480              CINClinical informationC×9
00490              DTMDate/time/periodC×9
00500              PNAParty identificationC×9
00510              LANLanguageC1
00520              FTXFree textC×99
00530              RSLResultC1
00540              CLIClinical interventionC×9
00550              CCICharacteristic/class idC×9
00560                SG8Group (×1)C1
00570                IMDItem descriptionM1
00580                STSStatusM1
00590                DSGDosage administrationC×9
00600                INPParties and instructionC×9
00610                FTXFree textC×9
00620                SCCScheduling conditionsC×9
00630                QTYQuantityC×9
00640                  SG9Group (×1)M1
00650                  GEIProcessing informationM1
00660                  IDEIdentityM×9
00670                  DTMDate/time/periodM×9
00680                  PTYPriorityC1
00690                  AGRAgreement identificationC1
00700                  LANLanguageC1
00710                  STSStatusC1
00720                  FTXFree textC×99
00730                    SG10Group (×9)C×9
00740                    DOCDocument/message detailsM1
00750                    IDEIdentityC1
00760                    DTMDate/time/periodC1
00770                      SG11Group (×1)C1
00780                      TODTerms of delivery or transportM1
00790                      TDTTransport informationC1
00800                      FTXFree textC×9
00810                      DTMDate/time/periodC×9
00820                      ADRAddressC1
00830                      COMCommunication contactC×9
00840                      PNAParty identificationC×9
00850                      PTYPriorityC1
00860                      PACPackageC1
00870                        SG12Group (×9)C×9
00880                        FCAFinancial charges allocationM1
00890                        PNAParty identificationC×9
00900                        IDEIdentityC×9
00910                        RCSRequirements and conditionsC×9
00920                          SG13Group (×9)C×9
00930                          ICDInsurance cover descriptionM1
00940                          ALCAllowance or chargeC×9
00950                          PCDPercentage detailsC1
00960                          MOAMonetary amountC×9
00970                          IDEIdentityC×9
00980                          DTMDate/time/periodC×9
00990                            SG14Group (×99)C×99
01000                            LINLine itemM1
01010                            DSGDosage administrationC×9
01020                            IMDItem descriptionM1
01030                            QTYQuantityC×9
01040                            PGIProduct group informationC×9
01050                            PNAParty identificationC×9
01060                            PACPackageC1
01070                            IDEIdentityC×9
01080                            DLMDelivery limitationsC×9
01090                            EQNNumber of unitsC1
01100                            PRCProcess identificationC×9
01110                            DTMDate/time/periodC×9
01120                            STSStatusC1
01130                            CINClinical informationC×99
01140                            FTXFree textC×99
01150                              SG15Group (×99)C×99
01160                              CAVCharacteristic valueM1
01170                              IMDItem descriptionM1
01180                              QTYQuantityC×9
01190                              FTXFree textC×99
01200                                SG16Group (×99)C×99
01210                                SEQSequence detailsM1
01220                                DSGDosage administrationC×9
01230                                QTYQuantityC×9
01240                                INPParties and instructionC×9
01250                                DTMDate/time/periodC×9
01260                                FTXFree textC×9
01270                                SCCScheduling conditionsC×9
01280                                CINClinical informationC×9
01290                                PCIPackage identificationC×9
01300                                LANLanguageC1
01310                                EQAAttached equipmentC×9
01320                                  SG17Group (×9)C×9
01330                                  FCAFinancial charges allocationM1
01340                                  PNAParty identificationC×9
01350                                  IDEIdentityC×9
01360                                  RCSRequirements and conditionsC×9
01370                                    SG18Group (×9)C×9
01380                                    ICDInsurance cover descriptionM1
01390                                    ALCAllowance or chargeC×9
01400                                    PCDPercentage detailsC1
01410                                    MOAMonetary amountC×9
01420                                    IDEIdentityC×9
01430                                    DTMDate/time/periodC×9
01440                                    CNTControl totalC1
01450UNTMessage 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.18B" 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.18B message with mandatory segments only. The goal is to show the exact version declared in UNH (MEDPRE:D:18B:UN) — not to replicate a full business case.

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

Common errors

  • Misaligned UNH tokens — The UNH+...+MEDPRE:D:18B: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.18B, 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.00B, MEDPRE D.02B, MEDPRE D.05A, MEDPRE D.08A, MEDPRE D.13B, MEDPRE D.20B.

← All EDIFACT versions