PackagesCanonicalsLogsProblems
    Packages
    nictiz.fhir.nl.stu3.zib2015@1.0.0
    http://nictiz.nl/fhir/StructureDefinition/zib-DispenseRequest
description: 'This profile is based the Dutch Health and Care Information models (Dutch: Zorginformatiebouwsteen or ZIB)  nl.zorg.VerstrekkingVerzoek version 1.0, year 2017.'
package_name: nictiz.fhir.nl.stu3.zib2015
derivation: constraint
name: ZIB-DispenseRequest
type: MedicationRequest
elements:
  category:
    index: 7
    elements:
      coding:
        index: 8
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            DispenseRequestCode:
              match: {code: '3'}
              schema:
                short: DispenseRequestCode
                index: 9
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.840.1.113883.2.4.3.11.60.20.77.5.3'}
                    index: 10
                  code:
                    pattern: {type: Code, value: '3'}
                    index: 11
  dispenseRequest:
    short: DisenseRequest
    index: 24
    extensions:
      dispenseLocation: {url: h, max: 1, short: DispenseLocation, type: Extension, index: 26}
    elements:
      extension:
        index: 25
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            dispenseLocation:
              match: {url: null}
              schema: {short: DispenseLocation, type: Extension, url: h, index: 26}
              max: 1
      validityPeriod:
        short: PeriodOfUse
        index: 27
        elements:
          start: {short: StartDate, index: 28}
          end: {short: EndDate, index: 29}
      numberOfRepeatsAllowed: {short: NumberOfRefills, index: 30}
      quantity:
        short: Amount
        index: 31
        slicing:
          slices:
            SimpleQuantity:
              match: {}
              schema: {short: Amount, index: 31}
      expectedSupplyDuration: {short: Duration, index: 32}
      performer: {short: IntendedSupplier, index: 33}
  medicationCodeableConcept: {type: CodeableConcept, short: MedicineToBeDispensed, choiceOf: medication, index: 14}
  authoredOn: {short: DispenseRequestDate, index: 18}
  note: {short: Comment, index: 22}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        additionalWishes:
          match: {url: null}
          schema:
            type: Extension
            short: AdditionalWishes
            url: h
            index: 1
            elements:
              valueCodeableConcept:
                index: 2
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {index: 2}
        relatedMedicationAgreement:
          match: {url: null}
          schema: {short: RelatedMedicationAgreement, type: Extension, url: h, index: 3}
          max: 1
        medicationTreatment:
          match: {url: null}
          schema: {short: Medication Treatment, type: Extension, url: h, index: 4}
          min: 0
          max: 1
  requester:
    elements:
      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: 19
      onBehalfOf:
        type: Reference
        refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-organization']
        index: 20
  dosageInstruction: {type: Dosage, index: 23}
  recorder:
    type: Reference
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner']
    index: 21
  identifier:
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        DispenseRequestIdentifier:
          match: {system: null}
          schema: {index: 6}
          max: 1
  context:
    type: Reference
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare', 'http://nictiz.nl/fhir/StructureDefinition/zib-Contact']
    index: 17
  medicationReference:
    short: MedicineToBeDispensed
    refers: ['http://nictiz.nl/fhir/StructureDefinition/zib-Product']
    type: Reference
    choiceOf: medication
    index: 15
  subject:
    type: Reference
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-patient', 'http://hl7.org/fhir/StructureDefinition/Group']
    index: 16
  medication:
    short: MedicineToBeDispensed
    choices: [medicationCodeableConcept, medicationReference]
    index: 13
package_version: 1.0.0
extensions:
  additionalWishes:
    url: h
    type: Extension
    short: AdditionalWishes
    index: 1
    elements:
      valueCodeableConcept:
        index: 2
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema: {index: 2}
  relatedMedicationAgreement: {url: h, max: 1, short: RelatedMedicationAgreement, type: Extension, index: 3}
  medicationTreatment: {url: h, min: 0, max: 1, short: Medication Treatment, type: Extension, index: 4}
class: profile
kind: resource
url: http://nictiz.nl/fhir/StructureDefinition/zib-DispenseRequest
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: '1.0'
required: [category]