Prescription
A prescription or medication order issued by a healthcare provider authorizing dispensing and administration of medications to a patient. Captures prescriber details, medication specifications, dispensing instructions, refill allowances, and validity periods for pharmacy integration and patient safety.
Overview
Prescription represents a formal medication order from a licensed prescriber. It specifies what medication to dispense, how much, dosing instructions, number of refills, and validity period. The entity supports the full prescription lifecycle from draft through active dispensing to completion or cancellation. It handles both simple outpatient prescriptions and complex controlled substance orders requiring special handling.
Key Concepts
Prescription Status
The status field tracks order lifecycle:
| Status | Description | Dispense Allowed |
|---|---|---|
draft | Being composed | No |
active | Ready for dispensing | Yes |
on-hold | Temporarily paused | No |
completed | Fully dispensed | No more |
cancelled | Voided before use | No |
stopped | Discontinued | No more |
entered-in-error | Invalid record | No |
Order Intent
The intent field clarifies the order type:
| Intent | Description | Use Case |
|---|---|---|
order | Actionable prescription | Standard Rx |
original-order | First prescription | New medication |
reflex-order | Auto-generated | Protocol-based |
filler-order | Pharmacy-initiated | Therapeutic sub |
proposal | Recommendation | E-consult |
plan | Future intent | Discharge planning |
Priority
The priority field indicates urgency:
| Priority | Response Time | Scenario |
|---|---|---|
routine | Normal | Maintenance meds |
urgent | Same day | Acute infection |
asap | Hours | Worsening condition |
stat | Immediate | Emergency |
Prescriber
The prescriber links to Practitioner:
- Must have prescriptive authority
- DEA registration for controlled substances
- Establishes order accountability
Dosing Instructions
Dosing is captured multiple ways:
dosageInstruction- Full text sigdosageFrequency- Structured frequencydoseQuantity/doseUnit- Per-dose amountroute- Administration route
Dispensing Quantities
For pharmacy fulfillment:
dispenseQuantity/dispenseUnit- Amount per fillexpectedSupplyDays- Days supplynumberOfRepeatsAllowed- Refills authorizedrefillsRemaining(calculated) - Refills left
Validity Period
The validityPeriod defines when prescription is valid:
- Start date (usually authored date)
- End date (expiration)
- Controlled substances have shorter windows
- State regulations may apply
Substitution
Substitution policy:
substitutionAllowed- Generic permittedsubstitutionReason- Why brand required- DAW (Dispense As Written) codes
- Medical necessity documentation
Clinical Indication
Why the medication was prescribed:
reasonCode- ICD-10/SNOMED codesreasonText- Free-text explanation- Supports prior authorization
- Quality measure documentation
Use Cases
New Prescription
Writing a new order:
- Select medication
- Set dosing instructions
- Specify quantity and refills
- Set validity period
- Document indication
- Sign/authorize
- Transmit to pharmacy
Controlled Substance
For Schedule II-V medications:
- Verify DEA registration
- Check PDMP (Prescription Drug Monitoring Program)
- Apply appropriate refill limits
- Use EPCS if required
- Document medical necessity
- Set shorter validity period
Prescription Modification
When changing existing order:
- Reference
priorPrescription - Create new prescription
- Cancel or stop prior order
- Document reason for change
- Notify pharmacy
Refill Authorization
For ongoing therapy:
- Set appropriate
numberOfRepeatsAllowed - Consider total therapy duration
- Account for 90-day supplies
- Enable pharmacy refill processing
- Track refills remaining
Prior Authorization
When insurance requires approval:
- Document
reasonCodethoroughly - Include clinical notes
- Submit to payer
- Track authorization status
- Dispense when approved
Related Entities
| Entity | Relationship | Description |
|---|---|---|
| Patient | References | Who medication is for |
| Encounter | References | Visit context |
| Medication | References | Drug prescribed |
| Practitioner | References | Prescriber |
| ClinicalIdentifier | Contains | Prescription identifiers |
| Period | Contains | Validity window |
| Frequency | Contains | Dosing frequency |
| Coding | Contains | Reason codes |
| PrescriptionLine | Has many | Individual medication lines |
| MedicationDispense | Referenced by | Dispensing events |
| Prescription | References | Prior prescription replaced |
Calculated Fields
| Field | Type | Description |
|---|---|---|
isActive | boolean | True when status is active |
isExpired | boolean | True when past validity period |
refillsRemaining | number | Authorized refills minus dispenses |
daysSupplyRemaining | number | Estimated days until medication runs out |
isControlledSubstance | boolean | True when medication is DEA scheduled |
requiresElectronicPrescribing | boolean | True when EPCS required |
Enums
status
| Value | Description |
|---|---|
active | Prescription is valid and available for dispensing |
on-hold | Prescription temporarily paused |
cancelled | Prescription cancelled before dispensing |
completed | Prescription fully dispensed with no refills remaining |
entered-in-error | Prescription created in error |
stopped | Prescription discontinued during therapy |
draft | Prescription being composed, not yet authorized |
unknown | Prescription status cannot be determined |
intent
| Value | Description |
|---|---|
proposal | Suggestion for prescriber consideration |
plan | Intended future order, not yet actionable |
order | Actionable prescription ready for dispensing |
original-order | First prescription for this medication |
reflex-order | Auto-generated based on protocol |
filler-order | Created by pharmacy (therapeutic substitution) |
instance-order | Single instance of a recurring order |
priority
| Value | Description |
|---|---|
routine | Normal processing, no urgency |
urgent | Same-day dispensing needed |
asap | Dispense as soon as possible, within hours |
stat | Immediate dispensing required |
route
| Value | Description |
|---|---|
oral | Administered by mouth |
intravenous | Administered into a vein |
intramuscular | Injected into muscle |
subcutaneous | Injected under the skin |
topical | Applied to skin surface |
inhalation | Breathed into lungs |
nasal | Administered into nose |
ophthalmic | Applied to the eye |
otic | Applied to the ear |
rectal | Administered into rectum |
vaginal | Administered into vagina |
transdermal | Absorbed through skin |
other | Other route not listed |
Properties
| Property | Type | Mode | Description | Required |
|---|---|---|---|---|
| identifier | ClinicalIdentifier[] | stored | Unique identifiers for this prescription assigned by different systems (e.g., institutional prescription number, e-prescribing ID, pharmacy system ID) Example: | Optional |
| patient | Patient | stored | Reference to the patient for whom this medication is prescribed | Required |
| encounter | Encounter | stored | Reference to the healthcare encounter during which this prescription was created (e.g., office visit, hospital admission, telemedicine consultation) | Optional |
| medication | Medication | stored | The medication being prescribed with standardized coding (RxNorm, NDC, ATC) | Required |
| status | string | stored | Current status of the prescription in its lifecycle Values: Example: | Required |
| intent | string | stored | The intent or purpose of the prescription order Values: Example: | Required |
| priority | string | stored | Urgency level for dispensing and administration of the medication Values: Example: | Optional |
| prescriber | Practitioner | stored | Reference to the healthcare provider who authorized and signed the prescription | Required |
| authoredOn | DateTime | stored | Date and time when the prescription was originally written and authorized by the prescriber Example: | Required |
| validityPeriod | Period | stored | Time period during which the prescription is valid and can be dispensed (prescription expiration window) Example: | Optional |
| dosageInstruction | string | stored | Complete instructions for how the patient should take or use the medication, including dose, route, frequency, and duration Example: | Optional |
| dosageFrequency | Frequency | stored | Structured frequency specification for medication administration timing Example: | Optional |
| doseQuantity | number | stored | Amount of medication per dose (e.g., 1 tablet, 5 mL, 10 mg) Example: | Optional |
| doseUnit | string | stored | Unit of measure for the dose quantity Example: | Optional |
| route | string | stored | Route of administration for the medication Values: Example: | Optional |
| numberOfRepeatsAllowed | number | stored | Number of refills authorized by the prescriber (0 means no refills allowed) Example: | Optional |
| dispenseQuantity | number | stored | Quantity of medication to be dispensed per fill or refill Example: | Optional |
| dispenseUnit | string | stored | Unit for the dispensed quantity (e.g., tablets, capsules, boxes, bottles, mL) Example: | Optional |
| expectedSupplyDays | number | stored | Expected number of days the dispensed medication will last based on the dosage instructions Example: | Optional |
| substitutionAllowed | boolean | stored | Whether generic or therapeutic substitution is permitted by the prescriber Example: | Optional |
| substitutionReason | string | stored | Explanation for why substitution is not allowed (e.g., medical necessity, patient intolerance to excipients, narrow therapeutic index) Example: | Optional |
| reasonCode | Coding[] | stored | Coded clinical indication or diagnosis justifying why the medication was prescribed (typically ICD-10, SNOMED-CT codes) Example: | Optional |
| reasonText | string | stored | Free-text explanation of the clinical reasoning or indication for prescribing this medication Example: | Optional |
| note | string | stored | Additional instructions, warnings, or information for the pharmacist and patient (e.g., special handling, patient counseling points, monitoring requirements) Example: | Optional |
| priorPrescription | Prescription | stored | Reference to the previous prescription that this one replaces or modifies (for dose changes, medication switches) | Optional |
| isActive | boolean | calculated | Whether the prescription is currently active (status is 'active') | Optional |
| isExpired | boolean | calculated | Whether the prescription has passed its validity period and can no longer be dispensed | Optional |
| refillsRemaining | number | calculated | Number of refills still available, calculated from numberOfRepeatsAllowed and actual dispense events tracked in the system | Optional |
| daysSupplyRemaining | number | calculated | Estimated days of medication supply remaining based on last dispense date, expected supply days, and current date | Optional |
| isControlledSubstance | boolean | calculated | Whether the prescribed medication is a DEA controlled substance (Schedule I-V), derived from medication.controlledSubstanceSchedule | Optional |
| requiresElectronicPrescribing | boolean | calculated | Whether this prescription must be transmitted electronically per regulatory requirements (e.g., EPCS for Schedule II-V in certain jurisdictions) | Optional |
Examples
Example 1
{
"@type": "Prescription",
"identifier": [
{
"@type": "ClinicalIdentifier",
"value": "RX-2024-089456",
"type": "prescription",
"use": "official"
}
],
"patient": {
"@type": "Patient",
"givenName": "Michael",
"familyName": "Chen"
},
"encounter": {
"@type": "Encounter",
"identifier": [
{
"@type": "ClinicalIdentifier",
"value": "ENC-2024-11234"
}
]
},
"medication": {
"@type": "Medication",
"code": "308136",
"system": "RxNorm",
"label": "Amoxicillin 500 MG Oral Capsule",
"genericName": "Amoxicillin",
"form": "capsule",
"route": "oral",
"strength": "500 MG",
"controlledSubstanceSchedule": "not-controlled"
},
"status": "active",
"intent": "order",
"priority": "routine",
"prescriber": {
"@type": "Practitioner",
"givenName": "Sarah",
"familyName": "Johnson"
},
"authoredOn": "2024-11-15T10:30:00Z",
"validityPeriod": {
"@type": "Period",
"start": "2024-11-15T10:30:00Z",
"end": "2025-01-15T10:30:00Z"
},
"dosageInstruction": "Take 1 capsule by mouth three times daily for 10 days",
"dosageFrequency": {
"@type": "Frequency",
"count": 3,
"period": 1,
"periodUnit": "day",
"timeOfDay": [
"08:00",
"14:00",
"20:00"
],
"maxOccurrences": 30
},
"doseQuantity": 1,
"doseUnit": "capsule",
"route": "oral",
"numberOfRepeatsAllowed": 0,
"dispenseQuantity": 30,
"dispenseUnit": "capsules",
"expectedSupplyDays": 10,
"substitutionAllowed": true,
"reasonCode": [
{
"@type": "Coding",
"code": "J03.90",
"system": "ICD-10",
"display": "Acute tonsillitis, unspecified"
}
],
"reasonText": "Bacterial pharyngitis - positive rapid strep test",
"note": "Complete full course even if symptoms improve. Take with food to minimize GI upset."
}Example 2
{
"@type": "Prescription",
"identifier": [
{
"@type": "ClinicalIdentifier",
"value": "RX-2024-123789",
"type": "prescription",
"use": "official"
}
],
"patient": {
"@type": "Patient",
"givenName": "Emily",
"familyName": "Rodriguez"
},
"encounter": {
"@type": "Encounter",
"identifier": [
{
"@type": "ClinicalIdentifier",
"value": "ENC-2024-22445"
}
]
},
"medication": {
"@type": "Medication",
"code": "197361",
"system": "RxNorm",
"label": "Lisinopril 10 MG Oral Tablet",
"genericName": "Lisinopril",
"brandNames": [
"Prinivil",
"Zestril"
],
"form": "tablet",
"route": "oral",
"strength": "10 MG",
"therapeuticClass": "ACE Inhibitor",
"controlledSubstanceSchedule": "not-controlled"
},
"status": "active",
"intent": "order",
"priority": "routine",
"prescriber": {
"@type": "Practitioner",
"givenName": "David",
"familyName": "Martinez"
},
"authoredOn": "2024-09-01T14:15:00Z",
"validityPeriod": {
"@type": "Period",
"start": "2024-09-01T14:15:00Z",
"end": "2025-09-01T14:15:00Z"
},
"dosageInstruction": "Take 1 tablet by mouth once daily in the morning",
"dosageFrequency": {
"@type": "Frequency",
"count": 1,
"period": 1,
"periodUnit": "day",
"timeOfDay": [
"08:00"
]
},
"doseQuantity": 1,
"doseUnit": "tablet",
"route": "oral",
"numberOfRepeatsAllowed": 11,
"dispenseQuantity": 90,
"dispenseUnit": "tablets",
"expectedSupplyDays": 90,
"substitutionAllowed": true,
"reasonCode": [
{
"@type": "Coding",
"code": "I10",
"system": "ICD-10",
"display": "Essential (primary) hypertension"
}
],
"reasonText": "Hypertension management - BP consistently 145/92 despite lifestyle modifications",
"note": "Monitor blood pressure weekly. Report persistent dry cough. Check potassium and creatinine in 2 weeks."
}Example 3
{
"@type": "Prescription",
"identifier": [
{
"@type": "ClinicalIdentifier",
"value": "RX-2024-456123",
"type": "prescription",
"use": "official",
"clinicalSystem": "custom"
},
{
"@type": "ClinicalIdentifier",
"value": "EPCS-2024-CS-789456",
"type": "e-prescription",
"use": "official"
}
],
"patient": {
"@type": "Patient",
"givenName": "Robert",
"familyName": "Anderson"
},
"encounter": {
"@type": "Encounter",
"identifier": [
{
"@type": "ClinicalIdentifier",
"value": "ENC-2024-33789"
}
]
},
"medication": {
"@type": "Medication",
"code": "1049502",
"system": "RxNorm",
"label": "Oxycodone 5 MG Oral Tablet",
"genericName": "Oxycodone",
"brandNames": [
"OxyContin",
"Roxicodone"
],
"form": "tablet",
"route": "oral",
"strength": "5 MG",
"therapeuticClass": "Opioid Analgesic",
"controlledSubstanceSchedule": "II"
},
"status": "active",
"intent": "order",
"priority": "routine",
"prescriber": {
"@type": "Practitioner",
"givenName": "Jennifer",
"familyName": "Williams"
},
"authoredOn": "2024-11-20T09:45:00Z",
"validityPeriod": {
"@type": "Period",
"start": "2024-11-20T09:45:00Z",
"end": "2024-12-20T09:45:00Z"
},
"dosageInstruction": "Take 1 tablet by mouth every 6 hours as needed for severe pain. Do not exceed 4 tablets in 24 hours.",
"dosageFrequency": {
"@type": "Frequency",
"count": 1,
"period": 6,
"periodUnit": "hour",
"asNeeded": true,
"maxPerDay": 4
},
"doseQuantity": 1,
"doseUnit": "tablet",
"route": "oral",
"numberOfRepeatsAllowed": 0,
"dispenseQuantity": 20,
"dispenseUnit": "tablets",
"expectedSupplyDays": 5,
"substitutionAllowed": false,
"substitutionReason": "Controlled substance Schedule II - no refills or substitutions permitted by federal regulation",
"reasonCode": [
{
"@type": "Coding",
"code": "M25.561",
"system": "ICD-10",
"display": "Pain in right knee"
}
],
"reasonText": "Acute post-operative pain management following knee arthroscopy",
"note": "DEA Schedule II controlled substance. Federal law prohibits refills. Patient counseled on opioid risks, safe storage, and disposal. Prescription Drug Monitoring Program checked. Risk assessment completed. Do not drive or operate machinery while taking this medication."
}