<?xml version="1.0" encoding="UTF-8"?>

<Patient xmlns="http://hl7.org/fhir">
  <id value="patient-patient4"/>
  <meta>
    <profile value="https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p style="border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;"><b>นาง สมควร ใจดี</b> female, DoB: 1990-04-25 ( เลขประจำตัวประชาชนไทย: 2650591524440 (use: OFFICIAL, period: 2018-04-25 --&gt; 2022-04-25))</p><hr/><table class="grid"><tr><td style="background-color: #f3f5da" title="Record is active">Active:</td><td>true</td><td style="background-color: #f3f5da" title="Known Marital status of Patient">Marital Status:</td><td colspan="3"><span title="Codes: {http://terminology.hl7.org/CodeSystem/v3-MaritalStatus M}, {https://terms.sil-th.org/core/CodeSystem/cs-thcc-marital 2}">Married</span></td></tr><tr><td style="background-color: #f3f5da" title="Other Ids (see the one above)">Other Ids:</td><td colspan="3"><ul><li>รหัสประจำตัวบุคคลของหน่วยบริการ: 65-XXXXX (use: SECONDARY, period: 2018-04-25 --&gt; (ongoing))</li><li>เลข Hospital Number (HN) ของหน่วยบริการ: 65-XXXXX (use: SECONDARY)</li></ul></td></tr><tr><td style="background-color: #f3f5da" title="Ways to contact the Patient">Contact Details:</td><td colspan="3"><ul><li>ph: 088-8888888(MOBILE)</li><li><a href="mailto:somkuanjaidee@jaidee.com">somkuanjaidee@jaidee.com</a></li><li>123 หมู่ที่ 20 ถนนสมเด็จ ตำบลตาลสุม อำเภอตาลสุม จังหวัดอุบลราชธานี 34330(HOME)</li></ul></td></tr></table></div>
  </text>
  <identifier>
    <use value="official"/>
    <type>
      <coding>
        <system value="https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type"/>
        <code value="cid"/>
        <display value="เลขประจำตัวประชาชนไทย"/>
      </coding>
    </type>
    <system value="https://terms.sil-th.org/id/th-cid"/>
    <value value="2650591524440"/>
    <period>
      <start value="2018-04-25"/>
      <end value="2022-04-25"/>
    </period>
  </identifier>
  <identifier>
    <use value="secondary"/>
    <type>
      <coding>
        <system value="https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type"/>
        <code value="localPid"/>
        <display value="รหัสประจำตัวบุคคลของหน่วยบริการ"/>
      </coding>
    </type>
    <system value="https://terms.sil-th.org/hcode/5/99999/PID"/>
    <value value="65-XXXXX"/>
    <period>
      <start value="2018-04-25"/>
    </period>
  </identifier>
  <identifier>
    <use value="secondary"/>
    <type>
      <coding>
        <system value="https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type"/>
        <code value="localHn"/>
        <display value="เลข Hospital Number (HN) ของหน่วยบริการ"/>
      </coding>
    </type>
    <system value="https://terms.sil-th.org/hcode/5/99999/HN"/>
    <value value="65-XXXXX"/>
  </identifier>
  <active value="true"/>
  <name>
    <extension url="http://hl7.org/fhir/StructureDefinition/language">
      <valueCode value="th"/>
    </extension>
    <text value="นาง สมควร ใจดี"/>
    <family value="ใจดี"/>
    <given value="สมควร"/>
    <prefix value="นาง"/>
  </name>
  <telecom>
    <system value="phone"/>
    <value value="088-8888888"/>
    <use value="mobile"/>
  </telecom>
  <telecom>
    <system value="email"/>
    <value value="somkuanjaidee@jaidee.com"/>
  </telecom>
  <gender value="female"/>
  <birthDate value="1990-04-25"/>
  <address>
    <extension url="https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-address-code">
      <extension url="subdistrict">
        <valueCodeableConcept>
          <coding>
            <system value="https://terms.sil-th.org/core/CodeSystem/cs-dopa-location"/>
            <code value="342001"/>
            <display value="ตาลสุม"/>
          </coding>
        </valueCodeableConcept>
      </extension>
    </extension>
    <extension url="http://hl7.org/fhir/StructureDefinition/geolocation">
      <extension url="latitude">
        <valueDecimal value="78.31809"/>
      </extension>
      <extension url="longitude">
        <valueDecimal value="-133.03485"/>
      </extension>
    </extension>
    <extension url="https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-address-structured-line">
      <extension url="number">
        <valueString value="123"/>
      </extension>
      <extension url="villageNo">
        <valueString value="หมู่ที่ 20"/>
      </extension>
      <extension url="road">
        <valueString value="ถนนสมเด็จ"/>
      </extension>
    </extension>
    <use value="home"/>
    <text value="123 หมู่ที่ 20 ถนนสมเด็จ ตำบลตาลสุม อำเภอตาลสุม จังหวัดอุบลราชธานี 34330"/>
    <line value="123 หมู่ที่ 20 ถนนสมเด็จ"/>
    <city value="ตาลสุม"/>
    <district value="ตาลสุม"/>
    <state value="อุบลราชธานี"/>
    <postalCode value="34330"/>
  </address>
  <maritalStatus>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-MaritalStatus"/>
      <code value="M"/>
      <display value="Married"/>
    </coding>
    <coding>
      <system value="https://terms.sil-th.org/core/CodeSystem/cs-thcc-marital"/>
      <code value="2"/>
      <display value="คู่"/>
    </coding>
  </maritalStatus>
</Patient>