description: Basis profile for medication statement, to be used in Norway. The profile is adapted to include norwegian specific features and constraints. package_name: test.no.basis derivation: constraint name: NoBasisMedicationStatement type: MedicationStatement elements: identifier: index: 0 slicing: rules: openAtEnd ordered: true discriminator: - {path: system, type: value} min: null slices: PLL-id: match: {system: null} schema: short: Identifier of norwegian PLL registration index: 1 elements: type: pattern: type: CodeableConcept value: {text: PLL} index: 2 elements: text: pattern: {type: String, value: PLL} index: 3 required: [text] status: {index: 4} medication: choices: [] index: 6 slicing: rules: openAtEnd discriminator: - {path: $this, type: type} min: null slices: medicationReference: match: {} schema: choices: [medicationReference] _required: true index: 8 min: 1 medicationReference: type: Reference choiceOf: medication refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Medication'] index: 9 slicing: slices: medicationReference: match: {} schema: type: Reference choiceOf: medication refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Medication'] _required: true index: 9 min: 1 subject: type: Reference refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Patient'] index: 10 reasonCode: index: 11 slicing: rules: open discriminator: - {path: coding.system, type: value} min: null slices: ICPC2: match: coding: {system: 'urn:oid:2.16.578.1.12.4.1.1.7170'} schema: index: 12 elements: coding: elements: system: pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7170'} index: 13 code: {index: 14} display: {index: 15} required: [display, system, code] ICD10: match: coding: {system: 'urn:oid:2.16.578.1.12.4.1.1.7110'} schema: index: 16 elements: coding: elements: system: pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7110'} index: 17 code: {index: 18} display: {index: 19} required: [display, system, code] package_version: 2.2.0-alpha class: profile kind: resource url: http://hl7.no/fhir/StructureDefinition/no-basis-MedicationStatement base: http://hl7.org/fhir/StructureDefinition/MedicationStatement version: 2.0.1 required: [medicationReference]