臺灣重大傷病實作指引
1.0.0 - STU1.0.0

This page is part of the 臺灣重大傷病實作指引 (v1.0.0: STU1.0.0) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Resource Profile: 病人資訊-Patient TWCI

Official URL: https://nhicore.nhi.gov.tw/ci/StructureDefinition/Patient-twci Version: 1.0.0
Active as of 2025-06-11 Computable Name: PatientTWCI

此病人資訊-Patient TWCI Profile說明TWCI IG如何進一步定義臺灣核心-病人(TW Core Patient) Profile以呈現重大傷病之病人基本資料

Usages:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
Constraints: patient-gender-match, telecom
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
... Slices for extension Content/Rules for all slices
.... extension:age S 0..1 Age 年齡
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age
.... extension:nationality S 0..1 (Complex) 病人所屬國籍
URL: http://hl7.org/fhir/StructureDefinition/patient-nationality
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
.... identifier:idCardNumber SΣC 1..1 Identifier 身分證字號
Constraints: id-card-number
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
...... coding Σ 1..* Coding Code defined by a terminology system
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... code Σ 1..1 code Symbol in syntax defined by the system
Required Pattern: NNxxx
........ Slices for extension Content/Rules for all slices
......... extension:identifier-suffix S 0..1 (Complex) 識別碼後綴詞
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace) 例如:身分證字號='http://www.moi.gov.tw'
Required Pattern: http://www.moi.gov.tw
..... value SΣC 0..1 string 唯一值。 例如:身分證字號為A123456789
Constraints: txt-10
Example General: 123456
.... identifier:medicalRecord SΣ 0..1 Identifier 病歷號(參與醫院必須註冊命名系統)。由醫院自行填寫。
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
...... coding Σ 1..* Coding Code defined by a terminology system
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... code Σ 1..1 code Symbol in syntax defined by the system
Required Pattern: MR
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace),可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&type=0)申請或查詢命名系統。
Example General: http://www.acme.com/identifiers/patient
..... value SΣ 0..1 string 唯一值。 例如:病歷號為8862168
Example General: 123456
... active ?!SΣ 0..1 boolean 病人的紀錄是否「使用中(true)」
... Slices for name ΣC 1..1 HumanName 病人的姓名
Slice: Unordered, Open by pattern:use
Constraints: pat-name
.... name:usual SΣC 1..1 HumanName 姓名
Constraints: tw-core-1
..... use ?!SΣ 1..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。
Required Pattern: usual
..... text SΣC 1..1 string 完整的中文姓名
Example General: 陳加玲
..... family SΣC 0..1 string 若所屬國籍可區分family及given,填入所屬國籍之姓(family)
Example General:
..... given SΣC 0..* string 若所屬國籍可區分family及given,填入所屬國籍之名(given)
This repeating element order: Given Names appear in the correct order for presenting the name
Example General: 加玲
... Slices for telecom SΣ 1..3 ContactPoint 病人的聯絡資訊(例如:電話、電子郵件等)
Slice: Unordered, Closed by value:system
.... telecom:All Slices Content/Rules for all slices
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:mobile SΣC 0..1 ContactPoint 手機號碼。應為數字10碼(寄送核發簡訊使用)。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-mobile
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: sms
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:contactTel SΣC 0..1 ContactPoint 連絡電話。長度不得超過15字。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-contactTel
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: phone
..... value SΣC 1..1 string 實際的聯絡方式之細節
Constraints: txt-15
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:email SΣ 0..1 ContactPoint 電子郵件信箱
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: email
..... value SΣC 1..1 string 實際的聯絡方式之細節
Constraints: txt-40
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... period SΣ 0..1 Period 此聯絡方式的使用效期
... gender SΣ 1..1 code 病人性別。male:男性 | female:女性 | other:其他 | unknown:未知
Binding: AdministrativeGender (required): 病人性別;應填入所綁定值集中的其中一個代碼。
... birthDate SΣ 1..1 date 出生日期,YYYY-MM-DD,西元年月日。
... deceased[x] ?!Σ 0..1 病人是否過世
.... deceasedBoolean boolean
.... deceasedDateTime dateTime
... address S 1..1 AddressTW 病人聯絡地址 pat-cnt-2or3-char:如果有國家名,則必須(SHALL)從[ISO Country Alpha-2](http://hl7.org/fhir/valueset/iso3166-1-2)找出相對代碼作呈現。 如果未在ISO Country Alpha-2 中找到此一國家的代碼,則可能可以(MAY)從[ISO Country Alpha-3](http://hl7.org/fhir/valueset/iso3166-1-3)找出相對代碼作呈現。
.... Slices for extension Content/Rules for all slices
..... extension:room S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-room
..... extension:floor S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-floor
..... extension:number S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-number
..... extension:alley S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-alley
..... extension:lane S 0..1 string 巷/衖
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-lane
..... extension:section S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-section
..... extension:neighborhood S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-neighborhood
..... extension:village S 0..1 string 村(里)
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-village
.... use ?!SΣ 0..1 code home | work | temp | old | billing - 此地址的用途
Binding: AddressUse (required): 應填入AddressUse值集中的其中一個代碼
Example General: home
.... type SΣ 0..1 code postal | physical | both
Binding: AddressType (required): 應填入AddressType值集中的其中一個代碼
Example General: both
.... text ΣC 1..1 string 連絡住址
Constraints: txt-80
Example General: 137 Nowhere Street, Erewhon 9132
.... line SΣ 0..1 string 路/街
This repeating element order: The order in which lines should appear in an address label
Example General: 137 Nowhere Street
.... city SΣ 0..1 string 鄉/鎮/市/區,定義上與國際的等級一致。原文為:Name of city, town etc.。
Example General: Erewhon
.... district SΣ 0..1 string 縣/市,定義上與國際的等級一致。原文為:District name (aka county)。
Example General: Madison
.... postalCode SΣ 1..1 string 郵遞區號
Example General: 9132
..... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:PostalCode S 1..1 (Complex) 臺灣郵遞區號
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code
....... extension 0..0
....... url 1..1 uri "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code"
....... value[x] S 0..1 CodeableConceptTW 擴充的資料項目的內容值
........ Slices for coding S 1..* CodingTW 由專門術語系統(terminology system)定義的代碼
Slice: Unordered, Open by pattern:system
......... coding:PostalCode3 S 1..1 CodingTW 由專門術語系統(terminology system)定義的代碼
Binding: 臺灣中華郵政3碼郵遞區號值集 (required): 應填入所綁定值集中的其中一個代碼
.......... system SΣ 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/postal-code3-tw
.......... code SΣ 1..1 code 郵遞區號
.......... display SΣ 0..1 string 由系統定義的表示法
........ text SΣ 0..1 string 概念的文字表示法
.... country SΣ 0..1 string 國家(例如:ISO 3166的2個或3個字母代碼)。
... maritalStatus S 0..1 CodeableConceptTW 病人的婚姻狀態
Binding: Marital Status Codes (extensible): 病人的婚姻狀態;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
... photo S 0..* Attachment 病人的影像(照片)
... contact SC 0..* BackboneElement 病人的聯絡人,例如:監護人、伴侶、朋友等。
Constraints: pat-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... relationship S 0..* CodeableConceptTW 概念(Concept)-參照一個專門術語或只是文字表述
Binding: PatientRelationshipType (required): 應填入所綁定值集中的其中一個代碼。
.... name S 0..1 HumanName 聯絡人姓名
..... use ?!SΣ 0..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。
..... text SΣ 0..1 string 完整的中文姓名
..... family SΣ 0..1 string 英文姓
..... given SΣ 0..* string 英文名
This repeating element order: Given Names appear in the correct order for presenting the name
.... telecom S 0..* ContactPoint 聯絡人的詳細聯絡資訊
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
.... period S 0..1 Period 聯絡人或其可聯絡機構之可聯絡期(時間區間)
... communication S 0..* BackboneElement 向病人說明健康狀態時所使用的語言
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... language S 1..1 CodeableConceptTW 向病人說明健康狀況時所使用的語言
Binding: CommonLanguages (preferred): 應填入所綁定值集中的其中一個代碼。
Additional BindingsPurpose
AllLanguages Max Binding

Example Value: zh-TW
... managingOrganization SΣ 0..1 Reference(TW Core Organization) 此紀錄的保管機構
... link ?!Σ 0..* BackboneElement 連結至此病人的其他Patient Resource
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... other Σ 1..1 Reference(TW Core Patient | TW Core RelatedPerson) 連結至其他Patient或RelatedPerson Resource
.... type Σ 1..1 code replaced-by | replaces | refer | seealso
Binding: LinkType (required): 連結的型別;應填入所綁定值集中的其中一個代碼。

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Patient.identifier:idCardNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:idCardNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:passportNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:passportNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:residentNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:residentNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:medicalRecord.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:medicalRecord.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.name:official.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:usual.userequiredPattern Value: usual
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:temp.userequiredPattern Value: temp
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:anonymous.userequiredPattern Value: anonymous
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:mobile.systemrequiredPattern Value: sms
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:mobile.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:contactTel.systemrequiredPattern Value: phone
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:contactTel.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:email.systemrequiredPattern Value: email
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:email.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
From the FHIR Standard
Patient.address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
From the FHIR Standard
Patient.address.typerequiredAddressType
http://hl7.org/fhir/ValueSet/address-type|4.0.1
From the FHIR Standard
Patient.address.postalCode.extension:PostalCode.value[x].coding:PostalCode3requiredTWPostalCode3
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/postal-code3-tw
Patient.maritalStatusextensibleMarital Status Codes
http://hl7.org/fhir/ValueSet/marital-status
From the FHIR Standard
Patient.contact.relationshiprequiredPatientRelationshipType
http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype
From the FHIR Standard
Patient.contact.name.userequiredNameUse
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.contact.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.contact.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.communication.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Patient.link.typerequiredLinkType
http://hl7.org/fhir/ValueSet/link-type|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorPatientIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorPatientIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorPatientIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorPatientIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practicePatientA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
id-card-numbererrorPatient.identifier:idCardNumber身分證號共十碼,首碼以英文字母代表直轄市、縣(市)別,第二碼至第十碼為數字碼。
: value.matches('^[A-Za-z][0-9]{9}$')
pat-1errorPatient.contactSHALL at least contain a contact's details or a reference to an organization
: name.exists() or telecom.exists() or address.exists() or organization.exists()
pat-nameerrorPatient.name病人姓名有誤,超過12字
: text.length() <= 12
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1,8,A,C,Y=male, 2,9,B,D,X=female)
: ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '8' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'A' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'C' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'Y') implies gender = 'male') and ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '9' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'B' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'D' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'X') implies gender = 'female')
telecomerrorPatient手機號碼與聯絡電話應至少填寫一欄。
: telecom.where(system = 'sms').exists() or telecom.where(system = 'phone').exists()
telecom-contactTelerrorPatient.telecom:contactTel連絡電話格式有誤,長度不得超過15字。
: value.toString().length() <= 15
telecom-mobileerrorPatient.telecom:mobile手機號碼格式有誤,應為數字10碼。
: value.toString().length() = 10
tw-core-1errorPatient.name:usualPatient.name.text or Patient.name.family or both SHALL be present
: text.exists() or family.exists()
txt-10errorPatient.identifier:idCardNumber.value長度不得超過10字
: length() <= 10
txt-15errorPatient.telecom:contactTel.value長度不得超過15字
: length() <= 15
txt-40errorPatient.telecom:email.value長度不得超過40字
: length() <= 40
txt-80errorPatient.address.text長度不得超過80字
: length() <= 80

This structure is derived from TWCorePatient

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
Constraints: patient-gender-match, telecom
... identifier 1..2 Identifier 病人的身份識別碼(identifier),通常為業務目的所使用的識別碼,例如病歷號。
... Slices for identifier Content/Rules for all slices
.... identifier:idCardNumber 1..1 Identifier 身分證字號
..... value C 0..1 string 唯一值。 例如:身分證字號為A123456789
Constraints: txt-10
.... identifier:passportNumber 0..0
.... identifier:residentNumber 0..0
.... identifier:medicalRecord 0..1 Identifier 病歷號(參與醫院必須註冊命名系統)。由醫院自行填寫。
... name C 1..1 HumanName 病人的姓名
Constraints: pat-name
.... name:official 0..0
.... name:usual 1..1 HumanName 姓名
..... text 1..1 string 完整的中文姓名
.... name:temp 0..0
.... name:anonymous 0..0
... Slices for telecom 1..3 ContactPoint 病人的聯絡資訊(例如:電話、電子郵件等)
Slice: Unordered, Closed by value:system
.... telecom:mobile SC 0..1 ContactPoint 手機號碼。應為數字10碼(寄送核發簡訊使用)。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-mobile
..... system 1..1 code phone | fax | email | pager | url | sms | other
Required Pattern: sms
.... telecom:contactTel SC 0..1 ContactPoint 連絡電話。長度不得超過15字。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-contactTel
..... system 1..1 code phone | fax | email | pager | url | sms | other
Required Pattern: phone
..... value C 1..1 string 實際的聯絡方式之細節
Constraints: txt-15
.... telecom:email S 0..1 ContactPoint 電子郵件信箱
..... system 1..1 code phone | fax | email | pager | url | sms | other
Required Pattern: email
..... value C 1..1 string 實際的聯絡方式之細節
Constraints: txt-40
... gender 1..1 code 病人性別。male:男性 | female:女性 | other:其他 | unknown:未知
... birthDate 1..1 date 出生日期,YYYY-MM-DD,西元年月日。
... address 1..1 AddressTW 病人聯絡地址 pat-cnt-2or3-char:如果有國家名,則必須(SHALL)從[ISO Country Alpha-2](http://hl7.org/fhir/valueset/iso3166-1-2)找出相對代碼作呈現。 如果未在ISO Country Alpha-2 中找到此一國家的代碼,則可能可以(MAY)從[ISO Country Alpha-3](http://hl7.org/fhir/valueset/iso3166-1-3)找出相對代碼作呈現。
.... text C 1..1 string 連絡住址
Constraints: txt-80
.... postalCode 1..1 string 郵遞區號
..... extension 1..* Extension Extension
..... Slices for extension Content/Rules for all slices
...... extension:PostalCode 1..1 TWPostalCode 臺灣郵遞區號
....... value[x]
........ coding 1..* CodingTW 由專門術語系統(terminology system)定義的代碼
........ Slices for coding Content/Rules for all slices
......... coding:PostalCode3 1..1 CodingTW 由專門術語系統(terminology system)定義的代碼
.......... code 1..1 code 郵遞區號
......... coding:PostalCode5 0..0
......... coding:PostalCode6 0..0

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
pat-nameerrorPatient.name病人姓名有誤,超過12字
: text.length() <= 12
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1,8,A,C,Y=male, 2,9,B,D,X=female)
: ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '8' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'A' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'C' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'Y') implies gender = 'male') and ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '9' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'B' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'D' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'X') implies gender = 'female')
telecomerrorPatient手機號碼與聯絡電話應至少填寫一欄。
: telecom.where(system = 'sms').exists() or telecom.where(system = 'phone').exists()
telecom-contactTelerrorPatient.telecom:contactTel連絡電話格式有誤,長度不得超過15字。
: value.toString().length() <= 15
telecom-mobileerrorPatient.telecom:mobile手機號碼格式有誤,應為數字10碼。
: value.toString().length() = 10
txt-10errorPatient.identifier:idCardNumber.value長度不得超過10字
: length() <= 10
txt-15errorPatient.telecom:contactTel.value長度不得超過15字
: length() <= 15
txt-40errorPatient.telecom:email.value長度不得超過40字
: length() <= 40
txt-80errorPatient.address.text長度不得超過80字
: length() <= 80
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
Constraints: patient-gender-match, telecom
... id Σ 0..1 id 不重複的ID用以識別儲存在特定FHIR Server中的Patient紀錄,通常又稱為邏輯性ID。
... meta Σ 0..1 Meta 此Patient Resource的metadata
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
... text 0..1 Narrative Patient Resource之內容摘要以供人閱讀
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:age S 0..1 Age 年齡
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age
.... extension:nationality S 0..1 (Complex) 病人所屬國籍
URL: http://hl7.org/fhir/StructureDefinition/patient-nationality
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... Slices for identifier SΣ 1..2 Identifier 病人的身份識別碼(identifier),通常為業務目的所使用的識別碼,例如病歷號。
Slice: Unordered, Open by value:type.coding.code, value:type.coding.system
.... identifier:idCardNumber SΣC 1..1 Identifier 身分證字號
Constraints: id-card-number
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 1..* Coding Code defined by a terminology system
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... version Σ 0..1 string Version of the system - if relevant
....... code Σ 1..1 code Symbol in syntax defined by the system
Required Pattern: NNxxx
........ id 0..1 string xml:id (or equivalent in JSON)
........ Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
......... extension:identifier-suffix S 0..1 (Complex) 識別碼後綴詞
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix
........ value 0..1 string Primitive value for code
....... display Σ 0..1 string Representation defined by the system
....... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace) 例如:身分證字號='http://www.moi.gov.tw'
Required Pattern: http://www.moi.gov.tw
..... value SΣC 0..1 string 唯一值。 例如:身分證字號為A123456789
Constraints: txt-10
Example General: 123456
..... period Σ 0..1 Period 此身份識別碼(identifier)的使用效期
..... assigner Σ 0..1 Reference(TW Core Organization) 簽發identifier的機構(可以只是文字表述)
.... identifier:medicalRecord SΣ 0..1 Identifier 病歷號(參與醫院必須註冊命名系統)。由醫院自行填寫。
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 1..* Coding Code defined by a terminology system
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... version Σ 0..1 string Version of the system - if relevant
....... code Σ 1..1 code Symbol in syntax defined by the system
Required Pattern: MR
....... display Σ 0..1 string Representation defined by the system
....... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace),可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。
Example General: http://www.acme.com/identifiers/patient
..... value SΣ 0..1 string 唯一值。 例如:病歷號為8862168
Example General: 123456
..... period Σ 0..1 Period 此身份識別碼(identifier)的使用效期
..... assigner Σ 0..1 Reference(TW Core Organization) 簽發identifier的機構(可以只是文字表述)
... active ?!SΣ 0..1 boolean 病人的紀錄是否「使用中(true)」
... Slices for name ΣC 1..1 HumanName 病人的姓名
Slice: Unordered, Open by pattern:use
Constraints: pat-name
.... name:usual SΣC 1..1 HumanName 姓名
Constraints: tw-core-1
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!SΣ 1..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。
Required Pattern: usual
..... text SΣC 1..1 string 完整的中文姓名
Example General: 陳加玲
..... family SΣC 0..1 string 若所屬國籍可區分family及given,填入所屬國籍之姓(family)
Example General:
..... given SΣC 0..* string 若所屬國籍可區分family及given,填入所屬國籍之名(given)
This repeating element order: Given Names appear in the correct order for presenting the name
Example General: 加玲
..... prefix Σ 0..* string 姓名前面的頭銜 由於學術,法律,職業或貴族身份等原因而獲得頭銜,出現在姓名開頭。
This repeating element order: Prefixes appear in the correct order for presenting the name
..... suffix Σ 0..* string 姓名後面的稱謂 由於學術,法律,職業或貴族身份等原因而獲得頭銜,出現在姓名之後。
This repeating element order: Suffixes appear in the correct order for presenting the name
..... period Σ 0..1 Period 此姓名的使用效期
... Slices for telecom SΣ 1..3 ContactPoint 病人的聯絡資訊(例如:電話、電子郵件等)
Slice: Unordered, Closed by value:system
.... telecom:All Slices Content/Rules for all slices
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:mobile SΣC 0..1 ContactPoint 手機號碼。應為數字10碼(寄送核發簡訊使用)。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-mobile
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: sms
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:contactTel SΣC 0..1 ContactPoint 連絡電話。長度不得超過15字。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-contactTel
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: phone
..... value SΣC 1..1 string 實際的聯絡方式之細節
Constraints: txt-15
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:email SΣ 0..1 ContactPoint 電子郵件信箱
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: email
..... value SΣC 1..1 string 實際的聯絡方式之細節
Constraints: txt-40
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period SΣ 0..1 Period 此聯絡方式的使用效期
... gender SΣ 1..1 code 病人性別。male:男性 | female:女性 | other:其他 | unknown:未知
Binding: AdministrativeGender (required): 病人性別;應填入所綁定值集中的其中一個代碼。
... birthDate SΣ 1..1 date 出生日期,YYYY-MM-DD,西元年月日。
... deceased[x] ?!Σ 0..1 病人是否過世
.... deceasedBoolean boolean
.... deceasedDateTime dateTime
... address S 1..1 AddressTW 病人聯絡地址 pat-cnt-2or3-char:如果有國家名,則必須(SHALL)從[ISO Country Alpha-2](http://hl7.org/fhir/valueset/iso3166-1-2)找出相對代碼作呈現。 如果未在ISO Country Alpha-2 中找到此一國家的代碼,則可能可以(MAY)從[ISO Country Alpha-3](http://hl7.org/fhir/valueset/iso3166-1-3)找出相對代碼作呈現。
.... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
.... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... extension:room S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-room
..... extension:floor S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-floor
..... extension:number S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-number
..... extension:alley S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-alley
..... extension:lane S 0..1 string 巷/衖
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-lane
..... extension:section S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-section
..... extension:neighborhood S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-neighborhood
..... extension:village S 0..1 string 村(里)
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-village
.... use ?!SΣ 0..1 code home | work | temp | old | billing - 此地址的用途
Binding: AddressUse (required): 應填入AddressUse值集中的其中一個代碼
Example General: home
.... type SΣ 0..1 code postal | physical | both
Binding: AddressType (required): 應填入AddressType值集中的其中一個代碼
Example General: both
.... text ΣC 1..1 string 連絡住址
Constraints: txt-80
Example General: 137 Nowhere Street, Erewhon 9132
.... line SΣ 0..1 string 路/街
This repeating element order: The order in which lines should appear in an address label
Example General: 137 Nowhere Street
.... city SΣ 0..1 string 鄉/鎮/市/區,定義上與國際的等級一致。原文為:Name of city, town etc.。
Example General: Erewhon
.... district SΣ 0..1 string 縣/市,定義上與國際的等級一致。原文為:District name (aka county)。
Example General: Madison
.... state Σ 0..1 string 國家的子單位(縮寫也可以)。原文為:Sub-unit of country (abbreviations ok)。
.... postalCode SΣ 1..1 string 郵遞區號
Example General: 9132
..... id 0..1 string xml:id(或JSON格式)。
..... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:PostalCode S 1..1 (Complex) 臺灣郵遞區號
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code
....... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
....... extension 0..0
....... url 1..1 uri "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code"
....... value[x] S 0..1 CodeableConceptTW 擴充的資料項目的內容值
........ id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
........ extension 0..* Extension Extension
Slice: Unordered, Open by value:url
........ Slices for coding S 1..* CodingTW 由專門術語系統(terminology system)定義的代碼
Slice: Unordered, Open by pattern:system
......... coding:PostalCode3 S 1..1 CodingTW 由專門術語系統(terminology system)定義的代碼
Binding: 臺灣中華郵政3碼郵遞區號值集 (required): 應填入所綁定值集中的其中一個代碼
.......... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
.......... extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
.......... system SΣ 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/postal-code3-tw
.......... version Σ 0..1 string 系統的版本—如果相關的話
.......... code SΣ 1..1 code 郵遞區號
.......... display SΣ 0..1 string 由系統定義的表示法
.......... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
........ text SΣ 0..1 string 概念的文字表示法
..... value 0..1 string 郵遞區號
Max Length:1048576
.... country SΣ 0..1 string 國家(例如:ISO 3166的2個或3個字母代碼)。
.... period Σ 0..1 Period 此地址曾經/正在使用的時間區間
Example General: {"start":"2010-03-23","end":"2010-07-01"}
... maritalStatus S 0..1 CodeableConceptTW 病人的婚姻狀態
Binding: Marital Status Codes (extensible): 病人的婚姻狀態;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
... multipleBirth[x] 0..1 病人是否為多胞胎;或多胞胎出生順序。
.... multipleBirthBoolean boolean
.... multipleBirthInteger integer
... photo S 0..* Attachment 病人的影像(照片)
... contact SC 0..* BackboneElement 病人的聯絡人,例如:監護人、伴侶、朋友等。
Constraints: pat-1
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... relationship S 0..* CodeableConceptTW 概念(Concept)-參照一個專門術語或只是文字表述
Binding: PatientRelationshipType (required): 應填入所綁定值集中的其中一個代碼。
.... name S 0..1 HumanName 聯絡人姓名
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!SΣ 0..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。
..... text SΣ 0..1 string 完整的中文姓名
..... family SΣ 0..1 string 英文姓
..... given SΣ 0..* string 英文名
This repeating element order: Given Names appear in the correct order for presenting the name
..... prefix Σ 0..* string 姓名前面的頭銜 由於學術,法律,職業或貴族身份等原因而獲得頭銜,出現在姓名開頭。
This repeating element order: Prefixes appear in the correct order for presenting the name
..... suffix Σ 0..* string 姓名後面的稱謂 由於學術,法律,職業或貴族身份等原因而獲得頭銜,出現在姓名之後。
This repeating element order: Suffixes appear in the correct order for presenting the name
..... period Σ 0..1 Period 此姓名的使用效期
.... telecom S 0..* ContactPoint 聯絡人的詳細聯絡資訊
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period Σ 0..1 Period 此聯絡方式的使用效期
.... address 0..1 AddressTW 聯絡人的地址
.... gender 0..1 code male | female | other | unknown
Binding: AdministrativeGender (required): 聯絡人的性別;應填入所綁定值集中的其中一個代碼。
.... organization C 0..1 Reference(TW Core Organization) 可聯絡到聯絡人的機構
.... period S 0..1 Period 聯絡人或其可聯絡機構之可聯絡期(時間區間)
... communication S 0..* BackboneElement 向病人說明健康狀態時所使用的語言
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... language S 1..1 CodeableConceptTW 向病人說明健康狀況時所使用的語言
Binding: CommonLanguages (preferred): 應填入所綁定值集中的其中一個代碼。
Additional BindingsPurpose
AllLanguages Max Binding

Example Value: zh-TW
.... preferred 0..1 boolean 病人是否偏好使用此語言
... generalPractitioner 0..* Reference(TW Core Organization | TW Core Practitioner | TW Core PractitionerRole) 照護此病人的機構、照護服務提供者、或健康照護服務提供者的角色
... managingOrganization SΣ 0..1 Reference(TW Core Organization) 此紀錄的保管機構
... link ?!Σ 0..* BackboneElement 連結至此病人的其他Patient Resource
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... other Σ 1..1 Reference(TW Core Patient | TW Core RelatedPerson) 連結至其他Patient或RelatedPerson Resource
.... type Σ 1..1 code replaced-by | replaces | refer | seealso
Binding: LinkType (required): 連結的型別;應填入所綁定值集中的其中一個代碼。

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Patient.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Patient.identifier:idCardNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:idCardNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:passportNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:passportNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:residentNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:residentNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:medicalRecord.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:medicalRecord.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.name:official.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:usual.userequiredPattern Value: usual
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:temp.userequiredPattern Value: temp
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:anonymous.userequiredPattern Value: anonymous
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:mobile.systemrequiredPattern Value: sms
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:mobile.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:contactTel.systemrequiredPattern Value: phone
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:contactTel.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:email.systemrequiredPattern Value: email
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:email.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
From the FHIR Standard
Patient.address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
From the FHIR Standard
Patient.address.typerequiredAddressType
http://hl7.org/fhir/ValueSet/address-type|4.0.1
From the FHIR Standard
Patient.address.postalCode.extension:PostalCode.value[x].coding:PostalCode3requiredTWPostalCode3
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/postal-code3-tw
Patient.maritalStatusextensibleMarital Status Codes
http://hl7.org/fhir/ValueSet/marital-status
From the FHIR Standard
Patient.contact.relationshiprequiredPatientRelationshipType
http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype
From the FHIR Standard
Patient.contact.name.userequiredNameUse
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.contact.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.contact.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.contact.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
From the FHIR Standard
Patient.communication.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Patient.link.typerequiredLinkType
http://hl7.org/fhir/ValueSet/link-type|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorPatientIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorPatientIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorPatientIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorPatientIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practicePatientA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
id-card-numbererrorPatient.identifier:idCardNumber身分證號共十碼,首碼以英文字母代表直轄市、縣(市)別,第二碼至第十碼為數字碼。
: value.matches('^[A-Za-z][0-9]{9}$')
pat-1errorPatient.contactSHALL at least contain a contact's details or a reference to an organization
: name.exists() or telecom.exists() or address.exists() or organization.exists()
pat-nameerrorPatient.name病人姓名有誤,超過12字
: text.length() <= 12
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1,8,A,C,Y=male, 2,9,B,D,X=female)
: ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '8' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'A' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'C' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'Y') implies gender = 'male') and ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '9' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'B' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'D' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'X') implies gender = 'female')
telecomerrorPatient手機號碼與聯絡電話應至少填寫一欄。
: telecom.where(system = 'sms').exists() or telecom.where(system = 'phone').exists()
telecom-contactTelerrorPatient.telecom:contactTel連絡電話格式有誤,長度不得超過15字。
: value.toString().length() <= 15
telecom-mobileerrorPatient.telecom:mobile手機號碼格式有誤,應為數字10碼。
: value.toString().length() = 10
tw-core-1errorPatient.name:usualPatient.name.text or Patient.name.family or both SHALL be present
: text.exists() or family.exists()
txt-10errorPatient.identifier:idCardNumber.value長度不得超過10字
: length() <= 10
txt-15errorPatient.telecom:contactTel.value長度不得超過15字
: length() <= 15
txt-40errorPatient.telecom:email.value長度不得超過40字
: length() <= 40
txt-80errorPatient.address.text長度不得超過80字
: length() <= 80

This structure is derived from TWCorePatient

Summary

Mandatory: 10 elements(2 nested mandatory elements)
Must-Support: 3 elements
Prohibited: 7 elements

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Patient.telecom (Closed)

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
Constraints: patient-gender-match, telecom
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
... Slices for extension Content/Rules for all slices
.... extension:age S 0..1 Age 年齡
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age
.... extension:nationality S 0..1 (Complex) 病人所屬國籍
URL: http://hl7.org/fhir/StructureDefinition/patient-nationality
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
.... identifier:idCardNumber SΣC 1..1 Identifier 身分證字號
Constraints: id-card-number
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
...... coding Σ 1..* Coding Code defined by a terminology system
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... code Σ 1..1 code Symbol in syntax defined by the system
Required Pattern: NNxxx
........ Slices for extension Content/Rules for all slices
......... extension:identifier-suffix S 0..1 (Complex) 識別碼後綴詞
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace) 例如:身分證字號='http://www.moi.gov.tw'
Required Pattern: http://www.moi.gov.tw
..... value SΣC 0..1 string 唯一值。 例如:身分證字號為A123456789
Constraints: txt-10
Example General: 123456
.... identifier:medicalRecord SΣ 0..1 Identifier 病歷號(參與醫院必須註冊命名系統)。由醫院自行填寫。
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
...... coding Σ 1..* Coding Code defined by a terminology system
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... code Σ 1..1 code Symbol in syntax defined by the system
Required Pattern: MR
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace),可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。
Example General: http://www.acme.com/identifiers/patient
..... value SΣ 0..1 string 唯一值。 例如:病歷號為8862168
Example General: 123456
... active ?!SΣ 0..1 boolean 病人的紀錄是否「使用中(true)」
... Slices for name ΣC 1..1 HumanName 病人的姓名
Slice: Unordered, Open by pattern:use
Constraints: pat-name
.... name:usual SΣC 1..1 HumanName 姓名
Constraints: tw-core-1
..... use ?!SΣ 1..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。
Required Pattern: usual
..... text SΣC 1..1 string 完整的中文姓名
Example General: 陳加玲
..... family SΣC 0..1 string 若所屬國籍可區分family及given,填入所屬國籍之姓(family)
Example General:
..... given SΣC 0..* string 若所屬國籍可區分family及given,填入所屬國籍之名(given)
This repeating element order: Given Names appear in the correct order for presenting the name
Example General: 加玲
... Slices for telecom SΣ 1..3 ContactPoint 病人的聯絡資訊(例如:電話、電子郵件等)
Slice: Unordered, Closed by value:system
.... telecom:All Slices Content/Rules for all slices
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:mobile SΣC 0..1 ContactPoint 手機號碼。應為數字10碼(寄送核發簡訊使用)。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-mobile
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: sms
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:contactTel SΣC 0..1 ContactPoint 連絡電話。長度不得超過15字。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-contactTel
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: phone
..... value SΣC 1..1 string 實際的聯絡方式之細節
Constraints: txt-15
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:email SΣ 0..1 ContactPoint 電子郵件信箱
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: email
..... value SΣC 1..1 string 實際的聯絡方式之細節
Constraints: txt-40
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... period SΣ 0..1 Period 此聯絡方式的使用效期
... gender SΣ 1..1 code 病人性別。male:男性 | female:女性 | other:其他 | unknown:未知
Binding: AdministrativeGender (required): 病人性別;應填入所綁定值集中的其中一個代碼。
... birthDate SΣ 1..1 date 出生日期,YYYY-MM-DD,西元年月日。
... deceased[x] ?!Σ 0..1 病人是否過世
.... deceasedBoolean boolean
.... deceasedDateTime dateTime
... address S 1..1 AddressTW 病人聯絡地址 pat-cnt-2or3-char:如果有國家名,則必須(SHALL)從[ISO Country Alpha-2](http://hl7.org/fhir/valueset/iso3166-1-2)找出相對代碼作呈現。 如果未在ISO Country Alpha-2 中找到此一國家的代碼,則可能可以(MAY)從[ISO Country Alpha-3](http://hl7.org/fhir/valueset/iso3166-1-3)找出相對代碼作呈現。
.... Slices for extension Content/Rules for all slices
..... extension:room S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-room
..... extension:floor S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-floor
..... extension:number S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-number
..... extension:alley S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-alley
..... extension:lane S 0..1 string 巷/衖
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-lane
..... extension:section S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-section
..... extension:neighborhood S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-neighborhood
..... extension:village S 0..1 string 村(里)
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-village
.... use ?!SΣ 0..1 code home | work | temp | old | billing - 此地址的用途
Binding: AddressUse (required): 應填入AddressUse值集中的其中一個代碼
Example General: home
.... type SΣ 0..1 code postal | physical | both
Binding: AddressType (required): 應填入AddressType值集中的其中一個代碼
Example General: both
.... text ΣC 1..1 string 連絡住址
Constraints: txt-80
Example General: 137 Nowhere Street, Erewhon 9132
.... line SΣ 0..1 string 路/街
This repeating element order: The order in which lines should appear in an address label
Example General: 137 Nowhere Street
.... city SΣ 0..1 string 鄉/鎮/市/區,定義上與國際的等級一致。原文為:Name of city, town etc.。
Example General: Erewhon
.... district SΣ 0..1 string 縣/市,定義上與國際的等級一致。原文為:District name (aka county)。
Example General: Madison
.... postalCode SΣ 1..1 string 郵遞區號
Example General: 9132
..... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:PostalCode S 1..1 (Complex) 臺灣郵遞區號
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code
....... extension 0..0
....... url 1..1 uri "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code"
....... value[x] S 0..1 CodeableConceptTW 擴充的資料項目的內容值
........ Slices for coding S 1..* CodingTW 由專門術語系統(terminology system)定義的代碼
Slice: Unordered, Open by pattern:system
......... coding:PostalCode3 S 1..1 CodingTW 由專門術語系統(terminology system)定義的代碼
Binding: 臺灣中華郵政3碼郵遞區號值集 (required): 應填入所綁定值集中的其中一個代碼
.......... system SΣ 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/postal-code3-tw
.......... code SΣ 1..1 code 郵遞區號
.......... display SΣ 0..1 string 由系統定義的表示法
........ text SΣ 0..1 string 概念的文字表示法
.... country SΣ 0..1 string 國家(例如:ISO 3166的2個或3個字母代碼)。
... maritalStatus S 0..1 CodeableConceptTW 病人的婚姻狀態
Binding: Marital Status Codes (extensible): 病人的婚姻狀態;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
... photo S 0..* Attachment 病人的影像(照片)
... contact SC 0..* BackboneElement 病人的聯絡人,例如:監護人、伴侶、朋友等。
Constraints: pat-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... relationship S 0..* CodeableConceptTW 概念(Concept)-參照一個專門術語或只是文字表述
Binding: PatientRelationshipType (required): 應填入所綁定值集中的其中一個代碼。
.... name S 0..1 HumanName 聯絡人姓名
..... use ?!SΣ 0..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。
..... text SΣ 0..1 string 完整的中文姓名
..... family SΣ 0..1 string 英文姓
..... given SΣ 0..* string 英文名
This repeating element order: Given Names appear in the correct order for presenting the name
.... telecom S 0..* ContactPoint 聯絡人的詳細聯絡資訊
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
.... period S 0..1 Period 聯絡人或其可聯絡機構之可聯絡期(時間區間)
... communication S 0..* BackboneElement 向病人說明健康狀態時所使用的語言
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... language S 1..1 CodeableConceptTW 向病人說明健康狀況時所使用的語言
Binding: CommonLanguages (preferred): 應填入所綁定值集中的其中一個代碼。
Additional BindingsPurpose
AllLanguages Max Binding

Example Value: zh-TW
... managingOrganization SΣ 0..1 Reference(TW Core Organization) 此紀錄的保管機構
... link ?!Σ 0..* BackboneElement 連結至此病人的其他Patient Resource
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... other Σ 1..1 Reference(TW Core Patient | TW Core RelatedPerson) 連結至其他Patient或RelatedPerson Resource
.... type Σ 1..1 code replaced-by | replaces | refer | seealso
Binding: LinkType (required): 連結的型別;應填入所綁定值集中的其中一個代碼。

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Patient.identifier:idCardNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:idCardNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:passportNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:passportNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:residentNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:residentNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:medicalRecord.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:medicalRecord.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.name:official.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:usual.userequiredPattern Value: usual
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:temp.userequiredPattern Value: temp
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:anonymous.userequiredPattern Value: anonymous
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:mobile.systemrequiredPattern Value: sms
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:mobile.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:contactTel.systemrequiredPattern Value: phone
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:contactTel.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:email.systemrequiredPattern Value: email
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:email.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
From the FHIR Standard
Patient.address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
From the FHIR Standard
Patient.address.typerequiredAddressType
http://hl7.org/fhir/ValueSet/address-type|4.0.1
From the FHIR Standard
Patient.address.postalCode.extension:PostalCode.value[x].coding:PostalCode3requiredTWPostalCode3
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/postal-code3-tw
Patient.maritalStatusextensibleMarital Status Codes
http://hl7.org/fhir/ValueSet/marital-status
From the FHIR Standard
Patient.contact.relationshiprequiredPatientRelationshipType
http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype
From the FHIR Standard
Patient.contact.name.userequiredNameUse
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.contact.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.contact.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.communication.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Patient.link.typerequiredLinkType
http://hl7.org/fhir/ValueSet/link-type|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorPatientIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorPatientIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorPatientIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorPatientIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practicePatientA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
id-card-numbererrorPatient.identifier:idCardNumber身分證號共十碼,首碼以英文字母代表直轄市、縣(市)別,第二碼至第十碼為數字碼。
: value.matches('^[A-Za-z][0-9]{9}$')
pat-1errorPatient.contactSHALL at least contain a contact's details or a reference to an organization
: name.exists() or telecom.exists() or address.exists() or organization.exists()
pat-nameerrorPatient.name病人姓名有誤,超過12字
: text.length() <= 12
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1,8,A,C,Y=male, 2,9,B,D,X=female)
: ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '8' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'A' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'C' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'Y') implies gender = 'male') and ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '9' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'B' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'D' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'X') implies gender = 'female')
telecomerrorPatient手機號碼與聯絡電話應至少填寫一欄。
: telecom.where(system = 'sms').exists() or telecom.where(system = 'phone').exists()
telecom-contactTelerrorPatient.telecom:contactTel連絡電話格式有誤,長度不得超過15字。
: value.toString().length() <= 15
telecom-mobileerrorPatient.telecom:mobile手機號碼格式有誤,應為數字10碼。
: value.toString().length() = 10
tw-core-1errorPatient.name:usualPatient.name.text or Patient.name.family or both SHALL be present
: text.exists() or family.exists()
txt-10errorPatient.identifier:idCardNumber.value長度不得超過10字
: length() <= 10
txt-15errorPatient.telecom:contactTel.value長度不得超過15字
: length() <= 15
txt-40errorPatient.telecom:email.value長度不得超過40字
: length() <= 40
txt-80errorPatient.address.text長度不得超過80字
: length() <= 80

Differential View

This structure is derived from TWCorePatient

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
Constraints: patient-gender-match, telecom
... identifier 1..2 Identifier 病人的身份識別碼(identifier),通常為業務目的所使用的識別碼,例如病歷號。
... Slices for identifier Content/Rules for all slices
.... identifier:idCardNumber 1..1 Identifier 身分證字號
..... value C 0..1 string 唯一值。 例如:身分證字號為A123456789
Constraints: txt-10
.... identifier:passportNumber 0..0
.... identifier:residentNumber 0..0
.... identifier:medicalRecord 0..1 Identifier 病歷號(參與醫院必須註冊命名系統)。由醫院自行填寫。
... name C 1..1 HumanName 病人的姓名
Constraints: pat-name
.... name:official 0..0
.... name:usual 1..1 HumanName 姓名
..... text 1..1 string 完整的中文姓名
.... name:temp 0..0
.... name:anonymous 0..0
... Slices for telecom 1..3 ContactPoint 病人的聯絡資訊(例如:電話、電子郵件等)
Slice: Unordered, Closed by value:system
.... telecom:mobile SC 0..1 ContactPoint 手機號碼。應為數字10碼(寄送核發簡訊使用)。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-mobile
..... system 1..1 code phone | fax | email | pager | url | sms | other
Required Pattern: sms
.... telecom:contactTel SC 0..1 ContactPoint 連絡電話。長度不得超過15字。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-contactTel
..... system 1..1 code phone | fax | email | pager | url | sms | other
Required Pattern: phone
..... value C 1..1 string 實際的聯絡方式之細節
Constraints: txt-15
.... telecom:email S 0..1 ContactPoint 電子郵件信箱
..... system 1..1 code phone | fax | email | pager | url | sms | other
Required Pattern: email
..... value C 1..1 string 實際的聯絡方式之細節
Constraints: txt-40
... gender 1..1 code 病人性別。male:男性 | female:女性 | other:其他 | unknown:未知
... birthDate 1..1 date 出生日期,YYYY-MM-DD,西元年月日。
... address 1..1 AddressTW 病人聯絡地址 pat-cnt-2or3-char:如果有國家名,則必須(SHALL)從[ISO Country Alpha-2](http://hl7.org/fhir/valueset/iso3166-1-2)找出相對代碼作呈現。 如果未在ISO Country Alpha-2 中找到此一國家的代碼,則可能可以(MAY)從[ISO Country Alpha-3](http://hl7.org/fhir/valueset/iso3166-1-3)找出相對代碼作呈現。
.... text C 1..1 string 連絡住址
Constraints: txt-80
.... postalCode 1..1 string 郵遞區號
..... extension 1..* Extension Extension
..... Slices for extension Content/Rules for all slices
...... extension:PostalCode 1..1 TWPostalCode 臺灣郵遞區號
....... value[x]
........ coding 1..* CodingTW 由專門術語系統(terminology system)定義的代碼
........ Slices for coding Content/Rules for all slices
......... coding:PostalCode3 1..1 CodingTW 由專門術語系統(terminology system)定義的代碼
.......... code 1..1 code 郵遞區號
......... coding:PostalCode5 0..0
......... coding:PostalCode6 0..0

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
pat-nameerrorPatient.name病人姓名有誤,超過12字
: text.length() <= 12
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1,8,A,C,Y=male, 2,9,B,D,X=female)
: ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '8' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'A' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'C' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'Y') implies gender = 'male') and ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '9' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'B' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'D' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'X') implies gender = 'female')
telecomerrorPatient手機號碼與聯絡電話應至少填寫一欄。
: telecom.where(system = 'sms').exists() or telecom.where(system = 'phone').exists()
telecom-contactTelerrorPatient.telecom:contactTel連絡電話格式有誤,長度不得超過15字。
: value.toString().length() <= 15
telecom-mobileerrorPatient.telecom:mobile手機號碼格式有誤,應為數字10碼。
: value.toString().length() = 10
txt-10errorPatient.identifier:idCardNumber.value長度不得超過10字
: length() <= 10
txt-15errorPatient.telecom:contactTel.value長度不得超過15字
: length() <= 15
txt-40errorPatient.telecom:email.value長度不得超過40字
: length() <= 40
txt-80errorPatient.address.text長度不得超過80字
: length() <= 80

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
Constraints: patient-gender-match, telecom
... id Σ 0..1 id 不重複的ID用以識別儲存在特定FHIR Server中的Patient紀錄,通常又稱為邏輯性ID。
... meta Σ 0..1 Meta 此Patient Resource的metadata
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
... text 0..1 Narrative Patient Resource之內容摘要以供人閱讀
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:age S 0..1 Age 年齡
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age
.... extension:nationality S 0..1 (Complex) 病人所屬國籍
URL: http://hl7.org/fhir/StructureDefinition/patient-nationality
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... Slices for identifier SΣ 1..2 Identifier 病人的身份識別碼(identifier),通常為業務目的所使用的識別碼,例如病歷號。
Slice: Unordered, Open by value:type.coding.code, value:type.coding.system
.... identifier:idCardNumber SΣC 1..1 Identifier 身分證字號
Constraints: id-card-number
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 1..* Coding Code defined by a terminology system
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... version Σ 0..1 string Version of the system - if relevant
....... code Σ 1..1 code Symbol in syntax defined by the system
Required Pattern: NNxxx
........ id 0..1 string xml:id (or equivalent in JSON)
........ Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
......... extension:identifier-suffix S 0..1 (Complex) 識別碼後綴詞
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix
........ value 0..1 string Primitive value for code
....... display Σ 0..1 string Representation defined by the system
....... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace) 例如:身分證字號='http://www.moi.gov.tw'
Required Pattern: http://www.moi.gov.tw
..... value SΣC 0..1 string 唯一值。 例如:身分證字號為A123456789
Constraints: txt-10
Example General: 123456
..... period Σ 0..1 Period 此身份識別碼(identifier)的使用效期
..... assigner Σ 0..1 Reference(TW Core Organization) 簽發identifier的機構(可以只是文字表述)
.... identifier:medicalRecord SΣ 0..1 Identifier 病歷號(參與醫院必須註冊命名系統)。由醫院自行填寫。
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 1..* Coding Code defined by a terminology system
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... version Σ 0..1 string Version of the system - if relevant
....... code Σ 1..1 code Symbol in syntax defined by the system
Required Pattern: MR
....... display Σ 0..1 string Representation defined by the system
....... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace),可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。
Example General: http://www.acme.com/identifiers/patient
..... value SΣ 0..1 string 唯一值。 例如:病歷號為8862168
Example General: 123456
..... period Σ 0..1 Period 此身份識別碼(identifier)的使用效期
..... assigner Σ 0..1 Reference(TW Core Organization) 簽發identifier的機構(可以只是文字表述)
... active ?!SΣ 0..1 boolean 病人的紀錄是否「使用中(true)」
... Slices for name ΣC 1..1 HumanName 病人的姓名
Slice: Unordered, Open by pattern:use
Constraints: pat-name
.... name:usual SΣC 1..1 HumanName 姓名
Constraints: tw-core-1
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!SΣ 1..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。
Required Pattern: usual
..... text SΣC 1..1 string 完整的中文姓名
Example General: 陳加玲
..... family SΣC 0..1 string 若所屬國籍可區分family及given,填入所屬國籍之姓(family)
Example General:
..... given SΣC 0..* string 若所屬國籍可區分family及given,填入所屬國籍之名(given)
This repeating element order: Given Names appear in the correct order for presenting the name
Example General: 加玲
..... prefix Σ 0..* string 姓名前面的頭銜 由於學術,法律,職業或貴族身份等原因而獲得頭銜,出現在姓名開頭。
This repeating element order: Prefixes appear in the correct order for presenting the name
..... suffix Σ 0..* string 姓名後面的稱謂 由於學術,法律,職業或貴族身份等原因而獲得頭銜,出現在姓名之後。
This repeating element order: Suffixes appear in the correct order for presenting the name
..... period Σ 0..1 Period 此姓名的使用效期
... Slices for telecom SΣ 1..3 ContactPoint 病人的聯絡資訊(例如:電話、電子郵件等)
Slice: Unordered, Closed by value:system
.... telecom:All Slices Content/Rules for all slices
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:mobile SΣC 0..1 ContactPoint 手機號碼。應為數字10碼(寄送核發簡訊使用)。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-mobile
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: sms
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:contactTel SΣC 0..1 ContactPoint 連絡電話。長度不得超過15字。手機號碼與聯絡電話應至少填寫一欄。
Constraints: telecom-contactTel
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: phone
..... value SΣC 1..1 string 實際的聯絡方式之細節
Constraints: txt-15
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period SΣ 0..1 Period 此聯絡方式的使用效期
.... telecom:email SΣ 0..1 ContactPoint 電子郵件信箱
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
Required Pattern: email
..... value SΣC 1..1 string 實際的聯絡方式之細節
Constraints: txt-40
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period SΣ 0..1 Period 此聯絡方式的使用效期
... gender SΣ 1..1 code 病人性別。male:男性 | female:女性 | other:其他 | unknown:未知
Binding: AdministrativeGender (required): 病人性別;應填入所綁定值集中的其中一個代碼。
... birthDate SΣ 1..1 date 出生日期,YYYY-MM-DD,西元年月日。
... deceased[x] ?!Σ 0..1 病人是否過世
.... deceasedBoolean boolean
.... deceasedDateTime dateTime
... address S 1..1 AddressTW 病人聯絡地址 pat-cnt-2or3-char:如果有國家名,則必須(SHALL)從[ISO Country Alpha-2](http://hl7.org/fhir/valueset/iso3166-1-2)找出相對代碼作呈現。 如果未在ISO Country Alpha-2 中找到此一國家的代碼,則可能可以(MAY)從[ISO Country Alpha-3](http://hl7.org/fhir/valueset/iso3166-1-3)找出相對代碼作呈現。
.... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
.... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... extension:room S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-room
..... extension:floor S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-floor
..... extension:number S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-number
..... extension:alley S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-alley
..... extension:lane S 0..1 string 巷/衖
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-lane
..... extension:section S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-section
..... extension:neighborhood S 0..1 string
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-neighborhood
..... extension:village S 0..1 string 村(里)
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-village
.... use ?!SΣ 0..1 code home | work | temp | old | billing - 此地址的用途
Binding: AddressUse (required): 應填入AddressUse值集中的其中一個代碼
Example General: home
.... type SΣ 0..1 code postal | physical | both
Binding: AddressType (required): 應填入AddressType值集中的其中一個代碼
Example General: both
.... text ΣC 1..1 string 連絡住址
Constraints: txt-80
Example General: 137 Nowhere Street, Erewhon 9132
.... line SΣ 0..1 string 路/街
This repeating element order: The order in which lines should appear in an address label
Example General: 137 Nowhere Street
.... city SΣ 0..1 string 鄉/鎮/市/區,定義上與國際的等級一致。原文為:Name of city, town etc.。
Example General: Erewhon
.... district SΣ 0..1 string 縣/市,定義上與國際的等級一致。原文為:District name (aka county)。
Example General: Madison
.... state Σ 0..1 string 國家的子單位(縮寫也可以)。原文為:Sub-unit of country (abbreviations ok)。
.... postalCode SΣ 1..1 string 郵遞區號
Example General: 9132
..... id 0..1 string xml:id(或JSON格式)。
..... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:PostalCode S 1..1 (Complex) 臺灣郵遞區號
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code
....... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
....... extension 0..0
....... url 1..1 uri "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code"
....... value[x] S 0..1 CodeableConceptTW 擴充的資料項目的內容值
........ id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
........ extension 0..* Extension Extension
Slice: Unordered, Open by value:url
........ Slices for coding S 1..* CodingTW 由專門術語系統(terminology system)定義的代碼
Slice: Unordered, Open by pattern:system
......... coding:PostalCode3 S 1..1 CodingTW 由專門術語系統(terminology system)定義的代碼
Binding: 臺灣中華郵政3碼郵遞區號值集 (required): 應填入所綁定值集中的其中一個代碼
.......... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
.......... extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
.......... system SΣ 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/postal-code3-tw
.......... version Σ 0..1 string 系統的版本—如果相關的話
.......... code SΣ 1..1 code 郵遞區號
.......... display SΣ 0..1 string 由系統定義的表示法
.......... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
........ text SΣ 0..1 string 概念的文字表示法
..... value 0..1 string 郵遞區號
Max Length:1048576
.... country SΣ 0..1 string 國家(例如:ISO 3166的2個或3個字母代碼)。
.... period Σ 0..1 Period 此地址曾經/正在使用的時間區間
Example General: {"start":"2010-03-23","end":"2010-07-01"}
... maritalStatus S 0..1 CodeableConceptTW 病人的婚姻狀態
Binding: Marital Status Codes (extensible): 病人的婚姻狀態;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
... multipleBirth[x] 0..1 病人是否為多胞胎;或多胞胎出生順序。
.... multipleBirthBoolean boolean
.... multipleBirthInteger integer
... photo S 0..* Attachment 病人的影像(照片)
... contact SC 0..* BackboneElement 病人的聯絡人,例如:監護人、伴侶、朋友等。
Constraints: pat-1
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... relationship S 0..* CodeableConceptTW 概念(Concept)-參照一個專門術語或只是文字表述
Binding: PatientRelationshipType (required): 應填入所綁定值集中的其中一個代碼。
.... name S 0..1 HumanName 聯絡人姓名
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!SΣ 0..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。
..... text SΣ 0..1 string 完整的中文姓名
..... family SΣ 0..1 string 英文姓
..... given SΣ 0..* string 英文名
This repeating element order: Given Names appear in the correct order for presenting the name
..... prefix Σ 0..* string 姓名前面的頭銜 由於學術,法律,職業或貴族身份等原因而獲得頭銜,出現在姓名開頭。
This repeating element order: Prefixes appear in the correct order for presenting the name
..... suffix Σ 0..* string 姓名後面的稱謂 由於學術,法律,職業或貴族身份等原因而獲得頭銜,出現在姓名之後。
This repeating element order: Suffixes appear in the correct order for presenting the name
..... period Σ 0..1 Period 此姓名的使用效期
.... telecom S 0..* ContactPoint 聯絡人的詳細聯絡資訊
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
..... value SΣ 1..1 string 實際的聯絡方式之細節
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
..... rank Σ 0..1 positiveInt 具體說明偏好的使用順序(1=最高優先順序)
..... period Σ 0..1 Period 此聯絡方式的使用效期
.... address 0..1 AddressTW 聯絡人的地址
.... gender 0..1 code male | female | other | unknown
Binding: AdministrativeGender (required): 聯絡人的性別;應填入所綁定值集中的其中一個代碼。
.... organization C 0..1 Reference(TW Core Organization) 可聯絡到聯絡人的機構
.... period S 0..1 Period 聯絡人或其可聯絡機構之可聯絡期(時間區間)
... communication S 0..* BackboneElement 向病人說明健康狀態時所使用的語言
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... language S 1..1 CodeableConceptTW 向病人說明健康狀況時所使用的語言
Binding: CommonLanguages (preferred): 應填入所綁定值集中的其中一個代碼。
Additional BindingsPurpose
AllLanguages Max Binding

Example Value: zh-TW
.... preferred 0..1 boolean 病人是否偏好使用此語言
... generalPractitioner 0..* Reference(TW Core Organization | TW Core Practitioner | TW Core PractitionerRole) 照護此病人的機構、照護服務提供者、或健康照護服務提供者的角色
... managingOrganization SΣ 0..1 Reference(TW Core Organization) 此紀錄的保管機構
... link ?!Σ 0..* BackboneElement 連結至此病人的其他Patient Resource
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... other Σ 1..1 Reference(TW Core Patient | TW Core RelatedPerson) 連結至其他Patient或RelatedPerson Resource
.... type Σ 1..1 code replaced-by | replaces | refer | seealso
Binding: LinkType (required): 連結的型別;應填入所綁定值集中的其中一個代碼。

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Patient.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Patient.identifier:idCardNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:idCardNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:passportNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:passportNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:residentNumber.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:residentNumber.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.identifier:medicalRecord.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
Patient.identifier:medicalRecord.typeextensibleTWIdentifierType
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw
Patient.name:official.userequiredPattern Value: official
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:usual.userequiredPattern Value: usual
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:temp.userequiredPattern Value: temp
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.name:anonymous.userequiredPattern Value: anonymous
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:mobile.systemrequiredPattern Value: sms
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:mobile.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:contactTel.systemrequiredPattern Value: phone
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:contactTel.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.telecom:email.systemrequiredPattern Value: email
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.telecom:email.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
From the FHIR Standard
Patient.address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
From the FHIR Standard
Patient.address.typerequiredAddressType
http://hl7.org/fhir/ValueSet/address-type|4.0.1
From the FHIR Standard
Patient.address.postalCode.extension:PostalCode.value[x].coding:PostalCode3requiredTWPostalCode3
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/postal-code3-tw
Patient.maritalStatusextensibleMarital Status Codes
http://hl7.org/fhir/ValueSet/marital-status
From the FHIR Standard
Patient.contact.relationshiprequiredPatientRelationshipType
http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype
From the FHIR Standard
Patient.contact.name.userequiredNameUse
http://hl7.org/fhir/ValueSet/name-use|4.0.1
From the FHIR Standard
Patient.contact.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
From the FHIR Standard
Patient.contact.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
From the FHIR Standard
Patient.contact.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
From the FHIR Standard
Patient.communication.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Patient.link.typerequiredLinkType
http://hl7.org/fhir/ValueSet/link-type|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorPatientIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorPatientIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorPatientIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorPatientIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practicePatientA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
id-card-numbererrorPatient.identifier:idCardNumber身分證號共十碼,首碼以英文字母代表直轄市、縣(市)別,第二碼至第十碼為數字碼。
: value.matches('^[A-Za-z][0-9]{9}$')
pat-1errorPatient.contactSHALL at least contain a contact's details or a reference to an organization
: name.exists() or telecom.exists() or address.exists() or organization.exists()
pat-nameerrorPatient.name病人姓名有誤,超過12字
: text.length() <= 12
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1,8,A,C,Y=male, 2,9,B,D,X=female)
: ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '8' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'A' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'C' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'Y') implies gender = 'male') and ((identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '9' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'B' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'D' or identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = 'X') implies gender = 'female')
telecomerrorPatient手機號碼與聯絡電話應至少填寫一欄。
: telecom.where(system = 'sms').exists() or telecom.where(system = 'phone').exists()
telecom-contactTelerrorPatient.telecom:contactTel連絡電話格式有誤,長度不得超過15字。
: value.toString().length() <= 15
telecom-mobileerrorPatient.telecom:mobile手機號碼格式有誤,應為數字10碼。
: value.toString().length() = 10
tw-core-1errorPatient.name:usualPatient.name.text or Patient.name.family or both SHALL be present
: text.exists() or family.exists()
txt-10errorPatient.identifier:idCardNumber.value長度不得超過10字
: length() <= 10
txt-15errorPatient.telecom:contactTel.value長度不得超過15字
: length() <= 15
txt-40errorPatient.telecom:email.value長度不得超過40字
: length() <= 40
txt-80errorPatient.address.text長度不得超過80字
: length() <= 80

This structure is derived from TWCorePatient

Summary

Mandatory: 10 elements(2 nested mandatory elements)
Must-Support: 3 elements
Prohibited: 7 elements

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Patient.telecom (Closed)

 

Other representations of profile: CSV, Excel, Schematron

Notes:

以下概述了此Profile所需的RESTful FHIR互動功能。有關TWCI支援的RESTful互動功能的完整清單,請參閱TWCI Server能力聲明

必須支援以下查詢參數:

  1. 必須(SHALL) 支援透過查詢參數 name 查詢所有Patient:
    (如何透過string查詢)
    GET [base]/Patient?name=[string]

    例子:
    (1) GET [base]/Patient?name=王大明

  2. 必須(SHALL) 支援透過查詢參數 identifier 查詢所有Patient:
    (如何透過token查詢)
    GET [base]/Patient?identifier=[code]

    例子:
    (1) GET [base]/Patient?identifier=A123456789