description: This resource represents a department movement during an encounter, starting with the first location. package_name: laniado.test.fhir.r4 derivation: constraint name: EncounterDepartment type: Encounter elements: 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: department: match: {system: 'http://fhir.laniado.org.il/Identifier/encounter-department'} schema: short: Department movement ID mustSupport: true _required: true index: 3 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/encounter-department'} index: 4 value: short: A Department movement ID constraint: enc-dep-id: {human: The department transitions id must meet the specified requirements, source: 'http://fhir.laniado.org.il/StructureDefinition/encounter-department', severity: error, expression: 'matches(''^20[0-9]{8}-[0-9]{8}-[0-9]{6}$'')'} 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] type: index: 11 slicing: slices: care-management: match: {} schema: binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/encounter-department-type'} _required: true index: 12 elements: coding: index: 13 slicing: rules: open discriminator: - {path: code, type: value} min: 1 slices: inpatient: match: {code: null} schema: pattern: type: Coding value: {code: '737481003', system: 'http://snomed.info/sct', display: Inpatient care management} index: 14 min: 0 max: 1 outpatient: match: {code: null} schema: pattern: type: Coding value: {code: '737492002', system: 'http://snomed.info/sct', display: Outpatient care management} index: 15 min: 0 max: 1 required: [coding] subject: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-patient'] index: 16 diagnosis: elements: condition: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-condition'] index: 17 use: elements: coding: index: 18 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: 19 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-sug-rec'} index: 20 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: 21 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/diagnosis-role'} index: 22 required: [system] rank: {index: 23} required: [rank] location: elements: location: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-location'] index: 24 physicalType: elements: coding: index: 25 slicing: rules: open discriminator: - {path: code, type: value} min: null slices: dep: match: {code: wa} schema: index: 26 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} index: 27 code: pattern: {type: Code, value: wa} index: 28 display: pattern: {type: String, value: Ward} index: 29 required: [code] room: match: {code: ro} schema: index: 30 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} index: 31 code: pattern: {type: Code, value: ro} index: 32 display: pattern: {type: String, value: Room} index: 33 required: [code] bed: match: {code: bd} schema: index: 34 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} index: 35 code: pattern: {type: Code, value: bd} index: 36 display: pattern: {type: String, value: Bed} index: 37 required: [code] serviceProvider: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-organization'] index: 38 partOf: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/encounter-admission'] index: 39 package_version: 0.1.66 class: profile kind: resource url: http://fhir.laniado.org.il/StructureDefinition/encounter-department base: http://fhir.health.gov.il/StructureDefinition/il-core-encounter version: null required: [identifier, type]