PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.qicore@3.1.0
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement
{
  "description": "Profile of MedicationStatement for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors.",
  "_filename": "StructureDefinition-qicore-medicationstatement.json",
  "package_name": "hl7.fhir.us.qicore",
  "date": "2018-08-22T00:00:00+10:00",
  "derivation": "constraint",
  "publisher": "Health Level Seven, Inc. - CQI WG",
  "fhirVersion": "3.0.1",
  "name": "QICore-MedicationStatement",
  "mapping": [ {
    "uri": "http://www.healthit.gov/quality-data-model",
    "name": "Quality Data Model",
    "identity": "qdm"
  }, {
    "uri": "http://unknown.org/Argonaut DQ DSTU2",
    "name": "Argonaut DQ DSTU2",
    "identity": "argonaut-dq-dstu2"
  }, {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Mapping",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/w5",
    "name": "W5 Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "MedicationStatement",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "3.1.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-1",
        "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
        "xpath": "not(parent::f:contained and f:text)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.text.empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
        "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()"
      }, {
        "key": "mst-1",
        "human": "Reason not taken is only permitted if Taken is No",
        "xpath": "not(exists(f:reasonNotTaken)) or f:taken/@value='n'",
        "source": "MedicationStatement",
        "severity": "error",
        "expression": "reasonNotTaken.exists().not() or (taken = 'n')"
      } ],
      "path": "MedicationStatement",
      "min": 0,
      "definition": "The US Core Medication Statement Profile is based upon the core FHIR MedicationStatement Resource and created to meet the 2015 Edition Common Clinical Data Set 'Medications' requirements.",
      "short": "US Core Medication Statement Profile",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "..Event",
        "identity": "workflow"
      }, {
        "map": "SubstanceAdministration",
        "identity": "rim"
      }, {
        "map": "clinical.medication",
        "identity": "w5"
      }, {
        "map": "MedicationStatement",
        "identity": "argonaut-dq-dstu2"
      }, {
        "map": "Medication, Active (when MedicationStatement.status=\"active\")",
        "identity": "qdm"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "MedicationStatement",
      "comment": "When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered:\rMedicationStatement.status + MedicationStatement.wasNotTaken\rStatus=Active + NotTaken=T = Not currently taking\rStatus=Completed + NotTaken=T = Not taken in the past\rStatus=Intended + NotTaken=T = No intention of taking\rStatus=Active + NotTaken=F = Taking, but not as prescribed\rStatus=Active + NotTaken=F = Taking\rStatus=Intended +NotTaken= F = Will be taking (not started)\rStatus=Completed + NotTaken=F = Taken in past\rStatus=In Error + NotTaken=N/A = In Error.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement"
      }
    }, {
      "path": "MedicationStatement.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "short": "Logical id of this artifact",
      "mapping": [ {
        "map": "id",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "id"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "MedicationStatement.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.meta",
      "min": 0,
      "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.",
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "MedicationStatement.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.implicitRules",
      "min": 0,
      "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.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "MedicationStatement.implicitRules",
      "comment": "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. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueReference": {
            "reference": "http://hl7.org/fhir/ValueSet/all-languages"
          }
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      "max": "1",
      "id": "MedicationStatement.language",
      "comment": "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      }
    }, {
      "path": "MedicationStatement.text",
      "min": 0,
      "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.",
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "MedicationStatement.text",
      "condition": [ "dom-1" ],
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      }
    }, {
      "path": "MedicationStatement.contained",
      "min": 0,
      "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.",
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "MedicationStatement.contained",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      }
    }, {
      "path": "MedicationStatement.extension",
      "min": 0,
      "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.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationStatement.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "path": "MedicationStatement.modifierExtension",
      "min": 0,
      "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.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationStatement.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      }
    }, {
      "path": "MedicationStatement.identifier",
      "min": 0,
      "definition": "External identifier - FHIR will generate its own internal identifiers (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.",
      "short": "External identifier",
      "mapping": [ {
        "map": "…identifer",
        "identity": "workflow"
      }, {
        "map": ".id",
        "identity": "rim"
      }, {
        "map": "id",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "MedicationStatement.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.identifier"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.basedOn",
      "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
      "min": 0,
      "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event.",
      "short": "Fulfils plan, proposal or order",
      "mapping": [ {
        "map": "…basedOn",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
      } ],
      "max": "*",
      "id": "MedicationStatement.basedOn",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.basedOn"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.partOf",
      "requirements": "This should not be used when indicating which resource a MedicationStatement has been derived from.  If that is the use case, then MedicationStatement.derivedFrom should be used.",
      "min": 0,
      "definition": "A larger event of which this particular event is a component or step.",
      "short": "Part of referenced event",
      "mapping": [ {
        "map": "…part of",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Procedure"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
      } ],
      "max": "*",
      "id": "MedicationStatement.partOf",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.partOf"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.context",
      "min": 0,
      "definition": "The encounter or episode of care that establishes the context for this MedicationStatement.",
      "short": "Encounter / Episode associated with MedicationStatement",
      "mapping": [ {
        "map": "…context",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
      } ],
      "max": "1",
      "id": "MedicationStatement.context",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.context"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.status",
      "min": 1,
      "definition": "A code representing the patient or other source's judgment about the state of the medication used that this statement is about.  Generally this will be active or completed.",
      "isModifier": true,
      "short": "active | completed | entered-in-error | intended | stopped | on-hold",
      "mapping": [ {
        "map": "…status",
        "identity": "workflow"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      }, {
        "map": "status",
        "identity": "w5"
      }, {
        "map": "MedicationStatement.status",
        "identity": "argonaut-dq-dstu2"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "description": "A set of codes indicating the current status of a MedicationStatement.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-statement-status"
        }
      },
      "max": "1",
      "id": "MedicationStatement.status",
      "comment": "MedicationStatement is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for MedicationStatement.status contains codes that assert the status of the use of the medication by the patient (for example, stopped or on hold) as well as codes that assert the status of the medication statement itself (for example, entered in error).\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationStatement.status"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.category",
      "min": 0,
      "definition": "Indicates where type of medication statement and where the medication is expected to be consumed or administered.",
      "short": "Type of medication usage",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value",
        "identity": "rim"
      }, {
        "map": "class",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationStatementCategory"
        } ],
        "description": "A coded concept identifying where the medication included in the medicationstatement is expected to be consumed or administered",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-statement-category"
        }
      },
      "max": "1",
      "id": "MedicationStatement.category",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.category"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.medication[x]",
      "min": 1,
      "definition": "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.",
      "short": "What medication was taken",
      "mapping": [ {
        "map": "…code",
        "identity": "workflow"
      }, {
        "map": ".participation[typeCode=CSM].role[classCode=ADMM or MANU]",
        "identity": "rim"
      }, {
        "map": "what",
        "identity": "w5"
      }, {
        "map": "MedicationStatement.medication[x]",
        "identity": "argonaut-dq-dstu2"
      }, {
        "map": "code",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "preferred",
        "description": "The set of RxNorm codes to represent medications",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes"
        }
      },
      "max": "1",
      "id": "MedicationStatement.medication[x]",
      "comment": "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.  For example if you require form or lot number, then you must reference the Medication resource. .",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationStatement.medication[x]"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.effective[x]",
      "min": 0,
      "definition": "The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the wasNotGiven element is true).",
      "short": "The date/time or interval when the medication was taken",
      "mapping": [ {
        "map": "…occurrence[x]",
        "identity": "workflow"
      }, {
        "map": ".effectiveTime",
        "identity": "rim"
      }, {
        "map": "when.done",
        "identity": "w5"
      }, {
        "map": "MedicationStatement.effective[x]",
        "identity": "argonaut-dq-dstu2"
      }, {
        "map": "relevantPeriod",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "dateTime"
      }, {
        "code": "Period"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.effective[x]",
      "comment": "This attribute reflects the period over which the patient consumed the medication and is expected to be populated on the majority of Medication Statements. If the medication is still being taken at the time the statement is recorded, the \"end\" date will be omitted.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.effective[x]"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dateAsserted",
      "min": 1,
      "definition": "The date when the medication statement was asserted by the information source.",
      "short": "When the statement was asserted?",
      "mapping": [ {
        "map": ".participation[typeCode=AUT].time",
        "identity": "rim"
      }, {
        "map": "when.recorded",
        "identity": "w5"
      }, {
        "map": "MedicationStatement.dateAsserted",
        "identity": "argonaut-dq-dstu2"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.dateAsserted",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.dateAsserted"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.informationSource",
      "min": 0,
      "definition": "The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g Claim or MedicationRequest.",
      "short": "Person or organization that provided the information about the taking of this medication",
      "mapping": [ {
        "map": ".participation[typeCode=INF].role[classCode=PAT, or codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)",
        "identity": "rim"
      }, {
        "map": "who.source",
        "identity": "w5"
      }, {
        "map": "source",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-relatedperson"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.informationSource",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.informationSource"
      }
    }, {
      "path": "MedicationStatement.subject",
      "min": 1,
      "definition": "The person, animal or group who is/was taking the medication.",
      "short": "Who is/was taking  the medication",
      "mapping": [ {
        "map": "…subject",
        "identity": "workflow"
      }, {
        "map": "PID-3-Patient ID List",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].role[classCode=PAT]",
        "identity": "rim"
      }, {
        "map": "who",
        "identity": "w5"
      }, {
        "map": "MedicationStatement.patient",
        "identity": "argonaut-dq-dstu2"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.subject",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationStatement.subject"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.derivedFrom",
      "min": 0,
      "definition": "Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.",
      "short": "Additional supporting information",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]",
        "identity": "rim"
      }, {
        "map": "NA (new element in STU3)",
        "identity": "argonaut-dq-dstu2"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "MedicationStatement.derivedFrom",
      "comment": "Likely references would be to [US Core MedicationRequest Profile](http://hl7.org/fhir/us/core/StructureDefinition-us-core-medicationrequest.html), MedicationDispense, Claim, Observation or QuestionnaireAnswers.  The most common use cases for deriving a MedicationStatement comes from creating a MedicationStatement from a MedicationRequest or from a lab observation or a claim.  it should be noted that the amount of information that is available varies from the type resource that you derive the MedicationStatement from.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.derivedFrom"
      }
    }, {
      "path": "MedicationStatement.taken",
      "min": 1,
      "definition": "Indicator of the certainty of whether the medication was taken by the patient.",
      "isModifier": true,
      "short": "y | n | unk | na",
      "mapping": [ {
        "map": "…notDone",
        "identity": "workflow"
      }, {
        "map": ".actionNegationInd",
        "identity": "rim"
      }, {
        "map": "NA (new element in STU3)",
        "identity": "argonaut-dq-dstu2"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-statement-taken"
        }
      },
      "max": "1",
      "id": "MedicationStatement.taken",
      "comment": "This element is labeled as a modifier because it indicates that the medication was not taken.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationStatement.taken"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.reasonNotTaken",
      "min": 0,
      "definition": "A code indicating why the medication was not taken.",
      "short": "True if asserting medication was not given",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason not taken\"].value",
        "identity": "rim"
      }, {
        "map": "negationRationale",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationStatementNotTakenReason"
        } ],
        "description": "A coded concept indicating the reason why the medication was not taken",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/reason-medication-not-taken-codes"
        }
      },
      "max": "*",
      "id": "MedicationStatement.reasonNotTaken",
      "condition": [ "mst-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.reasonNotTaken"
      }
    }, {
      "path": "MedicationStatement.reasonCode",
      "min": 0,
      "definition": "A reason for why the medication is being/was taken.",
      "short": "Reason for why the medication is being/was taken",
      "mapping": [ {
        "map": "…reasoneCodeableConcept",
        "identity": "workflow"
      }, {
        "map": ".reasonCode",
        "identity": "rim"
      }, {
        "map": "why",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationReason"
        } ],
        "description": "A coded concept identifying why the medication is being taken.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/condition-code"
        }
      },
      "max": "*",
      "id": "MedicationStatement.reasonCode",
      "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.reasonCode"
      }
    }, {
      "path": "MedicationStatement.reasonReference",
      "min": 0,
      "definition": "Condition or observation that supports why the medication is being/was taken.",
      "short": "Condition or observation that supports why the medication is being/was taken",
      "mapping": [ {
        "map": "…reasonReference",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason for use\"].value",
        "identity": "rim"
      }, {
        "map": "why",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Condition"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
      } ],
      "max": "*",
      "id": "MedicationStatement.reasonReference",
      "comment": "This is a reference to a condition that is the reason why the medication is being/was taken.  If only a code exists, use reasonForUseCode.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.reasonReference"
      }
    }, {
      "path": "MedicationStatement.note",
      "min": 0,
      "definition": "Provides extra information about the medication statement that is not conveyed by the other attributes.",
      "short": "Further information about the statement",
      "mapping": [ {
        "map": "…note",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "max": "*",
      "id": "MedicationStatement.note",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.note"
      }
    }, {
      "path": "MedicationStatement.dosage",
      "min": 0,
      "definition": "Indicates how the medication is/was or should be taken by the patient.",
      "short": "Details of how medication is/was taken or should be taken",
      "mapping": [ {
        "map": "refer dosageInstruction mapping",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Dosage"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "MedicationStatement.dosage",
      "comment": "The dates included in the dosage on a Medication Statement reflect the dates for a given dose.  For example, \"from November 1, 2016 to November 3, 2016, take one tablet daily and from November 4, 2016 to November 7, 2016, take two tablets daily.\"  It is expected that this specificity may only be populated where the patient brings in their labeled container or where the Medication Statement is derived from a MedicationRequest.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.dosage"
      }
    }, {
      "path": "MedicationStatement.dosage.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationStatement.dosage.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationStatement.dosage.extension",
      "min": 0,
      "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.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationStatement.dosage.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationStatement.dosage.sequence",
      "requirements": "If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent.  If the sequence number is different, then the Dosages are intended to be sequential.",
      "min": 0,
      "definition": "Indicates the order in which the dosage instructions should be applied or interpreted.",
      "short": "The order of the dosage instructions",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "integer"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.sequence",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.sequence"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.text",
      "requirements": "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,
      "definition": "Free text dosage instructions e.g. SIG.",
      "short": "Free text dosage instructions e.g. SIG",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.text",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.text"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.additionalInstruction",
      "requirements": "Additional instruction such as \"Swallow with plenty of water\" which may or may not be coded.",
      "min": 0,
      "definition": "Supplemental instruction - e.g. \"with meals\".",
      "short": "Supplemental instruction - e.g. \"with meals\"",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AdditionalInstruction"
        } ],
        "description": "A coded concept identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\".",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/additional-instruction-codes"
        }
      },
      "max": "*",
      "id": "MedicationStatement.dosage.additionalInstruction",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Dosage.additionalInstruction"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.patientInstruction",
      "min": 0,
      "definition": "Instructions in terms that are understood by the patient or consumer.",
      "short": "Patient or consumer oriented instructions",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.patientInstruction",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.patientInstruction"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.timing",
      "requirements": "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\".  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.",
      "min": 0,
      "definition": "When medication should be administered.",
      "short": "When medication should be administered",
      "mapping": [ {
        "map": ".effectiveTime",
        "identity": "rim"
      }, {
        "map": "frequency",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "Timing"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.dosage.timing",
      "comment": "This attribute may not always be populated while the Dosage.text is expected to be populated.  If both are populated, then the Dosage.text should reflect the content of the Dosage.timing.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.timing"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.asNeeded[x]",
      "min": 0,
      "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).",
      "short": "Take \"as needed\" (for x)",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=\"as needed\"].value=boolean or codable concept",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      }, {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAsNeededReason"
        } ],
        "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.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason"
        }
      },
      "max": "1",
      "id": "MedicationStatement.dosage.asNeeded[x]",
      "comment": "Can express \"as needed\" without a reason by setting the Boolean = True.  In this case the CodeableConcept is not populated.  Or you can express \"as needed\" with a reason by including the CodeableConcept.  In this case the Boolean is assumed to be True.  If you set the Boolean to False, then the dose is given according to the schedule and is not \"prn\" or \"as needed\".",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.asNeeded[x]"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.site",
      "requirements": "A coded specification of the anatomic site where the medication first enters the body.",
      "min": 0,
      "definition": "Body site to administer to.",
      "short": "Body site to administer to",
      "mapping": [ {
        "map": ".approachSiteCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAdministrationSite"
        } ],
        "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"
        }
      },
      "max": "1",
      "id": "MedicationStatement.dosage.site",
      "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [body-site-instance](extension-body-site-instance.html).  May be a summary code, or a reference to a very precise definition of the location, or both.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.site"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.route",
      "requirements": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.",
      "min": 0,
      "definition": "How drug should enter body.",
      "short": "How drug should enter body",
      "mapping": [ {
        "map": ".routeCode",
        "identity": "rim"
      }, {
        "map": "route",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "RouteOfAdministration"
        } ],
        "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"
        }
      },
      "max": "1",
      "id": "MedicationStatement.dosage.route",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.route"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.method",
      "requirements": "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  For examples, Slow Push; Deep IV.",
      "min": 0,
      "definition": "Technique for administering medication.",
      "short": "Technique for administering medication",
      "mapping": [ {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAdministrationMethod"
        } ],
        "description": "A coded concept describing the technique by which the medicine is administered.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/administration-method-codes"
        }
      },
      "max": "1",
      "id": "MedicationStatement.dosage.method",
      "comment": "Terminologies used often pre-coordinate this term with the route and or form of administration.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.method"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.dose[x]",
      "requirements": "The amount of therapeutic or other substance given at one administration event.",
      "min": 0,
      "definition": "Amount of medication per dose.",
      "short": "Amount of medication per dose",
      "mapping": [ {
        "map": ".doseQuantity",
        "identity": "rim"
      }, {
        "map": "dosage",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "Range"
      }, {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.dosage.dose[x]",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.dose[x]"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.maxDosePerPeriod",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours.",
      "min": 0,
      "definition": "Upper limit on medication per unit of time.",
      "short": "Upper limit on medication per unit of time",
      "mapping": [ {
        "map": ".maxDoseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.maxDosePerPeriod",
      "comment": "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\".",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerPeriod"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.maxDosePerAdministration",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.",
      "min": 0,
      "definition": "Upper limit on medication per administration.",
      "short": "Upper limit on medication per administration",
      "mapping": [ {
        "map": "not supported",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.maxDosePerAdministration",
      "comment": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerAdministration"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.maxDosePerLifetime",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.",
      "min": 0,
      "definition": "Upper limit on medication per lifetime of the patient.",
      "short": "Upper limit on medication per lifetime of the patient",
      "mapping": [ {
        "map": "not supported",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.maxDosePerLifetime",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerLifetime"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.rate[x]",
      "requirements": "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.   Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.",
      "min": 0,
      "definition": "Amount of medication per unit of time.",
      "short": "Amount of medication per unit of time",
      "mapping": [ {
        "map": ".rateQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      }, {
        "code": "Range"
      }, {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.rate[x]",
      "comment": "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 MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.rate[x]"
      },
      "isSummary": true
    } ]
  },
  "status": "draft",
  "id": "2656f5c4-7314-47dc-85ff-24d4d73f3857",
  "kind": "resource",
  "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement",
  "version": "3.1.0",
  "differential": {
    "element": [ {
      "id": "MedicationStatement",
      "path": "MedicationStatement",
      "mapping": [ {
        "map": "Medication, Active (when MedicationStatement.status=\"active\")",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationStatement.id",
      "path": "MedicationStatement.id",
      "mapping": [ {
        "map": "id",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationStatement.status",
      "path": "MedicationStatement.status",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.medication[x]",
      "path": "MedicationStatement.medication[x]",
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"
      } ],
      "binding": {
        "strength": "preferred",
        "description": "The set of RxNorm codes to represent medications",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes"
        }
      },
      "mapping": [ {
        "map": "code",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.effective[x]",
      "path": "MedicationStatement.effective[x]",
      "mapping": [ {
        "map": "relevantPeriod",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.dateAsserted",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.dateAsserted",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.informationSource",
      "path": "MedicationStatement.informationSource",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-relatedperson"
      } ],
      "mapping": [ {
        "map": "source",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.subject",
      "path": "MedicationStatement.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.derivedFrom",
      "path": "MedicationStatement.derivedFrom",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.taken",
      "path": "MedicationStatement.taken",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.reasonNotTaken",
      "path": "MedicationStatement.reasonNotTaken",
      "mapping": [ {
        "map": "negationRationale",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationStatement.reasonCode",
      "path": "MedicationStatement.reasonCode",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationStatement.dosage",
      "path": "MedicationStatement.dosage",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationStatement.dosage.timing",
      "path": "MedicationStatement.dosage.timing",
      "mapping": [ {
        "map": "frequency",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.dosage.site",
      "path": "MedicationStatement.dosage.site",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationStatement.dosage.route",
      "path": "MedicationStatement.dosage.route",
      "mapping": [ {
        "map": "route",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationStatement.dosage.dose[x]",
      "path": "MedicationStatement.dosage.dose[x]",
      "mapping": [ {
        "map": "dosage",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": true
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/special/committees/CQI",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationstatement"
}