This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Medicationstatement.profile.xml

Profile for medicationstatement

{
  "resourceType": "Profile",
  "text": {
    "status": "generated",
    "div": "<div><pre>\r\n&lt;<a title=\"A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement\"><b>MedicationStatement</b></a> xmlns=&quot;http://hl7.org/fhir&quot;&gt; <span style=\"float: right\"><a title=\"Documentation for this format\" href=\"formats.html\"><img alt=\"doco\" src=\"help.png\"/></a></span>\r\n &lt;!-- from <a href=\"resources.html\">Resource</a>: <a href=\"extensibility.html\">extension</a>, <a href=\"extensibility.html#modifierExtension\">modifierExtension</a>, language, <a href=\"narrative.html#Narrative\">text</a>, and <a href=\"references.html#contained\">contained</a> --&gt;\r\n &lt;<a title=\"External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource.  The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event.  Particularly important if these records have to be updated (this element modifies the meaning of other elements)\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.identifier\"><span style=\"text-decoration: underline\"><b>identifier</b></span></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..*</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#Identifier\">Identifier</a></span> <span style=\"color: navy\">External Identifier</span><span style=\"color: Gray\"> --&gt;</span>&lt;/identifier&gt;\r\n &lt;<a title=\"The person or animal who is /was taking the medication.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.patient\"><b>patient</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"patient.html#Patient\">Patient</a>)</span> <span style=\"color: navy\">Who was/is taking medication</span><span style=\"color: Gray\"> --&gt;</span>&lt;/patient&gt;\r\n &lt;<a title=\"Set this to true if the record is saying that the medication was NOT taken.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.wasNotGiven\"><b>wasNotGiven</b></a> value=&quot;[<span style=\"color: darkgreen\"><a href=\"datatypes.html#boolean\">boolean</a></span>]&quot;/&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: navy\">True if medication is/was not being taken</span><span style=\"color: Gray\"> --&gt;</span>\r\n &lt;<a title=\"A code indicating why the medication was not taken.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.reasonNotGiven\"><b>reasonNotGiven</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span title=\"Inv-1: Reason not given is only permitted if wasNotGiven is true\" style=\"color: brown\"><b><img alt=\"??\" src=\"lock.png\"/> 0..*</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#CodeableConcept\">CodeableConcept</a></span> <span style=\"color: navy\"><a style=\"color: navy\" href=\"valueset-reason-medication-not-given-codes.html\">True if asserting medication was not given</a></span><span style=\"color: Gray\"> --&gt;</span>&lt;/reasonNotGiven&gt;\r\n &lt;<a title=\"The interval of time during which it is being asserted that the patient was taking the medication.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.whenGiven\"><b>whenGiven</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#Period\">Period</a></span> <span style=\"color: navy\">Over what period was medication consumed?</span><span style=\"color: Gray\"> --&gt;</span>&lt;/whenGiven&gt;\r\n &lt;<a title=\"Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.medication\"><b>medication</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"medication.html#Medication\">Medication</a>)</span> <span style=\"color: navy\">What medication was taken?</span><span style=\"color: Gray\"> --&gt;</span>&lt;/medication&gt;\r\n &lt;<a title=\"An identifier or a link to a resource that identifies a device used in administering the medication to the patient.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.device\"><b>device</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..*</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"device.html#Device\">Device</a>)</span> <span style=\"color: navy\">E.g. infusion pump</span><span style=\"color: Gray\"> --&gt;</span>&lt;/device&gt;\r\n &lt;<a title=\"Indicates how the medication is/was used by the patient.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage\"><b>dosage</b></a>&gt;  <span style=\"color: Gray\">&lt;!-- <span style=\"color: brown\"><b>0..*</b></span> Details of how medication was taken --&gt;</span>\r\n  &lt;<a title=\"The timing schedule for giving the medication to the patient.  The Schedule data type allows many different expressions, for example.  &quot;Every  8 hours&quot;; &quot;Three times a day&quot;; &quot;1/2 an hour before breakfast for 10 days from 23-Dec 2011:&quot;;  &quot;15 Oct 2013, 17 Oct 2013 and 1 Nov 2013&quot;.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage.timing\"><b>timing</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#Schedule\">Schedule</a></span> <span style=\"color: navy\">When/how often was medication taken?</span><span style=\"color: Gray\"> --&gt;</span>&lt;/timing&gt;\r\n  &lt;<a title=\"If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose.  If a CodeableConcept is present, it indicates the pre-condition for taking the Medication.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage.asNeeded_x_\"><b>asNeeded[x]</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#boolean\">boolean</a>|<a href=\"datatypes.html#CodeableConcept\">CodeableConcept</a></span> <span style=\"color: navy\">Take &quot;as needed&quot; f(or x)</span><span style=\"color: Gray\"> --&gt;</span>&lt;/asNeeded[x]&gt;\r\n  &lt;<a title=\"A coded specification of the anatomic site where the medication first enters the body.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage.site\"><b>site</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#CodeableConcept\">CodeableConcept</a></span> <span style=\"color: navy\"><a style=\"color: navy\" href=\"valueset-approach-site-codes.html\">Where on body was medication administered?</a></span><span style=\"color: Gray\"> --&gt;</span>&lt;/site&gt;\r\n  &lt;<a title=\"A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage.route\"><b>route</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#CodeableConcept\">CodeableConcept</a></span> <span style=\"color: navy\"><a style=\"color: navy\" href=\"valueset-route-codes.html\">How did the medication enter the body?</a></span><span style=\"color: Gray\"> --&gt;</span>&lt;/route&gt;\r\n  &lt;<a title=\"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.\n\nTerminologies used often pre-coordinate this term with the route and or form of administration.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage.method\"><b>method</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#CodeableConcept\">CodeableConcept</a></span> <span style=\"color: navy\"><a style=\"color: navy\" href=\"valueset-administration-method-codes.html\">Technique used to administer medication</a></span><span style=\"color: Gray\"> --&gt;</span>&lt;/method&gt;\r\n  &lt;<a title=\"The amount of therapeutic or other substance given at one administration event.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage.quantity\"><b>quantity</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#Quantity\">Quantity</a></span> <span style=\"color: navy\">Amount administered in one dose</span><span style=\"color: Gray\"> --&gt;</span>&lt;/quantity&gt;\r\n  &lt;<a title=\"Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage.rate\"><b>rate</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#Ratio\">Ratio</a></span> <span style=\"color: navy\">Dose quantity per unit of time</span><span style=\"color: Gray\"> --&gt;</span>&lt;/rate&gt;\r\n  &lt;<a title=\"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.\" class=\"dict\" href=\"medicationstatement-definitions.html#MedicationStatement.dosage.maxDosePerPeriod\"><b>maxDosePerPeriod</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#Ratio\">Ratio</a></span> <span style=\"color: navy\">\r\n      Maximum dose that was consumed per unit of time</span><span style=\"color: Gray\"> --&gt;</span>&lt;/maxDosePerPeriod&gt;\r\n &lt;/dosage&gt;\r\n&lt;/MedicationStatement&gt;\r\n</pre></div>"
  },
  "name": "medicationstatement",
  "publisher": "FHIR Project",
  "description": "Basic Profile. A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician.",
  "status": "draft",
  "date": "2014-09-30",
  "requirements": "Scope and Usage Common usage includes: \r\n\r\n* the recording of non-prescription and/or recreational drugs\r\n* the recording of an intake medication list upon admission to hospital\r\n* the summarization of a patient's \"active medications\" in a patient profile",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2"
    }
  ],
  "structure": [
    {
      "type": "MedicationStatement",
      "publish": true,
      "element": [
        {
          "path": "MedicationStatement",
          "definition": {
            "short": "Administration of medication to a patient",
            "formal": "A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Resource"
              }
            ],
            "constraint": [
              {
                "key": "1",
                "name": "Not given reason",
                "severity": "error",
                "human": "Reason not given is only permitted if wasNotGiven is true",
                "xpath": "not(exists(f:reasonNotGiven)) or f:wasNotGiven='true'"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.extension",
          "definition": {
            "short": "Additional Content defined by implementations",
            "formal": "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 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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false
          }
        },
        {
          "path": "MedicationStatement.modifierExtension",
          "definition": {
            "short": "Extensions that cannot be ignored",
            "formal": "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 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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false
          }
        },
        {
          "path": "MedicationStatement.text",
          "definition": {
            "short": "Text summary of the resource, for human interpretation",
            "formal": "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.",
            "synonym": [
              "narrative",
              "html",
              "xhtml",
              "display"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "isModifier": false
          }
        },
        {
          "path": "MedicationStatement.contained",
          "definition": {
            "short": "Contained, inline Resources",
            "formal": "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.",
            "synonym": [
              "inline resources",
              "anonymous resources",
              "contained resources"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false
          }
        },
        {
          "path": "MedicationStatement.identifier",
          "definition": {
            "short": "External Identifier",
            "formal": "External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource.  The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event.  Particularly important if these records have to be updated.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isModifier": true,
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration.id"
              },
              {
                "identity": "v2",
                "map": "RXA-25-Administered Barcode Identifier?"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.patient",
          "definition": {
            "short": "Who was/is taking medication",
            "formal": "The person or animal who is /was taking the medication.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Patient"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration->subject->Patient"
              },
              {
                "identity": "v2",
                "map": "PID-3-Patient ID List"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.wasNotGiven",
          "definition": {
            "short": "True if medication is/was not being taken",
            "formal": "Set this to true if the record is saying that the medication was NOT taken.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration.actionNegationInd"
              },
              {
                "identity": "v2",
                "map": "RXA-20-Completion Status='NA'"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.reasonNotGiven",
          "definition": {
            "short": "True if asserting medication was not given",
            "formal": "A code indicating why the medication was not taken.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": false,
            "binding": {
              "name": "MedicationAdministrationNegationReason",
              "isExtensible": true,
              "conformance": "example",
              "referenceResource": {
                "reference": "http://hl7.org/fhir/vs/reason-medication-not-given-codes"
              }
            },
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration->Reason->Observation->Value"
              },
              {
                "identity": "v2",
                "map": "RXA-9-Administration Notes:RXA-20-Completion Status='NA'"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.whenGiven",
          "definition": {
            "short": "Over what period was medication consumed?",
            "formal": "The interval of time during which it is being asserted that the patient was taking the medication.",
            "comments": "If the medication is still being taken at the time the statement is recorded, the \"end\" date will be omitted.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration.effectiveTime"
              },
              {
                "identity": "v2",
                "map": "RXA-3-Date/Time Start of Administration / RXA-4-Date/Time End of Administration"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.medication",
          "definition": {
            "short": "What medication was taken?",
            "formal": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
            "comments": "Note: do not use Medication.name to describe the medication this statement concerns. When the only available information is a text description of the medication, Medication.code.text should be used.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Medication"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration>Component>SubstanceAdministrationRequest.consumable"
              },
              {
                "identity": "v2",
                "map": "RXA-5-Administered Code"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.device",
          "definition": {
            "short": "E.g. infusion pump",
            "formal": "An identifier or a link to a resource that identifies a device used in administering the medication to the patient.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Device"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration->device->Access  OR SubstanceAdministration->device->AssignedDevice"
              },
              {
                "identity": "v2",
                "map": "PRT-10-Participation Device"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage",
          "definition": {
            "short": "Details of how medication was taken",
            "formal": "Indicates how the medication is/was used by the patient.",
            "min": 0,
            "max": "*",
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "SubstanceAdministration>Component>SubstanceAdministrationRequest"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage.extension",
          "definition": {
            "short": "Additional Content defined by implementations",
            "formal": "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 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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false
          }
        },
        {
          "path": "MedicationStatement.dosage.modifierExtension",
          "definition": {
            "short": "Extensions that cannot be ignored",
            "formal": "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 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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false
          }
        },
        {
          "path": "MedicationStatement.dosage.timing",
          "definition": {
            "short": "When/how often was medication taken?",
            "formal": "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\".",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Schedule"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".effectiveTime"
              },
              {
                "identity": "v2",
                "map": "RAS:TQ1"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage.asNeeded[x]",
          "definition": {
            "short": "Take \"as needed\" f(or x)",
            "formal": "If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose.  If a CodeableConcept is present, it indicates the pre-condition for taking the Medication.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": false,
            "binding": {
              "name": "MedicationAsNeededReason",
              "isExtensible": true,
              "conformance": "preferred",
              "description": "A coded concept identifying the pre-condition that should hold prior to consuming a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\", etc."
            },
            "mapping": [
              {
                "identity": "rim",
                "map": "boolean: .outboundRelationship[typeCode=PRCN].negationInd (inversed - so negationInd = true means asNeeded=false\n\nCodeableConcept: .outboundRelationship[typCode=PRCN].target[classCode=OBS, moodCode=EVN, isCriterionInd=true, code=\"Assertion\"].value"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage.site",
          "definition": {
            "short": "Where on body was medication administered?",
            "formal": "A coded specification of the anatomic site where the medication first enters the body.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": false,
            "binding": {
              "name": "MedicationAdministrationSite",
              "isExtensible": true,
              "conformance": "example",
              "referenceResource": {
                "reference": "http://hl7.org/fhir/vs/approach-site-codes"
              }
            },
            "mapping": [
              {
                "identity": "rim",
                "map": ".approachSiteCode"
              },
              {
                "identity": "v2",
                "map": "RXR-2-Administration Site"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage.route",
          "definition": {
            "short": "How did the medication enter the body?",
            "formal": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": false,
            "binding": {
              "name": "RouteOfAdministration",
              "isExtensible": true,
              "conformance": "example",
              "referenceResource": {
                "reference": "http://hl7.org/fhir/vs/route-codes"
              }
            },
            "mapping": [
              {
                "identity": "rim",
                "map": ".routeCode"
              },
              {
                "identity": "v2",
                "map": "RXR-1-Route"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage.method",
          "definition": {
            "short": "Technique used to administer medication",
            "formal": "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.\n\nTerminologies used often pre-coordinate this term with the route and or form of administration.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": false,
            "binding": {
              "name": "MedicationAdministrationMethod",
              "isExtensible": true,
              "conformance": "example",
              "referenceResource": {
                "reference": "http://hl7.org/fhir/vs/administration-method-codes"
              }
            },
            "mapping": [
              {
                "identity": "rim",
                "map": ".methodCode"
              },
              {
                "identity": "v2",
                "map": "RXR-4-Administration Method"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage.quantity",
          "definition": {
            "short": "Amount administered in one dose",
            "formal": "The amount of therapeutic or other substance given at one administration event.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".doseQuantity"
              },
              {
                "identity": "v2",
                "map": "RXA-6-Administered Amount / RXA-7.1-Administered Units.code / RXA-7.3-Administered Units.name of coding system"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage.rate",
          "definition": {
            "short": "Dose quantity per unit of time",
            "formal": "Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".rateQuantity"
              },
              {
                "identity": "v2",
                "map": "RXA-12-Administered Per (Time Unit)"
              }
            ]
          }
        },
        {
          "path": "MedicationStatement.dosage.maxDosePerPeriod",
          "definition": {
            "short": "Maximum dose that was consumed per unit of time",
            "formal": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".maxDoseQuantity"
              },
              {
                "identity": "v2",
                "map": "RXE-4-Give Amount - Maximum / RXE-5-Give Units"
              }
            ]
          }
        }
      ],
      "searchParam": [
        {
          "name": "_id",
          "type": "token",
          "documentation": "The logical resource id associated with the resource (must be supported by all servers)"
        },
        {
          "name": "_language",
          "type": "token",
          "documentation": "The language of the resource"
        },
        {
          "name": "device",
          "type": "reference",
          "documentation": "Return administrations with this administration device identity",
          "xpath": "f:MedicationStatement/f:device"
        },
        {
          "name": "identifier",
          "type": "token",
          "documentation": "Return administrations with this external identity",
          "xpath": "f:MedicationStatement/f:identifier"
        },
        {
          "name": "medication",
          "type": "reference",
          "documentation": "Code for medicine or text in medicine name",
          "xpath": "f:MedicationStatement/f:medication"
        },
        {
          "name": "patient",
          "type": "reference",
          "documentation": "The identity of a patient to list administrations  for",
          "xpath": "f:MedicationStatement/f:patient"
        },
        {
          "name": "when-given",
          "type": "date",
          "documentation": "Date of administration",
          "xpath": "f:MedicationStatement/f:whenGiven"
        }
      ]
    }
  ]
}