PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r3.examples@3.0.2
    http://hl7.org/fhir/StructureDefinition/MedicationRequest
description: Base StructureDefinition for MedicationRequest Resource
package_name: hl7.fhir.r3.examples
derivation: specialization
name: MedicationRequest
type: MedicationRequest
elements:
  category: {short: Type of medication usage, type: CodeableConcept, index: 6}
  definition:
    short: Protocol or definition
    refers: ['http://hl7.org/fhir/StructureDefinition/ActivityDefinition', 'http://hl7.org/fhir/StructureDefinition/PlanDefinition']
    type: Reference
    array: true
    isSummary: true
    index: 1
  eventHistory:
    short: A list of events of interest in the lifecycle
    refers: ['http://hl7.org/fhir/StructureDefinition/Provenance']
    type: Reference
    array: true
    index: 35
  substitution:
    type: BackboneElement
    short: Any restrictions on medication substitution
    index: 30
    elements:
      allowed: {isModifier: true, short: Whether substitution is allowed or not, type: boolean, index: 31}
      reason: {short: Why should (not) substitution be made, type: CodeableConcept, index: 32}
    required: [allowed]
  detectedIssue:
    short: Clinical Issue with action
    refers: ['http://hl7.org/fhir/StructureDefinition/DetectedIssue']
    type: Reference
    array: true
    index: 34
  dispenseRequest:
    type: BackboneElement
    short: Medication supply authorization
    index: 24
    elements:
      validityPeriod: {short: Time period supply is authorized for, type: Period, index: 25}
      numberOfRepeatsAllowed: {short: Number of refills authorized, type: positiveInt, index: 26}
      quantity: {type: Quantity, short: Amount of medication to supply per dispense, index: 27}
      expectedSupplyDuration: {short: Number of days supply per dispense, type: Duration, index: 28}
      performer:
        short: Intended dispenser
        refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
        type: Reference
        index: 29
  reasonCode: {short: Reason or indication for writing the prescription, type: CodeableConcept, array: true, index: 20}
  medicationCodeableConcept: {short: Medication to be taken, type: CodeableConcept, choiceOf: medication, isSummary: true, index: 10}
  authoredOn: {short: When request was initially authored, type: dateTime, isSummary: true, index: 15}
  note: {type: Annotation, short: Information about the prescription, array: true, index: 22}
  requester:
    constraint:
      mps-1: {human: onBehalfOf can only be specified if agent is practitioner or device, severity: error, expression: (agent.resolve().empty()) or (agent.resolve() is Device) or (agent.resolve() is Practitioner) or onBehalfOf.exists().not()}
    short: Who/What requested the Request
    type: BackboneElement
    isSummary: true
    index: 16
    elements:
      agent:
        short: Who ordered the initial medication(s)
        refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
        type: Reference
        isSummary: true
        index: 17
      onBehalfOf:
        short: Organization agent is acting for
        refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
        type: Reference
        isSummary: true
        index: 18
    required: [agent]
  supportingInformation:
    short: Information to support ordering of the medication
    refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
    type: Reference
    array: true
    index: 14
  priority: {short: routine | urgent | stat | asap, type: code, isSummary: true, index: 7}
  status: {isModifier: true, short: active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown, type: code, isSummary: true, index: 4}
  dosageInstruction: {short: How the medication should be taken, type: Dosage, array: true, index: 23}
  groupIdentifier: {short: Composite request this is part of, type: Identifier, isSummary: true, index: 3}
  recorder:
    short: Person who entered the request
    refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner']
    type: Reference
    index: 19
  identifier: {type: Identifier, short: External ids for this request, array: true, index: 0}
  context:
    short: Created during encounter/admission/stay
    refers: ['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare']
    type: Reference
    index: 13
  intent: {isModifier: true, short: proposal | plan | order | instance-order, type: code, isSummary: true, index: 5}
  basedOn:
    short: What request fulfills
    refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/MedicationRequest', 'http://hl7.org/fhir/StructureDefinition/ProcedureRequest', 'http://hl7.org/fhir/StructureDefinition/ReferralRequest']
    type: Reference
    array: true
    isSummary: true
    index: 2
  priorPrescription:
    short: An order/prescription that is being replaced
    refers: ['http://hl7.org/fhir/StructureDefinition/MedicationRequest']
    type: Reference
    index: 33
  medicationReference:
    short: Medication to be taken
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    type: Reference
    choiceOf: medication
    isSummary: true
    index: 11
  subject:
    short: Who or group medication request is for
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Patient']
    type: Reference
    isSummary: true
    index: 12
  medication:
    short: Medication to be taken
    choices: [medicationCodeableConcept, medicationReference]
    isSummary: true
    index: 9
  reasonReference:
    short: Condition or Observation that supports why the prescription is being written
    refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation']
    type: Reference
    array: true
    index: 21
package_version: 3.0.2
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/MedicationRequest
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: null
required: [medicationCodeableConcept, subject, intent, medication, medicationReference]