description: null package_name: rs/bonsai.poc.second.test derivation: constraint name: NLLMedicationDispense type: MedicationDispense elements: whenHandedOver: {mustSupport: true, index: 41} 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: 46 elements: wasSubstituted: {mustSupport: true, index: 47} detectedIssue: type: Reference short: Automatic Format and Constitution Control warning (AFF varning) mustSupport: true refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLDetectedIssue'] index: 48 medication[x]: elements: coding: mustSupport: true index: 23 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: 24 elements: system: pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/nplid'} mustSupport: true type: uri index: 25 code: {mustSupport: true, index: 26} required: [code, system] nplpackid: match: {system: 'http://electronichealth.se/fhir/NamingSystem/nplpackid'} schema: short: NPL-pack-id mustSupport: true index: 27 elements: system: pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/nplpackid'} mustSupport: true type: uri index: 28 code: {mustSupport: true, index: 29} required: [code, system] varunr: match: {system: 'http://electronichealth.se/fhir/NamingSystem/varunr'} schema: short: Varunummer mustSupport: true index: 30 elements: system: pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/varunr'} mustSupport: true type: uri index: 31 code: {mustSupport: true, index: 32} required: [code, system] required: [coding] medicationCodeableConcept: {short: Dispensed medication or reimbursed consumable, type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 22} type: short: Type of dispense binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/dispense-types'} mustSupport: true index: 34 elements: coding: mustSupport: true index: 35 elements: system: {mustSupport: true, index: 36} version: {mustSupport: true, index: 37} code: {mustSupport: true, index: 38} required: [code] required: [coding] note: short: Pharmacists note mustSupport: true index: 42 elements: text: {mustSupport: true, index: 43} extension: array: true min: 3 index: 7 slicing: slices: nllNumberOfPackagesDispensed: match: {} schema: {short: Number of packages dispensed, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfPackagesDispensed', index: 8} max: 1 nllActorDispatchId: match: {} schema: {short: The identifier of the actor's dispatch in which the dispense was made, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLActorDispatchId', index: 9} min: 1 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: 10} 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: 11 min: 1 max: 1 nllDispatchRowNo: match: {} schema: {short: Identier for MedicationDispense within dispatch, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDispatchRowNo', index: 12} min: 1 max: 1 nllDeductedQuantity: match: {} schema: {type: Extension, short: Deducted quantity, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDeductedQuantity', index: 13} nllCompletePrescriptionChoice: match: {} schema: short: Prescription completion choice type: Extension mustSupport: true binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/complete-prescription-choices'} url: http://electronichealth.se/fhir/StructureDefinition/NLLCompletePrescriptionChoice index: 14 max: 1 nllDispenseCrediting: match: {} schema: type: Extension mustSupport: true url: http://electronichealth.se/fhir/StructureDefinition/NLLDispenseCrediting index: 15 extensions: creditDate: {url: null, short: Credit date and time, mustSupport: true, index: 16} creditDispatchId: {url: null, mustSupport: true, index: 17} creditDispatchRowNo: {url: null, mustSupport: true, index: 18} elements: extension: short: Credit date and time mustSupport: true index: 16 slicing: slices: creditDate: match: {} schema: {short: Credit date and time, mustSupport: true, index: 16} creditDispatchId: match: {} schema: {mustSupport: true, index: 17} creditDispatchRowNo: match: {} schema: {mustSupport: true, index: 18} status: short: cancelled | completed binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/medication-dispense-status'} mustSupport: true index: 19 id: {mustSupport: true, index: 0} dosageInstruction: type: Dosage mustSupport: true index: 44 elements: sequence: {index: 45} quantity: mustSupport: true index: 39 elements: value: {mustSupport: true, index: 40} required: [value] authorizingPrescription: short: MedicationRequest that authorizes the dispense refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLMedicationRequest'] type: Reference mustSupport: true index: 33 medication: short: Dispensed medication or reimbursed consumable mustSupport: true choices: [medicationCodeableConcept] index: 21 package_version: 1.2.0 extensions: nllNumberOfPackagesDispensed: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfPackagesDispensed', max: 1, short: Number of packages dispensed, type: Extension, mustSupport: true, index: 8} nllActorDispatchId: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLActorDispatchId', min: 1, short: The identifier of the actor's dispatch in which the dispense was made, type: Extension, mustSupport: true, index: 9} 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: 10} nllBenefitChoiceCode: url: http://electronichealth.se/fhir/StructureDefinition/NLLBenefitChoiceCode min: 1 max: 1 short: Benefit choice type: Extension mustSupport: true binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/benefit-choices'} index: 11 nllDispatchRowNo: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDispatchRowNo', min: 1, max: 1, short: Identier for MedicationDispense within dispatch, type: Extension, mustSupport: true, index: 12} nllDeductedQuantity: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDeductedQuantity', type: Extension, short: Deducted quantity, mustSupport: true, index: 13} nllCompletePrescriptionChoice: url: http://electronichealth.se/fhir/StructureDefinition/NLLCompletePrescriptionChoice max: 1 short: Prescription completion choice type: Extension mustSupport: true binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/complete-prescription-choices'} index: 14 nllDispenseCrediting: url: http://electronichealth.se/fhir/StructureDefinition/NLLDispenseCrediting type: Extension mustSupport: true index: 15 extensions: creditDate: {url: null, short: Credit date and time, mustSupport: true, index: 16} creditDispatchId: {url: null, mustSupport: true, index: 17} creditDispatchRowNo: {url: null, mustSupport: true, index: 18} elements: extension: short: Credit date and time mustSupport: true index: 16 slicing: slices: creditDate: match: {} schema: {short: Credit date and time, mustSupport: true, index: 16} creditDispatchId: match: {} schema: {mustSupport: true, index: 17} creditDispatchRowNo: match: {} schema: {mustSupport: true, index: 18} class: profile kind: resource url: http://electronichealth.se/fhir/StructureDefinition/NLLMedicationDispense base: http://hl7.org/fhir/StructureDefinition/MedicationDispense version: 1.2.1 required: [authorizingPrescription, type]