PackagesCanonicalsLogsProblems
    Packages
    silth.fhir.th.mophpc1@0.1.1
    https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-practitioner-base
description: ผู้ให้บริการสุขภาพ
package_name: silth.fhir.th.mophpc1
derivation: constraint
name: MophPcPractitionerBase
type: Practitioner
elements:
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        physioId:
          match:
            type:
              coding:
              - {code: proPhysio, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
          schema:
            short: เลขใบอนุญาตประกอบวิชาชีพกายภาพบำบัด
            mustSupport: true
            index: 29
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'}
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: proPhysio, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 30
              system: {index: 31}
              value: {index: 32}
            required: [value, type, system]
        dentId:
          match:
            type:
              coding:
              - {code: proDent, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
          schema:
            short: เลขใบอนุญาตประกอบวิชาชีพทันตกรรม
            mustSupport: true
            index: 21
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'}
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: proDent, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 22
              system: {index: 23}
              value: {index: 24}
            required: [value, type, system]
        proId:
          match:
            type:
              coding:
              - {code: localProv, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
          schema:
            short: เลขที่ผู้ให้บริการ ออกโดยโปรแกรม ไม่ซ้ำกันในสถานพยาบาลเดียวกัน
            mustSupport: true
            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: localProv, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 6
              system:
                constraint:
                  ProID-uri: {human: 'เลขที่ผู้ให้บริการ (Provider ID) ควรมี system URL ในรูปแบบ https://terms.sil-th.org/hcode/5/{XXXXX}/Provider หรือ https://terms.sil-th.org/hcode/9/{XXXXX}/Provider โดยที่ {XXXXX} คือรหัส HCODE 5 หลัก หรือ 9 หลัก ซึ่งออกโดยกยผ.', source: 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-practitioner-base', severity: warning, expression: 'value.matches(''^(https://terms.sil-th.org/hcode/5/[0-9]{5}/Provider)$'') or value.matches(''^(https://terms.sil-th.org/hcode/9/[0-9]{9}/Provider)$'')'}
                index: 7
              value: {index: 8}
            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: 1
            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: 2
              system:
                pattern: {type: Uri, value: 'https://terms.sil-th.org/id/th-cid'}
                index: 3
              value:
                constraint:
                  CID-length: {human: เลขประจำตัวประชาชน (CID) ควรมีความยาว 13 หลัก, source: 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-practitioner-base', severity: warning, expression: 'value.matches(''^([0-9]{13})$'')'}
                index: 4
            required: [value, type, system]
        doctorId:
          match:
            type:
              coding:
              - {code: proDoc, 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: proDoc, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 10
              system: {index: 11}
              value: {index: 12}
            required: [value, type, system]
        vetId:
          match:
            type:
              coding:
              - {code: proVet, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
          schema:
            short: เลขใบอนุญาตประกอบวิชาชีพการสัตวแพทย์
            mustSupport: true
            index: 33
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'}
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: proVet, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 34
              system: {index: 35}
              value: {index: 36}
            required: [value, type, system]
        nurseId:
          match:
            type:
              coding:
              - {code: proNurse, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
          schema:
            short: เลขใบอนุญาตประกอบวิชาชีพพยาบาล
            mustSupport: true
            index: 13
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'}
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: proNurse, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 14
              system: {index: 15}
              value: {index: 16}
            required: [value, type, system]
        volunId:
          match:
            type:
              coding:
              - {code: healthVolun, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
          schema:
            short: เลขประจำตัวอาสาสมัครสาธารณสุขประจำหมู่บ้าน (อสม.)
            mustSupport: true
            index: 37
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'}
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: healthVolun, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 38
              system: {index: 39}
              value: {index: 40}
            required: [value, type, system]
        pharmId:
          match:
            type:
              coding:
              - {code: proPharm, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
          schema:
            short: เลขใบอนุญาตประกอบวิชาชีพเภสัชกร
            mustSupport: true
            index: 17
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'}
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: proPharm, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 18
              system: {index: 19}
              value: {index: 20}
            required: [value, type, system]
        medtechId:
          match:
            type:
              coding:
              - {code: proMedtech, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
          schema:
            short: เลขใบอนุญาตประกอบวิชาชีพเทคนิคการแพทย์
            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: proMedtech, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'}
                index: 26
              system: {index: 27}
              value: {index: 28}
            required: [value, type, system]
  name:
    short: ชื่อ-นามกสุล
    mustSupport: true
    index: 41
    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: 42
            extensions:
              language:
                url: http://hl7.org/fhir/StructureDefinition/language
                type: Extension
                short: ภาษา
                mustSupport: true
                index: 44
                elements:
                  value:
                    pattern: {type: Code, value: th}
                    choices: []
                    index: 46
            elements:
              extension:
                index: 43
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        type: Extension
                        short: ภาษา
                        mustSupport: true
                        url: http://hl7.org/fhir/StructureDefinition/language
                        index: 44
                        elements:
                          value:
                            pattern: {type: Code, value: th}
                            choices: []
                            index: 46
              family: {short: นามสกุล ภาษาไทย, mustSupport: true, index: 47}
              given: {short: ชื่อ ภาษาไทย, mustSupport: true, index: 48}
              prefix: {short: คำนำหน้า ภาษาไทย, mustSupport: true, index: 49}
            required: [extension]
        english:
          match:
            extension('http://hl7:
              org/fhir/StructureDefinition/language'): {value: null}
          schema:
            short: ชื่อ-นามสกุล ภาษาอังกฤษ (ถ้ามี)
            array: true
            index: 50
            extensions:
              language:
                url: http://hl7.org/fhir/StructureDefinition/language
                type: Extension
                short: ภาษา
                mustSupport: true
                index: 52
                elements:
                  value:
                    pattern: {type: Code, value: en}
                    choices: []
                    index: 54
            elements:
              extension:
                index: 51
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        type: Extension
                        short: ภาษา
                        mustSupport: true
                        url: http://hl7.org/fhir/StructureDefinition/language
                        index: 52
                        elements:
                          value:
                            pattern: {type: Code, value: en}
                            choices: []
                            index: 54
              family: {short: นามสกุล ภาษาอังกฤษ, mustSupport: true, index: 55}
              given: {short: ชื่อ ภาษาอังกฤษ, mustSupport: true, index: 56}
              prefix: {short: คำนำหน้า ภาษาอังกฤษ, mustSupport: true, index: 57}
            required: [extension]
  telecom:
    mustSupport: true
    index: 58
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        phone:
          match: {system: phone}
          schema:
            short: โทรศัพท์ติดต่อ
            mustSupport: true
            array: true
            index: 59
            elements:
              system:
                pattern: {type: Code, value: phone}
                index: 60
            required: [system]
        email:
          match: {system: email}
          schema:
            short: E-mail ติดต่อ
            mustSupport: true
            array: true
            index: 61
            elements:
              system:
                pattern: {type: Code, value: email}
                index: 62
            required: [system]
  gender: {short: เพศ, mustSupport: true, index: 63}
  birthDate: {short: วันเกิด, mustSupport: true, index: 64}
  qualification:
    mustSupport: true
    index: 65
    elements:
      code: {mustSupport: true, index: 66}
      period: {mustSupport: true, index: 67}
      issuer:
        mustSupport: true
        index: 68
        extensions:
          qualificationIssuer: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-practitioner-qualification-issuer', min: 0, max: 1, type: Extension, mustSupport: true, index: 69}
        elements:
          extension:
            type: Extension
            mustSupport: true
            url: https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-practitioner-qualification-issuer
            index: 69
            slicing:
              slices:
                qualificationIssuer:
                  match: {}
                  schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-practitioner-qualification-issuer', index: 69}
                  min: 0
                  max: 1
package_version: 0.1.1
class: profile
kind: resource
url: https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-practitioner-base
base: http://hl7.org/fhir/StructureDefinition/Practitioner
version: 0.1.1