PackagesCanonicalsLogsProblems
    Packages
    rs/bonsai.poc.second.test@1.1.1
    http://electronichealth.se/fhir/StructureDefinition/NLLDispensePaperPrescription
description: null
package_name: rs/bonsai.poc.second.test
derivation: constraint
name: NLLDispensePaperPrescription
type: MedicationDispense
elements:
  whenHandedOver: {mustSupport: true, index: 50}
  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: 53
    elements:
      wasSubstituted: {mustSupport: true, index: 54}
  detectedIssue:
    type: Reference
    short: Automatic Format and Constitution Control warning (AFF varning)
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLDetectedIssue']
    index: 55
  medication[x]:
    elements:
      coding:
        mustSupport: true
        index: 29
        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: 30
                elements:
                  system:
                    pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/nplid'}
                    mustSupport: true
                    type: uri
                    index: 31
                  code: {mustSupport: true, index: 32}
                required: [code, system]
            nplpackid:
              match: {system: 'http://electronichealth.se/fhir/NamingSystem/nplpackid'}
              schema:
                short: NPL-pack-id
                mustSupport: true
                index: 33
                elements:
                  system:
                    pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/nplpackid'}
                    mustSupport: true
                    type: uri
                    index: 34
                  code: {mustSupport: true, index: 35}
                required: [code, system]
            varunr:
              match: {system: 'http://electronichealth.se/fhir/NamingSystem/varunr'}
              schema:
                short: Varunummer
                mustSupport: true
                index: 36
                elements:
                  system:
                    pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/varunr'}
                    mustSupport: true
                    type: uri
                    index: 37
                  code: {mustSupport: true, index: 38}
                required: [code, system]
    required: [coding]
  medicationCodeableConcept: {type: CodeableConcept, short: Dispensed medication, mustSupport: true, choiceOf: medication, index: 28}
  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: 43
    elements:
      coding:
        mustSupport: true
        index: 44
        elements:
          system: {mustSupport: true, index: 45}
          version: {mustSupport: true, index: 46}
          code: {mustSupport: true, index: 47}
        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}
              nllSubstitutionAllowed: {url: null, mustSupport: true, index: 18}
              nllFirstDispenseBefore: {url: null, mustSupport: true, index: 19}
              nllPrescriberCostCenter: {url: null, short: The prescribers cost center, mustSupport: true, index: 20}
            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}
                    nllSubstitutionAllowed:
                      match: {}
                      schema: {mustSupport: true, index: 18}
                    nllFirstDispenseBefore:
                      match: {}
                      schema: {mustSupport: true, index: 19}
                    nllPrescriberCostCenter:
                      match: {}
                      schema: {short: The prescribers cost center, mustSupport: true, index: 20}
        nllDispenseCrediting:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://electronichealth.se/fhir/StructureDefinition/NLLDispenseCrediting
            index: 21
            extensions:
              creditDate: {url: null, mustSupport: true, index: 22}
              creditDispatchId: {url: null, mustSupport: true, index: 23}
              creditDispatchRowNo: {url: null, mustSupport: true, index: 24}
            elements:
              extension:
                mustSupport: true
                index: 22
                slicing:
                  slices:
                    creditDate:
                      match: {}
                      schema: {mustSupport: true, index: 22}
                    creditDispatchId:
                      match: {}
                      schema: {mustSupport: true, index: 23}
                    creditDispatchRowNo:
                      match: {}
                      schema: {mustSupport: true, index: 24}
  status:
    short: cancelled | completed
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/medication-dispense-status'}
    mustSupport: true
    index: 25
  id: {mustSupport: true, index: 0}
  dosageInstruction:
    mustSupport: true
    index: 51
    elements:
      patientInstruction: {mustSupport: true, index: 52}
    required: [patientInstruction]
  quantity:
    mustSupport: true
    index: 48
    elements:
      value: {mustSupport: true, index: 49}
    required: [value]
  authorizingPrescription:
    index: 40
    elements:
      reference: {index: 41}
      identifier: {index: 42}
  subject:
    short: Which patient the dispense is for
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLPatient']
    type: Reference
    mustSupport: true
    index: 39
  medication:
    short: Dispensed medication
    mustSupport: true
    choices: [medicationCodeableConcept]
    index: 27
package_version: 1.1.1
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}
      nllSubstitutionAllowed: {url: null, mustSupport: true, index: 18}
      nllFirstDispenseBefore: {url: null, mustSupport: true, index: 19}
      nllPrescriberCostCenter: {url: null, short: The prescribers cost center, mustSupport: true, index: 20}
    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}
            nllSubstitutionAllowed:
              match: {}
              schema: {mustSupport: true, index: 18}
            nllFirstDispenseBefore:
              match: {}
              schema: {mustSupport: true, index: 19}
            nllPrescriberCostCenter:
              match: {}
              schema: {short: The prescribers cost center, mustSupport: true, index: 20}
  nllDispenseCrediting:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLDispenseCrediting
    type: Extension
    mustSupport: true
    index: 21
    extensions:
      creditDate: {url: null, mustSupport: true, index: 22}
      creditDispatchId: {url: null, mustSupport: true, index: 23}
      creditDispatchRowNo: {url: null, mustSupport: true, index: 24}
    elements:
      extension:
        mustSupport: true
        index: 22
        slicing:
          slices:
            creditDate:
              match: {}
              schema: {mustSupport: true, index: 22}
            creditDispatchId:
              match: {}
              schema: {mustSupport: true, index: 23}
            creditDispatchRowNo:
              match: {}
              schema: {mustSupport: true, index: 24}
class: profile
kind: resource
url: http://electronichealth.se/fhir/StructureDefinition/NLLDispensePaperPrescription
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 1.2.0
required: [extension, subject, type, whenHandedOver]