description: ผู้ป่วย/ผู้รับบริการสุขภาพ package_name: silth.fhir.th.mophpc1 derivation: constraint name: MophPcPatientBase type: Patient elements: address: mustSupport: true index: 66 extensions: addressCode: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-address-code', min: 0, max: 1, type: Extension, short: รหัสที่อยู่ ตามกรมการปกครอง, mustSupport: true, index: 67} geolocation: {url: 'http://hl7.org/fhir/StructureDefinition/geolocation', min: 0, max: 1, type: Extension, short: พิกัดละติจูด ลองจิจูด, mustSupport: true, index: 68} structuredLine: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-structured-line', min: 0, max: 1, type: Extension, short: รายละเอียดที่อยู่, mustSupport: true, index: 69} locationRef: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-home-reference', min: 0, max: 1, type: Extension, short: อ้่างอิงไปยัง Location resource ที่เก็บข้อมูลบ้าน, mustSupport: true, index: 70} houseType: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-house-type', min: 0, max: 1, type: Extension, short: ลักษณะของที่อยู่, mustSupport: true, index: 71} elements: extension: type: Extension short: รหัสที่อยู่ ตามกรมการปกครอง mustSupport: true url: https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-address-code index: 67 slicing: slices: addressCode: match: {} schema: {type: Extension, short: รหัสที่อยู่ ตามกรมการปกครอง, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-address-code', index: 67} min: 0 max: 1 geolocation: match: {} schema: {type: Extension, short: พิกัดละติจูด ลองจิจูด, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/geolocation', index: 68} min: 0 max: 1 structuredLine: match: {} schema: {type: Extension, short: รายละเอียดที่อยู่, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-structured-line', index: 69} min: 0 max: 1 locationRef: match: {} schema: {type: Extension, short: อ้่างอิงไปยัง Location resource ที่เก็บข้อมูลบ้าน, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-home-reference', index: 70} min: 0 max: 1 houseType: match: {} schema: {type: Extension, short: ลักษณะของที่อยู่, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-house-type', index: 71} min: 0 max: 1 type: {mustSupport: true, index: 72} text: {mustSupport: true, index: 73} line: {mustSupport: true, index: 74} city: {mustSupport: true, index: 75} district: {mustSupport: true, index: 76} state: {mustSupport: true, index: 77} postalCode: {mustSupport: true, index: 78} name: short: ชื่อ-นามกสุล mustSupport: true index: 33 slicing: rules: open discriminator: - {path: 'extension(''http://hl7.org/fhir/StructureDefinition/language'').value', type: value} min: null slices: thai: match: extension('http://hl7: org/fhir/StructureDefinition/language'): {value: null} schema: short: ชื่อ-นามสกุล ภาษาไทย mustSupport: true array: true index: 34 extensions: language: url: http://hl7.org/fhir/StructureDefinition/language type: Extension mustSupport: true index: 36 elements: value: pattern: {type: Code, value: th} choices: [] index: 38 elements: extension: index: 35 slicing: slices: language: match: {} schema: type: Extension mustSupport: true url: http://hl7.org/fhir/StructureDefinition/language index: 36 elements: value: pattern: {type: Code, value: th} choices: [] index: 38 family: {short: นามสกุล ภาษาไทย, mustSupport: true, index: 39} given: {short: ชื่อ ภาษาไทย, mustSupport: true, index: 40} prefix: short: คำนำหน้า ภาษาไทย mustSupport: true index: 41 extensions: prefixCode: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-humanname-name-prefix', min: 0, max: 1, type: Extension, short: รหัสคำนำหน้าชื่อ, index: 43} elements: extension: index: 42 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: prefixCode: match: {url: null} schema: {type: Extension, short: รหัสคำนำหน้าชื่อ, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-humanname-name-prefix', index: 43} min: 0 max: 1 required: [extension] english: match: extension('http://hl7: org/fhir/StructureDefinition/language'): {value: null} schema: short: ชื่อ-นามสกุล ภาษาอังกฤษ (ถ้ามี) mustSupport: true array: true index: 44 extensions: language: url: http://hl7.org/fhir/StructureDefinition/language type: Extension index: 46 elements: value: pattern: {type: Code, value: en} choices: [] index: 48 elements: extension: index: 45 slicing: slices: language: match: {} schema: type: Extension url: http://hl7.org/fhir/StructureDefinition/language index: 46 elements: value: pattern: {type: Code, value: en} choices: [] index: 48 family: {short: นามสกุล ภาษาอังกฤษ, mustSupport: true, index: 49} given: {short: ชื่อ ภาษาอังกฤษ, mustSupport: true, index: 50} prefix: {short: คำนำหน้า ภาษาอังกฤษ, mustSupport: true, index: 51} required: [extension] birthDate: {short: วันเกิด, mustSupport: true, index: 65} extension: index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: nationality: match: {url: null} schema: {type: Extension, short: สัญชาติของผู้ป่วย, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-th-patient-nationality', index: 1} min: 0 race: match: {url: null} schema: {type: Extension, short: เชื้อชาติของผู้ป่วย, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-patient-race', index: 2} min: 0 religion: match: {url: null} schema: {type: Extension, short: ความเชื่อทางศาสนาของผู้ป่วย, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-th-patient-religion', index: 3} min: 0 max: 1 disability: match: {url: null} schema: {type: Extension, short: ประเภทความพิการ, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-th-patient-extension-disability', index: 4} min: 0 educationLevel: match: {url: null} schema: {type: Extension, short: ระดับการศึกษาสูงสุดของผู้ป่วย, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-patient-education-level', index: 5} min: 0 personStatus: match: {url: null} schema: {type: Extension, short: สถานะบุคคลของผู้ป่วย, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-patient-person-status', index: 6} min: 0 pidRemoveReason: match: {url: null} schema: {type: Extension, short: สถานะ/สาเหตุการจำหน่ายจากเขตรับผิดชอบ (ถ้ามี), mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-patient-pid-remove-reason', index: 7} min: 0 identifier: mustSupport: true index: 8 slicing: rules: open discriminator: - {path: type, type: pattern} min: null slices: pid: match: type: coding: - {code: localPid, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} schema: short: เลขทะเบียนของบุคคลที่มาขึ้นทะเบียนในสถานบริการนั้นๆ mustSupport: true index: 9 elements: type: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'} pattern: type: CodeableConcept value: coding: - {code: localPid, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} index: 10 system: constraint: PID-uri: {human: 'เลขทะเบียนของบุคคล (PID) ควรมี system URL ในรูปแบบ https://terms.sil-th.org/hcode/5/{XXXXX}/PID หรือ https://terms.sil-th.org/hcode/9/{XXXXX}/PID โดยที่ {XXXXX} คือรหัส HCODE 5 หลัก หรือ 9 หลัก ซึ่งออกโดยกยผ.', source: 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base', severity: warning, expression: 'value.matches(''^(https://terms.sil-th.org/hcode/5/[0-9]{5}/PID)$'') or value.matches(''^(https://terms.sil-th.org/hcode/9/[0-9]{9}/PID)$'')'} index: 11 value: {index: 12} period: elements: start: {short: วันที่ย้ายเข้ามาเขตพื้นที่รับผิดชอบ, index: 13} end: {short: วันที่จำหน่าย, index: 14} required: [value, type, system] cid: match: type: coding: - {code: cid, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} schema: short: เลขประจำตัวประชาชน mustSupport: true index: 15 elements: type: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'} pattern: type: CodeableConcept value: coding: - {code: cid, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} index: 16 system: pattern: {type: Uri, value: 'https://terms.sil-th.org/id/th-cid'} index: 17 value: constraint: CID-length: {human: เลขประจำตัวประชาชน (CID) ควรมีความยาว 13 หลัก, source: 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base', severity: warning, expression: 'value.matches(''^([0-9]{13})$'')'} index: 18 required: [value, type, system] pwd: match: type: coding: - {code: disability, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} schema: short: เลขประจำตัวคนพิการ (Person With Disability - PWD) mustSupport: true index: 19 elements: type: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'} pattern: type: CodeableConcept value: coding: - {code: disability, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} index: 20 system: pattern: {type: Uri, value: 'https://terms.sil-th.org/id/th-disability-no'} index: 21 value: {index: 22} period: elements: start: {short: วันขึ้นทะเบียนบัตรผู้พิการ, index: 23} end: {short: วันหมดอายุบัตรผู้พิการ, index: 24} required: [value, type, system] hn: match: type: coding: - {code: localHn, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} schema: short: เลขประจำตัวผู้ป่วย (HN) mustSupport: true index: 25 elements: type: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'} pattern: type: CodeableConcept value: coding: - {code: localHn, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} index: 26 system: constraint: HN-uri: {human: 'เลขประจำตัวผู้ป่วย (HN) ควรมี system URL ในรูปแบบ https://terms.sil-th.org/hcode/5/{XXXXX}/HN หรือ https://terms.sil-th.org/hcode/9/{XXXXX}/HN โดยที่ {XXXXX} คือรหัส HCODE 5 หลัก หรือ 9 หลัก ซึ่งออกโดยกยผ.', source: 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base', severity: warning, expression: 'value.matches(''^(https://terms.sil-th.org/hcode/5/[0-9]{5}/HN)$'') or value.matches(''^(https://terms.sil-th.org/hcode/9/[0-9]{9}/HN)$'')'} index: 27 value: {index: 28} required: [value, type, system] passportNo: match: type: coding: - {code: PPN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'} schema: short: เลขที่ passport กรณีที่เป็นประชากรต่างด้าวที่มีเลขที่ passport mustSupport: true array: true index: 29 elements: type: binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/identifier-type'} pattern: type: CodeableConcept value: coding: - {code: PPN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 30 system: constraint: Passport-uri: {human: 'หมายเลขหนังสือเดินทาง (Passport) ควรมี system URL ในรูปแบบ http://hl7.org/fhir/sid/passport-{XXX} โดยที่ {XXX} คือรหัสประเทศ 3 หลักซึ่งออกโดย ISO 3166', source: 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base', severity: warning, expression: 'value.matches(''^(http://hl7.org/fhir/sid/passport-[A-Z]{3})$'')'} index: 31 value: {index: 32} required: [value, type, system] telecom: mustSupport: true index: 52 slicing: rules: open discriminator: - {path: system, type: value} - {path: use, type: value} min: null slices: phone: match: {system: phone, use: home} schema: short: เบอร์โทรศัพท์ติดต่อที่ไม่ใช่มือถือ ไม่ต้องใส่เครื่องหมายขีด (-) mustSupport: true array: true index: 53 elements: system: pattern: {type: Code, value: phone} index: 54 value: {mustSupport: true, index: 55} use: pattern: {type: Code, value: home} index: 56 required: [system, use] mobilePhone: match: {system: phone, use: mobile} schema: short: เบอร์โทรศัพท์มือถือ ไม่ต้องใส่เครื่องหมายขีด (-) mustSupport: true array: true index: 57 elements: system: pattern: {type: Code, value: phone} index: 58 value: {mustSupport: true, index: 59} use: pattern: {type: Code, value: mobile} index: 60 required: [system, use] email: match: {system: email, use: null} schema: short: E-mail สำหรับติดต่อ mustSupport: true array: true index: 61 elements: system: pattern: {type: Code, value: email} index: 62 value: {mustSupport: true, index: 63} required: [system] generalPractitioner: type: Reference short: แพทย์ประจำตัว หรือสถานพยาบาลปฐมภูมิของบุคคล 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: 85 gender: {short: เพศ, mustSupport: true, index: 64} maritalStatus: short: สถานะสมรส mustSupport: true index: 79 elements: coding: index: 80 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: thcc: match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-marital'} schema: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-thcc-marital'} index: 81 elements: system: pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-marital'} index: 82 required: [system] hl7: match: {system: 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus'} schema: binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/marital-status'} index: 83 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus'} index: 84 required: [system] package_version: 0.1.1 extensions: nationality: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-th-patient-nationality', min: 0, type: Extension, short: สัญชาติของผู้ป่วย, mustSupport: true, index: 1} race: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-patient-race', min: 0, type: Extension, short: เชื้อชาติของผู้ป่วย, mustSupport: true, index: 2} religion: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-th-patient-religion', min: 0, max: 1, type: Extension, short: ความเชื่อทางศาสนาของผู้ป่วย, mustSupport: true, index: 3} disability: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-th-patient-extension-disability', min: 0, type: Extension, short: ประเภทความพิการ, mustSupport: true, index: 4} educationLevel: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-patient-education-level', min: 0, type: Extension, short: ระดับการศึกษาสูงสุดของผู้ป่วย, mustSupport: true, index: 5} personStatus: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-patient-person-status', min: 0, type: Extension, short: สถานะบุคคลของผู้ป่วย, mustSupport: true, index: 6} pidRemoveReason: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-patient-pid-remove-reason', min: 0, type: Extension, short: สถานะ/สาเหตุการจำหน่ายจากเขตรับผิดชอบ (ถ้ามี), mustSupport: true, index: 7} class: profile kind: resource url: https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base base: http://hl7.org/fhir/StructureDefinition/Patient version: 0.1.1