PackagesCanonicalsLogsProblems
    Packages
    healthdata.be.r4.cbb@0.12.0-beta
    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: 20
    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: 21
          min: 1
          max: 1
  reasonCode:
    short: ReasonMedicationAgreement
    binding: {strength: required, valueSet: 'https://fhir.healthdata.be/ValueSet/MedicationReason'}
    index: 30
  authoredOn: {short: MedicationAgreementDateTime, index: 28}
  note:
    index: 32
    elements:
      text: {short: Comment, index: 33}
  extension:
    index: 0
    slicing:
      slices:
        medicationAgreementAdditionalInformation:
          match: {}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation
            index: 1
            elements:
              value:
                choices: []
                index: 3
        renderedDosageInstruction:
          match: {}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-RenderedDosageInstruction
            index: 4
            elements:
              value:
                short: Description
                choices: []
                index: 6
        periodOfUse:
          match: {}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-TimeInterval.Period
            index: 7
            elements:
              value:
                short: PeriodOfUse
                choices: []
                index: 9
              value[x]:
                extensions: {}
                elements:
                  extension: {index: 10}
  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: 29
  status: {index: 18}
  dosageInstruction:
    type: Dosage
    short: DosingInstructions / InstructionsForUse
    index: 34
    elements:
      timing:
        elements:
          repeat:
            extensions: {}
            elements:
              extension: {index: 35}
  intent: {index: 19}
  medicationReference:
    short: AgreedMedicine
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.healthdata.be/StructureDefinition/HdBe-PharmaceuticalProduct']
    type: Reference
    choiceOf: medication
    index: 26
    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: 26
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.healthdata.be/StructureDefinition/HdBe-Patient']
    index: 27
  modifierExtension:
    index: 11
    slicing:
      slices:
        stopType:
          match: {}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-StopType
            index: 12
            elements:
              value:
                short: MedicationAgreementStopType
                choices: []
                index: 14
        repeatPeriodCyclicalSchedule:
          match: {}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule
            index: 15
            elements:
              value:
                choices: []
                index: 17
  medication:
    choices: []
    index: 23
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        medicationReference:
          match: {}
          schema:
            short: AgreedMedicine
            choices: [medicationReference]
            index: 25
  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: 31
package_version: 0.12.0-beta
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
      value[x]:
        extensions: {}
        elements:
          extension: {index: 10}
class: profile
kind: resource
url: https://fhir.healthdata.be/StructureDefinition/HdBe-MedicationAgreement
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: null
required: [category]