PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-ems@2.0.0-ballot
    http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-encounter
description: This profile constrains the Encounter resource for representing the mission with its details.
package_name: ch.fhir.ig.ch-ems
derivation: constraint
name: CHEmsEncounter
type: Encounter
elements:
  reasonCode:
    type: CodeableConcept
    binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-ems/ValueSet/IVR-VS-transReason'}
    mustSupport: true
    index: 25
  participant:
    short: Team
    index: 18
    extensions:
      teamRole: {url: 'http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-teamrole', min: 1, max: 1, type: Extension, mustSupport: true, index: 20}
    elements:
      extension:
        index: 19
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            teamRole:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-teamrole', index: 20}
              min: 1
              max: 1
      individual:
        type: Reference
        short: Team member
        mustSupport: true
        refers: ['http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-practitioner']
        index: 21
        elements:
          reference: {index: 22}
        required: [reference]
    required: [individual, extension]
  serviceType:
    type: CodeableConcept
    binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-ems/ValueSet/IVR-VS-missionType'}
    mustSupport: true
    index: 11
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        valuablesPatient:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-valuablespatient', index: 1}
          min: 0
        emergencyDoctorSystem:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-emergencydoctorsystem', index: 2}
          min: 0
          max: 1
        violence:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-violence
            index: 3
            extensions:
              offender: {url: null, short: Tatperson, index: 4}
              form: {url: null, short: Form der Gewalt, index: 5}
              result: {url: null, short: Folge der Gewalt, index: 6}
            elements:
              extension:
                short: Tatperson
                index: 4
                slicing:
                  slices:
                    offender:
                      match: {}
                      schema: {short: Tatperson, index: 4}
                    form:
                      match: {}
                      schema: {short: Form der Gewalt, index: 5}
                    result:
                      match: {}
                      schema: {short: Folge der Gewalt, index: 6}
  priority:
    type: CodeableConcept
    short: Urgency of the mission
    binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-ems/ValueSet/IVR-VS-urgency'}
    mustSupport: true
    index: 12
    extensions:
      urgencyAdequate: {url: 'http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-urgencyadequate', min: 0, max: 1, type: Extension, mustSupport: true, index: 13}
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-urgencyadequate
        index: 13
        slicing:
          slices:
            urgencyAdequate:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-urgencyadequate', index: 13}
              min: 0
              max: 1
  identifier:
    index: 7
    slicing:
      slices:
        missionNumber:
          match: {}
          schema:
            short: Mission number (Einsatznummer)
            mustSupport: true
            pattern:
              type: Identifier
              value:
                type:
                  coding:
                  - {code: MN, system: 'http://fhir.ch/ig/ch-ems/CodeSystem/IVR'}
            _required: true
            index: 8
            elements:
              system: {short: OID of organization (intermediate care (IMC)), index: 9}
              value: {short: Mission number intermediate care (IMC), index: 10}
            required: [value, system]
  hospitalization:
    short: Destination of the mission
    index: 26
    elements:
      destination:
        type: Reference
        mustSupport: true
        refers: ['http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-location-locationdestination']
        index: 27
        elements:
          reference: {index: 28}
        required: [reference]
    required: [destination]
  period:
    short: The date (and time) of the mission
    index: 23
    elements:
      start: {mustSupport: true, index: 24}
    required: [start]
  basedOn:
    type: Reference
    short: Requesting organisation (intermediate care (IMC))
    mustSupport: true
    refers: ['http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-servicerequest']
    index: 16
    elements:
      reference: {index: 17}
    required: [reference]
  location:
    short: Location of mission
    index: 29
    elements:
      location:
        type: Reference
        mustSupport: true
        refers: ['http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-location-locationdestination']
        index: 30
        elements:
          reference: {index: 31}
        required: [reference]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-patient']
    index: 14
    elements:
      reference: {index: 15}
    required: [reference]
package_version: 2.0.0-ballot
extensions:
  valuablesPatient: {url: 'http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-valuablespatient', min: 0, type: Extension, mustSupport: true, index: 1}
  emergencyDoctorSystem: {url: 'http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-emergencydoctorsystem', min: 0, max: 1, type: Extension, mustSupport: true, index: 2}
  violence:
    url: http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-ext-violence
    type: Extension
    mustSupport: true
    index: 3
    extensions:
      offender: {url: null, short: Tatperson, index: 4}
      form: {url: null, short: Form der Gewalt, index: 5}
      result: {url: null, short: Folge der Gewalt, index: 6}
    elements:
      extension:
        short: Tatperson
        index: 4
        slicing:
          slices:
            offender:
              match: {}
              schema: {short: Tatperson, index: 4}
            form:
              match: {}
              schema: {short: Form der Gewalt, index: 5}
            result:
              match: {}
              schema: {short: Folge der Gewalt, index: 6}
class: profile
kind: resource
url: http://fhir.ch/ig/ch-ems/StructureDefinition/ch-ems-encounter
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-encounter
version: 2.0.0-ballot
required: [basedOn, identifier, period]