description: null package_name: synapxe.sgcdi derivation: constraint name: MedicationStatement type: MedicationStatement elements: category: {index: 13} dosage: index: 52 elements: site: {index: 65} asNeeded: {index: 61} method: {index: 69} patientInstruction: {index: 59} maxDosePerLifetime: {index: 81} maxDosePerAdministration: {index: 80} route: type: CodeableConcept index: 66 extensions: {} elements: extension: {index: 67} coding: elements: version: {index: 68} extension: {index: 54} id: {index: 53} timing: {index: 60} additionalInstruction: {index: 58} sequence: {index: 56} maxDosePerPeriod: {index: 79} asNeededFor: type: CodeableConcept index: 62 extensions: {} elements: extension: {index: 63} coding: elements: version: {index: 64} doseAndRate: index: 70 elements: id: {index: 71} extension: {index: 72} type: {index: 73} dose: choices: [doseRange] index: 75 doseRange: {type: Range, choiceOf: dose, index: 76} rate: choices: [] index: 78 extensions: {} required: [doseRange, dose] modifierExtension: {index: 55} text: {index: 57} extensions: {} required: [asNeededFor, doseAndRate, route, text] derivedFrom: index: 30 elements: id: {index: 31} extension: {index: 32} reference: {index: 33} type: {index: 34} identifier: {index: 35} display: {index: 36} extensions: {} required: [reference] slicing: rules: open discriminator: - {path: reference, type: type} min: 1 slices: MedicationRequest: match: {} schema: type: Reference refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest'] _required: true index: 37 elements: id: {index: 38} extension: {index: 39} extensions: {} MedicationDispense: match: {} schema: type: Reference refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense'] _required: true index: 40 elements: id: {index: 41} extension: {index: 42} extensions: {} encounter: {index: 25} adherence: {index: 82} note: {type: Annotation, index: 49} reason: index: 43 elements: id: {index: 44} extension: {index: 45} concept: type: CodeableConcept index: 46 extensions: {} elements: extension: {index: 47} coding: elements: version: {index: 48} extensions: {} required: [concept] extension: array: true min: 3 index: 4 slicing: slices: sequenceNo: match: {} schema: {type: Extension, url: 'https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno', index: 5} min: 1 max: 1 groupNo: match: {} schema: {type: Extension, url: 'https://fhir.synapxe.sg/StructureDefinition/ext-groupNo', index: 6} min: 1 max: 1 groupSequenceNo: match: {} schema: {type: Extension, url: 'https://fhir.synapxe.sg/StructureDefinition/ext-groupSequenceNo', index: 7} min: 1 max: 1 changesMade: match: {} schema: {type: Extension, url: 'https://fhir.synapxe.sg/StructureDefinition/ext-changesMade', index: 8} max: 1 reasonForChange: match: {} schema: {type: Extension, url: 'https://fhir.synapxe.sg/StructureDefinition/ext-reasonForChange', index: 9} max: 1 contained: constraint: dom-2: {human: 'If the resource is contained in another resource, it SHALL NOT contain nested Resources', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.contained.empty()} dom-4: {human: 'If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()} dom-3: {human: 'If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: 'contained.where(((''#''+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = ''#'').exists() or descendants().where(ofType(canonical) = ''#'').exists() or descendants().where(ofType(canonical) = ''#'').exists()).not()).trace(''unmatched'', id).empty()'} dom-6: {human: A resource should have narrative for robust management, source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: warning, expression: text.`div`.exists()} dom-5: {human: 'If a resource is contained in another resource, it SHALL NOT have a security label', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.meta.security.empty()} mdd-1: {human: whenHandedOver cannot be before whenPrepared, source: 'http://hl7.org/fhir/StructureDefinition/MedicationDispense', severity: error, expression: whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared} short: Ordering of medication for patient or group index: 0 slicing: rules: open discriminator: - {path: $this, type: type} min: 1 slices: MedicationRequest: match: {} schema: {type: Resource, short: 'Contained, inline Resources', _required: true, index: 1} min: 1 max: 1 MedicationDispense: match: {} schema: {type: Resource, short: 'Contained, inline Resources', _required: true, index: 2} min: 1 max: 1 Medication: match: {} schema: {type: Resource, _required: true, index: 3} min: 1 max: 1 effective: choices: [] index: 27 identifier: {type: Identifier, index: 11} relatedClinicalInformation: {index: 50} renderedDosageInstruction: {index: 51} dateAsserted: {index: 28} partOf: {index: 12} informationSource: {index: 29} subject: type: Reference refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-patient'] index: 24 modifierExtension: {index: 10} medication: elements: id: {index: 14} extension: {index: 15} concept: {index: 16} reference: index: 17 elements: id: {index: 18} extension: {index: 19} reference: {index: 20} type: {index: 21} identifier: {index: 22} display: {index: 23} extensions: {} required: [reference] extensions: {} required: [reference] package_version: 1.0.8 extensions: sequenceNo: {url: 'https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno', min: 1, max: 1, type: Extension, index: 5} groupNo: {url: 'https://fhir.synapxe.sg/StructureDefinition/ext-groupNo', min: 1, max: 1, type: Extension, index: 6} groupSequenceNo: {url: 'https://fhir.synapxe.sg/StructureDefinition/ext-groupSequenceNo', min: 1, max: 1, type: Extension, index: 7} changesMade: {url: 'https://fhir.synapxe.sg/StructureDefinition/ext-changesMade', max: 1, type: Extension, index: 8} reasonForChange: {url: 'https://fhir.synapxe.sg/StructureDefinition/ext-reasonForChange', max: 1, type: Extension, index: 9} class: profile kind: resource url: https://fhir.synapxe.sg/StructureDefinition/profile-medicationstatement base: http://hl7.org/fhir/StructureDefinition/MedicationStatement version: null required: [derivedFrom, dosage, note, identifier, dateAsserted, reason, contained]