PackagesCanonicalsLogsProblems
    Packages
    il.tasmc.fhir.r4@0.9.5
    http://fhir.tasmc.org.il/StructureDefinition/encounter-inpatient-care-segment
description: Sourasky (TASMC) inpatient care segment encounter profile with local constraints
package_name: il.tasmc.fhir.r4
derivation: constraint
name: TasmcEncounterInpatientCareSegment
type: Encounter
elements:
  identifier:
    array: true
    min: 2
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: 2
      slices:
        adm:
          match:
            type:
              coding:
              - {code: strong-id, system: 'http://fhir.health.gov.il/cs/il-core-identifier-type'}
          schema:
            _required: true
            index: 1
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: strong-id, system: 'http://fhir.health.gov.il/cs/il-core-identifier-type'}
                index: 2
                elements:
                  coding:
                    index: 3
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-core-identifier-type'}
                        index: 4
                      code:
                        pattern: {type: Code, value: strong-id}
                        index: 5
                      display:
                        pattern: {type: String, value: Strong Identifier}
                        index: 6
                required: [coding]
              system:
                pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/cml-medical-record'}
                index: 7
            required: [type]
        adm-local:
          match:
            type:
              coding:
              - {code: adm, system: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
          schema:
            _required: true
            index: 8
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: adm, system: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
                index: 9
                elements:
                  coding:
                    index: 10
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
                        index: 11
                      code:
                        pattern: {type: Code, value: adm}
                        index: 12
                      display:
                        pattern: {type: String, value: admission}
                        index: 13
                required: [coding]
              system:
                pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/cml-medical-record'}
                index: 14
            required: [type]
        followup:
          match:
            type:
              coding:
              - {code: followup, system: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
          schema:
            index: 15
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: followup, system: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
                index: 16
                elements:
                  coding:
                    index: 17
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
                        index: 18
                      code:
                        pattern: {type: Code, value: followup}
                        index: 19
                      display:
                        pattern: {type: String, value: Followup}
                        index: 20
                required: [coding]
              system:
                pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/cml-medical-record'}
                index: 21
            required: [type]
        release:
          match:
            type:
              coding:
              - {code: release, system: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
          schema:
            index: 22
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: release, system: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
                index: 23
                elements:
                  coding:
                    index: 24
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/cs/local-identifier-type'}
                        index: 25
                      code:
                        pattern: {type: Code, value: release}
                        index: 26
                      display:
                        pattern: {type: String, value: Release}
                        index: 27
                required: [coding]
              system:
                pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/cml-medical-record'}
                index: 28
            required: [type]
  class:
    elements:
      system:
        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
        index: 29
  type:
    index: 30
    slicing:
      slices:
        inpatient-care-segment:
          match: {}
          schema:
            index: 30
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-core-encounter-type'}
                    index: 31
                  code:
                    pattern: {type: Code, value: inpatient-care-segment-hdp}
                    index: 32
  serviceType:
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://snomed.info/sct'}
            index: 33
  subject:
    elements:
      identifier:
        elements:
          system:
            pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/cml-pat-num'}
            index: 34
          value: {index: 35}
        required: [value, system]
  participant:
    index: 36
    slicing:
      slices:
        primary-performer:
          match: {}
          schema:
            index: 36
            elements:
              type:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                        index: 37
                      code:
                        pattern: {type: Code, value: PPRF}
                        index: 38
                      display:
                        pattern: {type: String, value: primary performer}
                        index: 39
  location:
    index: 40
    slicing:
      slices:
        nursing-unit:
          match: {}
          schema:
            index: 40
            elements:
              physicalType:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-core-location-physical-type'}
                        index: 41
                      code:
                        pattern: {type: Code, value: hospital-nursing-unit}
                        index: 42
                      display:
                        pattern: {type: String, value: Hospital nursing unit}
                        index: 43
  serviceProvider:
    elements:
      identifier:
        elements:
          system:
            pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/unit_id'}
            index: 44
package_version: 0.9.5
class: profile
kind: resource
url: http://fhir.tasmc.org.il/StructureDefinition/encounter-inpatient-care-segment
base: http://hdp.fhir.health.gov.il/StructureDefinition/il-hdp-encounter-inpatient-care-segment
version: 0.9.3