description: การรวมข้อมูลที่เกี่ยวข้องกับการรับบริการครั้งนั้นไว้เป็นเอกสารชุดเดียว package_name: silth.fhir.th.mophpc1 derivation: constraint name: MophPCVisitComposition type: Composition elements: date: {mustSupport: true, index: 13} encounter: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-encounter-base'] index: 12 section: index: 17 elements: code: {index: 18} required: [code] slicing: rules: open discriminator: - {path: code, type: value} min: null slices: sectionLaboratory: match: code: coding: - {code: 30954-2, system: 'http://loinc.org', display: Relevant diagnostic tests/laboratory data Narrative} schema: short: ผลการตรวจทางห้องปฏิบัติการ index: 63 elements: title: mustSupport: true pattern: {type: String, value: Laboratory Test Result} index: 64 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 30954-2, system: 'http://loinc.org', display: Relevant diagnostic tests/laboratory data Narrative} index: 65 entry: mustSupport: true index: 66 slicing: rules: open discriminator: - {path: resolve(), type: type} - {path: resolve(), type: profile} min: 1 slices: results-observation: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-observation-lab-base'] array: true index: 67 min: 0 results-diagnosticReport: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-diagnosticreport-base'] array: true index: 68 min: 0 required: [entry] sectionPastIllness: match: code: coding: - {code: 11348-0, system: 'http://loinc.org', display: History of Past illness Narrative} schema: short: ประวัติการเจ็บป่วยในอดีต index: 42 elements: title: mustSupport: true pattern: {type: String, value: History of Past Illness} index: 43 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 11348-0, system: 'http://loinc.org', display: History of Past illness Narrative} index: 44 entry: mustSupport: true index: 45 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: 1 slices: pastIllness: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-condition-base'] array: true index: 46 min: 0 required: [entry] sectionDocumentReference: match: code: coding: - {code: '423876004', system: 'http://snomed.info/sct', display: Clinical document} schema: short: ภาพสแกนเอกสารหรือภาพถ่ายทางการแพทย์ index: 69 elements: title: mustSupport: true pattern: {type: String, value: Scanned medical records or medical images} index: 70 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: '423876004', system: 'http://snomed.info/sct', display: Clinical document} index: 71 entry: mustSupport: true index: 72 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: 1 slices: documentReference: match: {} schema: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference'] array: true index: 73 min: 0 required: [entry] sectionProblemList: match: code: coding: - {code: 11450-4, system: 'http://loinc.org', display: Problem list - Reported} schema: short: สรุปรายการปัญหาของผู้รับบริการ index: 37 elements: title: mustSupport: true pattern: {type: String, value: Problem list} index: 38 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 11450-4, system: 'http://loinc.org', display: Problem list - Reported} index: 39 entry: mustSupport: true index: 40 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: 1 slices: problemList: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-condition-base'] array: true index: 41 min: 0 required: [entry] sectionDiagnosticTest: match: code: coding: - {code: 30954-2, system: 'http://loinc.org', display: Relevant diagnostic tests/laboratory data Narrative} schema: short: ผลการตรวจทางคลินิกอื่น ๆ เช่น EKG index: 57 elements: title: mustSupport: true pattern: {type: String, value: Diagnostic Studies Result} index: 58 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 30954-2, system: 'http://loinc.org', display: Relevant diagnostic tests/laboratory data Narrative} index: 59 entry: mustSupport: true index: 60 slicing: rules: open discriminator: - {path: resolve(), type: type} - {path: resolve(), type: profile} min: 1 slices: results-observation: match: {} schema: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Observation'] array: true index: 61 min: 0 results-diagnosticReport: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-diagnosticreport-base'] array: true index: 62 min: 0 required: [entry] sectionAllergies: match: code: coding: - {code: 48765-2, system: 'http://loinc.org', display: Allergies and adverse reactions Document} schema: short: ประวัติแพ้ยาแพ้อาหาร index: 19 elements: title: mustSupport: true pattern: {type: String, value: Allergy Intolerance} index: 20 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 48765-2, system: 'http://loinc.org', display: Allergies and adverse reactions Document} index: 21 entry: mustSupport: true index: 22 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: 1 slices: allergyIntolerance: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-allergyintolerance-base'] array: true index: 23 min: 0 required: [entry] sectionProcedures: match: code: coding: - {code: 47519-4, system: 'http://loinc.org', display: History of Procedures Document} schema: short: ประวัติการผ่าตัด index: 47 elements: title: mustSupport: true pattern: {type: String, value: Procedure} index: 48 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 47519-4, system: 'http://loinc.org', display: History of Procedures Document} index: 49 entry: mustSupport: true index: 50 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: 1 slices: procedure: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-procedure-base'] array: true index: 51 min: 0 required: [entry] sectionVitalSigns: match: code: coding: - {code: 8716-3, system: 'http://loinc.org', display: Vital signs} schema: short: ผลการวัดสัญญาณชีพ index: 52 elements: title: mustSupport: true pattern: {type: String, value: Vital Signs} index: 53 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 8716-3, system: 'http://loinc.org', display: Vital signs} index: 54 entry: mustSupport: true index: 55 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: 1 slices: vitalSigns: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-observation-vital-base'] array: true index: 56 min: 0 required: [entry] sectionImmunizations: match: code: coding: - {code: 11369-6, system: 'http://loinc.org', display: History of Immunization Narrative} schema: short: ประวัติการรับวัคซีน index: 32 elements: title: mustSupport: true pattern: {type: String, value: Immunization} index: 33 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 11369-6, system: 'http://loinc.org', display: History of Immunization Narrative} index: 34 entry: mustSupport: true index: 35 slicing: rules: open discriminator: - {path: resolve(), type: profile} min: 1 slices: immunization: match: {} schema: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Immunization'] array: true index: 36 min: 0 required: [entry] sectionMedications: match: code: coding: - {code: 10160-0, system: 'http://loinc.org', display: History of Medication use Narrative} schema: short: สรุปรายการยาที่ได้รับในการรับบริการครั้งนั้น index: 24 elements: title: mustSupport: true pattern: {type: String, value: Medication Summary} index: 25 code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 10160-0, system: 'http://loinc.org', display: History of Medication use Narrative} index: 26 entry: mustSupport: true index: 27 slicing: rules: open discriminator: - {path: resolve(), type: type} - {path: resolve(), type: profile} min: 1 slices: medicationRequest: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationrequest-base'] array: true index: 28 min: 0 medicationDispense: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationdispense-base'] array: true index: 29 min: 0 medicationAdministration: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationadministration-base'] array: true index: 30 min: 0 medicationStatement: match: {} schema: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationstatement-base'] array: true index: 31 min: 0 required: [entry] type: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 18842-5, system: 'http://loinc.org', display: Discharge summary} index: 10 title: pattern: {type: String, value: Visit Composition} index: 15 author: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-organization-provider', 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-practitioner-base', 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-practitionerrole-base'] index: 14 event: {index: 16} status: {mustSupport: true, index: 9} identifier: mustSupport: true index: 0 slicing: rules: open discriminator: - {path: type, type: value} min: null slices: hcode: match: type: coding: - {code: hcode, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} schema: short: รหัสสถานพยาบาล 5 หลัก หรือ 9 หลัก index: 1 elements: type: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'} pattern: type: CodeableConcept value: coding: - {code: hcode, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} index: 2 system: pattern: {type: Uri, value: 'https://terms.sil-th.org/id/th-moph-hcode'} index: 3 value: constraint: hcode-length: {human: รหัสสถานบริการ (HCODE) ควรเป็นรหัส 5 หลัก หรือ 9 หลัก, source: 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-composition-visit', severity: warning, expression: 'value.matches(''^([0-9]{5})$'') or value.matches(''^([0-9]{9})$'')'} index: 4 required: [value, type, system] depCode: match: type: coding: - {code: localDep, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} schema: short: รหัสประจำแผนก ของหน่วยบริการ index: 5 elements: type: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'} pattern: type: CodeableConcept value: coding: - {code: localDep, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} index: 6 system: {index: 7} value: {index: 8} required: [value, type, system] subject: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base'] index: 11 package_version: 1.0.0 class: profile kind: resource url: https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-composition-visit base: http://hl7.org/fhir/StructureDefinition/Composition version: 1.0.0 required: [encounter, event, subject]