PackagesCanonicalsLogsProblems
    Packages
    healthdata.be.r4.cbb@0.6.0-alpha2
    https://fhir.healthdata.be/StructureDefinition/HdBe-MedicationAgreement
description: A medication agreement is a prescriber’s proposal for a patient to use medication. An agreement to discontinue the use of medication is also a medication agreement.
package_name: healthdata.be.r4.cbb
derivation: constraint
name: HdBeMedicationAgreement
type: MedicationRequest
elements:
  category:
    index: 17
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: 1
      slices:
        medicationAgreementCode:
          match:
            coding:
            - {code: '16076005', system: 'http://snomed.info/sct'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: '16076005', system: 'http://snomed.info/sct'}
            _required: true
            index: 18
          min: 1
          max: 1
  reasonCode:
    short: ReasonMedicationAgreement
    binding: {strength: required, valueSet: 'https://fhir.healthdata.be/ValueSet/MedicationReason'}
    index: 27
  authoredOn: {short: MedicationAgreementDateTime, index: 25}
  note:
    index: 29
    elements:
      text: {short: Comment, index: 30}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        medicationAgreementAdditionalInformation:
          match: {url: null}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation
            index: 1
            elements:
              value:
                choices: []
                index: 3
        renderedDosageInstruction:
          match: {url: null}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-RenderedDosageInstruction
            index: 4
            elements:
              value:
                short: Description
                choices: []
                index: 6
        periodOfUse:
          match: {url: null}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-TimeInterval.Period
            index: 7
            elements:
              value:
                short: PeriodOfUse
                choices: []
                index: 9
  requester:
    type: Reference
    short: Prescriber
    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/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://fhir.healthdata.be/StructureDefinition/HdBe-HealthProfessional-PractitionerRole']
    index: 26
  status: {index: 15}
  dosageInstruction: {type: Dosage, short: DosingInstructions / InstructionsForUse, index: 31}
  intent: {index: 16}
  medicationReference:
    short: AgreedMedicine
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.healthdata.be/StructureDefinition/HdBe-PharmaceuticalProduct']
    type: Reference
    choiceOf: medication
    index: 23
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            short: AgreedMedicine
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.healthdata.be/StructureDefinition/HdBe-PharmaceuticalProduct']
            type: Reference
            choiceOf: medication
            index: 23
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.healthdata.be/StructureDefinition/HdBe-Patient']
    index: 24
  modifierExtension:
    index: 10
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        stopType:
          match: {url: null}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-StopType
            index: 11
            elements:
              value:
                short: MedicationAgreementStopType
                choices: []
                index: 13
        repeatPeriodCyclicalSchedule:
          match: {url: null}
          schema: {type: Extension, url: 'https://fhir.healthdata.be/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule', index: 14}
          min: 0
  medication:
    choices: []
    index: 20
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        medicationReference:
          match: {}
          schema:
            short: AgreedMedicine
            choices: [medicationReference]
            index: 22
  reasonReference:
    short: PrescriptionReason
    refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation', 'https://fhir.healthdata.be/StructureDefinition/HdBe-Problem']
    type: Reference
    index: 28
package_version: 0.6.0-alpha2
extensions:
  medicationAgreementAdditionalInformation:
    url: https://fhir.healthdata.be/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation
    type: Extension
    index: 1
    elements:
      value:
        choices: []
        index: 3
  renderedDosageInstruction:
    url: https://fhir.healthdata.be/StructureDefinition/ext-RenderedDosageInstruction
    type: Extension
    index: 4
    elements:
      value:
        short: Description
        choices: []
        index: 6
  periodOfUse:
    url: https://fhir.healthdata.be/StructureDefinition/ext-TimeInterval.Period
    type: Extension
    index: 7
    elements:
      value:
        short: PeriodOfUse
        choices: []
        index: 9
class: profile
kind: resource
url: https://fhir.healthdata.be/StructureDefinition/HdBe-MedicationAgreement
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: null
required: [category]