EDIFACT message guide · Healthcare and social
MEDPRE Medical prescription
The UN/EDIFACT message a prescriber sends a dispensing agent, such as a pharmacy, so it can deliver the prescribed medicine.
- Sent by
- Prescriber (physician, dentist or veterinarian)
- Received by
- Dispensing agent, such as a pharmacy
- Standard
- UN/EDIFACT · Batch message
- X12 equivalent
- No direct equivalent
What is the EDIFACT MEDPRE message?
MEDPRE is the UN/EDIFACT medical prescription message. The directory defines it as a message sent from a prescriber, a healthcare professional such as a physician, dentist or veterinarian, to a dispensing agent such as a pharmacy, to allow the dispenser to deliver medicinal products.
Electronic prescriptions reduce transcription errors and fraud. The prescription identifies the patient, the prescriber, the medicine, dose and quantity, and any instructions, and the pharmacy dispenses against it. National e-prescription schemes set the rules. Prescriptions may also be repeated.
How to read this diagram: the top row shows who sends MEDPRE, to whom, and which messages usually come before and after it. The lower part shows what the directory D.21A itself requires: the envelopes around MEDPRE and the segments and segment groups it marks mandatory. Conditional groups are listed by their trigger segment rather than drawn in full. This is the directory's minimum, not a trading partner's requirement: a message implementation guide, such as an industry subset or a partner’s own guide, usually makes some conditional groups mandatory, restricts the codes and may use an older directory.
When it is used
- Sending prescriptions to pharmacies
- Issuing repeat prescriptions
- Prescribing veterinary medicines
Where it fits in the message flow
No other message routinely comes directly before or after MEDPRE; it is exchanged when the business event occurs. If the partners agree, the receiver confirms each interchange with a CONTRL syntax and service report.
Structure
Mandatory segments in MEDPRE (directory D.21A)
In UN/EDIFACT directory D.21A, the MEDPRE message has 127 segment positions arranged in 18 segment groups. These are the segments and segment groups marked mandatory at message level, in order; a mandatory group is shown with the segment that starts it. Segments inside conditional groups are needed only when the group is used. This is the directory’s requirement, not your trading partner’s: each partner’s message implementation guide names the directory it uses, often an older one such as D.96A or D.01B where the structure can differ, makes some conditional segments mandatory and restricts the codes.
- UNH
- BGM
- SG1 (SEQ)
- SG9 (GEI)
- UNT
Practical example
MEDPRE in practice
A doctor prescribes an antibiotic. The practice system sends a MEDPRE to the patient's chosen pharmacy with the patient, the product, dose, quantity and instructions, signed by the prescriber. The pharmacy prepares the medicine before the patient arrives.
Implementation
Implementation considerations for MEDPRE
- Comply with health data protection and prescribing laws.
- Use national medicinal product codes for each item.
- Secure prescriptions against alteration.
- Check whether national e-prescription systems use other standards.
How ECOM helps
Automate MEDPRE with ECOM
Industry
Healthcare
Secure B2B integration and file transfer for providers, suppliers, distributors and healthcare partners.
Industry
Pharmaceuticals
Orders, ship notices, chargebacks and sales data exchange for pharma manufacturers and distributors.
Solution
EDI Integration
Exchange X12 and EDIFACT documents with partners and integrate them directly with your ERP.
Compare X12 and EDIFACT, or see answers to general questions in the EDI FAQ.
Related messages
Related healthcare and social messages
- IHCLMEHealth care claim or encounter request and response
- MEDREQMedical service request
- MEDRPTMedical service report
- MEDRUCMedical resource usage and cost
- COPAYMContributions for payment
- IHCEBIInteractive health insurance eligibility and benefits inquiry and response
- MEDPIDPerson identification
- SOCADESocial administration
- SSIMODModification of identity details
- SSRECHWorker's insurance history
- SSREGWNotification of registration of a worker
Need help with MEDPRE?
ECOM maps, tests and monitors EDIFACT messages for your trading partners and integrates them with your ERP.