description: รหัสสถานะผู้มารับบริการเมื่อเสร็จสิ้นบริการ package_name: silth.fhir.th.extensions derivation: constraint name: EX_TH_EncounterDischargeStatus type: Extension elements: extension: {index: 0} url: pattern: {type: Uri, value: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-discharge-status'} index: 1 value: choices: [valueCodeableConcept] index: 3 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 4} value[x]: elements: coding: index: 5 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: thccService: match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-discharge-status'} schema: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-thcc-discharge-status'} mustSupport: true index: 6 elements: system: pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-discharge-status'} index: 7 required: [system] thccChronic: match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-chronic-discharge-reason'} schema: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-thcc-chronic-discharge-reason'} mustSupport: true index: 8 elements: system: pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-chronic-discharge-reason'} index: 9 required: [system] chiTypeOut: match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-chi-typeout'} schema: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-chi-typeout'} mustSupport: true index: 10 elements: system: pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-chi-typeout'} index: 11 required: [system] package_version: 1.0.0 extensions: {} class: extension kind: complex-type url: https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-discharge-status base: http://hl7.org/fhir/StructureDefinition/Extension version: 1.0.0 required: [value, valueCodeableConcept]