description: Definition of the observation for the pharmaceutical advice document package_name: ch.fhir.ig.ch derivation: constraint name: CHEMEDObservation type: Observation elements: extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: treatmentPlan: match: {url: null} schema: {type: Extension, short: Reference to the medication treatment plan, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan', index: 1} min: 0 max: 1 prescription: match: {url: null} schema: {type: Extension, short: Reference to the medication prescription, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription', index: 2} min: 0 max: 1 dispense: match: {url: null} schema: {type: Extension, short: Reference to the medication dispense, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-dispense', index: 3} min: 0 max: 1 medicationStatementChanged: match: {url: null} schema: {type: Extension, short: Reference to the changed medication statement (it shall have the same identifier as the entry it replaces), url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-medicationstatement-changed', index: 4} min: 0 max: 1 medicationRequestChanged: match: {url: null} schema: {type: Extension, short: Reference to the changed medication request (it shall have the same identifier as the entry it replaces), url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-medicationrequest-changed', index: 5} min: 0 max: 1 identifier: short: Observation Identifier index: 6 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 7 value: {short: Identifier value as UUID, index: 8} required: [value, system] status: pattern: {type: Code, value: final} index: 9 code: short: Observation code binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-emed/ValueSet/ihe-pharmaceuticaladvicestatuslist'} index: 10 subject: type: Reference short: Patient refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient'] index: 11 elements: reference: {index: 12} required: [reference] effective: choices: [] index: 14 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: null slices: effectiveDateTime: match: {} schema: short: Effective Time choices: [effectiveDateTime] index: 16 min: 0 max: 1 effectiveDateTime: type: dateTime short: Effective Time choiceOf: effective index: 17 slicing: slices: effectiveDateTime: match: {} schema: {type: dateTime, short: Effective Time, choiceOf: effective, index: 17} min: 0 max: 1 note: {short: 'COMMENT: the actual comment. OK/CHANGE/REFUSE/CANCEL/SUSPEND: the reason why the action was done.', index: 18} package_version: emed-4.0.0-ballot extensions: treatmentPlan: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan', min: 0, max: 1, type: Extension, short: Reference to the medication treatment plan, index: 1} prescription: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription', min: 0, max: 1, type: Extension, short: Reference to the medication prescription, index: 2} dispense: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-dispense', min: 0, max: 1, type: Extension, short: Reference to the medication dispense, index: 3} medicationStatementChanged: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-medicationstatement-changed', min: 0, max: 1, type: Extension, short: Reference to the changed medication statement (it shall have the same identifier as the entry it replaces), index: 4} medicationRequestChanged: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-medicationrequest-changed', min: 0, max: 1, type: Extension, short: Reference to the changed medication request (it shall have the same identifier as the entry it replaces), index: 5} class: profile kind: resource url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-observation base: http://hl7.org/fhir/StructureDefinition/Observation version: 4.0.0-ballot required: [note, identifier]