PackagesCanonicalsLogsProblems
    Packages
    nictiz.fhir.nl.r4.zib2020@0.1.0-beta1
    http://nictiz.nl/fhir/StructureDefinition/zib-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: nictiz.fhir.nl.r4.zib2020
derivation: constraint
name: ZibMedicationAgreement
abstract: true
type: MedicationRequest
elements:
  category:
    index: 18
    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: 19
          min: 1
          max: 1
  reasonCode:
    short: ReasonMedicationAgreement
    binding: {strength: required, valueSet: 'http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.9.6.2--20200901000000'}
    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: null
      slices:
        medicationAgreementAdditionalInformation:
          match: {url: null}
          schema: {type: Extension, url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation', index: 1}
        renderedDosageInstruction:
          match: {url: null}
          schema:
            type: Extension
            url: http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction
            index: 2
            elements:
              value:
                short: Description
                choices: []
                index: 4
        periodOfUse-Period:
          match: {url: null}
          schema:
            type: Extension
            url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval-Period
            index: 5
            elements:
              value:
                short: PeriodOfUse
                choices: []
                index: 7
        periodOfUse-Duration:
          match: {url: null}
          schema:
            type: Extension
            url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval-Duration
            index: 8
            elements:
              value:
                short: Duration / PeriodOfUse
                choices: []
                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', 'http://nictiz.nl/fhir/StructureDefinition/zib-HealthProfessional-PractitionerRole']
    index: 26
  status: {index: 16}
  dosageInstruction: {type: Dosage, short: DosingInstructions / InstructionsForUse, index: 31}
  intent: {index: 17}
  medicationReference:
    short: AgreedMedicine
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://nictiz.nl/fhir/StructureDefinition/zib-PharmaceuticalProduct']
    type: Reference
    choiceOf: medication
    index: 24
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            short: AgreedMedicine
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://nictiz.nl/fhir/StructureDefinition/zib-PharmaceuticalProduct']
            type: Reference
            choiceOf: medication
            index: 24
  modifierExtension:
    index: 11
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        repeatPeriodCyclicalSchedule:
          match: {url: null}
          schema: {type: Extension, url: 'http://nictiz.nl/fhir/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule', index: 12}
        stopType:
          match: {url: null}
          schema:
            type: Extension
            url: http://nictiz.nl/fhir/StructureDefinition/ext-StopType
            index: 13
            elements:
              value:
                short: MedicationAgreementStopType
                choices: []
                index: 15
  medication:
    choices: []
    index: 21
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        medicationReference:
          match: {}
          schema:
            short: AgreedMedicine
            choices: [medicationReference]
            index: 23
  reasonReference:
    short: PrescriptionReason
    refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation', 'http://nictiz.nl/fhir/StructureDefinition/zib-Problem']
    type: Reference
    index: 28
package_version: 0.1.0-beta1
extensions:
  medicationAgreementAdditionalInformation: {url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation', type: Extension, index: 1}
  renderedDosageInstruction:
    url: http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction
    type: Extension
    index: 2
    elements:
      value:
        short: Description
        choices: []
        index: 4
  periodOfUse-Period:
    url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval-Period
    type: Extension
    index: 5
    elements:
      value:
        short: PeriodOfUse
        choices: []
        index: 7
  periodOfUse-Duration:
    url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval-Duration
    type: Extension
    index: 8
    elements:
      value:
        short: Duration / PeriodOfUse
        choices: []
        index: 10
class: profile
kind: resource
url: http://nictiz.nl/fhir/StructureDefinition/zib-MedicationAgreement
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: null
required: [category]