2018年12月26日 星期三

HL7 FHIR 資料型態篇 - Complex Types - 人口資料類

這類的比較是跟人有關。
==========

HumanName

NameFlagsCard.TypeDescription & Constraints
.. HumanNameΣNElementName of a human - parts and usage
Elements defined in Ancestors: idextension
... use?!Σ0..1codeusual | official | temp | nickname | anonymous | old | maiden
NameUse (Required)
... textΣ0..1stringText representation of the full name
... familyΣ0..1stringFamily name (often called 'Surname')
... givenΣ0..*stringGiven names (not always 'first'). Includes middle names
This repeating element order: Given Names appear in the correct order for presenting the name
... prefixΣ0..*stringParts that come before the name
This repeating element order: Prefixes appear in the correct order for presenting the name
... suffixΣ0..*stringParts that come after the name
This repeating element order: Suffixes appear in the correct order for presenting the name
... periodΣ0..1PeriodTime period when name was/is in use
沒有什麼讓人驚訝的Element,只是國內的名字跟國外差異很大。一般我們就是定義family為姓;given為名;text放全名。

Address

NameFlagsCard.TypeDescription & Constraints
.. AddressΣNElementAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
Elements defined in Ancestors: idextension
... use?!Σ0..1codehome | work | temp | old | billing - purpose of this address
AddressUse (Required)
... typeΣ0..1codepostal | physical | both
AddressType (Required)
... textΣ0..1stringText representation of the address
... lineΣ0..*stringStreet name, number, direction & P.O. Box etc.
This repeating element order: The order in which lines should appear in an address label
... cityΣ0..1stringName of city, town etc.
... districtΣ0..1stringDistrict name (aka county)
... stateΣ0..1stringSub-unit of country (abbreviations ok)
... postalCodeΣ0..1stringPostal code for area
... countryΣ0..1stringCountry (e.g. can be ISO 3166 2 or 3 letter code)
... periodΣ0..1PeriodTime period when address was/is in use
也沒有重大特殊。type是指信箱號碼還是真實的地址。
country的部分,就台灣來說,應該放什麼要受ISO 3166規範決定,有2碼與3碼選擇。請參考下圖。(至於Taiwan後面那些字,請自動忽略)

ContactPoint

NameFlagsCard.TypeDescription & Constraintsdoco
.. ContactPointΣINElementDetails of a Technology mediated contact point (phone, fax, email, etc.)
+ Rule: A system is required if a value is provided.
Elements defined in Ancestors: idextension
... systemΣI0..1codephone | fax | email | pager | url | sms | other
ContactPointSystem (Required)
... valueΣ0..1stringThe actual contact point details
... use?!Σ0..1codehome | work | temp | old | mobile - purpose of this contact point
ContactPointUse (Required)
... rankΣ0..1positiveIntSpecify preferred order of use (1 = highest)
... periodΣ0..1PeriodTime period when the contact point was/is in use
與聯絡資料有關的。包含電話、傳真、電子郵件、傳呼機、網址、簡訊等都可以含括在內,可定義於system中。
rank適用於當很多筆時,可以設定優先順序(偏好)。

ContactDetail

NameFlagsCard.TypeDescription & Constraintsdoco
.. ContactDetailΣNElementContact information
Elements defined in Ancestors: idextension
... nameΣ0..1stringName of an individual to contact
... telecomΣ0..*ContactPointContact details for individual or organization
剛剛提到有很多筆的,就可以用這個。注意喔,name是很多筆合起來給一個名稱。

Contributor

NameFlagsCard.TypeDescription & Constraints
.. ContributorΣTUElementContributor information
Elements defined in Ancestors: idextension
... typeΣ1..1codeauthor | editor | reviewer | endorser
ContributorType (Required)
... nameΣ1..1stringWho contributed the content
... contactΣ0..*ContactDetailContact details of the contributor
這個是前者的延伸。特定用type於描述此人的角色。name是直接放人名,沒有用HumanName這點要注意。

沒有留言:

張貼留言