# FHIR 人員組織管理
- FHIR 人員組織示意圖
- [人員相關的 resources](https://chatgpt.com/share/6853b730-df2c-8006-a8b3-32415b0811c6): [Patient](https://hackmd.io/dMUkWuKyQDWxkr3IMe-yWQ?view), relatedPerson,[person](https://hackmd.io/YfbpleZCRVCZsxJNzYltcA?view#FHIR-person)
## FHIR 人員組織示意圖
- FHIR 當中已明訂人員與組織(Patient、Practitioner、PractitionerRole、organization )等標準化資源(resource)。
如下示意圖:

## 人員、組織關聯概述
- 病人(Patient)可參考到所屬組織(organization)
- 子組織(organization)可再參考到父組織
- [Partictioner、Organization、PractitionerRole relations](https://hackmd.io/vC8Nq7r4RG6E14Wk8pUf3w?view#Partictioner%E3%80%81Organization%E3%80%81PractitionerRole-relations)
-- 職位(PractitionerRole)可參考到所屬組織(organization)
-- 職位(PractitionerRole)參考到某專業醫護人員(Practitioner)
## Reference relations
- 指定病人資料保管組織
-- Patient.managingOrganization reference to Organization
- 子組織參考到父組織
-- Organization.partOf reference to Organization
- 指定組織所屬職位
-- PractitionerRole.organization reference to Organization
- 指定職位人員
-- PractitionerRole.practitioner reference to Practitioner
## Patient.managingOrganization reference to Organization

**希望改為 SVG 向量圖,並提供點選連結,取得進一步說明。
可有更方便的工具產生 SVG 及貼入 markdown 文件**
## Partictioner、Organization、PractitionerRole relations

## 相關連結及其他相關 resources
- Patient: 病人,[MI-TW Patient 規格](https://hackmd.io/HErarBSCTvqgc6gjFqsDOA?view)
- 其他相關 resources
-- Device: 儀器、設備、及軟體系統
-- Location: 地點
## 民眾、醫護、及服務三端整合
- 現代健康醫療已逐漸從醫院內走到院外,醫療端、民眾端、服務端皆有許多資訊系統,但目前大多未能整合應用。透過 FHIR RESTful API 形成各式的微服務,整合各端服務,提供更完善的健康醫療服務,深具發展前景。
## EMR 人員組織管理
- EMR 端: 基於 FHIR 建立服務機構及其服務窗口
- 1. 建構機制: 分層建置
-- 1. 主組織建立轄下子組織,及子組織管理人員
-- 2. 子組織管理人員建立服務窗口
- 2. 組織及服務窗口腳色分析
-- 本身機構 EMR data creator 腳色
-- 其他機構EMR 或民眾 PHR consumer
## PHR patient and relatedPerson 管理
- PHR 端:
-- 建立 FHIR patient 及其 PHR 及 EMR 資料處理代理人
-- 建立 PHR 端 hub server (FHIR device)
## 20231210
- 建立及查詢 relatedPerson [US core IG relatedPerson](https://build.fhir.org/ig/HL7/US-Core/StructureDefinition-us-core-relatedperson.html)、 [chatGPT result](https://chat.openai.com/share/aea34812-7ff9-4cfd-bf8f-3b224a0733c4)
- 建立及查詢主組織建立轄下子組織
- 建立及查詢組織及服務窗口
[參考 PPT](https://drive.google.com/drive/folders/1JQgdMINbTsRgBwgGFbLWwEofVJRAWIQB?usp=drive_link)
## Exercise for person and organization management
- [新增病人](https://hackmd.io/dMUkWuKyQDWxkr3IMe-yWQ?view#JSON-examples)
- [新增組織、新增所屬病人](https://hackmd.io/dMUkWuKyQDWxkr3IMe-yWQ?view#%E6%96%B0%E5%A2%9E%E7%B5%84%E7%B9%94%E3%80%81%E6%96%B0%E5%A2%9E%E7%B5%84%E7%B9%94%E6%89%80%E5%B1%AC%E7%97%85%E4%BA%BA)
- [新增組織、新增子組織](https://hackmd.io/FgwhJUOtQH2azeqvE6QYTg?view)
- [新增組織所屬人員](https://hackmd.io/QnuLf1y_RLeAgEONjKYxrg?view)
### [人員組織說明文件](https://hackmd.io/vC8Nq7r4RG6E14Wk8pUf3w?both)