This page is part of the FHIR Specification (v5.0.0-ballot: R5 Ballot - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4
Pharmacy Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: Encounter, Patient, Practitioner |
This is a representation of the json schema for MedicationRequest, which is just a part of the full JSON Schema.
{ "$schema": "http://json-schema.org/draft-06/schema#", "id": "http://hl7.org/fhir/json-schema/MedicationRequest", "$ref": "#/definitions/MedicationRequest", "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas", "definitions": { "MedicationRequest": { "description": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.", "properties": { "resourceType": { "description": "This is a MedicationRequest resource", "const": "MedicationRequest" }, "id": { "description": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "$ref": "id.schema.json#/definitions/id" }, "meta": { "description": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", "$ref": "Meta.schema.json#/definitions/Meta" }, "implicitRules": { "description": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", "$ref": "#/definitions/uri" }, "_implicitRules": { "description": "Extensions for implicitRules", "$ref": "Element.schema.json#/definitions/Element" }, "language": { "description": "The base language in which the resource is written.", "$ref": "#/definitions/code" }, "_language": { "description": "Extensions for language", "$ref": "Element.schema.json#/definitions/Element" }, "text": { "description": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", "$ref": "Narrative.schema.json#/definitions/Narrative" }, "contained": { "description": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.", "items": { "$ref": "ResourceList.schema.json#/definitions/ResourceList" }, "type": "array" }, "extension": { "description": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element\u0027s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "identifier": { "description": "Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.", "items": { "$ref": "Identifier.schema.json#/definitions/Identifier" }, "type": "array" }, "basedOn": { "description": "A plan or request that is fulfilled in whole or in part by this medication request.", "items": { "$ref": "Reference.schema.json#/definitions/Reference" }, "type": "array" }, "priorPrescription": { "description": "A link to a resource representing an earlier order related order or prescription.", "$ref": "Reference.schema.json#/definitions/Reference" }, "groupIdentifier": { "description": "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition or prescription.", "$ref": "Identifier.schema.json#/definitions/Identifier" }, "status": { "description": "A code specifying the current state of the order. Generally, this will be active or completed state.", "$ref": "#/definitions/code" }, "_status": { "description": "Extensions for status", "$ref": "Element.schema.json#/definitions/Element" }, "statusReason": { "description": "Captures the reason for the current state of the MedicationRequest.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "statusChanged": { "description": "The date (and perhaps time) when the status was changed.", "$ref": "#/definitions/dateTime" }, "_statusChanged": { "description": "Extensions for statusChanged", "$ref": "Element.schema.json#/definitions/Element" }, "intent": { "description": "Whether the request is a proposal, plan, or an original order.", "$ref": "#/definitions/code" }, "_intent": { "description": "Extensions for intent", "$ref": "Element.schema.json#/definitions/Element" }, "category": { "description": "Indicates the grouping or category of medication request (for example, drug classification like ATC, where meds would be administered, legal category of the medication.).", "items": { "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "type": "array" }, "priority": { "description": "Indicates how quickly the Medication Request should be addressed with respect to other requests.", "$ref": "#/definitions/code" }, "_priority": { "description": "Extensions for priority", "$ref": "Element.schema.json#/definitions/Element" }, "doNotPerform": { "description": "If true, indicates that the provider is asking for the patient to either stop taking or to not start taking the specified medication. For example, the patient is taking an existing medication and the provider is changing their medication. They want to create two seperate requests: one to stop using the current medication and another to start the new medication.", "$ref": "#/definitions/boolean" }, "_doNotPerform": { "description": "Extensions for doNotPerform", "$ref": "Element.schema.json#/definitions/Element" }, "medication": { "description": "Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.", "$ref": "CodeableReference.schema.json#/definitions/CodeableReference" }, "subject": { "description": "A link to a resource representing the person or set of individuals to whom the medication will be given.", "$ref": "Reference.schema.json#/definitions/Reference" }, "informationSource": { "description": "The person or organization who provided the information about this request, if the source is someone other than the requestor. This is often used when the MedicationRequest is reported by another person.", "items": { "$ref": "Reference.schema.json#/definitions/Reference" }, "type": "array" }, "encounter": { "description": "The Encounter during which this [x] was created or to which the creation of this record is tightly associated.", "$ref": "Reference.schema.json#/definitions/Reference" }, "supportingInformation": { "description": "Information to support fulfilling (i.e. dispensing or administering) of the medication, for example, patient height and weight, a MedicationUsage for the patient).", "items": { "$ref": "Reference.schema.json#/definitions/Reference" }, "type": "array" }, "authoredOn": { "description": "The date (and perhaps time) when the prescription was initially written or authored on.", "$ref": "#/definitions/dateTime" }, "_authoredOn": { "description": "Extensions for authoredOn", "$ref": "Element.schema.json#/definitions/Element" }, "requester": { "description": "The individual, organization, or device that initiated the request and has responsibility for its activation.", "$ref": "Reference.schema.json#/definitions/Reference" }, "reported": { "description": "Indicates if this record was captured as a secondary \u0027reported\u0027 record rather than as an original primary source-of-truth record. It may also indicate the source of the report.", "$ref": "#/definitions/boolean" }, "_reported": { "description": "Extensions for reported", "$ref": "Element.schema.json#/definitions/Element" }, "performerType": { "description": "Indicates the type of performer of the administration of the medication.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "performer": { "description": "The specified desired performer of the medication treatment (e.g. the performer of the medication administration). For devices, this is the device that is intended to perform the administration of the medication. An IV Pump would be an example of a device that is performing the administration. Both the IV Pump and the practitioner that set the rate or bolus on the pump can be listed as performers.", "items": { "$ref": "Reference.schema.json#/definitions/Reference" }, "type": "array" }, "device": { "description": "The intended type of device that is to be used for the administration of the medication (for example, PCA Pump).", "$ref": "CodeableReference.schema.json#/definitions/CodeableReference" }, "recorder": { "description": "The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.", "$ref": "Reference.schema.json#/definitions/Reference" }, "reason": { "description": "The reason or the indication for ordering or not ordering the medication.", "items": { "$ref": "CodeableReference.schema.json#/definitions/CodeableReference" }, "type": "array" }, "courseOfTherapyType": { "description": "The description of the overall pattern of the administration of the medication to the patient.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "insurance": { "description": "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.", "items": { "$ref": "Reference.schema.json#/definitions/Reference" }, "type": "array" }, "note": { "description": "Extra information about the prescription that could not be conveyed by the other attributes.", "items": { "$ref": "Annotation.schema.json#/definitions/Annotation" }, "type": "array" }, "dose": { "description": "Indicates how the medication is to be used by the patient.", "$ref": "#/definitions/MedicationRequest_Dose" }, "dispenseRequest": { "description": "Indicates the specific details for the dispense or medication supply part of a medication request (also known as a Medication Prescription or Medication Order). Note that this information is not always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.", "$ref": "#/definitions/MedicationRequest_DispenseRequest" }, "substitution": { "description": "Indicates whether or not substitution can or should be part of the dispense. In some cases, substitution must happen, in other cases substitution must not happen. This block explains the prescriber\u0027s intent. If nothing is specified substitution may be done.", "$ref": "#/definitions/MedicationRequest_Substitution" }, "eventHistory": { "description": "Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource.", "items": { "$ref": "Reference.schema.json#/definitions/Reference" }, "type": "array" } }, "type": "object", "additionalProperties": false, "required": [ "subject", "medication", "resourceType" ] }, "MedicationRequest_Dose": { "description": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element\u0027s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "renderedDosageInstruction": { "description": "The full representation of the dose of the medication included in all dosage instructions. To be used when multiple dosage instructions are included to represent complex dosing such as increasing or tapering doses.", "$ref": "#/definitions/string" }, "_renderedDosageInstruction": { "description": "Extensions for renderedDosageInstruction", "$ref": "Element.schema.json#/definitions/Element" }, "effectiveDosePeriod": { "description": "The period over which the medication is to be taken. Where there are multiple dosageInstruction lines (for example, tapering doses), this is the earliest date and the latest end date of the dosageInstructions.", "$ref": "Period.schema.json#/definitions/Period" }, "dosageInstruction": { "description": "Specific instructions for how the medication is to be used by the patient.", "items": { "$ref": "Dosage.schema.json#/definitions/Dosage" }, "type": "array" } }, "type": "object", "additionalProperties": false }, "MedicationRequest_DispenseRequest": { "description": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element\u0027s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "initialFill": { "description": "Indicates the quantity or duration for the first dispense of the medication.", "$ref": "#/definitions/MedicationRequest_InitialFill" }, "dispenseInterval": { "description": "The minimum period of time that must occur between dispenses of the medication.", "$ref": "Duration.schema.json#/definitions/Duration" }, "validityPeriod": { "description": "This indicates the validity period of a prescription (stale dating the Prescription).", "$ref": "Period.schema.json#/definitions/Period" }, "numberOfRepeatsAllowed": { "description": "An integer indicating the number of times, in addition to the original dispense, (aka refills or repeats) that the patient can receive the prescribed medication. Usage Notes: This integer does not include the original order dispense. This means that if an order indicates dispense 30 tablets plus \"3 repeats\", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets. A prescriber may explicitly say that zero refills are permitted after the initial dispense.", "$ref": "#/definitions/unsignedInt" }, "_numberOfRepeatsAllowed": { "description": "Extensions for numberOfRepeatsAllowed", "$ref": "Element.schema.json#/definitions/Element" }, "quantity": { "description": "The amount that is to be dispensed for one fill.", "$ref": "Quantity.schema.json#/definitions/Quantity" }, "expectedSupplyDuration": { "description": "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.", "$ref": "Duration.schema.json#/definitions/Duration" }, "dispenser": { "description": "Indicates the intended performing Organization that will dispense the medication as specified by the prescriber.", "$ref": "Reference.schema.json#/definitions/Reference" }, "dispenserInstruction": { "description": "Provides additional information to the dispenser, for example, counselling to be provided to the patient.", "items": { "$ref": "Annotation.schema.json#/definitions/Annotation" }, "type": "array" }, "doseAdministrationAid": { "description": "Provides information about the type of adherence packaging to be supplied for the medication dispense.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" } }, "type": "object", "additionalProperties": false }, "MedicationRequest_InitialFill": { "description": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element\u0027s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "quantity": { "description": "The amount or quantity to provide as part of the first dispense.", "$ref": "Quantity.schema.json#/definitions/Quantity" }, "duration": { "description": "The length of time that the first dispense is expected to last.", "$ref": "Duration.schema.json#/definitions/Duration" } }, "type": "object", "additionalProperties": false }, "MedicationRequest_Substitution": { "description": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element\u0027s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "allowedBoolean": { "description": "True if the prescriber allows a different drug to be dispensed from what was prescribed.", "pattern": "^true|false$", "type": "boolean" }, "_allowedBoolean": { "description": "Extensions for allowedBoolean", "$ref": "Element.schema.json#/definitions/Element" }, "allowedCodeableConcept": { "description": "True if the prescriber allows a different drug to be dispensed from what was prescribed.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "reason": { "description": "Indicates the reason for the substitution, or why substitution must or must not be performed.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" } }, "type": "object", "additionalProperties": false } } }