PackagesCanonicalsLogsProblems
    Packages
    bonsai.demo.c@3.0.0
    http://electronichealth.se/fhir/StructureDefinition/NLLDispensePaperPrescription
description: null
package_name: bonsai.demo.c
derivation: constraint
name: NLLDispensePaperPrescription
type: MedicationDispense
elements:
  whenHandedOver: {mustSupport: true, index: 52}
  meta:
    mustSupport: true
    index: 1
    elements:
      versionId: {mustSupport: true, index: 2}
      security:
        binding: {strength: extensible, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/security-labels'}
        mustSupport: true
        index: 3
        elements:
          system: {mustSupport: true, index: 4}
          version: {mustSupport: true, index: 5}
          code: {mustSupport: true, index: 6}
  substitution:
    mustSupport: true
    index: 55
    elements:
      wasSubstituted: {mustSupport: true, index: 56}
  detectedIssue:
    type: Reference
    short: Automatic Format and Constitution Control warning (AFF varning)
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLDetectedIssue']
    index: 57
  medication[x]:
    elements:
      coding:
        mustSupport: true
        index: 31
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            nplid:
              match: {system: 'http://electronichealth.se/fhir/NamingSystem/nplid'}
              schema:
                short: NPL-id
                mustSupport: true
                index: 32
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://electronichealth.se/fhir/NamingSystem/nplid'}
                    mustSupport: true
                    index: 33
                  code: {mustSupport: true, index: 34}
                required: [system, code]
            nplpackid:
              match: {system: 'http://electronichealth.se/fhir/NamingSystem/nplpackid'}
              schema:
                short: NPL-pack-id
                mustSupport: true
                index: 35
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://electronichealth.se/fhir/NamingSystem/nplpackid'}
                    mustSupport: true
                    index: 36
                  code: {mustSupport: true, index: 37}
                required: [system, code]
            varunr:
              match: {system: 'http://electronichealth.se/fhir/NamingSystem/varunr'}
              schema:
                short: Varunummer
                mustSupport: true
                index: 38
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://electronichealth.se/fhir/NamingSystem/varunr'}
                    mustSupport: true
                    index: 39
                  code: {mustSupport: true, index: 40}
                required: [system, code]
    required: [coding]
  medicationCodeableConcept: {type: CodeableConcept, short: Dispensed medication, mustSupport: true, choiceOf: medication, index: 30}
  type:
    short: Standard packing fill, Dose dispensed fill or Trial fill
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/dispense-types'}
    mustSupport: true
    index: 45
    elements:
      coding:
        mustSupport: true
        index: 46
        elements:
          system: {mustSupport: true, index: 47}
          version: {mustSupport: true, index: 48}
          code: {mustSupport: true, index: 49}
        required: [code]
    required: [coding]
  extension:
    index: 7
    slicing:
      slices:
        nllDispatchId:
          match: {}
          schema: {type: Extension, short: The identifier of the dispatch in which the dispense was made, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDispatchId', index: 8}
        nllNumberOfPackagesDispensed:
          match: {}
          schema: {short: Number of packages dspensed, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfPackagesDispensed', index: 9}
          max: 1
        nllActorDispatchId:
          match: {}
          schema: {short: The identifier of the actors dispatch in which the dispense was made, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLActorDispatchId', index: 10}
        nllDispatchRowNo:
          match: {}
          schema: {short: Identier for MedicationDispense within dispatch, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDispatchRowNo', index: 11}
          max: 1
        nllBenefitChoiceCode:
          match: {}
          schema:
            short: Benefit choice
            type: Extension
            mustSupport: true
            binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/benefit-choices'}
            url: http://electronichealth.se/fhir/StructureDefinition/NLLBenefitChoiceCode
            index: 12
          max: 1
        nllPrescriptionDetails:
          match: {}
          schema:
            type: Extension
            short: Information from the authorizing prescription
            mustSupport: true
            url: http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionDetails
            index: 13
            extensions:
              nllPrescriptionDate: {url: null, mustSupport: true, index: 14}
              nllPrescriber: {url: null, short: Prescriber, mustSupport: true, index: 15}
              nllRegistrationBasis: {url: null, mustSupport: true, index: 16}
              nllCountryCode:
                url: null
                short: Deprecated. Country code
                mustSupport: true
                index: 17
                elements:
                  value[x]:
                    extensions:
                      NLLdataAbsentReason:
                        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                        isModifier: false
                        short: masked
                        type: Extension
                        mustSupport: true
                        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                        index: 18
                    elements:
                      extension:
                        isModifier: false
                        short: masked
                        type: Extension
                        mustSupport: true
                        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                        index: 18
                        slicing:
                          slices:
                            NLLdataAbsentReason:
                              match: {}
                              schema:
                                isModifier: false
                                short: masked
                                type: Extension
                                mustSupport: true
                                binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                index: 18
              nllSubstitutionAllowed: {url: null, mustSupport: true, index: 19}
              nllFirstDispenseBefore: {url: null, mustSupport: true, index: 20}
              nllPrescriberCostCenter:
                url: null
                short: The prescribers cost center
                mustSupport: true
                index: 21
                elements:
                  value[x]:
                    elements:
                      value:
                        extensions:
                          NLLdataAbsentReason:
                            url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                            isModifier: false
                            short: masked
                            type: Extension
                            mustSupport: true
                            binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                            index: 22
                        elements:
                          extension:
                            isModifier: false
                            short: masked
                            type: Extension
                            mustSupport: true
                            binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                            url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                            index: 22
                            slicing:
                              slices:
                                NLLdataAbsentReason:
                                  match: {}
                                  schema:
                                    isModifier: false
                                    short: masked
                                    type: Extension
                                    mustSupport: true
                                    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                    url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                    index: 22
            elements:
              extension:
                mustSupport: true
                index: 14
                slicing:
                  slices:
                    nllPrescriptionDate:
                      match: {}
                      schema: {mustSupport: true, index: 14}
                    nllPrescriber:
                      match: {}
                      schema: {short: Prescriber, mustSupport: true, index: 15}
                    nllRegistrationBasis:
                      match: {}
                      schema: {mustSupport: true, index: 16}
                    nllCountryCode:
                      match: {}
                      schema:
                        short: Deprecated. Country code
                        mustSupport: true
                        index: 17
                        elements:
                          value[x]:
                            extensions:
                              NLLdataAbsentReason:
                                url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                isModifier: false
                                short: masked
                                type: Extension
                                mustSupport: true
                                binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                index: 18
                            elements:
                              extension:
                                isModifier: false
                                short: masked
                                type: Extension
                                mustSupport: true
                                binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                index: 18
                                slicing:
                                  slices:
                                    NLLdataAbsentReason:
                                      match: {}
                                      schema:
                                        isModifier: false
                                        short: masked
                                        type: Extension
                                        mustSupport: true
                                        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                        index: 18
                    nllSubstitutionAllowed:
                      match: {}
                      schema: {mustSupport: true, index: 19}
                    nllFirstDispenseBefore:
                      match: {}
                      schema: {mustSupport: true, index: 20}
                    nllPrescriberCostCenter:
                      match: {}
                      schema:
                        short: The prescribers cost center
                        mustSupport: true
                        index: 21
                        elements:
                          value[x]:
                            elements:
                              value:
                                extensions:
                                  NLLdataAbsentReason:
                                    url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                    isModifier: false
                                    short: masked
                                    type: Extension
                                    mustSupport: true
                                    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                    index: 22
                                elements:
                                  extension:
                                    isModifier: false
                                    short: masked
                                    type: Extension
                                    mustSupport: true
                                    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                    url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                    index: 22
                                    slicing:
                                      slices:
                                        NLLdataAbsentReason:
                                          match: {}
                                          schema:
                                            isModifier: false
                                            short: masked
                                            type: Extension
                                            mustSupport: true
                                            binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                            url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                            index: 22
        nllDispenseCrediting:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://electronichealth.se/fhir/StructureDefinition/NLLDispenseCrediting
            index: 23
            extensions:
              creditDate: {url: null, mustSupport: true, index: 24}
              creditDispatchId: {url: null, mustSupport: true, index: 25}
              creditDispatchRowNo: {url: null, mustSupport: true, index: 26}
            elements:
              extension:
                mustSupport: true
                index: 24
                slicing:
                  slices:
                    creditDate:
                      match: {}
                      schema: {mustSupport: true, index: 24}
                    creditDispatchId:
                      match: {}
                      schema: {mustSupport: true, index: 25}
                    creditDispatchRowNo:
                      match: {}
                      schema: {mustSupport: true, index: 26}
  status:
    short: cancelled | completed
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/medication-dispense-status'}
    mustSupport: true
    index: 27
  id: {mustSupport: true, index: 0}
  dosageInstruction:
    mustSupport: true
    index: 53
    elements:
      patientInstruction: {mustSupport: true, index: 54}
    required: [patientInstruction]
  quantity:
    mustSupport: true
    index: 50
    elements:
      value: {mustSupport: true, index: 51}
    required: [value]
  authorizingPrescription:
    index: 42
    elements:
      reference: {index: 43}
      identifier: {index: 44}
  subject:
    short: Which patient the dispense is for
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLPatient']
    type: Reference
    mustSupport: true
    index: 41
  medication:
    short: Dispensed medication
    mustSupport: true
    choices: [medicationCodeableConcept]
    index: 29
package_version: 3.0.0
extensions:
  nllDispatchId: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDispatchId', type: Extension, short: The identifier of the dispatch in which the dispense was made, mustSupport: true, index: 8}
  nllNumberOfPackagesDispensed: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfPackagesDispensed', max: 1, short: Number of packages dspensed, type: Extension, mustSupport: true, index: 9}
  nllActorDispatchId: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLActorDispatchId', short: The identifier of the actors dispatch in which the dispense was made, type: Extension, mustSupport: true, index: 10}
  nllDispatchRowNo: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDispatchRowNo', max: 1, short: Identier for MedicationDispense within dispatch, type: Extension, mustSupport: true, index: 11}
  nllBenefitChoiceCode:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLBenefitChoiceCode
    max: 1
    short: Benefit choice
    type: Extension
    mustSupport: true
    binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/benefit-choices'}
    index: 12
  nllPrescriptionDetails:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionDetails
    type: Extension
    short: Information from the authorizing prescription
    mustSupport: true
    index: 13
    extensions:
      nllPrescriptionDate: {url: null, mustSupport: true, index: 14}
      nllPrescriber: {url: null, short: Prescriber, mustSupport: true, index: 15}
      nllRegistrationBasis: {url: null, mustSupport: true, index: 16}
      nllCountryCode:
        url: null
        short: Deprecated. Country code
        mustSupport: true
        index: 17
        elements:
          value[x]:
            extensions:
              NLLdataAbsentReason:
                url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                isModifier: false
                short: masked
                type: Extension
                mustSupport: true
                binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                index: 18
            elements:
              extension:
                isModifier: false
                short: masked
                type: Extension
                mustSupport: true
                binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                index: 18
                slicing:
                  slices:
                    NLLdataAbsentReason:
                      match: {}
                      schema:
                        isModifier: false
                        short: masked
                        type: Extension
                        mustSupport: true
                        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                        index: 18
      nllSubstitutionAllowed: {url: null, mustSupport: true, index: 19}
      nllFirstDispenseBefore: {url: null, mustSupport: true, index: 20}
      nllPrescriberCostCenter:
        url: null
        short: The prescribers cost center
        mustSupport: true
        index: 21
        elements:
          value[x]:
            elements:
              value:
                extensions:
                  NLLdataAbsentReason:
                    url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                    isModifier: false
                    short: masked
                    type: Extension
                    mustSupport: true
                    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                    index: 22
                elements:
                  extension:
                    isModifier: false
                    short: masked
                    type: Extension
                    mustSupport: true
                    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                    url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                    index: 22
                    slicing:
                      slices:
                        NLLdataAbsentReason:
                          match: {}
                          schema:
                            isModifier: false
                            short: masked
                            type: Extension
                            mustSupport: true
                            binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                            url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                            index: 22
    elements:
      extension:
        mustSupport: true
        index: 14
        slicing:
          slices:
            nllPrescriptionDate:
              match: {}
              schema: {mustSupport: true, index: 14}
            nllPrescriber:
              match: {}
              schema: {short: Prescriber, mustSupport: true, index: 15}
            nllRegistrationBasis:
              match: {}
              schema: {mustSupport: true, index: 16}
            nllCountryCode:
              match: {}
              schema:
                short: Deprecated. Country code
                mustSupport: true
                index: 17
                elements:
                  value[x]:
                    extensions:
                      NLLdataAbsentReason:
                        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                        isModifier: false
                        short: masked
                        type: Extension
                        mustSupport: true
                        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                        index: 18
                    elements:
                      extension:
                        isModifier: false
                        short: masked
                        type: Extension
                        mustSupport: true
                        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                        index: 18
                        slicing:
                          slices:
                            NLLdataAbsentReason:
                              match: {}
                              schema:
                                isModifier: false
                                short: masked
                                type: Extension
                                mustSupport: true
                                binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                index: 18
            nllSubstitutionAllowed:
              match: {}
              schema: {mustSupport: true, index: 19}
            nllFirstDispenseBefore:
              match: {}
              schema: {mustSupport: true, index: 20}
            nllPrescriberCostCenter:
              match: {}
              schema:
                short: The prescribers cost center
                mustSupport: true
                index: 21
                elements:
                  value[x]:
                    elements:
                      value:
                        extensions:
                          NLLdataAbsentReason:
                            url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                            isModifier: false
                            short: masked
                            type: Extension
                            mustSupport: true
                            binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                            index: 22
                        elements:
                          extension:
                            isModifier: false
                            short: masked
                            type: Extension
                            mustSupport: true
                            binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                            url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                            index: 22
                            slicing:
                              slices:
                                NLLdataAbsentReason:
                                  match: {}
                                  schema:
                                    isModifier: false
                                    short: masked
                                    type: Extension
                                    mustSupport: true
                                    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                                    url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                                    index: 22
  nllDispenseCrediting:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLDispenseCrediting
    type: Extension
    mustSupport: true
    index: 23
    extensions:
      creditDate: {url: null, mustSupport: true, index: 24}
      creditDispatchId: {url: null, mustSupport: true, index: 25}
      creditDispatchRowNo: {url: null, mustSupport: true, index: 26}
    elements:
      extension:
        mustSupport: true
        index: 24
        slicing:
          slices:
            creditDate:
              match: {}
              schema: {mustSupport: true, index: 24}
            creditDispatchId:
              match: {}
              schema: {mustSupport: true, index: 25}
            creditDispatchRowNo:
              match: {}
              schema: {mustSupport: true, index: 26}
class: profile
kind: resource
url: http://electronichealth.se/fhir/StructureDefinition/NLLDispensePaperPrescription
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 1.3.0
required: [extension, whenHandedOver, subject, type]