PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@emed-4.0.1
    http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-observation
description: Definition of the observation for the pharmaceutical advice document
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHEMEDObservation
type: Observation
elements:
  note: {short: 'COMMENT: the actual comment. OK/CHANGE/REFUSE/CANCEL/SUSPEND: the reason why the action was done.', index: 21}
  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
  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
  status:
    pattern: {type: Code, value: final}
    index: 9
  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
  code:
    short: Observation code
    binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-emed/ValueSet/ihe-pharmaceuticaladvicestatuslist'}
    index: 10
  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]
  issued: {index: 18}
  subject:
    type: Reference
    short: Patient
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient']
    index: 11
    elements:
      reference: {index: 12}
    required: [reference]
  performer:
    type: Reference
    short: The author of the medical decision, see also 'Guidance - Authorship'
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 19
    elements:
      reference: {index: 20}
    required: [reference]
package_version: emed-4.0.1
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.1
required: [issued, note, identifier, performer]