# 創建人員組織練習
## post and get FHIR resource web pages (可使用此網頁新增人員及組織)
- [post 新增 resource](http://203.64.84.150:51888/user5/FHIReduJS/postResorce.html)
- [get 查詢 resource](http://203.64.84.150:51888/user5/FHIReduJS/getResorce.html)
- 再補使用說明
## FHIR 組織及病人產生步驟
1. 建立及上傳組織: [Organization](https://hackmd.io/C_vkED6FR7SrLbUdQZgbuQ#Organization)
1.1 可修改醫療機構名稱 Organization.name
1.2 使用 "post 新增 resource" 網頁,上傳修改後的 Organization
1.3 要記得回應的 Organization.id,如[HTTP response 結果範例](https://hackmd.io/C_vkED6FR7SrLbUdQZgbuQ?view): id= "8186325"
2. 建立及上傳組織所屬病人: [Patient](https://hackmd.io/C_vkED6FR7SrLbUdQZgbuQ#FHIR-patient)
2.1 設定病人所屬組織 : managingOrganization": {
"reference": "Organization/8186325" }
2.2 修改病人基本資料,如 identifier 中的學號、姓名、升至
2.3 使用 "post 新增 resource" 網頁,上傳修改後的 Patient
3. 產生病人調閱 URL,並將 URL 貼到作業繳交區
3.1 基於[回應的病人id](https://hackmd.io/C_vkED6FR7SrLbUdQZgbuQ?view#FHIR-server-response-patient-example),例如id= "8212192",產生此病人的 FHIR 調閱 URL,如下連結: http://hapi.fhir.org/baseR4/Patient/8212192
3.2 將 URL 貼到作業繳交區
## 繳交內容
- 將創建的病人 URL 貼到作業繳交區
## Organization
```json
{
"resourceType" : "Organization",
"type" : [ {
"coding" : [ {
"system" : "http://terminology.hl7.org/CodeSystem/organization-type",
"code" : "prov"
} ] } ],
"name" : "花蓮奇萊雅醫院"
}
```
### FHIR patient
```json
{ "resourceType": "Patient",
"identifier" : [ {
"use" : "official",
"system" : "https://tcu.edu.tw/tcuStdcode",
"value" : "101316007"
}],
"name": [ {
"use": "official",
"text": "林帶玉",
"family": "林",
"given": ["林帶玉"] } ],
"gender": "female",
"birthDate": "1773-01-21",
"managingOrganization": {
"reference": "Organization/8127385" }
}
```
## FHIR server response organization example

## FHIR server response patient example
