us-core-medicationstatement
type: StructureDefinition
node role: treeRoot
resource.id:
  value: us-core-medicationstatement
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Name Flags Card. Type Description & Constraints MedicationStatement 0..* US Core Medication Statement Profile status S 1..1 code Binding: MedicationStatementStatus (required) medication[x] S 1..1 CodeableConcept, Reference(US Core Medication Profile) Binding: Medication Clinical Drug (RxNorm) (extensible) effective[x] S 0..1 dateTime, Period dateAsserted S 1..1 dateTime subject S 1..1 Reference(US Core Patient Profile) derivedFrom S 0..* Reference(Resource) taken S 1..1 code Binding: MedicationStatementTaken (required) Documentation for this format
structure definition.url:
  value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationstatement
structure definition.version:
  value: 1.0.1
structure definition.name:
  value: US Core MedicationStatement Profile
structure definition.status:
  value: draft
structure definition.date:
  value: 2016-08-01T00:00:00+10:00
structure definition.publisher:
  value: HL7 US Realm Steering Committee
structure definition.contact:
  index: 0
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: http://www.healthit.gov
structure definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: US
    coding.display:
      value: United States Minor Outlying Islands (the)
structure definition.fhir version:
  value: 3.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: argonaut-dq-dstu2
  structure definition.mapping.uri:
    value: http://unknown.org/Argonaut DQ DSTU2
  structure definition.mapping.name:
    value: Argonaut DQ DSTU2
structure definition.mapping:
  index: 1
  structure definition.mapping.identity:
    value: workflow
  structure definition.mapping.uri:
    value: http://hl7.org/fhir/workflow
  structure definition.mapping.name:
    value: Workflow Mapping
structure definition.mapping:
  index: 2
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.mapping:
  index: 3
  structure definition.mapping.identity:
    value: w5
  structure definition.mapping.uri:
    value: http://hl7.org/fhir/w5
  structure definition.mapping.name:
    value: W5 Mapping
structure definition.mapping:
  index: 4
  structure definition.mapping.identity:
    value: v2
  structure definition.mapping.uri:
    value: http://hl7.org/v2
  structure definition.mapping.name:
    value: HL7 v2 Mapping
structure definition.kind:
  value: resource
structure definition.abstract:
  value: false
structure definition.type:
  value: MedicationStatement
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/MedicationStatement
structure definition.derivation:
  value: constraint
structure definition.snapshot:
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: MedicationStatement
    element definition.path:
      value: MedicationStatement
    element definition.short:
      value: US Core Medication Statement Profile
    element definition.definition:
      value: 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.
    element definition.comment:
      value: When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered: MedicationStatement.status + MedicationStatement.wasNotTaken Status=Active + NotTaken=T = Not currently taking Status=Completed + NotTaken=T = Not taken in the past Status=Intended + NotTaken=T = No intention of taking Status=Active + NotTaken=F = Taking, but not as prescribed Status=Active + NotTaken=F = Taking Status=Intended +NotTaken= F = Will be taking (not started) Status=Completed + NotTaken=F = Taken in past Status=In Error + NotTaken=N/A = In Error.
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: MedicationStatement
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.constraint:
      index: 0
      element definition.constraint.key:
        value: dom-2
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      element definition.constraint.expression:
        value: contained.contained.empty()
      element definition.constraint.xpath:
        value: not(parent::f:contained and f:contained)
      element definition.constraint.source:
        value: DomainResource
    element definition.constraint:
      index: 1
      element definition.constraint.key:
        value: dom-1
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL NOT contain any narrative
      element definition.constraint.expression:
        value: contained.text.empty()
      element definition.constraint.xpath:
        value: not(parent::f:contained and f:text)
      element definition.constraint.source:
        value: DomainResource
    element definition.constraint:
      index: 2
      element definition.constraint.key:
        value: dom-4
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      element definition.constraint.expression:
        value: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      element definition.constraint.xpath:
        value: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      element definition.constraint.source:
        value: DomainResource
    element definition.constraint:
      index: 3
      element definition.constraint.key:
        value: dom-3
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
      element definition.constraint.expression:
        value: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
      element definition.constraint.xpath:
        value: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))
      element definition.constraint.source:
        value: DomainResource
    element definition.constraint:
      index: 4
      element definition.constraint.key:
        value: mst-1
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: Reason not taken is only permitted if Taken is No
      element definition.constraint.expression:
        value: reasonNotTaken.exists().not() or (taken = 'n')
      element definition.constraint.xpath:
        value: not(exists(f:reasonNotTaken)) or f:taken/@value='n'
      element definition.constraint.source:
        value: MedicationStatement
    element definition.must support:
      value: false
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: Entity. Role, or Act
    element definition.mapping:
      index: 1
      element definition.mapping.identity:
        value: workflow
      element definition.mapping.map:
        value: ..Event
    element definition.mapping:
      index: 2
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: SubstanceAdministration

index: 3
element definition.mapping.identity:
  value: w5
element definition.mapping.map:
  value: clinical.medication

index: 4
element definition.mapping.identity:
  value: argonaut-dq-dstu2
element definition.mapping.map:
  value: MedicationStatement

index: 1
element.id:
  value: MedicationStatement.id
element definition.path:
  value: MedicationStatement.id
element definition.short:
  value: Logical id of this artifact
element definition.definition:
  value: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
element definition.comment:
  value: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: id
element definition.is summary:
  value: true

index: 2
element.id:
  value: MedicationStatement.meta
element definition.path:
  value: MedicationStatement.meta
element definition.short:
  value: Metadata about the resource
element definition.definition:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.meta
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Meta
element definition.is summary:
  value: true

index: 3
element.id:
  value: MedicationStatement.implicitRules
element definition.path:
  value: MedicationStatement.implicitRules
element definition.short:
  value: A set of rules under which this content was created
element definition.definition:
  value: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
element definition.comment:
  value: 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. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.implicitRules
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
element definition.is modifier:
  value: true
element definition.is summary:
  value: true

index: 4
element.id:
  value: MedicationStatement.language
element definition.path:
  value: MedicationStatement.language
element definition.short:
  value: Language of the resource content
element definition.definition:
  value: The base language in which the resource is written.
element definition.comment:
  value: 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).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.language
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    extension.value reference:
      link: http://hl7.org/fhir/ValueSet/all-languages
      reference.reference:
        value: http://hl7.org/fhir/ValueSet/all-languages
  element.extension:
    index: 1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: Language
  element.extension:
    index: 2
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    extension.value boolean:
      value: true
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: A human language.
  element definition.binding.value set reference:
    link: http://hl7.org/fhir/ValueSet/languages
    reference.reference:
      value: http://hl7.org/fhir/ValueSet/languages

index: 5
element.id:
  value: MedicationStatement.text
element definition.path:
  value: MedicationStatement.text
element definition.short:
  value: Text summary of the resource, for human interpretation
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: narrative
  index: 0
element definition.alias:
  value: html
  index: 1
element definition.alias:
  value: xhtml
  index: 2
element definition.alias:
  value: display
  index: 3
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Narrative
element definition.condition:
  value: dom-1
  index: 0
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Act.text?

index: 6
element.id:
  value: MedicationStatement.contained
element definition.path:
  value: MedicationStatement.contained
element definition.short:
  value: Contained, inline Resources
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: inline resources
  index: 0
element definition.alias:
  value: anonymous resources
  index: 1
element definition.alias:
  value: contained resources
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.contained
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Resource
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 7
element.id:
  value: MedicationStatement.extension
element definition.path:
  value: MedicationStatement.extension
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 8
element.id:
  value: MedicationStatement.modifierExtension
element definition.path:
  value: MedicationStatement.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.is modifier:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 9
element.id:
  value: MedicationStatement.identifier
element definition.path:
  value: MedicationStatement.identifier
element definition.short:
  value: External identifier
element definition.definition:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.identifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Identifier
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …identifer
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .id
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: id

index: 10
element.id:
  value: MedicationStatement.basedOn
element definition.path:
  value: MedicationStatement.basedOn
element definition.short:
  value: Fulfils plan, proposal or order
element definition.definition:
  value: A plan, proposal or order that is fulfilled in whole or in part by this event.
element definition.requirements:
  value: Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.basedOn
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/MedicationRequest
element definition.type:
  index: 1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/CarePlan
element definition.type:
  index: 2
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ProcedureRequest
element definition.type:
  index: 3
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ReferralRequest
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …basedOn
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]

index: 11
element.id:
  value: MedicationStatement.partOf
element definition.path:
  value: MedicationStatement.partOf
element definition.short:
  value: Part of referenced event
element definition.definition:
  value: A larger event of which this particular event is a component or step.
element definition.requirements:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.partOf
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
element definition.type:
  index: 1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/MedicationDispense
element definition.type:
  index: 2
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/MedicationStatement
element definition.type:
  index: 3
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Procedure
element definition.type:
  index: 4
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Observation
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …part of
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]

index: 12
element.id:
  value: MedicationStatement.context
element definition.path:
  value: MedicationStatement.context
element definition.short:
  value: Encounter / Episode associated with MedicationStatement
element definition.definition:
  value: The encounter or episode of care that establishes the context for this MedicationStatement.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.context
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Encounter
element definition.type:
  index: 1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …context
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]

index: 13
element.id:
  value: MedicationStatement.status
element definition.path:
  value: MedicationStatement.status
element definition.short:
  value: active | completed | entered-in-error | intended | stopped | on-hold
element definition.definition:
  value: 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.
element definition.comment:
  value: 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). This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.status
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.must support:
  value: true
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: A set of codes indicating the current status of a MedicationStatement.
  element definition.binding.value set reference:
    link: http://hl7.org/fhir/ValueSet/medication-statement-status
    reference.reference:
      value: http://hl7.org/fhir/ValueSet/medication-statement-status
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …status
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .statusCode
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: status
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: argonaut-dq-dstu2
  element definition.mapping.map:
    value: MedicationStatement.status

index: 14
element.id:
  value: MedicationStatement.category
element definition.path:
  value: MedicationStatement.category
element definition.short:
  value: Type of medication usage
element definition.definition:
  value: Indicates where type of medication statement and where the medication is expected to be consumed or administered.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.category
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationStatementCategory
  element definition.binding.strength:
    value: preferred
  element definition.binding.description:
    value: A coded concept identifying where the medication included in the medicationstatement is expected to be consumed or administered
  element definition.binding.value set reference:
    link: http://hl7.org/fhir/ValueSet/medication-statement-category
    reference.reference:
      value: http://hl7.org/fhir/ValueSet/medication-statement-category
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: class

index: 15
element.id:
  value: MedicationStatement.medication[x]
element definition.path:
  value: MedicationStatement.medication[x]
element definition.short:
  value: What medication was taken
element definition.definition:
  value: 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.
element definition.comment:
  value: 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. .
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.medication[x]
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.type:
  index: 1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: Prescribable medications
  element definition.binding.value set reference:
    link: http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes
    reference.reference:
      value: http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …code
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=CSM].role[classCode=ADMM or MANU]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: what
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: argonaut-dq-dstu2
  element definition.mapping.map:
    value: MedicationStatement.medication[x]

index: 16
element.id:
  value: MedicationStatement.effective[x]
element definition.path:
  value: MedicationStatement.effective[x]
element definition.short:
  value: The date/time or interval when the medication was taken
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.effective[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.type:
  index: 1
  element definition.type.code:
    value: Period
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …occurrence[x]
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .effectiveTime
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: when.done
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: argonaut-dq-dstu2
  element definition.mapping.map:
    value: MedicationStatement.effective[x]

index: 17
element.id:
  value: MedicationStatement.dateAsserted
element definition.path:
  value: MedicationStatement.dateAsserted
element definition.short:
  value: When the statement was asserted?
element definition.definition:
  value: The date when the medication statement was asserted by the information source.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.dateAsserted
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=AUT].time
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: when.recorded
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: argonaut-dq-dstu2
  element definition.mapping.map:
    value: MedicationStatement.dateAsserted

index: 18
element.id:
  value: MedicationStatement.informationSource
element definition.path:
  value: MedicationStatement.informationSource
element definition.short:
  value: Person or organization that provided the information about the taking of this medication
element definition.definition:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.informationSource
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Patient
element definition.type:
  index: 1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner
element definition.type:
  index: 2
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/RelatedPerson
element definition.type:
  index: 3
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Organization
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=INF].role[classCode=PAT, or codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: who.source

index: 19
element.id:
  value: MedicationStatement.subject
element definition.path:
  value: MedicationStatement.subject
element definition.short:
  value: Who is/was taking the medication
element definition.definition:
  value: The person, animal or group who is/was taking the medication.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.subject
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …subject
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-3-Patient ID List
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=SBJ].role[classCode=PAT]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: who
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: argonaut-dq-dstu2
  element definition.mapping.map:
    value: MedicationStatement.patient

index: 20
element.id:
  value: MedicationStatement.derivedFrom
element definition.path:
  value: MedicationStatement.derivedFrom
element definition.short:
  value: Additional supporting information
element definition.definition:
  value: Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.
element definition.comment:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.derivedFrom
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Resource
element definition.must support:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: argonaut-dq-dstu2
  element definition.mapping.map:
    value: NA (new element in STU3)

index: 21
element.id:
  value: MedicationStatement.taken
element definition.path:
  value: MedicationStatement.taken
element definition.short:
  value: y | n | unk | na
element definition.definition:
  value: Indicator of the certainty of whether the medication was taken by the patient.
element definition.comment:
  value: This element is labeled as a modifier because it indicates that the medication was not taken.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationStatement.taken
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.must support:
  value: true
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.value set reference:
    link: http://hl7.org/fhir/ValueSet/medication-statement-taken
    reference.reference:
      value: http://hl7.org/fhir/ValueSet/medication-statement-taken
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …notDone
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .actionNegationInd
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: argonaut-dq-dstu2
  element definition.mapping.map:
    value: NA (new element in STU3)

index: 22
element.id:
  value: MedicationStatement.reasonNotTaken
element definition.path:
  value: MedicationStatement.reasonNotTaken
element definition.short:
  value: True if asserting medication was not given
element definition.definition:
  value: A code indicating why the medication was not taken.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.reasonNotTaken
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.condition:
  value: mst-1
  index: 0
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationStatementNotTakenReason
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept indicating the reason why the medication was not taken
  element definition.binding.value set reference:
    link: http://hl7.org/fhir/ValueSet/reason-medication-not-taken-codes
    reference.reference:
      value: http://hl7.org/fhir/ValueSet/reason-medication-not-taken-codes
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="reason not taken"].value

index: 23
element.id:
  value: MedicationStatement.reasonCode
element definition.path:
  value: MedicationStatement.reasonCode
element definition.short:
  value: Reason for why the medication is being/was taken
element definition.definition:
  value: A reason for why the medication is being/was taken.
element definition.comment:
  value: This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.reasonCode
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationReason
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept identifying why the medication is being taken.
  element definition.binding.value set reference:
    link: http://hl7.org/fhir/ValueSet/condition-code
    reference.reference:
      value: http://hl7.org/fhir/ValueSet/condition-code
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …reasoneCodeableConcept
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .reasonCode
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: why

index: 24
element.id:
  value: MedicationStatement.reasonReference
element definition.path:
  value: MedicationStatement.reasonReference
element definition.short:
  value: Condition or observation that supports why the medication is being/was taken
element definition.definition:
  value: Condition or observation that supports why the medication is being/was taken.
element definition.comment:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.reasonReference
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Condition
element definition.type:
  index: 1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Observation
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …reasonReference
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="reason for use"].value
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: why

index: 25
element.id:
  value: MedicationStatement.note
element definition.path:
  value: MedicationStatement.note
element definition.short:
  value: Further information about the statement
element definition.definition:
  value: Provides extra information about the medication statement that is not conveyed by the other attributes.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.note
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Annotation
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: …note
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value

index: 26
element.id:
  value: MedicationStatement.dosage
element definition.path:
  value: MedicationStatement.dosage
element definition.short:
  value: Details of how medication is/was taken or should be taken
element definition.definition:
  value: Indicates how the medication is/was or should be taken by the patient.
element definition.comment:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationStatement.dosage
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Dosage
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: refer dosageInstruction mapping

structure definition.differential.element:
  index: 0
  element.id:
    value: MedicationStatement
  element definition.path:
    value: MedicationStatement
  element definition.short:
    value: US Core Medication Statement Profile
  element definition.definition:
    value: 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.
  element definition.must support:
    value: false
  element definition.is modifier:
    value: false
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: argonaut-dq-dstu2
    element definition.mapping.map:
      value: MedicationStatement
structure definition.differential.element:
  index: 1
  element.id:
    value: MedicationStatement.status
  element definition.path:
    value: MedicationStatement.status
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: code
  element definition.must support:
    value: true
  element definition.is modifier:
    value: false
  element definition.binding:
    element definition.binding.strength:
      value: required
    element definition.binding.description:
      value: A set of codes indicating the current status of a MedicationStatement.
    element definition.binding.value set reference:
      link: http://hl7.org/fhir/ValueSet/medication-statement-status
      reference.reference:
        value: http://hl7.org/fhir/ValueSet/medication-statement-status
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: argonaut-dq-dstu2
    element definition.mapping.map:
      value: MedicationStatement.status
structure definition.differential.element:
  index: 2
  element.id:
    value: MedicationStatement.medication[x]
  element definition.path:
    value: MedicationStatement.medication[x]
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: CodeableConcept
  element definition.type:
    index: 1
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication
  element definition.must support:
    value: true
  element definition.is modifier:
    value: false
  element definition.binding:
    element definition.binding.strength:
      value: extensible
    element definition.binding.description:
      value: Prescribable medications
    element definition.binding.value set reference:
      link: http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes
      reference.reference:
        value: http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: argonaut-dq-dstu2
    element definition.mapping.map:
      value: MedicationStatement.medication[x]
structure definition.differential.element:
  index: 3
  element.id:
    value: MedicationStatement.effective[x]
  element definition.path:
    value: MedicationStatement.effective[x]
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: dateTime
  element definition.type:
    index: 1
    element definition.type.code:
      value: Period
  element definition.must support:
    value: true
  element definition.is modifier:
    value: false
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: argonaut-dq-dstu2
    element definition.mapping.map:
      value: MedicationStatement.effective[x]
structure definition.differential.element:
  index: 4
  element.id:
    value: MedicationStatement.dateAsserted
  element definition.path:
    value: MedicationStatement.dateAsserted
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: dateTime
  element definition.must support:
    value: true
  element definition.is modifier:
    value: false
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: argonaut-dq-dstu2
    element definition.mapping.map:
      value: MedicationStatement.dateAsserted
structure definition.differential.element:
  index: 5
  element.id:
    value: MedicationStatement.subject
  element definition.path:
    value: MedicationStatement.subject
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
  element definition.must support:
    value: true
  element definition.is modifier:
    value: false
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: argonaut-dq-dstu2
    element definition.mapping.map:
      value: MedicationStatement.patient
structure definition.differential.element:
  index: 6
  element.id:
    value: MedicationStatement.derivedFrom
  element definition.path:
    value: MedicationStatement.derivedFrom
  element definition.comment:
    value: 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.
  element definition.min:
    value: 0
  element definition.max:
    value: *
  element definition.must support:
    value: true
  element definition.is modifier:
    value: false
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: argonaut-dq-dstu2
    element definition.mapping.map:
      value: NA (new element in STU3)
structure definition.differential.element:
  index: 7
  element.id:
    value: MedicationStatement.taken
  element definition.path:
    value: MedicationStatement.taken
  element definition.min:
    value: 1
  element definition.max:
    value: 1

index: 0
element definition.type.code:
  value: code

value: true

value: false

element definition.binding.strength:
  value: required
element definition.binding.value set reference:
  link: http://hl7.org/fhir/ValueSet/medication-statement-taken
  reference.reference:
    value: http://hl7.org/fhir/ValueSet/medication-statement-taken

index: 0
element definition.mapping.identity:
  value: argonaut-dq-dstu2
element definition.mapping.map:
  value: NA (new element in STU3)