PackagesCanonicalsLogsProblems
    Packages
    tw.cohesion.fhir.clinemr@1.0.0
    https://fhir.cohesiondata.com/clinemr/StructureDefinition/patient-clinemr
description: 此病人資料(Patient ClinEMR)Profile說明本IG如何進一步定義臺灣核心-病人(TW Core Patient) Profile以呈現西醫/牙醫/中醫診所門診病摘之病人基本資料。
package_name: tw.cohesion.fhir.clinemr
derivation: constraint
name: PatientClinEMR
type: Patient
elements:
  address:
    short: 應填入門診病摘之病人戶籍地址或病人聯絡地址。
    index: 20
    slicing:
      rules: open
      discriminator:
      - {path: use, type: pattern}
      min: null
      slices:
        home:
          match: {use: home}
          schema:
            short: 此地址用途為[病人戶籍地址]
            mustSupport: true
            index: 21
            elements:
              use:
                pattern: {type: Code, value: home}
                index: 22
            required: [use]
        billing:
          match: {use: billing}
          schema:
            short: 此地址用途為[病人聯絡地址]
            mustSupport: true
            index: 23
            elements:
              use:
                pattern: {type: Code, value: billing}
                index: 24
            required: [use]
  managingOrganization:
    type: Reference
    refers: ['https://fhir.cohesiondata.com/clinemr/StructureDefinition/organization-clinemr']
    index: 36
  name: {index: 7}
  extension:
    type: Extension
    mustSupport: true
    url: https://fhir.cohesiondata.com/clinemr/StructureDefinition/cohesion-childnumber
    index: 0
    slicing:
      slices:
        childnumber:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir.cohesiondata.com/clinemr/StructureDefinition/cohesion-childnumber', index: 0}
          min: 0
          max: 1
  link:
    elements:
      other:
        type: Reference
        refers: ['http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://fhir.cohesiondata.com/clinemr/StructureDefinition/patient-clinemr']
        index: 37
  identifier:
    short: 病歷號(identifier:medicalRecord)、身分證字號(identifier:idCardNumber)為必填,若為外國病人無身分證字號(identifier:idCardNumber)則改填寫護照號碼(identifier:passportNumber)
    array: true
    min: 2
    max: 2
    index: 1
    slicing:
      slices:
        idCardNumber:
          match: {}
          schema:
            index: 2
            elements:
              value:
                constraint:
                  patientClinEMR-identifier-idCardNumber: {human: 身分證號共十碼,首碼以英文字母代表直轄市、縣(市)別,第二碼至第十碼為數字碼。, source: 'https://fhir.cohesiondata.com/clinemr/StructureDefinition/patient-clinemr', severity: error, expression: 'value.matches(''^[A-Za-z][0-9]{9}$'')'}
                index: 3
        residentNumber:
          match: {}
          schema: {index: 4}
          max: 0
        medicalRecord:
          match: {}
          schema:
            _required: true
            index: 5
            elements:
              assigner:
                type: Reference
                refers: ['https://fhir.cohesiondata.com/clinemr/StructureDefinition/organization-clinemr']
                index: 6
  telecom:
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      - {path: use, type: value}
      min: null
      slices:
        homephone:
          match: {system: phone, use: home}
          schema:
            short: 應填入門診病摘之住家電話Home TEL
            mustSupport: true
            array: true
            index: 9
            elements:
              system:
                pattern: {type: Code, value: phone}
                index: 10
              use:
                pattern: {type: Code, value: home}
                index: 11
            required: [use]
        workphone:
          match: {system: phone, use: work}
          schema:
            short: 應填入門診病摘之公司電話Office TEL
            mustSupport: true
            array: true
            index: 12
            elements:
              system:
                pattern: {type: Code, value: phone}
                index: 13
              use:
                pattern: {type: Code, value: work}
                index: 14
            required: [use]
        mobilephone:
          match: {system: phone, use: mobile}
          schema:
            short: 應填入門診病摘之行動電話Mobile
            mustSupport: true
            array: true
            index: 15
            elements:
              system:
                pattern: {type: Code, value: phone}
                index: 16
              use:
                pattern: {type: Code, value: mobile}
                index: 17
            required: [use]
        email:
          match: {system: email, use: null}
          schema:
            short: 應填入門診病摘之病人電子郵件地址Email
            mustSupport: true
            array: true
            index: 18
            elements:
              system:
                pattern: {type: Code, value: email}
                index: 19
  generalPractitioner:
    type: Reference
    refers: ['https://fhir.cohesiondata.com/clinemr/StructureDefinition/organization-clinemr', 'https://fhir.cohesiondata.com/clinemr/StructureDefinition/practitioner-clinemr', 'https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore']
    index: 35
  contact:
    elements:
      telecom:
        index: 25
        slicing:
          rules: open
          discriminator:
          - {path: use, type: pattern}
          min: null
          slices:
            homephone:
              match: {use: home}
              schema:
                short: 應填入門診病摘之緊急聯絡人住宅電話Em Home TEL
                mustSupport: true
                array: true
                index: 26
                elements:
                  system:
                    pattern: {type: Code, value: phone}
                    index: 27
                  use:
                    pattern: {type: Code, value: home}
                    index: 28
                required: [use]
            workphone:
              match: {use: work}
              schema:
                short: 應填入門診病摘之緊急聯絡人公司電話Em Office TEL
                mustSupport: true
                array: true
                index: 29
                elements:
                  system:
                    pattern: {type: Code, value: phone}
                    index: 30
                  use:
                    pattern: {type: Code, value: work}
                    index: 31
                required: [use]
            mobilephone:
              match: {use: mobile}
              schema:
                short: 應填入門診病摘之緊急聯絡人行動電話Em Mobile
                mustSupport: true
                array: true
                index: 32
                elements:
                  system:
                    pattern: {type: Code, value: phone}
                    index: 33
                  use:
                    pattern: {type: Code, value: mobile}
                    index: 34
                required: [use]
package_version: 1.0.0
extensions:
  childnumber: {url: 'https://fhir.cohesiondata.com/clinemr/StructureDefinition/cohesion-childnumber', min: 0, max: 1, type: Extension, mustSupport: true, index: 0}
class: profile
kind: resource
url: https://fhir.cohesiondata.com/clinemr/StructureDefinition/patient-clinemr
base: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
version: 1.0.0
required: [name]