臺灣健保癌症用藥事前審查實作指引
1.0.1 - release

This page is part of the 臺灣癌症用藥事前審查實作指引(TWPAS IG) (v1.0.1: Release) 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 TWPAS

Official URL: https://twcore.mohw.gov.tw/ig/pas/StructureDefinition/Patient-twpas Version: 1.0.1
Active as of 2024-12-12 Computable Name: PatientTWPAS

此病人資訊-Patient TWPAS Profile說明本IG如何進一步定義臺灣核心-病人(TW Core Patient) Profile以呈現癌藥事前審查之病人基本資料

Usage:

Formal Views of Profile Content

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

This structure is derived from TWCorePatient

NameFlagsCard.TypeDescription & Constraintsdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
patient-gender-match: gender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
... identifier 1..2 Identifier 病人的身份識別碼(identifier),通常為業務目的所使用的識別碼,例如病歷號。
... Slices for identifier Content/Rules for all slices
.... identifier:idCardNumber 1..1 Identifier 身分證號,被保險人國民身分證統一編號。
.... identifier:passportNumber 0..0
.... identifier:residentNumber 0..0
.... identifier:medicalRecord 0..1 Identifier 病歷號 (參與醫院必須註冊命名系統),由醫院自行填寫。
... name C 1..1 HumanName 病人的姓名
pat-name: 病人姓名有誤 ,超過40字
.... name:official 0..0
.... name:usual 1..1 HumanName 病人所屬國籍的真實姓名
..... text 1..1 string 完整的中文姓名
.... name:temp 0..0
.... name:anonymous 0..0
... gender 1..1 code male:男性 | female:女性 | other:其他 | unknown:未知
... birthDate 1..1 date 出生日期,YYYY-MM-DD,西元年月日。

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
pat-nameerrorPatient.name病人姓名有誤 ,超過40字
: text.length() <= 40
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
: (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' implies gender = 'male') and (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' implies gender = 'female')
NameFlagsCard.TypeDescription & Constraintsdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
patient-gender-match: gender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
ele-1: All FHIR elements must have a @value or children
... Slices for extension Content/Rules for all slices
.... age S 0..1 Age 年齡
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nationality S 0..1 (Complex) 病人所屬國籍
URL: http://hl7.org/fhir/StructureDefinition/patient-nationality
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... identifier:idCardNumber SΣC 1..1 Identifier 身分證號,被保險人國民身分證統一編號。
ele-1: All FHIR elements must have a @value or children
id-card-number: 身分證號共十碼,首碼以英文字母代表直轄市、縣(市)別,第二碼至第十碼為數字碼。
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
...... coding Σ 1..* Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children
....... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
Required Pattern: NNxxx
........ Slices for extension Content/Rules for all slices
......... identifier-suffix S 0..1 (Complex) 識別碼後綴詞
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace) 例如:身分證字號='http://www.moi.gov.tw'
ele-1: All FHIR elements must have a @value or children
Required Pattern: http://www.moi.gov.tw
..... value SΣ 0..1 string 唯一值。 例如:身分證字號為A123456789
ele-1: All FHIR elements must have a @value or children
Example General: 123456
.... identifier:medicalRecord SΣ 0..1 Identifier 病歷號 (參與醫院必須註冊命名系統),由醫院自行填寫。
ele-1: All FHIR elements must have a @value or children
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
...... coding Σ 1..* Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children
....... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
Required Pattern: MR
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace),可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。
ele-1: All FHIR elements must have a @value or children
Example General: http://www.acme.com/identifiers/patient
..... value SΣ 0..1 string 唯一值。 例如:病歷號為8862168
ele-1: All FHIR elements must have a @value or children
Example General: 123456
... active ?!SΣ 0..1 boolean 病人的紀錄是否「使用中(true)」
ele-1: All FHIR elements must have a @value or children
... Slices for name ΣC 1..1 HumanName 病人的姓名
Slice: Unordered, Open by pattern:use
ele-1: All FHIR elements must have a @value or children
pat-name: 病人姓名有誤 ,超過40字
.... name:usual SΣC 1..1 HumanName 病人所屬國籍的真實姓名
ele-1: All FHIR elements must have a @value or children
tw-core-1: Patient.name.text or Patient.name.family or both SHALL be present
..... use ?!SΣ 1..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
Required Pattern: usual
..... text SΣC 1..1 string 完整的中文姓名
ele-1: All FHIR elements must have a @value or children
Example General: 陳加玲
..... family SΣC 0..1 string 若所屬國籍可區分family及given,填入所屬國籍之姓(family)
ele-1: All FHIR elements must have a @value or children
Example General:
..... given SΣC 0..* string 若所屬國籍可區分family及given,填入所屬國籍之名(given)
ele-1: All FHIR elements must have a @value or children
This repeating element order: Given Names appear in the correct order for presenting the name
Example General: 加玲
... telecom SΣ 0..* ContactPoint 病人的聯絡資訊(例如:電話、電子郵件等)
ele-1: All FHIR elements must have a @value or children
.... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
.... value SΣ 1..1 string 實際的聯絡方式之細節
ele-1: All FHIR elements must have a @value or children
.... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
.... period SΣ 0..1 Period 此聯絡方式的使用效期
ele-1: All FHIR elements must have a @value or children
... gender SΣ 1..1 code male:男性 | female:女性 | other:其他 | unknown:未知
Binding: AdministrativeGender (required): 病人性別;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
... birthDate SΣ 1..1 date 出生日期,YYYY-MM-DD,西元年月日。
ele-1: All FHIR elements must have a @value or children
... deceased[x] ?!Σ 0..1 病人是否過世
ele-1: All FHIR elements must have a @value or children
.... deceasedBoolean boolean
.... deceasedDateTime dateTime
... address S 0..* 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)找出相對代碼作呈現。
ele-1: All FHIR elements must have a @value or children
... maritalStatus S 0..1 CodeableConceptTW 病人的婚姻狀態
Binding: Marital Status Codes (extensible): 病人的婚姻狀態;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
... photo S 0..* Attachment 病人的影像(照片)
ele-1: All FHIR elements must have a @value or children
... contact SC 0..* BackboneElement 病人的聯絡人,例如:監護人、伴侶、朋友等。
ele-1: All FHIR elements must have a @value or children
pat-1: SHALL at least contain a contact's details or a reference to an organization
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... relationship S 0..* CodeableConceptTW 概念(Concept)-參照一個專門術語或只是文字表述
Binding: PatientRelationshipType (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
.... name S 0..1 HumanName 聯絡人姓名
ele-1: All FHIR elements must have a @value or children
..... use ?!SΣ 0..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 完整的中文姓名
ele-1: All FHIR elements must have a @value or children
..... family SΣ 0..1 string 英文姓
ele-1: All FHIR elements must have a @value or children
..... given SΣ 0..* string 英文名
ele-1: All FHIR elements must have a @value or children
This repeating element order: Given Names appear in the correct order for presenting the name
.... telecom S 0..* ContactPoint 聯絡人的詳細聯絡資訊
ele-1: All FHIR elements must have a @value or children
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
..... value SΣ 1..1 string 實際的聯絡方式之細節
ele-1: All FHIR elements must have a @value or children
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
.... period S 0..1 Period 聯絡人或其可聯絡機構之可聯絡期(時間區間)
ele-1: All FHIR elements must have a @value or children
... communication S 0..* BackboneElement 向病人說明健康狀態時所使用的語言
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... language S 1..1 CodeableConceptTW 向病人說明健康狀況時所使用的語言
Binding: CommonLanguages (preferred): 應填入所綁定值集中的其中一個代碼。

Additional BindingsPurpose
AllLanguages Max Binding

ele-1: All FHIR elements must have a @value or children
Example Value: zh-TW
... managingOrganization SΣ 0..1 Reference(TW Core Organization) 此紀錄的保管機構
ele-1: All FHIR elements must have a @value or children
... link ?!Σ 0..* BackboneElement 連結至此病人的其他Patient Resource
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... other Σ 1..1 Reference(TW Core Patient | TW Core RelatedPerson) 連結至其他Patient或RelatedPerson Resource
ele-1: All FHIR elements must have a @value or children
.... type Σ 1..1 code replaced-by | replaces | refer | seealso
Binding: LinkType (required): 連結的型別;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Patient.identifier:idCardNumber.userequiredPattern: 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: 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: 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: 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: official
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:usual.userequiredPattern: usual
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:temp.userequiredPattern: temp
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:anonymous.userequiredPattern: 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.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
from the FHIR Standard
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病人姓名有誤 ,超過40字
: text.length() <= 40
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
: (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' implies gender = 'male') and (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' implies gender = 'female')
tw-core-1errorPatient.name:usualPatient.name.text or Patient.name.family or both SHALL be present
: text.exists() or family.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
patient-gender-match: gender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
... 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
.... age S 0..1 Age 年齡
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age
.... 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 身分證號,被保險人國民身分證統一編號。
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
......... 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Σ 0..1 string 唯一值。 例如:身分證字號為A123456789
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
pat-name: 病人姓名有誤 ,超過40字
.... name:usual SΣC 1..1 HumanName 病人所屬國籍的真實姓名
tw-core-1: Patient.name.text or Patient.name.family or both SHALL be present
..... 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 此姓名的使用效期
... 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 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 0..* 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)找出相對代碼作呈現。
... 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 病人的聯絡人,例如:監護人、伴侶、朋友等。
pat-1: SHALL at least contain a contact's details or a reference to an organization
.... 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: 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: 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: 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: 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: official
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:usual.userequiredPattern: usual
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:temp.userequiredPattern: temp
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:anonymous.userequiredPattern: 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.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
from the FHIR Standard
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病人姓名有誤 ,超過40字
: text.length() <= 40
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
: (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' implies gender = 'male') and (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' implies gender = 'female')
tw-core-1errorPatient.name:usualPatient.name.text or Patient.name.family or both SHALL be present
: text.exists() or family.exists()

This structure is derived from TWCorePatient

Summary

Mandatory: 4 elements
Prohibited: 5 elements

Differential View

This structure is derived from TWCorePatient

NameFlagsCard.TypeDescription & Constraintsdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
patient-gender-match: gender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
... identifier 1..2 Identifier 病人的身份識別碼(identifier),通常為業務目的所使用的識別碼,例如病歷號。
... Slices for identifier Content/Rules for all slices
.... identifier:idCardNumber 1..1 Identifier 身分證號,被保險人國民身分證統一編號。
.... identifier:passportNumber 0..0
.... identifier:residentNumber 0..0
.... identifier:medicalRecord 0..1 Identifier 病歷號 (參與醫院必須註冊命名系統),由醫院自行填寫。
... name C 1..1 HumanName 病人的姓名
pat-name: 病人姓名有誤 ,超過40字
.... name:official 0..0
.... name:usual 1..1 HumanName 病人所屬國籍的真實姓名
..... text 1..1 string 完整的中文姓名
.... name:temp 0..0
.... name:anonymous 0..0
... gender 1..1 code male:男性 | female:女性 | other:其他 | unknown:未知
... birthDate 1..1 date 出生日期,YYYY-MM-DD,西元年月日。

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
pat-nameerrorPatient.name病人姓名有誤 ,超過40字
: text.length() <= 40
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
: (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' implies gender = 'male') and (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' implies gender = 'female')

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
patient-gender-match: gender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
ele-1: All FHIR elements must have a @value or children
... Slices for extension Content/Rules for all slices
.... age S 0..1 Age 年齡
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nationality S 0..1 (Complex) 病人所屬國籍
URL: http://hl7.org/fhir/StructureDefinition/patient-nationality
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... identifier:idCardNumber SΣC 1..1 Identifier 身分證號,被保險人國民身分證統一編號。
ele-1: All FHIR elements must have a @value or children
id-card-number: 身分證號共十碼,首碼以英文字母代表直轄市、縣(市)別,第二碼至第十碼為數字碼。
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
...... coding Σ 1..* Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children
....... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
Required Pattern: NNxxx
........ Slices for extension Content/Rules for all slices
......... identifier-suffix S 0..1 (Complex) 識別碼後綴詞
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace) 例如:身分證字號='http://www.moi.gov.tw'
ele-1: All FHIR elements must have a @value or children
Required Pattern: http://www.moi.gov.tw
..... value SΣ 0..1 string 唯一值。 例如:身分證字號為A123456789
ele-1: All FHIR elements must have a @value or children
Example General: 123456
.... identifier:medicalRecord SΣ 0..1 Identifier 病歷號 (參與醫院必須註冊命名系統),由醫院自行填寫。
ele-1: All FHIR elements must have a @value or children
..... use ?!SΣ 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的目的;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
Required Pattern: official
..... type SΣ 1..1 CodeableConcept 身份識別碼(identifier)的型別說明
Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別,用於決定特定目的所適用的識別碼;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
...... coding Σ 1..* Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children
....... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
Required Pattern: http://terminology.hl7.org/CodeSystem/v2-0203
....... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
Required Pattern: MR
..... system SΣ 0..1 uri 身份識別碼(identifier)的命名空間(namespace),可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。
ele-1: All FHIR elements must have a @value or children
Example General: http://www.acme.com/identifiers/patient
..... value SΣ 0..1 string 唯一值。 例如:病歷號為8862168
ele-1: All FHIR elements must have a @value or children
Example General: 123456
... active ?!SΣ 0..1 boolean 病人的紀錄是否「使用中(true)」
ele-1: All FHIR elements must have a @value or children
... Slices for name ΣC 1..1 HumanName 病人的姓名
Slice: Unordered, Open by pattern:use
ele-1: All FHIR elements must have a @value or children
pat-name: 病人姓名有誤 ,超過40字
.... name:usual SΣC 1..1 HumanName 病人所屬國籍的真實姓名
ele-1: All FHIR elements must have a @value or children
tw-core-1: Patient.name.text or Patient.name.family or both SHALL be present
..... use ?!SΣ 1..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
Required Pattern: usual
..... text SΣC 1..1 string 完整的中文姓名
ele-1: All FHIR elements must have a @value or children
Example General: 陳加玲
..... family SΣC 0..1 string 若所屬國籍可區分family及given,填入所屬國籍之姓(family)
ele-1: All FHIR elements must have a @value or children
Example General:
..... given SΣC 0..* string 若所屬國籍可區分family及given,填入所屬國籍之名(given)
ele-1: All FHIR elements must have a @value or children
This repeating element order: Given Names appear in the correct order for presenting the name
Example General: 加玲
... telecom SΣ 0..* ContactPoint 病人的聯絡資訊(例如:電話、電子郵件等)
ele-1: All FHIR elements must have a @value or children
.... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
.... value SΣ 1..1 string 實際的聯絡方式之細節
ele-1: All FHIR elements must have a @value or children
.... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
.... period SΣ 0..1 Period 此聯絡方式的使用效期
ele-1: All FHIR elements must have a @value or children
... gender SΣ 1..1 code male:男性 | female:女性 | other:其他 | unknown:未知
Binding: AdministrativeGender (required): 病人性別;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
... birthDate SΣ 1..1 date 出生日期,YYYY-MM-DD,西元年月日。
ele-1: All FHIR elements must have a @value or children
... deceased[x] ?!Σ 0..1 病人是否過世
ele-1: All FHIR elements must have a @value or children
.... deceasedBoolean boolean
.... deceasedDateTime dateTime
... address S 0..* 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)找出相對代碼作呈現。
ele-1: All FHIR elements must have a @value or children
... maritalStatus S 0..1 CodeableConceptTW 病人的婚姻狀態
Binding: Marital Status Codes (extensible): 病人的婚姻狀態;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
... photo S 0..* Attachment 病人的影像(照片)
ele-1: All FHIR elements must have a @value or children
... contact SC 0..* BackboneElement 病人的聯絡人,例如:監護人、伴侶、朋友等。
ele-1: All FHIR elements must have a @value or children
pat-1: SHALL at least contain a contact's details or a reference to an organization
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... relationship S 0..* CodeableConceptTW 概念(Concept)-參照一個專門術語或只是文字表述
Binding: PatientRelationshipType (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
.... name S 0..1 HumanName 聯絡人姓名
ele-1: All FHIR elements must have a @value or children
..... use ?!SΣ 0..1 code usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人名的使用情況;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 完整的中文姓名
ele-1: All FHIR elements must have a @value or children
..... family SΣ 0..1 string 英文姓
ele-1: All FHIR elements must have a @value or children
..... given SΣ 0..* string 英文名
ele-1: All FHIR elements must have a @value or children
This repeating element order: Given Names appear in the correct order for presenting the name
.... telecom S 0..* ContactPoint 聯絡人的詳細聯絡資訊
ele-1: All FHIR elements must have a @value or children
..... system SΣC 1..1 code phone | fax | email | pager | url | sms | other
Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
..... value SΣ 1..1 string 實際的聯絡方式之細節
ele-1: All FHIR elements must have a @value or children
..... use ?!SΣ 0..1 code home | work | temp | old | mobile-此聯絡方式的用途
Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
.... period S 0..1 Period 聯絡人或其可聯絡機構之可聯絡期(時間區間)
ele-1: All FHIR elements must have a @value or children
... communication S 0..* BackboneElement 向病人說明健康狀態時所使用的語言
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... language S 1..1 CodeableConceptTW 向病人說明健康狀況時所使用的語言
Binding: CommonLanguages (preferred): 應填入所綁定值集中的其中一個代碼。

Additional BindingsPurpose
AllLanguages Max Binding

ele-1: All FHIR elements must have a @value or children
Example Value: zh-TW
... managingOrganization SΣ 0..1 Reference(TW Core Organization) 此紀錄的保管機構
ele-1: All FHIR elements must have a @value or children
... link ?!Σ 0..* BackboneElement 連結至此病人的其他Patient Resource
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... other Σ 1..1 Reference(TW Core Patient | TW Core RelatedPerson) 連結至其他Patient或RelatedPerson Resource
ele-1: All FHIR elements must have a @value or children
.... type Σ 1..1 code replaced-by | replaces | refer | seealso
Binding: LinkType (required): 連結的型別;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Patient.identifier:idCardNumber.userequiredPattern: 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: 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: 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: 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: official
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:usual.userequiredPattern: usual
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:temp.userequiredPattern: temp
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:anonymous.userequiredPattern: 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.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
from the FHIR Standard
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病人姓名有誤 ,超過40字
: text.length() <= 40
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
: (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' implies gender = 'male') and (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' implies gender = 'female')
tw-core-1errorPatient.name:usualPatient.name.text or Patient.name.family or both SHALL be present
: text.exists() or family.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Patient C 0..* TWCorePatient 接受健康照護服務的個人或動物之資訊
patient-gender-match: gender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
... 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
.... age S 0..1 Age 年齡
URL: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age
.... 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 身分證號,被保險人國民身分證統一編號。
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
......... 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Σ 0..1 string 唯一值。 例如:身分證字號為A123456789
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
pat-name: 病人姓名有誤 ,超過40字
.... name:usual SΣC 1..1 HumanName 病人所屬國籍的真實姓名
tw-core-1: Patient.name.text or Patient.name.family or both SHALL be present
..... 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 此姓名的使用效期
... 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 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 0..* 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)找出相對代碼作呈現。
... 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 病人的聯絡人,例如:監護人、伴侶、朋友等。
pat-1: SHALL at least contain a contact's details or a reference to an organization
.... 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: 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: 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: 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: 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: official
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:usual.userequiredPattern: usual
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:temp.userequiredPattern: temp
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.name:anonymous.userequiredPattern: 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.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
from the FHIR Standard
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病人姓名有誤 ,超過40字
: text.length() <= 40
patient-gender-matcherrorPatientgender依據identifier:idCardNumber第二位字符檢核男性與女性代碼 (1=male, 2=female)
: (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '1' implies gender = 'male') and (identifier.where(system = 'http://www.moi.gov.tw').value.substring(1, 1) = '2' implies gender = 'female')
tw-core-1errorPatient.name:usualPatient.name.text or Patient.name.family or both SHALL be present
: text.exists() or family.exists()

This structure is derived from TWCorePatient

Summary

Mandatory: 4 elements
Prohibited: 5 elements

 

Other representations of profile: CSV, Excel, Schematron

Notes:

以下概述了此Profile所需的RESTful FHIR互動功能。有關TWPAS支援的RESTful互動功能的完整清單,請參閱TWPAS 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