PackagesCanonicalsLogsProblems
    Packages
    PGO.02@1.02.1
    http://nictiz.nl/fhir/StructureDefinition/zib-MedicationUse
description: 'This profile is based on Medicatieproces V9.0.6 and the related Dutch Health and Care Information models (Dutch: Zorginformatiebouwsteen or ZIB) MedicationUse version 1.0.1, year 2017.\r\n\r\nMedicationUse is a statement on the historic, current or intended use of a certain medicine.'
package_name: PGO.02
derivation: constraint
name: Zib MedicationUse
type: MedicationStatement
elements:
  category:
    index: 13
    elements:
      coding:
        index: 14
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            medicationUseCode:
              match: {code: '6'}
              schema:
                short: MedicationUseCode
                index: 15
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.840.1.113883.2.4.3.11.60.20.77.5.3'}
                    index: 16
                  code:
                    pattern: {type: Code, value: '6'}
                    index: 17
  taken: {short: UseIndicator, index: 31}
  dosage: {type: Dosage, index: 35}
  derivedFrom:
    index: 28
    slicing:
      rules: open
      discriminator:
      - {path: item.reference.resolve(), type: profile}
      min: null
      slices:
        relatedAgreement:
          match: {}
          schema:
            short: Related Agreement
            refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement', 'http://nictiz.nl/fhir/StructureDefinition/zib-MedicationAgreement']
            type: Reference
            index: 29
        relatedDispense:
          match: {}
          schema:
            short: Related Dispense
            refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-Dispense']
            type: Reference
            index: 30
  reasonCode:
    elements:
      text: {short: ReasonForUse, index: 33}
  note: {short: Comment, index: 34}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        asAgreedIndicator:
          match: {url: null}
          schema:
            short: AsAgreedIndicator
            type: Extension
            url: h
            index: 1
            elements:
              valueBoolean:
                index: 2
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema: {index: 2}
        prescriber:
          match: {url: null}
          schema: {type: Extension, short: Prescriber, url: h, index: 3}
        author:
          match: {url: null}
          schema: {type: Extension, short: Author, url: h, index: 4}
          max: 1
        medicationTreament:
          match: {url: null}
          schema:
            short: Medical Treatment
            type: Extension
            url: h
            index: 5
            elements:
              valueIdentifier:
                index: 6
                slicing:
                  slices:
                    valueIdentifier:
                      match: {}
                      schema: {index: 6}
        copyIndicator:
          match: {url: null}
          schema:
            type: Extension
            short: copy indicator
            url: h
            index: 7
            elements:
              valueBoolean:
                index: 8
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema: {index: 8}
  status: {short: MedicationUseStopType, index: 12}
  identifier: {short: MedicationUseIdentifier, index: 11}
  dateAsserted: {short: MedicationUseDateTime, index: 25}
  medicationReference:
    type: Reference
    short: ProductUsed
    refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-Product']
    index: 18
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            short: ProductUsed
            refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-Product']
            index: 18
  informationSource:
    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']
    index: 26
  subject:
    type: Reference
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-patient']
    index: 27
  modifierExtension:
    index: 9
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        repeatPeriodCyclicalSchedule:
          match: {url: null}
          schema: {short: RepeatPeriodCyclicalSchedule, type: Extension, label: HerhaalperiodeCyclischSchema, url: h, index: 10}
          max: 1
  reasonNotTaken: {short: ReasonForChangeOrDiscontinuationOfUse, index: 32}
  effectivePeriod:
    type: Period
    short: PeriodOfUse
    index: 19
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            type: Period
            short: PeriodOfUse
            index: 19
            extensions:
              Duration:
                url: h
                type: Extension
                short: Duration
                index: 21
                elements:
                  valueDuration:
                    index: 22
                    slicing:
                      slices:
                        valueDuration:
                          match: {}
                          schema: {index: 22}
            elements:
              extension:
                index: 20
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    Duration:
                      match: {url: null}
                      schema:
                        type: Extension
                        short: Duration
                        url: h
                        index: 21
                        elements:
                          valueDuration:
                            index: 22
                            slicing:
                              slices:
                                valueDuration:
                                  match: {}
                                  schema: {index: 22}
              start: {short: StartDate, index: 23}
              end: {short: EndDate, index: 24}
package_version: 1.02.1
extensions:
  asAgreedIndicator:
    url: h
    short: AsAgreedIndicator
    type: Extension
    index: 1
    elements:
      valueBoolean:
        index: 2
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema: {index: 2}
  prescriber: {url: h, type: Extension, short: Prescriber, index: 3}
  author: {url: h, max: 1, type: Extension, short: Author, index: 4}
  medicationTreament:
    url: h
    short: Medical Treatment
    type: Extension
    index: 5
    elements:
      valueIdentifier:
        index: 6
        slicing:
          slices:
            valueIdentifier:
              match: {}
              schema: {index: 6}
  copyIndicator:
    url: h
    type: Extension
    short: copy indicator
    index: 7
    elements:
      valueBoolean:
        index: 8
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema: {index: 8}
class: profile
kind: resource
url: http://nictiz.nl/fhir/StructureDefinition/zib-MedicationUse
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: 2.1.1
required: [dateAsserted, category]