owned this note
owned this note
Published
Linked with GitHub
# 處方 FHIR JSON
#### [處方XML](https://hackmd.io/HfKmPdaeRkOFuWwEo9cARA)
| XML | 中文欄位 | 格式 | 對應的FHIR Resource | FHIR程式範例 |
| -------- | -------- | -------- | -------- | -------- |
| A11 | 卡片號碼 | X(12) | Text | --- |
| A12 | 身分證號 | X(10) | [Patient.Identifier](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#Patient) | --- |
| A13 | 出生日期 | 9(07) | [Patient.Birthdate](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#Patient) | --- |
| A14 | 醫院代號 | X(10) | [Organization.qualification.code](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#Organization) |--- |
| A15 | 醫事人員 | X(10) | [ServiceRequest.performer](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A16 | 安全模組 | X(256) | --- | --- |
| A17 | 就診日期時間 | 9(13) | [Encounter.actualPeriod](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#Encounter) | --- |
| A18 | 就醫序號 | X(04) | [ServiceRequest.Identifier](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A19 | 補卡註記 | 9(01) | --- | --- |
| A22 | 安全簽章 | X(256) | --- | --- |
| A23 | 就醫類別 | X(02) | [Appointment.serviceType](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#Appointment) | --- |
| A25~A29 | 診斷碼 | X(09) | --- | --- |
| A31 | 門診費用 | 9(08) | --- | --- |
| A32 | 部分負擔 | 9(08) | [ServiceRequest.reason](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A71 | 就診日期時間 | 9(13) | [Encounter.actualPeriod](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#Encounter) | --- |
| A72 | 醫令類別 | X(01) | --- | --- |
| A73 | 診療項目代碼 | X(12) | [ServiceRequest.code](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A74 | 診療部位 | X(6) | [ServiceRequest.bodySite](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A75 | 用法 | X(18) | [ServiceRequest.basedon.MedicationRequest.dosageInstruction](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A76 | 天數 | 9(02) | [ServiceRequest.occurenceTiming.Timing.repeat.duration](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A77 | 總量 | 9(07) | [ServiceRequest.quantityQuantity](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A78 | 交付註記 | 9(02) | [ServiceRequest.note](https://hackmd.io/kQuAfevzSZ2fjtp9CSFctw?both#ServiceRequest) | --- |
| A79 | 處方簽章 | X(40) | --- | --- |
#### ServiceRequest
```json=
{
"resourceType" : "ServiceRequest",
"identifier" :
[
{
"use" : "official",
"type" :
{
"coding" :
[
{
"code" : "0001",
"display" : "就醫序號",
"userSelected" : true
}
],
"text" : "就醫序號"
}
}
],
"performer" :
[
{
"resourceType" : "Practitioner",
"identifier" :
[
{
"use" : "<code>",
"type" :
{
"coding" :
[
{
"system" : "https://bthr.gov.taipei/News_Content.aspx?n=A75E2BF58F8BC883&s=A0B263D2B83B811B",
"version" : "2022-08-24",
"code" : "A238697754",
"display" : "身分證字號",
"userSelected" : true
}
],
"text" : "身分證號"
},
"assigner" :
{
"resourceType" : "Organization",
"qualification" :
[
{
"code" :
{
"coding" :
[
{
"system" : "https://www.nhi.gov.tw/Content_List.aspx?n=07FEBAA0B8C34D90&topn=D39E2B72B0BDFA15",
"version" : "2023-03-03",
"code" : "1145010010",
"display" : "佛教慈濟醫療財團法人花蓮慈濟醫院",
"userSelected" : true
}
],
"text" : "醫院代號"
}
}
]
}
}
]
}
],
"reason" :
[
{
"concept" :
{
"coding" :
[
{
"code" : "50",
"display" : "部分負擔",
"userSelected" : true
}
],
"text" : "部分負擔"
}
}
],
"quantityQuantity" :
{
"value" : 28.0,
"comparator" : "<code>",
"unit" : "單位",
"system" : "<uri>",
"code" : "<code>"
},
"basedOn" :
[
{
"resourceType" : "MedicationRequest",
"dosageInstruction" :
[
{
"text" : "用法:"
}
]
}
],
"bodySite" :
[
{
"coding" :
[
{
"system" : "https://www.hl7.org/fhir/valueset-body-site.html",
"version" : "FHIR HL7",
"code" : " 10200004",
"display" : "肝",
"userSelected" : true
}
],
"text" : "診療部位"
}
],
"note" :
[
{
"authorReference" :
{
"display" : "交付註記"
},
"text" : "交付註記:"
}
],
"code" :
{
"concept" :
{
"coding" :
[
{
"system" : "https://www.nhi.gov.tw/Content_List.aspx?n=8858783BC0803C2F&topn=23C660CAACAA159D",
"version" : "2022-10-14",
"code" : "00102B",
"display" : "一般門診診察費1.醫院門診診察費(不含牙科門診)2.地區醫院3.未開處方或處方由本院所自行調劑",
"userSelected" :true
}
],
"text" : "診療項目代碼"
}
},
"occurrenceTiming" :
{
"repeat" :
{
"duration" : 3
}
}
}
```
#### Patient
```json=
{
"resourceType" : "Patient",
"identifier" :
[
{
"use" : "official",
"type" :
{
"coding" :
[
{
"system" : "https://bthr.gov.taipei/News_Content.aspx?n=A75E2BF58F8BC883&s=A0B263D2B83B811B",
"version" : "2022-08-24",
"code" : "Z230879923",
"display" : "身分證字號",
"userSelected" : true
}
],
"text" : "身分證號"
},
"system" : "https://zh.wikipedia.org/zh-tw/%E4%B8%AD%E8%8F%AF%E6%B0%91%E5%9C%8B%E5%9C%8B%E6%B0%91%E8%BA%AB%E5%88%86%E8%AD%89"
}
],
"birthDate" : "1979-04-15"
}
```
#### Organization
```json=
{
"resourceType" : "Organization",
"qualification" :
[
{
"code" :
{
"coding" :
[
{
"system" : "https://www.nhi.gov.tw/Content_List.aspx?n=07FEBAA0B8C34D90&topn=D39E2B72B0BDFA15",
"version" : "2023-03-03",
"code" : "1145010010",
"display" : "佛教慈濟醫療財團法人花蓮慈濟醫院",
"userSelected" : true
}
],
"text" : "醫院代號"
}
}
]
}
```
#### Encounter
```json=
{
"resourceType" : "Encounter",
"actualPeriod" :
{
"start" : "2020-01-11",
"end" : "2020-01-11"
}
}
```
#### Appointment
```json=
{
"resourceType" : "Appointment",
"serviceType" :
[
{
"concept" :
{
"coding" :
[
{
"system" : "https://www.nhi.gov.tw/Content_List.aspx?n=264416706E2EF4DA&topn=5FE8C9FEAE863B46",
"version" : "2023-02-01",
"code" : "12",
"display" : "門診西醫醫院",
"userSelected" : true
}
],
"text" : "醫事類別代碼"
}
}
]
}
```
參考資料:
[健保卡資料上傳](https://www.tma.tw/files/meeting/N202233164737_001.pdf)