json_schema: {"schema": "http://json-schema.org/draft-04/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": {"allOf": [{"$ref": "DomainResource#/definitions/DomainResource"}, {"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", "type": "string", "enum": ["MedicationRequest"]}, "identifier": {"description": "This records 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. For example a re-imbursement system might issue its own id for each prescription that is created.  This is particularly important where FHIR only provides part of an entire workflow process where records must be tracked through an entire system.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Identifier#/definitions/Identifier"}}, "definition": {"description": "Protocol or definition followed by this request.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}}, "basedOn": {"description": "A plan or request that is fulfilled in whole or in part by this medication request.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Reference#/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": "http://hl7.org/fhir/json-schema/Identifier#/definitions/Identifier"}, "status": {"description": "A code specifying the current state of the order.  Generally this will be active or completed state.", "enum": ["active", "on-hold", "cancelled", "completed", "entered-in-error", "stopped", "draft", "unknown"], "type": "string"}, "_status": {"description": "Extensions for status", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element"}, "intent": {"description": "Whether the request is a proposal, plan, or an original order.", "enum": ["proposal", "plan", "order", "instance-order"], "type": "string"}, "_intent": {"description": "Extensions for intent", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element"}, "category": {"description": "Indicates the type of medication order and where the medication is expected to be consumed or administered.", "$ref": "http://hl7.org/fhir/json-schema/CodeableConcept#/definitions/CodeableConcept"}, "priority": {"description": "Indicates how quickly the Medication Request should be addressed with respect to other requests.", "enum": ["routine", "urgent", "stat", "asap"], "type": "string"}, "_priority": {"description": "Extensions for priority", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element"}, "medicationCodeableConcept": {"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": "http://hl7.org/fhir/json-schema/CodeableConcept#/definitions/CodeableConcept"}, "medicationReference": {"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": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}, "subject": {"description": "A link to a resource representing the person or set of individuals to whom the medication will be given.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}, "context": {"description": "A link to an encounter, or episode of care, that identifies the particular occurrence or set occurrences of contact between patient and health care provider.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}, "supportingInformation": {"description": "Include additional information (for example, patient height and weight) that supports the ordering of the medication.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}}, "authoredOn": {"description": "The date (and perhaps time) when the prescription was initially written or authored on.", "type": "string", "pattern": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"}, "_authoredOn": {"description": "Extensions for authoredOn", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element"}, "requester": {"description": "The individual, organization or device that initiated the request and has responsibility for its activation.", "$ref": "#/definitions/MedicationRequest_Requester"}, "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": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}, "reasonCode": {"description": "The reason or the indication for ordering the medication.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/CodeableConcept#/definitions/CodeableConcept"}}, "reasonReference": {"description": "Condition or observation that supports why the medication was ordered.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}}, "note": {"description": "Extra information about the prescription that could not be conveyed by the other attributes.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Annotation#/definitions/Annotation"}}, "dosageInstruction": {"description": "Indicates how the medication is to be used by the patient.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Dosage#/definitions/Dosage"}}, "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's intent. If nothing is specified substitution may be done.", "$ref": "#/definitions/MedicationRequest_Substitution"}, "priorPrescription": {"description": "A link to a resource representing an earlier order related order or prescription.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}, "detectedIssue": {"description": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}}, "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.", "type": "array", "items": {"$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}}}, "required": ["subject", "resourceType"]}]}, "MedicationRequest_Requester": {"allOf": [{"$ref": "BackboneElement#/definitions/BackboneElement"}, {"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": {"agent": {"description": "The healthcare professional responsible for authorizing the initial prescription.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}, "onBehalfOf": {"description": "The organization the device or practitioner was acting on behalf of.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}}, "required": ["agent"]}]}, "MedicationRequest_DispenseRequest": {"allOf": [{"$ref": "BackboneElement#/definitions/BackboneElement"}, {"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": {"validityPeriod": {"description": "This indicates the validity period of a prescription (stale dating the Prescription).", "$ref": "http://hl7.org/fhir/json-schema/Period#/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.", "type": "number", "pattern": "[1-9][0-9]*"}, "_numberOfRepeatsAllowed": {"description": "Extensions for numberOfRepeatsAllowed", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element"}, "quantity": {"description": "The amount that is to be dispensed for one fill.", "$ref": "http://hl7.org/fhir/json-schema/Quantity#/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": "http://hl7.org/fhir/json-schema/Duration#/definitions/Duration"}, "performer": {"description": "Indicates the intended dispensing Organization specified by the prescriber.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"}}}]}, "MedicationRequest_Substitution": {"allOf": [{"$ref": "BackboneElement#/definitions/BackboneElement"}, {"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": {"allowed": {"description": "True if the prescriber allows a different drug to be dispensed from what was prescribed.", "type": "boolean"}, "_allowed": {"description": "Extensions for allowed", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element"}, "reason": {"description": "Indicates the reason for the substitution, or why substitution must or must not be performed.", "$ref": "http://hl7.org/fhir/json-schema/CodeableConcept#/definitions/CodeableConcept"}}}]}}}