<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://example.org/fhir/StructureDefinition/SirirajPatientProfile" />
  <name value="SirirajPatientProfile" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient">
      <path value="Patient" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.extension">
      <path value="Patient.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.extension:religion">
      <path value="Patient.extension" />
      <sliceName value="religion" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/SirirajPatientReligionExtension" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.extension:race">
      <path value="Patient.extension" />
      <sliceName value="race" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/SirirajPatientRaceExtension" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.extension:nationality">
      <path value="Patient.extension" />
      <sliceName value="nationality" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/SirirajPatientExtension" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier.use">
      <path value="Patient.identifier.use" />
      <short value="ประเภท : usual | official | temp | secondary | old (If known)" />
    </element>
    <element id="Patient.identifier.type.coding.system">
      <path value="Patient.identifier.type.coding.system" />
      <short value="Terminology Source Reference" />
    </element>
    <element id="Patient.identifier.type.coding.code">
      <path value="Patient.identifier.type.coding.code" />
      <short value="รหัสประเภทข้อมูล" />
    </element>
    <element id="Patient.identifier.type.coding.display">
      <path value="Patient.identifier.type.coding.display" />
      <short value="คำอธิบายประเภทข้อมูล" />
      <definition value="NationalID | HospitalNo | PassportNo | Work Permit" />
    </element>
    <element id="Patient.identifier.system">
      <path value="Patient.identifier.system" />
      <short value="Source reference URL" />
    </element>
    <element id="Patient.identifier.value">
      <path value="Patient.identifier.value" />
      <short value="ข้อมูล" />
      <definition value="เลขที่บัตรประชาชน (National ID.)&#xD;&#xA;เลขประจำตัวผู้ป่วย (Hospital Number)&#xD;&#xA;เลขที่หนังสือเดินทาง (Passport Number)&#xD;&#xA;เลขที่ใบอนุญาตทำงานในประเทศสำหรับบุคคลต่างด้าว  (Work Permit Number)" />
    </element>
    <element id="Patient.active">
      <path value="Patient.active" />
      <short value="สถานะของผู้ป่วย" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.name">
      <path value="Patient.name" />
      <short value="ชื่อ นามสกุลผู้ป่วย" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.name.extension">
      <path value="Patient.name.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.name.extension:language">
      <path value="Patient.name.extension" />
      <sliceName value="language" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/SirirajPatientNameExtension" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.name.use">
      <path value="Patient.name.use" />
      <short value="ประเภท : usual | official | temp | nickname | anonymous | old | maiden" />
    </element>
    <element id="Patient.name.text">
      <path value="Patient.name.text" />
      <short value="ชื่อ" />
      <definition value="คำนำหน้า ชื่อ นามสกุล" />
    </element>
    <element id="Patient.name.family">
      <path value="Patient.name.family" />
      <short value="นามสกุล" />
    </element>
    <element id="Patient.name.given">
      <path value="Patient.name.given" />
      <short value="ชื่อ" />
    </element>
    <element id="Patient.name.prefix">
      <path value="Patient.name.prefix" />
      <short value="คำนำหน้าชื่อ" />
    </element>
    <element id="Patient.telecom">
      <path value="Patient.telecom" />
      <short value="ช่องทางการติดต่อสื่อสาร" />
      <definition value="Home Phone    โทรศัพท์บ้าน&#xD;&#xA;Mobile Phone   โทรศัพท์&#xD;&#xA;Email  อีเมล์แอดเดรส" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.telecom.system">
      <path value="Patient.telecom.system" />
      <short value="รูปแบบการสื่อสาร : phone | fax | email | pager | url | sms | other" />
    </element>
    <element id="Patient.telecom.value">
      <path value="Patient.telecom.value" />
      <short value="ข้อมูลการสื่อสาร" />
    </element>
    <element id="Patient.telecom.use">
      <path value="Patient.telecom.use" />
      <short value="ประเภท : home | work | temp | old | mobile - purpose of this contact point" />
    </element>
    <element id="Patient.gender">
      <path value="Patient.gender" />
      <short value="การระบุเพศ : male | female | other | unknown" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.birthDate">
      <path value="Patient.birthDate" />
      <short value="วัน เดือน ปีเกิด" />
      <definition value="รูปแบบของวันเกิด  ปี ค.ศ. - เดือน - วัน ( yyyy-MM-dd)" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.deceased[x]">
      <path value="Patient.deceased[x]" />
      <short value="สถานะการมีชีวิตของบุคคล" />
      <definition value="True  = ยังมีชีวิต&#xD;&#xA;False = เสียชีวิตแล้ว" />
      <type>
        <code value="boolean" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Patient.address">
      <path value="Patient.address" />
      <short value="ที่อยู่สำหรับติดต่อ (ผู้ป่วย)" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.address.line">
      <path value="Patient.address.line" />
      <short value="ที่อยู่" />
    </element>
    <element id="Patient.address.city">
      <path value="Patient.address.city" />
      <short value="ตำบล" />
    </element>
    <element id="Patient.address.district">
      <path value="Patient.address.district" />
      <short value="อำเภอ" />
    </element>
    <element id="Patient.address.state">
      <path value="Patient.address.state" />
      <short value="จังหวัด" />
    </element>
    <element id="Patient.address.postalCode">
      <path value="Patient.address.postalCode" />
      <short value="รหัสไปรษณีย์" />
    </element>
    <element id="Patient.address.country">
      <path value="Patient.address.country" />
      <short value="ประเทศ" />
    </element>
    <element id="Patient.maritalStatus">
      <path value="Patient.maritalStatus" />
      <short value="สถานภาพสมรส" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.maritalStatus.coding">
      <path value="Patient.maritalStatus.coding" />
      <definition value="อ้างอิง code system จาก 2 แหล่งคือ&#xD;&#xA;1. http://terminology.hl7.org/CodeSystem/v3-MaritalStatus&#xD;&#xA;2. http://si.mahidol.ac.th/eHIS/MP_PATIENT" />
    </element>
    <element id="Patient.maritalStatus.coding.system">
      <path value="Patient.maritalStatus.coding.system" />
      <short value="Terminology Source Reference" />
      <definition value="อ้างอิง code system จาก 2 แหล่งคือ&#xD;&#xA;1. http://terminology.hl7.org/CodeSystem/v3-MaritalStatus&#xD;&#xA;2. http://si.mahidol.ac.th/eHIS/MP_PATIENT" />
    </element>
    <element id="Patient.maritalStatus.coding.code">
      <path value="Patient.maritalStatus.coding.code" />
      <short value="รหัสสถานภาพสมรส" />
    </element>
    <element id="Patient.maritalStatus.coding.display">
      <path value="Patient.maritalStatus.coding.display" />
      <short value="คำอธิบายสถานภาพสมรส" />
    </element>
    <element id="Patient.photo">
      <path value="Patient.photo" />
      <short value="รูปผู้ป่วย" />
      <definition value="รูปถ่ายผู้ป่วยทีบันทึกในเวชระเบียน" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>