# FHIR Patient examples
- 紀錄各式健康醫療整合流程之病人資訊
-- 其中定義許多欄位,利於各式健康醫療情境選用(並非所有欄位都需要)
## TW core patient
- 節錄
```json=
{
"resourceType" : "Patient",
"id" : "pat-example",
"identifier" : [{
"use" : "official",
"type" : {
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
"code" : "NNxxx",
"_code" : {
"extension" : [{
"extension" : [{
"url" : "suffix",
"valueString" : "TWN"
},
{
"url" : "valueSet",
"valueCanonical" : "http://hl7.org/fhir/ValueSet/iso3166-1-3"
}],
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix"
}]
}
}]
},
"system" : "http://www.moi.gov.tw/",
"value" : "A123456789"
},
{
"use" : "official",
"type" : {
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
"code" : "MR"
}]
},
"system" : "https://www.tph.mohw.gov.tw/",
"value" : "8862168"
}],
"active" : true,
"name" : [{
"use" : "official",
"text" : "陳加玲",
"family" : "Chen",
"given" : ["Chia Lin"]
}],
"telecom" : [{
"system" : "phone",
"value" : "0911327999",
"use" : "mobile",
"period" : {
"start" : "2022-07-31",
"end" : "2024-07-31"
}
}],
"gender" : "female",
"birthDate" : "1990-01-01",
"address" : [{
"extension" : [{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-section",
"valueString" : "三段"
},
{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-number",
"valueString" : "210號"
},
{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-village",
"valueString" : "大有里"
},
{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-neighborhood",
"valueString" : "19鄰"
},
{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-lane",
"valueString" : "52巷"
},
{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-alley",
"valueString" : "6弄"
},
{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-floor",
"valueString" : "2樓"
},
{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-room",
"valueString" : "B室"
}],
"text" : "臺北市大同區大有里19鄰承德路三段52巷6弄210號2樓B室",
"line" : ["承德路"],
"city" : "臺北市",
"district" : "大同區",
"_postalCode" : {
"extension" : [{
"url" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code",
"valueCodeableConcept" : {
"coding" : [{
"system" : "https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/postal-code3-tw",
"code" : "103"
}]
}
}]
},
"country" : "TW"
}],
"maritalStatus" : {
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus",
"code" : "U"
}]
},
"contact" : [{
"relationship" : [{
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
"code" : "FTH"
}]
}],
"name" : {
"use" : "official",
"text" : "李立偉",
"family" : "Li",
"given" : ["Li Wei"]
},
"telecom" : [{
"system" : "phone",
"value" : "0917159753",
"use" : "mobile",
"period" : {
"start" : "2022-07-31",
"end" : "2024-07-31"
}
}]
}],
"communication" : [{
"language" : {
"coding" : [{
"system" : "urn:ietf:bcp:47",
"code" : "zh-TW"
}]
}
}],
"managingOrganization" : {
"reference" : "Organization/org-hosp-example"
}
}
```
## 2019 MI-TW patient 公開規範
## 匿名病人用途
去個資雲端儲存
如
運動數據平台
PHR 及 EMR 互通應用
## 匿名病人建立流程
PHR 先建
ID 個人保存
另外管道通知
## 匿名病人在健康照護應用
民眾端分享健康紀錄及授權就醫醫院
醫院端分享診斷、檢查、及處方 給民眾端
## 匿名 encounter
- 參考到病人
- 被健康醫療過程其他 resource 參考
- 時間平移
- 形成標準化匿名健康紀錄
## Exercises
- 上傳 FHIR patient
- 查詢調閱 FHIR Patient
## 進階應用
- 發展新增病人網頁表單
- 設計病人查詢及查詢結果呈現介面
## JSON examples
## For PHR or AI
- 匿名病人
- example 1
```json
{ "resourceType": "Patient" }
```
- example 2
```json
{ "resourceType": "Patient",
"name": [ {
"use": "nickname",
"text": "甄美麗" } ]
}
```
### For Identifier
```json
{ "resourceType": "Patient",
"identifier": [ {
"system": "https://www.dicom.org.tw/cs/ResidentNumber_tw",
"value": "UB20000020"
} ],
"active": true,
"name": [ {
"text": "黃久東",
"family": "黃",
"given": [ "久東" ]
} ],
"gender": "female",
"birthDate": "1980-02-25"}
```
## For contact
```json
{ "resourceType": "Patient",
"identifier": [ {
"system": "https://www.dicom.org.tw/cs/identityCardNumber_tw",
"value": "N160554208"
} ],
"active": true,
"name": [ {
"text": "梁志偉",
"family": "梁",
"given": [ "志偉" ]
} ],
"telecom": [ {
"system": "email",
"value": "yangwei@hotmail.com"
}, {
"system": "phone",
"value": "0948749847",
"use": "mobile"
}, {
"system": "url",
"value": "https://line.me/ti/p/OoF2T5be8V"
} ],
"gender": "male",
"birthDate": "1990-04-11",
"address": [ {
"text": "814 臺灣省高雄市仁武區四維路1段87號",
"line": [ "四維路1段87號" ],
"city": "仁武區",
"district": "高雄市",
"postalCode": "814",
"country": "臺灣省"
} ],
"contact": [ {
"relationship": [ {
"coding": [ {
"system": "http://hl7.org/fhir/ValueSet/patient-contactrelationship",
"code": "I"
} ],
"text": "Insurance Company"
} ],
"name": {
"text": "周淑貞",
"family": "周",
"given": [ "淑貞" ]
},
"telecom": [ {
"system": "email",
"value": "taoyan@yahoo.com"
}, {
"system": "phone",
"value": "0912330571",
"use": "mobile"
}, {
"system": "url",
"value": "https://line.me/ti/p/xNjEbVBMRY"
} ],
"address": {
"text": "264 臺灣省宜蘭縣員山鄉大同路4段2號",
"line": [ "大同路4段2號" ],
"city": "員山鄉",
"district": "宜蘭縣",
"postalCode": "264",
"country": "臺灣省"
},
"gender": "female"
}, {
"relationship": [ {
"coding": [ {
"system": "http://hl7.org/fhir/ValueSet/patient-contactrelationship",
"code": "I"
} ],
"text": "Insurance Company"
} ],
"name": {
"text": "孫承翰",
"family": "孫",
"given": [ "承翰" ]
},
"telecom": [ {
"system": "email",
"value": "bcui@hotmail.com"
}, {
"system": "phone",
"value": "0928357961",
"use": "mobile"
}, {
"system": "url",
"value": "https://line.me/ti/p/xt5y02jFvk"
} ],
"address": {
"text": "721 臺灣省臺南市麻豆區育英路7段3號",
"line": [ "育英路7段3號" ],
"city": "麻豆區",
"district": "臺南市",
"postalCode": "721",
"country": "臺灣省"
},
"gender": "male"
}, {
"relationship": [ {
"coding": [ {
"system": "http://hl7.org/fhir/ValueSet/patient-contactrelationship",
"code": "C"
} ],
"text": "Emergency Contact"
} ],
"name": {
"text": "廖婷婷",
"family": "廖",
"given": [ "婷婷" ]
},
"telecom": [ {
"system": "email",
"value": "wenna@gmail.com"
}, {
"system": "phone",
"value": "0913746099",
"use": "mobile"
}, {
"system": "url",
"value": "https://line.me/ti/p/ROUE6LPN7d"
} ],
"address": {
"text": "235 臺灣省新北市中和區中央街6段12號",
"line": [ "中央街6段12號" ],
"city": "中和區",
"district": "新北市",
"postalCode": "235",
"country": "臺灣省"
},
"gender": "other"
} ]
}
```
## 新增組織、新增組織所屬病人
### 新增組織、新增組織所屬病人
```json
{ "resourceType": "Organization",
"name": "台中晉嘉醫院"
}
```
### 新增組織所屬病人
```json
{ "resourceType": "Patient",
"name": [ {
"use": "official",
"text": "張晉嘉" } ],
"gender": "male",
"birthDate": "1999-01-21",
"managingOrganization": {
"reference": "Organization/11421615" }}
```
### 查詢組織所有的病人
- https://hapi.fhir.org/baseR4/Patient?organization=11421615
- https://fhir.tcumi.com:58443/r5/fhir/Organization/2b902f6c-d950-4944-9c08-bac6f03a751e
## PHR FHIR server 新增匿名病人
```json
{ "resourceType": "Patient",
"id":"1419f03e-2e39-46c8-89fa-ecd978c59b88",
"managingOrganization": {
"reference": "Organization/2b902f6c-d950-4944-9c08-bac6f03a751e" }}
```
## 已上傳之生醫訊號連結
- https://fhir.tcumi.com:58443/r5/fhir/Observation?subject=1419f03e-2e39-46c8-89fa-ecd978c59b88
## 包裝成 documentReference 上傳到索引中心
- [documentReference to vital signs](https://hackmd.io/eaHe24gFTo6Qmjv6AEbzfQ?view#Vital-Signs-dRef)
- https://fhir.tcumi.com:58443/r5/fhir/DocumentReference/8b41af2b-4c09-4b43-a80e-6f9b7efe2295
## Portal 新增服務機構及窗口
- 機構
```json
{
"resourceType": "Organization",
"id": "05c6b1f9-0f2c-4415-a83f-981cc33a9808",
"name": "TCUMI hospital"
}
```
- 服務窗口
```json
{
"resourceType": "PractitionerRole",
"id": "d833956e-1a25-45e8-921f-611c1c7d9083",
"active": true,
"organization": {
"reference": "Organization/05c6b1f9-0f2c-4415-a83f-981cc33a9808"
},
"code": [
{
"coding": [
{
"system": "http://www.misac/role",
"code": "contactWindow",
"display": "contact window"
}
],
"text": "contact window"
} ]
}
```
# Patient and person specifiction problem in core IGs
- 各國公告之 core IG 並無應用情境
## Reference
- [MI-TW 2020 patient](https://mos2718.github.io/MITW/2020/patient.html)
- [MI-TW 2020](https://github.com/mos2718/MITW)
- 再新增人口統計用
- [印尼 Patient core IG](https://simplifier.net/guide/SATUSEHAT-FHIR-R4-Implementation-Guide/Home/FHIRProfiles/Patient.page.md?version=current)
```json
{
"resourceType": "Patient",
"meta": {
"profile": [
"https://fhir.kemkes.go.id/r4/StructureDefinition/Patient"
]
},
"identifier": [
{
"use": "official",
"system": "https://fhir.kemkes.go.id/id/nik",
"value": "3174031002890009"
},
{
"use": "official",
"system": "https://fhir.kemkes.go.id/id/paspor",
"value": "A01111222"
},
{
"use": "official",
"system": "https://fhir.kemkes.go.id/id/kk",
"value": "367400001111111"
}
],
"active": true,
"name": [
{
"use": "official",
"text": "John Smith"
}
],
"telecom": [
{
"system": "phone",
"value": "08123456789",
"use": "mobile"
},
{
"system": "phone",
"value": "+622123456789",
"use": "home"
},
{
"system": "email",
"value": "john.smith@xyz.com",
"use": "home"
}
],
"gender": "female",
"birthDate": "1945-11-17",
"deceasedBoolean": false,
"address": [
{
"use": "home",
"line": [
"Gd. Prof. Dr. Sujudi Lt.5, Jl. H.R. Rasuna Said Blok X5 Kav. 4-9 Kuningan"
],
"city": "Jakarta",
"postalCode": "12950",
"country": "ID",
"extension": [
{
"url": "https://fhir.kemkes.go.id/r4/StructureDefinition/administrativeCode",
"extension": [
{
"url": "province",
"valueCode": "10"
},
{
"url": "city",
"valueCode": "1010"
},
{
"url": "district",
"valueCode": "1010101"
},
{
"url": "village",
"valueCode": "1010101101"
},
{
"url": "rt",
"valueCode": "2"
},
{
"url": "rw",
"valueCode": "2"
}
]
}
]
}
],
"maritalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus",
"code": "M",
"display": "Married"
}
],
"text": "Married"
},
"multipleBirthInteger": 0,
"contact": [
{
"relationship": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0131",
"code": "C"
}
]
}
],
"name": {
"use": "official",
"text": "Jane Smith"
},
"telecom": [
{
"system": "phone",
"value": "0690383372",
"use": "mobile"
}
]
}
],
"communication": [
{
"language": {
"coding": [
{
"system": "urn:ietf:bcp:47",
"code": "id-ID",
"display": "Indonesian"
}
],
"text": "Indonesian"
},
"preferred": true
}
],
"extension": [
{
"url": "https://fhir.kemkes.go.id/r4/StructureDefinition/birthPlace",
"valueAddress": {
"city": "Bandung",
"country": "ID"
}
},
{
"url": "https://fhir.kemkes.go.id/r4/StructureDefinition/citizenshipStatus",
"valueCode": "WNI"
}
]
}
```
## Patient build block: 病人,[MI-TW Patient 規格](https://hackmd.io/HErarBSCTvqgc6gjFqsDOA?view)
### Patient.Name
```json
"name": [
{
"use": "official",
"family": "朱",
"given": ["家宜" ],
"text":"朱家宜"
}]
```