PackagesCanonicalsLogsProblems
    Packages
    ca.healthpei.io.core@0.1.4-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://terminology.hl7.org/CodeSystem/medicationrequest-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
      text:
        pattern: {type: string, value: community}
        mustSupport: true
        type: string
        index: 8
  dispenseRequest:
    mustSupport: true
    index: 20
    elements:
      initialFill:
        mustSupport: true
        index: 21
        elements:
          quantity:
            mustSupport: true
            index: 22
            elements:
              value: {mustSupport: true, index: 23}
              unit: {mustSupport: true, index: 24}
              system: {mustSupport: true, index: 25}
              code: {mustSupport: true, index: 26}
          duration:
            mustSupport: true
            index: 27
            elements:
              value: {mustSupport: true, index: 28}
              unit: {mustSupport: true, index: 29}
              system: {mustSupport: true, index: 30}
              code: {mustSupport: true, index: 31}
      validityPeriod:
        mustSupport: true
        index: 32
        elements:
          start: {mustSupport: true, index: 33}
          end: {mustSupport: true, index: 34}
      numberOfRepeatsAllowed: {mustSupport: true, index: 35}
      quantity:
        mustSupport: true
        index: 36
        elements:
          value: {mustSupport: true, index: 37}
          unit: {mustSupport: true, index: 38}
          system: {mustSupport: true, index: 39}
          code: {mustSupport: true, index: 40}
      expectedSupplyDuration:
        mustSupport: true
        index: 41
        elements:
          value: {mustSupport: true, index: 42}
          unit: {mustSupport: true, index: 43}
          system: {mustSupport: true, index: 44}
          code: {mustSupport: true, index: 45}
  authoredOn: {mustSupport: true, index: 16}
  requester: {mustSupport: true, index: 17}
  status: {mustSupport: true, index: 1}
  dosageInstruction:
    mustSupport: true
    index: 18
    elements:
      text: {mustSupport: true, index: 19}
  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: 13
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
            type: Reference
            mustSupport: true
            choiceOf: medication
            index: 13
          min: 0
          max: 1
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://healthpei.ca/fhir/StructureDefinition/ca-pei-profile-Patient']
    index: 14
    elements:
      reference: {mustSupport: true, index: 15}
  medication:
    mustSupport: true
    choices: []
    index: 10
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        medicationReference:
          match: {}
          schema:
            mustSupport: true
            choices: [medicationReference]
            index: 12
          min: 0
          max: 1
package_version: 0.1.4-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]