PackagesCanonicalsLogsProblems
    Packages
    ca.healthpei.io.core@0.1.3-DFT
    http://healthpei.ca/fhir/StructureDefinition/ca-pei-profile-MedicationRequest
description: An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called MedicationRequest rather than MedicationPrescription or MedicationOrder to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.
package_name: ca.healthpei.io.core
derivation: constraint
name: MedicationRequest
type: MedicationRequest
elements:
  category:
    mustSupport: true
    index: 3
    elements:
      coding:
        mustSupport: true
        index: 4
        elements:
          system:
            pattern: {type: uri, value: 'http://hl7.org/fhir/ValueSet/medicationdispense-category'}
            mustSupport: true
            type: uri
            index: 5
          code:
            pattern: {type: code, value: community}
            mustSupport: true
            type: code
            index: 6
          display:
            pattern: {type: string, value: community}
            mustSupport: true
            type: string
            index: 7
  dispenseRequest:
    mustSupport: true
    index: 19
    elements:
      initialFill:
        mustSupport: true
        index: 20
        elements:
          quantity:
            mustSupport: true
            index: 21
            elements:
              value: {mustSupport: true, index: 22}
              unit: {mustSupport: true, index: 23}
              system: {mustSupport: true, index: 24}
              code: {mustSupport: true, index: 25}
          duration:
            mustSupport: true
            index: 26
            elements:
              value: {mustSupport: true, index: 27}
              unit: {mustSupport: true, index: 28}
              system: {mustSupport: true, index: 29}
      validityPeriod:
        mustSupport: true
        index: 30
        elements:
          start: {mustSupport: true, index: 31}
          end: {mustSupport: true, index: 32}
      numberOfRepeatsAllowed: {mustSupport: true, index: 33}
      quantity:
        mustSupport: true
        index: 34
        elements:
          value: {mustSupport: true, index: 35}
          unit: {mustSupport: true, index: 36}
          system: {mustSupport: true, index: 37}
          code: {mustSupport: true, index: 38}
      expectedSupplyDuration:
        mustSupport: true
        index: 39
        elements:
          value: {mustSupport: true, index: 40}
          unit: {mustSupport: true, index: 41}
          system: {mustSupport: true, index: 42}
          code: {mustSupport: true, index: 43}
  authoredOn: {mustSupport: true, index: 15}
  requester: {mustSupport: true, index: 16}
  status: {mustSupport: true, index: 1}
  dosageInstruction:
    mustSupport: true
    index: 17
    elements:
      text: {mustSupport: true, index: 18}
  identifier: {mustSupport: true, index: 0}
  intent: {mustSupport: true, index: 2}
  medicationReference:
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    type: Reference
    mustSupport: true
    choiceOf: medication
    index: 12
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
            type: Reference
            mustSupport: true
            choiceOf: medication
            index: 12
          min: 0
          max: 1
  subject:
    mustSupport: true
    index: 13
    elements:
      reference: {mustSupport: true, index: 14}
  medication:
    mustSupport: true
    choices: []
    index: 9
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        medicationReference:
          match: {}
          schema:
            mustSupport: true
            choices: [medicationReference]
            index: 11
          min: 0
          max: 1
package_version: 0.1.3-DFT
class: profile
kind: resource
url: http://healthpei.ca/fhir/StructureDefinition/ca-pei-profile-MedicationRequest
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: null
required: [identifier]