DSTU2 QA Preview

This page is part of the FHIR Specification (v1.0.0: DSTU 2 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Medicationorder.profile.json

Raw JSON (canonical form)

StructureDefinition for medicationorder

{
  "resourceType": "StructureDefinition",
  "id": "MedicationOrder",
  "meta": {
    "lastUpdated": "2015-09-01T14:38:48.206+10:00"
  },
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/MedicationOrder",
  "name": "MedicationOrder",
  "status": "draft",
  "publisher": "Health Level Seven International (Pharmacy)",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://www.hl7.org/Special/committees/medication/index.cfm"
        }
      ]
    }
  ],
  "date": "2015-09-01T14:38:48+10:00",
  "description": "Base StructureDefinition for MedicationOrder Resource",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "MedicationOrder",
        "short": "Prescription of medication to for patient",
        "definition": "An order for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationOrder\" rather than \"MedicationPrescription\" to generalize the use across inpatient and outpatient settings as well as for care plans, etc.",
        "alias": [
          "Prescription"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "CombinedMedicationRequest"
          },
          {
            "identity": "w5",
            "map": "clinical.medication"
          }
        ]
      },
      {
        "path": "MedicationOrder.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes.",
        "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "isSummary": true
      },
      {
        "path": "MedicationOrder.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Meta"
          }
        ],
        "isSummary": true
      },
      {
        "path": "MedicationOrder.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comments": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true,
        "isSummary": true
      },
      {
        "path": "MedicationOrder.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comments": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "A human language",
          "valueSetUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "MedicationOrder.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
        "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "path": "MedicationOrder.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comments": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "MedicationOrder.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order 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.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "MedicationOrder.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "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. Usually modifier elements provide negation or qualification. In order 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.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "MedicationOrder.identifier",
        "short": "External identifier",
        "definition": "External identifier - one that would be used by another non-FHIR system - 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 erntire workflow process where records have to be tracked through an entire system.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
          },
          {
            "identity": "rim",
            "map": "id"
          },
          {
            "identity": "w5",
            "map": "id"
          }
        ]
      },
      {
        "path": "MedicationOrder.dateWritten",
        "short": "When prescription was authorized",
        "definition": "The date (and perhaps time) when the prescription was written.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"
          },
          {
            "identity": "rim",
            "map": "author.time"
          },
          {
            "identity": "w5",
            "map": "when.recorded"
          }
        ]
      },
      {
        "path": "MedicationOrder.status",
        "short": "active | on-hold | completed | entered-in-error | stopped | draft",
        "definition": "A code specifying the state of the order.  Generally this will be active or completed state.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "A code specifying the state of the prescribing event. Describes the lifecycle of the prescription.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/medication-order-status"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "statusCode"
          },
          {
            "identity": "w5",
            "map": "status"
          }
        ]
      },
      {
        "path": "MedicationOrder.dateEnded",
        "short": "When prescription was stopped",
        "definition": "The date (and perhaps time) when the prescription was stopped.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "path": "MedicationOrder.reasonEnded",
        "short": "Why prescription was stopped",
        "definition": "The reason why the prescription was stopped, if it was.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true
      },
      {
        "path": "MedicationOrder.patient",
        "short": "Who prescription is for",
        "definition": "A link to a resource representing the person to whom the medication will be given.",
        "comments": "SubstanceAdministration->subject->Patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3-Patient ID List"
          },
          {
            "identity": "rim",
            "map": "subject.role"
          },
          {
            "identity": "w5",
            "map": "who.focus"
          }
        ]
      },
      {
        "path": "MedicationOrder.prescriber",
        "short": "Who ordered the medication(s)",
        "definition": "The healthcare professional responsible for authorizing the prescription.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)"
          },
          {
            "identity": "rim",
            "map": "author.role"
          },
          {
            "identity": "w5",
            "map": "who.actor"
          }
        ]
      },
      {
        "path": "MedicationOrder.encounter",
        "short": "Created during encounter / admission / stay",
        "definition": "A link to a resource that identifies the particular occurrence of contact between patient and health care provider.",
        "comments": "SubstanceAdministration->component->EncounterEvent.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PV1-19-Visit Number"
          },
          {
            "identity": "rim",
            "map": "componentOf.patientEncounter"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "MedicationOrder.reason[x]",
        "short": "Reason or indication for writing the prescription",
        "definition": "Can be the reason or the indication for writing the prescription.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Condition"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "ORC-16-Order Control Code Reason"
          },
          {
            "identity": "rim",
            "map": "reason.observation or reason.observation[code=ASSERTION].value"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "path": "MedicationOrder.note",
        "short": "Information about the prescription",
        "definition": "Extra information about the prescription that could not be conveyed by the other attributes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true
      },
      {
        "path": "MedicationOrder.medication[x]",
        "short": "Medication to be taken",
        "definition": "Identifies the medication being administered. 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.",
        "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the prescribed medication. When the only available information is a text description of the medication, Medication.code.text should be used.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Medication"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": "consumable.administrableMedication"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction",
        "short": "How medication should be taken",
        "definition": "Indicates how the medication is to be used by the patient.",
        "comments": "When the dose or rate is intended to change over the entire administration period, eg. Tapering dose prescriptions, multiple instances of dosage instructions will need to be supplied to convey the different doses/rates. Another common example in institutional settings is 'titration' of an IV medication dose to maintain a specific stated hemodynamic value or range e.g. durg x to be administered to maintain AM (arterial mean) greater than 65.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "component.substanceAdministrationRequest"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "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 that contains it. Usually modifier elements provide negation or qualification. In order 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.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.text",
        "short": "Dosage instructions expressed as text",
        "definition": "Free text dosage instructions can be used for cases where the instructions are too complex to code.  The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated.  If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction"
          },
          {
            "identity": "rim",
            "map": "text"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.additionalInstructions",
        "short": "Supplemental instructions - e.g. \"with meals\"",
        "definition": "Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction ?"
          },
          {
            "identity": "rim",
            "map": "component.substanceAdministrationRequest.text"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.timing",
        "short": "When medication should be administered",
        "definition": "The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".  This attribute may not always be populated while the DosageInstruction.text is expected to be populated.  If both are populated, then the DosageInstruction.text should reflect the content of the Dosage.timing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Timing"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RDS:TQ1"
          },
          {
            "identity": "rim",
            "map": "effectiveTime"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.asNeeded[x]",
        "short": "Take \"as needed\" (for x)",
        "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).  \n\nSpecifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          },
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.site[x]",
        "short": "Body site to administer to",
        "definition": "A coded specification of the anatomic site where the medication first enters the body.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/BodySite"
            ]
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "A coded concept describing the site location the medicine enters into or onto the body",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXR-2-Administration Site"
          },
          {
            "identity": "rim",
            "map": "approachSiteCode"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.route",
        "short": "How drug should enter body",
        "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/route-codes"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXR-1-Route"
          },
          {
            "identity": "rim",
            "map": "routeCode"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.method",
        "short": "Technique for administering medication",
        "definition": "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  Examples:  Slow Push; Deep IV.  Terminologies used often pre-coordinate this term with the route and or form of administration.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "A coded concept describing the technique by which the medicine is administered"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXR-4-Administration Method"
          },
          {
            "identity": "rim",
            "map": "methodCode"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.dose[x]",
        "short": "Amount of medication per dose",
        "definition": "The amount of therapeutic or other substance given at one administration event.",
        "comments": "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug xyz. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Range"
          },
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-23-Give Rate Amount / RXE-24.1-Give Rate Units.code / RXE-24.3-Give Rate Units.name of coding system"
          },
          {
            "identity": "rim",
            "map": "doseQuantity"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.rate[x]",
        "short": "Amount of medication per unit of time",
        "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
        "comments": "It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationOrder with an updated rate, or captured with a new MedicationOrder with the new rate.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Ratio"
          },
          {
            "code": "Range"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-22-Give Per (Time Unit)"
          },
          {
            "identity": "rim",
            "map": "rateQuantity"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.maxDosePerPeriod",
        "short": "Upper limit on medication per unit of time",
        "definition": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours.",
        "comments": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example \"2 tablets every 4 hours to a maximum of 8/day\".",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Ratio"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-4-Give Amount - Maximum / RXE-5-Give Units"
          },
          {
            "identity": "rim",
            "map": "maxDoseQuantity"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest",
        "short": "Medication supply authorization",
        "definition": "Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription).  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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "component.supplyEvent"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "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 that contains it. Usually modifier elements provide negation or qualification. In order 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.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.medication[x]",
        "short": "Product to be supplied",
        "definition": "Identifies the medication being administered. 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.",
        "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Medication"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": "consumable.role"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.validityPeriod",
        "short": "Time period supply is authorized for",
        "definition": "Design Comments: This indicates the validity period of a prescription (stale dating the Prescription)  It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations.  Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXD-3-Date/Time Dispensed ? / RXD-19-Substance Expiration Date"
          },
          {
            "identity": "rim",
            "map": "effectiveTime"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.numberOfRepeatsAllowed",
        "short": "# of refills authorized",
        "definition": "An integer indicating the number of additional times (aka refills or repeats) 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.",
        "comments": "If displaying \"number of authorized refills\", subtract 1 from this number.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-12-Number of Refills"
          },
          {
            "identity": "rim",
            "map": "repeatNumber"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.quantity",
        "short": "Amount of medication to supply per dispense",
        "definition": "The amount that is to be dispensed for one fill.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"
          },
          {
            "identity": "rim",
            "map": "quantity"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.expectedSupplyDuration",
        "short": "Days supply per dispense",
        "definition": "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.  In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Duration"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "expectedUseTime"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution",
        "short": "Any restrictions on medication substitution?",
        "definition": "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, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "subjectOf.substitutionPersmission"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "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 that contains it. Usually modifier elements provide negation or qualification. In order 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.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution.type",
        "short": "generic | formulary +",
        "definition": "A code signifying whether a different drug should be dispensed from what was prescribed.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status?"
          },
          {
            "identity": "rim",
            "map": "code"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution.reason",
        "short": "Why should substitution (not) be made",
        "definition": "Indicates the reason for the substitution, or why substitution must or must not be performed.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "reasonCode"
          }
        ]
      },
      {
        "path": "MedicationOrder.priorPrescription",
        "short": "An order/prescription that this supersedes",
        "definition": "A link to a resource representing an earlier order or prescription that this order supersedes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
            ]
          }
        ],
        "isSummary": true
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "MedicationOrder",
        "short": "Prescription of medication to for patient",
        "definition": "An order for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationOrder\" rather than \"MedicationPrescription\" to generalize the use across inpatient and outpatient settings as well as for care plans, etc.",
        "alias": [
          "Prescription"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "CombinedMedicationRequest"
          },
          {
            "identity": "w5",
            "map": "clinical.medication"
          }
        ]
      },
      {
        "path": "MedicationOrder.identifier",
        "short": "External identifier",
        "definition": "External identifier - one that would be used by another non-FHIR system - 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 erntire workflow process where records have to be tracked through an entire system.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
          },
          {
            "identity": "rim",
            "map": "id"
          },
          {
            "identity": "w5",
            "map": "id"
          }
        ]
      },
      {
        "path": "MedicationOrder.dateWritten",
        "short": "When prescription was authorized",
        "definition": "The date (and perhaps time) when the prescription was written.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"
          },
          {
            "identity": "rim",
            "map": "author.time"
          },
          {
            "identity": "w5",
            "map": "when.recorded"
          }
        ]
      },
      {
        "path": "MedicationOrder.status",
        "short": "active | on-hold | completed | entered-in-error | stopped | draft",
        "definition": "A code specifying the state of the order.  Generally this will be active or completed state.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "A code specifying the state of the prescribing event. Describes the lifecycle of the prescription.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/medication-order-status"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "statusCode"
          },
          {
            "identity": "w5",
            "map": "status"
          }
        ]
      },
      {
        "path": "MedicationOrder.dateEnded",
        "short": "When prescription was stopped",
        "definition": "The date (and perhaps time) when the prescription was stopped.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "path": "MedicationOrder.reasonEnded",
        "short": "Why prescription was stopped",
        "definition": "The reason why the prescription was stopped, if it was.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true
      },
      {
        "path": "MedicationOrder.patient",
        "short": "Who prescription is for",
        "definition": "A link to a resource representing the person to whom the medication will be given.",
        "comments": "SubstanceAdministration->subject->Patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3-Patient ID List"
          },
          {
            "identity": "rim",
            "map": "subject.role"
          },
          {
            "identity": "w5",
            "map": "who.focus"
          }
        ]
      },
      {
        "path": "MedicationOrder.prescriber",
        "short": "Who ordered the medication(s)",
        "definition": "The healthcare professional responsible for authorizing the prescription.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)"
          },
          {
            "identity": "rim",
            "map": "author.role"
          },
          {
            "identity": "w5",
            "map": "who.actor"
          }
        ]
      },
      {
        "path": "MedicationOrder.encounter",
        "short": "Created during encounter / admission / stay",
        "definition": "A link to a resource that identifies the particular occurrence of contact between patient and health care provider.",
        "comments": "SubstanceAdministration->component->EncounterEvent.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PV1-19-Visit Number"
          },
          {
            "identity": "rim",
            "map": "componentOf.patientEncounter"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "MedicationOrder.reason[x]",
        "short": "Reason or indication for writing the prescription",
        "definition": "Can be the reason or the indication for writing the prescription.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Condition"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "ORC-16-Order Control Code Reason"
          },
          {
            "identity": "rim",
            "map": "reason.observation or reason.observation[code=ASSERTION].value"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "path": "MedicationOrder.note",
        "short": "Information about the prescription",
        "definition": "Extra information about the prescription that could not be conveyed by the other attributes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true
      },
      {
        "path": "MedicationOrder.medication[x]",
        "short": "Medication to be taken",
        "definition": "Identifies the medication being administered. 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.",
        "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the prescribed medication. When the only available information is a text description of the medication, Medication.code.text should be used.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Medication"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": "consumable.administrableMedication"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction",
        "short": "How medication should be taken",
        "definition": "Indicates how the medication is to be used by the patient.",
        "comments": "When the dose or rate is intended to change over the entire administration period, eg. Tapering dose prescriptions, multiple instances of dosage instructions will need to be supplied to convey the different doses/rates. Another common example in institutional settings is 'titration' of an IV medication dose to maintain a specific stated hemodynamic value or range e.g. durg x to be administered to maintain AM (arterial mean) greater than 65.",
        "min": 0,
        "max": "*",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "component.substanceAdministrationRequest"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.text",
        "short": "Dosage instructions expressed as text",
        "definition": "Free text dosage instructions can be used for cases where the instructions are too complex to code.  The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated.  If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction"
          },
          {
            "identity": "rim",
            "map": "text"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.additionalInstructions",
        "short": "Supplemental instructions - e.g. \"with meals\"",
        "definition": "Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction ?"
          },
          {
            "identity": "rim",
            "map": "component.substanceAdministrationRequest.text"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.timing",
        "short": "When medication should be administered",
        "definition": "The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".  This attribute may not always be populated while the DosageInstruction.text is expected to be populated.  If both are populated, then the DosageInstruction.text should reflect the content of the Dosage.timing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Timing"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RDS:TQ1"
          },
          {
            "identity": "rim",
            "map": "effectiveTime"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.asNeeded[x]",
        "short": "Take \"as needed\" (for x)",
        "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).  \n\nSpecifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          },
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.site[x]",
        "short": "Body site to administer to",
        "definition": "A coded specification of the anatomic site where the medication first enters the body.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/BodySite"
            ]
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "A coded concept describing the site location the medicine enters into or onto the body",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXR-2-Administration Site"
          },
          {
            "identity": "rim",
            "map": "approachSiteCode"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.route",
        "short": "How drug should enter body",
        "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/route-codes"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXR-1-Route"
          },
          {
            "identity": "rim",
            "map": "routeCode"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.method",
        "short": "Technique for administering medication",
        "definition": "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  Examples:  Slow Push; Deep IV.  Terminologies used often pre-coordinate this term with the route and or form of administration.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "A coded concept describing the technique by which the medicine is administered"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXR-4-Administration Method"
          },
          {
            "identity": "rim",
            "map": "methodCode"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.dose[x]",
        "short": "Amount of medication per dose",
        "definition": "The amount of therapeutic or other substance given at one administration event.",
        "comments": "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug xyz. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Range"
          },
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-23-Give Rate Amount / RXE-24.1-Give Rate Units.code / RXE-24.3-Give Rate Units.name of coding system"
          },
          {
            "identity": "rim",
            "map": "doseQuantity"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.rate[x]",
        "short": "Amount of medication per unit of time",
        "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
        "comments": "It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationOrder with an updated rate, or captured with a new MedicationOrder with the new rate.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Ratio"
          },
          {
            "code": "Range"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-22-Give Per (Time Unit)"
          },
          {
            "identity": "rim",
            "map": "rateQuantity"
          }
        ]
      },
      {
        "path": "MedicationOrder.dosageInstruction.maxDosePerPeriod",
        "short": "Upper limit on medication per unit of time",
        "definition": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours.",
        "comments": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example \"2 tablets every 4 hours to a maximum of 8/day\".",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Ratio"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-4-Give Amount - Maximum / RXE-5-Give Units"
          },
          {
            "identity": "rim",
            "map": "maxDoseQuantity"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest",
        "short": "Medication supply authorization",
        "definition": "Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription).  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.",
        "min": 0,
        "max": "1",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "component.supplyEvent"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.medication[x]",
        "short": "Product to be supplied",
        "definition": "Identifies the medication being administered. 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.",
        "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Medication"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": "consumable.role"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.validityPeriod",
        "short": "Time period supply is authorized for",
        "definition": "Design Comments: This indicates the validity period of a prescription (stale dating the Prescription)  It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations.  Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXD-3-Date/Time Dispensed ? / RXD-19-Substance Expiration Date"
          },
          {
            "identity": "rim",
            "map": "effectiveTime"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.numberOfRepeatsAllowed",
        "short": "# of refills authorized",
        "definition": "An integer indicating the number of additional times (aka refills or repeats) 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.",
        "comments": "If displaying \"number of authorized refills\", subtract 1 from this number.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-12-Number of Refills"
          },
          {
            "identity": "rim",
            "map": "repeatNumber"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.quantity",
        "short": "Amount of medication to supply per dispense",
        "definition": "The amount that is to be dispensed for one fill.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"
          },
          {
            "identity": "rim",
            "map": "quantity"
          }
        ]
      },
      {
        "path": "MedicationOrder.dispenseRequest.expectedSupplyDuration",
        "short": "Days supply per dispense",
        "definition": "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.  In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Duration"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "expectedUseTime"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution",
        "short": "Any restrictions on medication substitution?",
        "definition": "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, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done.",
        "min": 0,
        "max": "1",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "subjectOf.substitutionPersmission"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution.type",
        "short": "generic | formulary +",
        "definition": "A code signifying whether a different drug should be dispensed from what was prescribed.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status?"
          },
          {
            "identity": "rim",
            "map": "code"
          }
        ]
      },
      {
        "path": "MedicationOrder.substitution.reason",
        "short": "Why should substitution (not) be made",
        "definition": "Indicates the reason for the substitution, or why substitution must or must not be performed.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "reasonCode"
          }
        ]
      },
      {
        "path": "MedicationOrder.priorPrescription",
        "short": "An order/prescription that this supersedes",
        "definition": "A link to a resource representing an earlier order or prescription that this order supersedes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
            ]
          }
        ],
        "isSummary": true
      }
    ]
  }
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.