PackagesCanonicalsLogsProblems
    Packages
    laniado.test.fhir.r4@0.1.91
    http://fhir.laniado.org.il/StructureDefinition/encounter-medical-record
description: This resource represents a specific sections within an encounter,\r\nsuch as Admission, Discharge, or Operation.\r\nIt ensures consistent documentation by categorizing key clinical events and activities.
package_name: laniado.test.fhir.r4
derivation: constraint
name: EncounterMedicalRecord
type: Encounter
elements:
  diagnosis:
    elements:
      condition:
        type: Reference
        refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-condition']
        index: 24
      use:
        elements:
          coding:
            index: 25
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                sugRec:
                  match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-sug-rec'}
                  schema:
                    index: 26
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-sug-rec'}
                        index: 27
                    required: [system]
                role:
                  match: {system: 'http://terminology.hl7.org/CodeSystem/diagnosis-role'}
                  schema:
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/diagnosis-role'}
                    index: 28
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/diagnosis-role'}
                        index: 29
                    required: [system]
      rank: {index: 30}
    required: [rank]
  serviceProvider:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-organization']
    index: 45
  type:
    index: 12
    slicing:
      slices:
        sug-mismach:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/k-emr-sug-mismach'}
            _required: true
            index: 13
            elements:
              coding:
                index: 14
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-emr-sug-mismach'}
                    index: 15
            required: [coding]
  participant:
    index: 17
    elements:
      individual:
        type: Reference
        refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner']
        index: 18
    required: [individual]
    slicing:
      slices:
        primary-performer:
          match: {}
          schema:
            _required: true
            index: 19
            elements:
              individual:
                type: Reference
                refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner']
                index: 20
        authenticator:
          match: {}
          schema:
            index: 21
            elements:
              type:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                        index: 22
                      code:
                        pattern: {type: Code, value: AUTHEN}
                        index: 23
  class:
    pattern:
      type: Coding
      value: {code: '311791003', system: 'http://snomed.info/sct', display: Information gathering}
    index: 11
  identifier:
    index: 0
    elements:
      system: {index: 1}
      value: {short: The value that is unique within the system., index: 2}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        emrMismachim:
          match: {system: 'http://fhir.laniado.org.il/Identifier/emr-mismachim'}
          schema:
            mustSupport: true
            _required: true
            index: 3
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/emr-mismachim'}
                index: 4
              value:
                constraint:
                  enc-mismach-id: {human: The emr-mismachim id must meet the specified requirements, source: 'http://fhir.laniado.org.il/StructureDefinition/encounter-medical-record', severity: error, expression: 'matches(''^20[0-9]{10}$'')'}
                index: 5
              assigner:
                elements:
                  reference:
                    pattern: {type: String, value: Organization/01604}
                    index: 6
                  identifier:
                    index: 7
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'}
                        index: 8
                      value:
                        pattern: {type: String, value: '01604'}
                        index: 9
                  display:
                    pattern: {type: String, value: בית חולים לניאדו}
                    index: 10
                required: [identifier]
  partOf:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/encounter-admission']
    index: 46
  location:
    elements:
      location:
        type: Reference
        refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-location']
        index: 31
      physicalType:
        elements:
          coding:
            index: 32
            slicing:
              rules: open
              discriminator:
              - {path: code, type: value}
              min: null
              slices:
                dep:
                  match: {code: wa}
                  schema:
                    index: 33
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                        index: 34
                      code:
                        pattern: {type: Code, value: wa}
                        index: 35
                      display:
                        pattern: {type: String, value: Ward}
                        index: 36
                    required: [code]
                room:
                  match: {code: ro}
                  schema:
                    index: 37
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                        index: 38
                      code:
                        pattern: {type: Code, value: ro}
                        index: 39
                      display:
                        pattern: {type: String, value: Room}
                        index: 40
                    required: [code]
                bed:
                  match: {code: bd}
                  schema:
                    index: 41
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                        index: 42
                      code:
                        pattern: {type: Code, value: bd}
                        index: 43
                      display:
                        pattern: {type: String, value: Bed}
                        index: 44
                    required: [code]
  subject:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-patient']
    index: 16
package_version: 0.1.91
class: profile
kind: resource
url: http://fhir.laniado.org.il/StructureDefinition/encounter-medical-record
base: http://fhir.health.gov.il/StructureDefinition/il-core-encounter
version: null
required: [participant, identifier, type]