PackagesCanonicalsLogsProblems
    Packages
    PGO.02@1.02.1
    http://nictiz.nl/fhir/StructureDefinition/zib-MedicationAgreement
description: 'This profile is based on Medicatieproces V9.0.6 and the related Dutch Health and Care Information models (Dutch: Zorginformatiebouwsteen or ZIB) MedicationAgreement version 1.0.1, year 2017. 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: PGO.02
derivation: constraint
name: Zib MedicationAgreement
type: MedicationRequest
elements:
  category:
    index: 19
    elements:
      coding:
        index: 20
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            medicationAgreementCode:
              match: {code: '16076005'}
              schema:
                short: MedicationAgreementCode
                index: 21
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 22
                  code:
                    pattern: {type: Code, value: '16076005'}
                    index: 23
                  display:
                    pattern: {type: String, value: Prescription (procedure)}
                    index: 24
  reasonCode: {short: MedicationAgreementReason, index: 37}
  authoredOn: {short: MedicationAgreementDateTime, index: 30}
  note: {short: Comment, index: 39}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        periodOfUse:
          match: {url: null}
          schema:
            type: Extension
            short: PeriodOfUse
            url: h
            index: 1
            elements:
              valuePeriod:
                index: 2
                slicing:
                  slices:
                    valuePeriod:
                      match: {}
                      schema: {index: 2}
        usageDuration:
          match: {url: null}
          schema:
            short: Duration
            type: Extension
            url: h
            index: 3
            elements:
              valueDuration:
                index: 4
                slicing:
                  slices:
                    valueDuration:
                      match: {}
                      schema: {index: 4}
        additionalInformation:
          match: {url: null}
          schema:
            short: MedicationAgreementAdditionalInformation
            type: Extension
            url: h
            index: 5
            elements:
              valueCodeableConcept:
                index: 6
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {index: 6}
        medicationTreatment:
          match: {url: null}
          schema:
            short: Medication Treatment
            type: Extension
            url: h
            index: 7
            elements:
              valueIdentifier:
                index: 8
                slicing:
                  slices:
                    valueIdentifier:
                      match: {}
                      schema: {index: 8}
        copyIndicator:
          match: {url: null}
          schema:
            type: Extension
            short: copy indicator
            url: h
            index: 9
            elements:
              valueBoolean:
                index: 10
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema: {index: 10}
        basedOnAgreementOrUse:
          match: {url: null}
          schema: {type: Extension, short: Based On Agreement Or Use, url: h, index: 11}
  requester:
    short: Prescriber
    index: 31
    extensions:
      requesterRole: {url: h, max: 1, short: PrescriberRole, type: Extension, index: 33}
    elements:
      extension:
        index: 32
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            requesterRole:
              match: {url: null}
              schema: {short: PrescriberRole, type: Extension, url: h, index: 33}
              max: 1
      agent:
        type: Reference
        refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-organization', 'http://fhir.nl/fhir/StructureDefinition/nl-core-patient', 'http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner', 'http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson', 'http://hl7.org/fhir/StructureDefinition/Device']
        index: 34
      onBehalfOf:
        type: Reference
        refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-organization']
        index: 35
  supportingInformation:
    index: 27
    slicing:
      rules: open
      discriminator:
      - {path: reference.resolve(), type: profile}
      min: null
      slices:
        BodyWeight:
          match: {}
          schema:
            short: 'MedicationAgreementAdditionalInformation: BodyWeight'
            refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-BodyWeight']
            type: Reference
            index: 28
        BodyHeight:
          match: {}
          schema:
            short: 'MedicationAgreementAdditionalInformation: BodyHeight'
            refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-BodyHeight']
            type: Reference
            index: 29
  status: {short: 'CanceledIndicator ', index: 17}
  dosageInstruction:
    type: Dosage
    index: 40
    elements:
      dose:
        choices: []
        index: 42
  recorder:
    type: Reference
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner']
    index: 36
  identifier: {short: MedicationAgreementIdentifier, index: 16}
  intent:
    pattern: {type: Code, value: order}
    index: 18
  medicationReference:
    short: AgreedMedicine
    refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-Product']
    type: Reference
    index: 25
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            short: AgreedMedicine
            refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-Product']
            type: Reference
            index: 25
  subject:
    type: Reference
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-patient', 'http://hl7.org/fhir/StructureDefinition/Group']
    index: 26
  modifierExtension:
    index: 12
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        stopType:
          match: {url: null}
          schema:
            type: Extension
            url: h
            index: 13
            elements:
              valueCodeableConcept:
                index: 14
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {index: 14}
        repeatPeriodCyclicalSchedule:
          match: {url: null}
          schema: {short: RepeatPeriodCyclicalSchedule, type: Extension, label: HerhaalperiodeCyclischSchema, url: h, index: 15}
          max: 1
  reasonReference:
    type: Reference
    short: PrescriptionReason
    refers: ['http://hl7.org/fhir/StructureDefinition/Observation', 'http://nictiz.nl/fhir/StructureDefinition/zib-Problem']
    index: 38
package_version: 1.02.1
extensions:
  periodOfUse:
    url: h
    type: Extension
    short: PeriodOfUse
    index: 1
    elements:
      valuePeriod:
        index: 2
        slicing:
          slices:
            valuePeriod:
              match: {}
              schema: {index: 2}
  usageDuration:
    url: h
    short: Duration
    type: Extension
    index: 3
    elements:
      valueDuration:
        index: 4
        slicing:
          slices:
            valueDuration:
              match: {}
              schema: {index: 4}
  additionalInformation:
    url: h
    short: MedicationAgreementAdditionalInformation
    type: Extension
    index: 5
    elements:
      valueCodeableConcept:
        index: 6
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema: {index: 6}
  medicationTreatment:
    url: h
    short: Medication Treatment
    type: Extension
    index: 7
    elements:
      valueIdentifier:
        index: 8
        slicing:
          slices:
            valueIdentifier:
              match: {}
              schema: {index: 8}
  copyIndicator:
    url: h
    type: Extension
    short: copy indicator
    index: 9
    elements:
      valueBoolean:
        index: 10
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema: {index: 10}
  basedOnAgreementOrUse: {url: h, type: Extension, short: Based On Agreement Or Use, index: 11}
class: profile
kind: resource
url: http://nictiz.nl/fhir/StructureDefinition/zib-MedicationAgreement
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 2.1.1
required: [authoredOn, category]