# 健康存摺 [**[APP] 成人預防保健結果上傳**](#APP-成人預防保健結果上傳) [**[APP] 癌症篩檢結果上傳**](#APP-癌症篩檢結果上傳) [**[APP] 西醫門診資料上傳**](#APP-西醫門診資料上傳) [**[APP] 牙醫門診資料上傳**](#APP-牙醫門診資料上傳) [**[APP] 中醫門診資料報告上傳**](#APP-中醫門診資料報告上傳) [**[APP] 住院資料報告上傳**](#APP-住院資料報告上傳) [**[APP] 檢驗檢查結果上傳**](#APP-檢驗檢查結果上傳) [**[APP] 取得健康存摺上傳資料最新時間**](#APP-取得健康存摺上傳資料最新時間) ### 健康存摺頁面APIs [**[WEB] 取得健康存摺列表**](#Web-取得健康存摺列表) [**[APP/Web] 取得成人預防保健結果列表**](#APP/Web-取得成人預防保健結果列表) [**[APP/Web] 取得癌症篩檢結果列表**](#APPWeb-癌症篩檢結果列表) [**[APP/Web] 取得成人預防保健結果內容**](#APP/Web-取得成人預防保健結果內容) [**[APP/Web] 取得癌症篩檢結果內容**](#APP/Web-取得癌症篩檢結果內容) [**[APP/Web] 取得其他檢驗結果內容**](#APPWeb-取得其他檢驗結果內容) [**[APP/WEB] 取得用藥資料內容**](#APPWeb-取得用藥資料內容) [**[APP] 刪除所有健康存摺紀錄**](#APP-刪除所有健康存摺紀錄) [**[APP] 取得所有健康存摺紀錄筆數**](#APP-取得所有健康存摺紀錄筆數) [**取得其他檢驗檢查日期列表**](#取得其他檢驗檢查日期列表) [**取得其他檢驗檢查趨勢內容**](#取得其他檢驗檢查趨勢內容) ## [APP] 成人預防保健結果上傳 ```url= POST /{contextPath}/myHealthBank/adultPreventiveCare/upload ``` ### 用於: * APP(一般民眾) ``` 健康存摺SDK ``` Request | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | myhealthbank | json | | | 固定開頭 | | -bdata | json | | | 固定開頭,格式如SDK定義,可參考下圖 | ![](https://i.imgur.com/QMlYeh2.png) ![](https://i.imgur.com/WMjuZ9k.png) ![](https://i.imgur.com/qEG1SHb.png) ![](https://i.imgur.com/D3vSZVu.png) ### Request Body Example: ```javascript= { "myhealthbank": { "bdata": { "b1.1": "Z29999****", "b1.2": "20191203", "r0": [ { "r0": "【民眾下載健康存摺資料之聲明書】健康存摺有您的詳細就醫醫療資料,下載後請妥善保管,資料如有需要轉交第三人或企業、公司使用,應請自行評估風險及責任。提醒您:資料提供給第三人時請留意是否只提供部分資料、並約定使用期間及日後可要求刪除資料的權利。" } ], "r10": [ { "idCardNo": "C120882609", "r10.1": "1234567890", "r10.2": "****醫院", "r10.3": "02", "r10.4": "*******", "r10.5": "20150330", "r10.6": 157, "r10.7": 48, "r10.8": 19.7, "r10.9": 26.5, "r10.10": 126, "r10.11": 87, "r10.12": "1", "r10.13": "正常", "r10.14": 233, "r10.15": 115, "r10.16": 54, "r10.17": 0, "r10.18": "2", "r10.19": "異常,建議:請洽詢醫師", "r10.20": 103, "r10.21": "2", "r10.22": "異常,建議:請洽詢醫師", "r10.23": 2, "r10.24": 0.7, "r10.25": 73, "r10.26": "1", "r10.27": "正常", "r10.28": "0", "r10.29": "1", "r10.30": "正常", "r10.31": 19, "r10.32": 15, "r10.33": "1", "r10.34": "正常", "r10.35": "3", "r10.36": "未執行", "r10.37": "0", "r10.38": "無", "r10.39": "3", "r10.40": "未執行", "r10.41": "0", "r10.42": "無" } ] } } } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| int | 成功寫入的筆數 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ``` ## [APP] 癌症篩檢結果上傳 ```url= POST /{contextPath}/myHealthBank/cancerScreeningData/upload ``` ### 用於: * APP(一般民眾) ``` 健康存摺SDK ``` Request | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | myhealthbank | json | | | 固定開頭 | | -bdata | json | | | 固定開頭,格式如SDK定義,可參考下圖 | ![](https://i.imgur.com/cg05lUK.png) ![](https://i.imgur.com/Dp1rDxX.png) ### Request Body Example: ```javascript= { "myhealthbank": { "bdata": { "b1.1": "Z29999****", "b1.2": "20191203", "r0": [ { "r0": "【民眾下載健康存摺資料之聲明書】健康存摺有您的詳細就醫醫療資料,下載後請妥善保管,資料如有需要轉交第三人或企業、公司使用,應請自行評估風險及責任。提醒您:資料提供給第三人時請留意是否只提供部分資料、並約定使用期間及日後可要求刪除資料的權利。" } ], "r11": [ { "r11.1": "大腸癌篩檢", "r11.2": "定量免疫法糞便潛血檢查", "r11_1": [ { "r11_1.1": "20180525", "r11_1.2": "臺北虛擬診", "r11_1.3": "異常", "r11_1.4": "異常:須安排大腸鏡檢查。" } ] } ] } } } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| int | 成功寫入的筆數 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ``` ## [APP] 西醫門診資料上傳 ```url= POST /{contextPath}/myHealthBank/westernMedicine/upload ``` ### 用於: * APP(一般民眾) ``` 健康存摺SDK ``` Request | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | myhealthbank | json | | | 固定開頭 | | -bdata | json | | | 固定開頭,格式如SDK定義,可參考下圖 | ![](https://i.imgur.com/PwkBF9E.png) ### Request Body Example: ```javascript= { "myhealthbank": { "bdata": { "b1.1": "Z29999****", "b1.2": "20191203", "r0": [ { "r0": "【民眾下載健康存摺資料之聲明書】健康存摺有您的詳細就醫醫療資料,下載後請妥善保管,資料如有需要轉交第三人或企業、公司使用,應請自行評估風險及責任。提醒您:資料提供給第三人時請留意是否只提供部分資料、並約定使用期間及日後可要求刪除資料的權利。" } ], "r1": [ { "r1.1": "1", "r1.2": "臺北業務組", "r1.3": "1234567890", "r1.4": "**醫院", "r1.5": "20151218", "r1.6": "", "r1.7": "0032", "r1.8": "59010", "r1.9": "急性腎盂腎炎,未提及腎髓質壞死病灶", "r1.10": "", "r1.11": "", "r1.12": "120", "r1.13": "539", "r1_1": [ { "r1_1.1": "AC20910100", "r1_1.2": "圖留康膜衣錠250毫克", "r1_1.3": "28.00", "r1_1.4": "7" } ] } ] } } } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| int | 成功寫入的筆數 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ``` ## [APP] 牙醫門診資料上傳 ```url= POST /{contextPath}/myHealthBank/dentistMedicine/upload ``` ### 用於: * APP(一般民眾) ``` 健康存摺SDK ``` Request | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | myhealthbank | json | | | 固定開頭 | | -bdata | json | | | 固定開頭,格式如SDK定義,可參考下圖 | ![](https://i.imgur.com/LqKvIwx.png) ![](https://i.imgur.com/oE8LlvJ.png) ### Request Body Example: ```javascript= { "myhealthbank": { "bdata": { "b1.1": "Z29999****", "b1.2": "20191203", "r0": [ { "r0": "【民眾下載健康存摺資料之聲明書】健康存摺有您的詳細就醫醫療資料,下載後請妥善保管,資料如有需要轉交第三人或企業、公司使用,應請自行評估風險及責任。提醒您:資料提供給第三人時請留意是否只提供部分資料、並約定使用期間及日後可要求刪除資料的權利。" } ], "r3": [ { "r3.1": "1", "r3.2": "臺北業務組", "r3.3": "1231050017", "r3.4": "耕莘醫院", "r3.5": "20161026", "r3.6": "0024", "r3.7": "K0530", "r3.8": "慢性牙周炎", "r3.9": "", "r3.10": "", "r3.11": "50", "r3.12": "2563", "r3_1": [ { "r3_1.1": "92014C", "r3_1.2": "複雜性拔牙", "r3_1.3": 1, "r3_1.4": "21", "r3_1.5": "右上第一顆恆牙", "r3_1.6": 0 } ] } ] } } } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| int | 成功寫入的筆數 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ``` ## [APP] 檢驗檢查結果上傳 ```url= POST /{contextPath}/myHealthBank/checkResult/upload ``` ### 用於: * APP(一般民眾) ``` 健康存摺SDK ``` Request | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | myhealthbank | json | | | 固定開頭 | | -bdata | json | | | 固定開頭,格式如SDK定義,可參考下圖 | ![](https://i.imgur.com/F8E48mF.png) ### Request Body Example: ```javascript= { "myhealthbank": { "bdata": { "b1.1": "Z29999****", "b1.2": "20191203", "r0": [ { "r0": "【民眾下載健康存摺資料之聲明書】健康存摺有您的詳細就醫醫療資料,下載後請妥善保管,資料如有需要轉交第三人或企業、公司使用,應請自行評估風險及責任。提醒您:資料提供給第三人時請留意是否只提供部分資料、並約定使用期間及日後可要求刪除資料的權利。" } ], "r7": [ { "r7.1": "5", "r7.2": "高屏業務組", "r7.3": "1234567890", "r7.4": "******醫院", "r7.5": "20150109", "r7.6": "20150109", "r7.7": "201501081230", "r7.8": "08011C", "r7.9": "全套血液檢查I(八項)", "r7.10": "Blood Routine", "r7.11": "7.3", "r7.12": "3.8-10" } ] } } } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| int | 成功寫入的筆數 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ``` ## [APP] 中醫門診資料報告上傳 ```url= POST /{contextPath}/myHealthBank/chineseMedicine/upload ``` ### 用於: * APP(一般民眾) ``` 健康存摺SDK ``` Request | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | myhealthbank | json | | | 固定開頭 | | -bdata | json | | | 固定開頭,格式如SDK定義,可參考下圖 | ![](https://i.imgur.com/NWpCGK0.png) ### Request Body Example: ```javascript= { "myhealthbank": { "bdata": { "b1.1": "Z29999****", "b1.2": "20191203", "r0": [ { "r0": "【民眾下載健康存摺資料之聲明書】健康存摺有您的詳細就醫醫療資料,下載後請妥善保管,資料如有需要轉交第三人或企業、公司使用,應請自行評估風險及責任。提醒您:資料提供給第三人時請留意是否只提供部分資料、並約定使用期間及日後可要求刪除資料的權利。" } ], "r9": [ { "r9.1": "1", "r9.2": "臺北", "r9.3": "1234567890", "r9.4": "****中醫", "r9.5": "20150325", "r9.6": "0017", "r9.7": "71946", "r9.8": "關節痛,小腿", "r9.9": "1234", "r9.10": "****", "r9.11": 70, "r9.12": 330, "r9_1": [ { "r9_1.1": "A003284", "r9_1.2": "“勝昌”川牛膝濃縮散", "r9_1.3": 6, "r9_1.4": 7 } ] } ] } } } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| int | 成功寫入的筆數 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ``` ## [APP] 住院資料報告上傳 ```url= POST /{contextPath}/myHealthBank/hospitalizedData/upload ``` ### 用於: * APP(一般民眾) ``` 健康存摺SDK ``` Request | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | myhealthbank | json | | | 固定開頭 | | -bdata | json | | | 固定開頭,格式如SDK定義,可參考下圖 | ![](https://i.imgur.com/FJZzAge.png) ### Request Body Example: ```javascript= { "myhealthbank": { "bdata": { "b1.1": "Z29999****", "b1.2": "20191203", "r0": [ { "r0": "【民眾下載健康存摺資料之聲明書】健康存摺有您的詳細就醫醫療資料,下載後請妥善保管,資料如有需要轉交第三人或企業、公司使用,應請自行評估風險及責任。提醒您:資料提供給第三人時請留意是否只提供部分資料、並約定使用期間及日後可要求刪除資料的權利。" } ], "r2": [ { "r2.1": "1", "r2.2": "臺北", "r2.3": "醫事機構代碼", "r2.4": "醫事機構名稱", "r2.5": "20201008", "r2.6": "20201210", "r2.7": "20201112", "r2.8": "20201223", "r2.9": "0036", "r2.10": "44422", "r2.11": "下肢動脈栓塞及血栓症", "r2.12": "3950", "r2.13": "非冠狀動脈血管成形術或血管粥樣硬化物切除術", "r2.14": 120, "r2.15": 300, "r2_1": [ { "r2_1.1": "1", "r2_1.2": "20150201", "r2_1.3": "20150228", "r2_1.4": "02007A", "r2_1.5": "一般病床住院診察費", "r2_1.6": 14 } ] } ] } } } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| int | 成功寫入的筆數 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ``` ## [APP] 取得健康存摺上傳資料最新時間 ```url= GET /{contextPath}/myHealthBank/myHealthBank/latestUpdateTime ``` ### 用於: * APP(一般民眾) Request | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | updateTime| int | 最後更新時間( timestamp到毫秒) | ### Response Body Example ```json= // 有更新時間 { "httpCode": 200, "result": { "data": { "updateTime": 1612351613629 } } } // 無更新時間 { "httpCode": 200, "result": { "data": { } } } ``` ## [Web] 取得健康存摺列表 ```url= POST /{contextPath}/myHealthBank/myHealthBank/list ``` ### Request Body Param * query | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | householdId| String| N || 家戶 Id | | name| String| N | | 姓名 | * sorter | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | field| String| N | name | 排序欄位| | order| String| N | desc | desc/asc * pagination | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | current| String| N | | 目前頁數| | pageSize| String| N | |一頁幾筆 | ### Request Body Example: ```javascript= { "query": { "name": "小", "householdId": "" }, "pagination": { "current": 1, "pageSize": 10, "total": 0 }, "sorter": {} } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | householdMemberId| String | 家戶成員id | | name| String | 姓名 | | gender| int | 1: 男, 2:女 | | birthDate| String | 生日 | | idCardNo| String | 身分證字號 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": [ { "householdMemberId": "c4e79844-c6ac-483b-ae98-f5c14277dc4b", "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "idCardNo": "A184407779" } ], "pagination": { "current": 1, "pageSize": 10, "total": 1 }, "sorter": {} } } ``` ## [APP/Web] 取得成人預防保健結果列表 ```url= POST /{contextPath}/myHealthBank/adultPreventiveCare/list ``` ### Request Body Param * query | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | householdId| String| N || 家戶 Id | | name| String| N | | 姓名 | * sorter | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | field| String| N | name | 排序欄位| | order| String| N | desc | desc/asc * pagination | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | current| String| N | | 目前頁數| | pageSize| String| N | |一頁幾筆 | ### Request Body Example: ```javascript= { "query": { "name": "小", "householdId": "" }, "pagination": { "current": 1, "pageSize": 10, "total": 0 }, "sorter": {} } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | adultPreventiveCareId| String | 成人預防保健的id | | name| String | 姓名 | | gender| int | 1: 男, 2:女 | | birthDate| String | 生日 | | idCardNo| String | 身分證字號 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": [ { "adultPreventiveCareId": "fa7d37a9-b514-4466-9dc6-a33ba53e7fc2", "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "idCardNo": "A184407779" } ], "pagination": { "current": 1, "pageSize": 10, "total": 1 }, "sorter": {} } } ``` ## [APP/Web] 癌症篩檢結果列表 ```url= POST /{contextPath}/myHealthBank/cancerScreeningData/list ``` ### Request Body Param * query | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | householdId| String| N || 家戶 Id | | name| String| N | | 姓名 | * sorter | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | field| String| N | name | 排序欄位| | order| String| N | desc | desc/asc * pagination | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | current| String| N | | 目前頁數| | pageSize| String| N | |一頁幾筆 | ### Request Body Example: ```javascript= { "query": { "name": "小", "householdId": "" }, "pagination": { "current": 1, "pageSize": 10, "total": 0 }, "sorter": {} } ``` ### Response Body Param | 欄位 | 型態 | 說明 | | -----| -----|-------- | | adultPreventiveCareId| String | 癌症篩檢的id | | name| String | 姓名 | | gender| int | 1: 男, 2:女 | | birthDate| String | 生日 | | idCardNo| String | 身分證字號 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": [ { "cancerScreeningId": "fa7d37a9-b514-4466-9dc6-a33ba53e7fc2", "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "idCardNo": "A184407779" } ], "pagination": { "current": 1, "pageSize": 10, "total": 1 }, "sorter": {} } } ``` ## [APP/Web] 取得成人預防保健結果內容 ```url= POST /{contextPath}/myHealthBank/adultPreventiveCare/detail ``` ### Request Body Param | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | idCardNo | String| Y || 身分證字號 | | type| String| N |0 | 資料呈現方式: <BR> 0: List View<BR> 1: Grid View <BR> | ### Request Body Example: ```javascript= { "idCardNo":"A184407779", "type" : 1 } ``` ### Response Body Param * data | 欄位 | 型態 | 說明 | | -----| -----|-------- | | reportList | json array | 成人預防保健結資料列表 | * reportList(list view) | 欄位 | 型態 | 說明 | | -----| -----|-------- | | id | String | 成人預防保健report id | | checkupDate | String | 成人預防保健日期 | | detailList | json array | 成人預防保健結資料列表 | * detailList(list view) | 欄位 | 型態 | 說明 | | --------- |-------- |-------- | | id | String | 成人預防保健detail id| | value | String | 成人預防保健detail的值| | nameI18nKey | jsonarray | 成人預防保健detail的項目名稱| | unitI18nKey | jsonarray | 成人預防保健detail的單位| * reportList(grid view) | 欄位 | 型態 | 說明 | | -----| -----|-------- | | id | String | 成人預防保健detail id| | value | String[] | 成人預防保健detail的值| | nameI18nKey | jsonarray | 成人預防保健detail的項目名稱| | unitI18nKey | jsonarray | 成人預防保健detail的單位| ### Response Body Example ```json= -- list view { "httpCode": 200, "result": { "data": { "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "reportList": [ { "id": "fa7d37a9-b514-4466-9dc6-a33ba53e7fc2", "checkupDate": "2015-03-30", "detailList": [ { "id": "dd4e0cfa-635a-476d-840d-b3f01b580759", "value": "1234567890", "nameI18nKey": "PREVENTIVE_CARE.CHECKUP_HOSPITAL_CODE", "unitI18nKey": "PREVENTIVE_CARE.UNIT.CHECKUP_HOSPITAL_CODE" } ] } ] } } } -- grid view { "httpCode": 200, "result": { "data": { "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "reportList": [ { "id": "dd4e0cfa-635a-476d-840d-b3f01b580759", "value": [ "1234567890" ], "nameI18nKey": "PREVENTIVE_CARE.CHECKUP_HOSPITAL_CODE", "unitI18nKey": "PREVENTIVE_CARE.UNIT.CHECKUP_HOSPITAL_CODE" } ] } } } ``` ## [APP/Web] 取得癌症篩檢結果內容 ```url= POST /{contextPath}/myHealthBank/cancerScreeningData/detail ``` ### Request Body Param | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | idCardNo | String| Y || 身分證字號 | ### Request Body Example: ```javascript= { "idCardNo":"A184407779" } ``` ### Response Body Param * data | 欄位 | 型態 | 說明 | | -----| -----|-------- | | reportList | json array | 癌症篩檢列表 | * reportList | 欄位 | 型態 | 說明 | | -----| -----|-------- | | id| String | 癌症篩檢項目的id | | screeningCategory| String | 篩檢類別 | | checkupItemName| String | 檢查項目名稱 | | cancerScreeningDetailVOList| Jsonarray | 癌症篩檢詳細內容 | * cancerScreeningDetailVOList | 欄位 | 型態 | 說明 | | --------- |-------- |-------- | | id| String | 癌症篩檢詳細內容的id | | checkupDate| String | 就醫日期 | | hospitalName| String | 醫事機構名稱 | | checkupResult| String | 檢查(驗)結果 | | suggestion| String | 建議 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "reportList": [ { "id": "25a542c2-59b0-41d5-8ebb-503919494dd7", "screeningCategory": "大腸癌篩檢", "checkupItemName": "定量免疫法糞便潛血檢查", "cancerScreeningDetailVOList": [ { "id": "75b637ac-5fb9-46a9-a20c-a0a395b7f44b", "checkupDate": "2018-05-25", "hospitalName": "臺北虛擬診", "checkupResult": "異常", "suggestion": "異常:須安排大腸鏡檢查。" } ] } ] } } } ``` ## [APP/Web] 取得其他檢驗結果內容 ```url= POST /{contextPath}/myHealthBank/inspectionData/detail ``` ### Request Body Param | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | householdMemberId | String| Y || 用戶ID(APP查詢免填) | | type| String| N |0 | 資料呈現方式: <BR> 0: List View<BR> 1: Grid View <BR> | | sorter| json| N |0 | 排序方式(list view only) | | field| String| N |0 | 排序欄位(medicalOrderName/inspectionItem) | | order| String| N |0 | 排序方式(desc/asc) | | pagination| json| N |0 | 分頁設定: (list view only) | ### Request Body Example: ```javascript= { "idCardNo":"A184407779", "type" : 0, "sorter": { "field": "medicalOrderName", "order": "desc" }, "pagination": { "current": 1, "pageSize": 10, "total": 0 } } ``` ### Response Body Param * data | 欄位 | 型態 | 說明 | | -----| -----|-------- | | name| String| 資料列表| | gender| String | 性別| | birthDate| String| 生日| | reportList | jsonarray | 資料列表| | total | int | detailList 數量總和(list view only)| * reportList(list view) | 欄位 | 型態 | 說明 | | -----| -----|-------- | | id | String | id| | checkupDate | String | 檢驗日期| | institutionName | String | 醫事機構名稱 | | detailList | jsonarray | 資料列表| * detailList(list view) | 欄位 | 型態 | 說明 | | --------- |-------- |-------- | | id | String | detail id| | medicalOrderName| String | 檢驗檢查醫囑名稱| | inspectionItem| String | 檢驗檢查項目名稱| | value| String | 檢查結果 | | reference| String | 參考值| * reportList(grid view) | 欄位 | 型態 | 說明 | | --------- |-------- |-------- | | medicalOrderName| String | 檢驗檢查醫囑名稱| | inspectionItem| String | 檢驗檢查項目名稱| | value| String[] | 檢查結果 | ### Response Body Example ```json= -- list view { "httpCode": 200, "result": { "data": { "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "reportList": [ { "checkupDate": "2015-01-09", "institutionName": "******醫院", "detailList": [ { "id": "4894d961-f83b-43f5-8189-13cb77cf3506", "medicalOrderName": "全套血液檢查I(八項)", "inspectionItem": "Blood Routine", "value": "7.3", "reference": "3.8-10" } ] } ], total: 4 } } } -- grid view { "httpCode": 200, "result": { "data": { "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "reportList": [ { "medicalOrderName": "HEALTH_BANK.INSPECTION_NAME", "inspectionItem": "HEALTH_BANK.INSPECTION_ITEM_NAME", "value": [ "2015-01-09" ] } ] } } } ``` ## 取得其他檢驗檢查日期列表 ```url= POST /{contextPath}/myHealthBank/inspectionData/checkupDate/list ``` ### Request Body Param | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | householdMemberId | String| Y || 用戶ID(APP查詢免填) | ### Request Body Example: ```javascript= { "householdMemberId":"4894d961-f83b-43f5-8189-13cb77cf3506" } ``` ### Response Body Param * data | 欄位 | 型態 | 說明 | | -----| -----|-------- | | checkupDateList| String[]| 檢查日期列表| ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "checkupDateList": ["2020-11-20", "2020-11-26"] } } } ``` ## 取得其他檢驗檢查趨勢內容 ```url= POST /{contextPath}/myHealthBank/inspectionData/trend/detail ``` ### Request Body Param | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | householdMemberId | String| Y || 用戶ID(APP查詢免填) | | checkupDate | String| Y || 檢查日期 | ### Request Body Example: ```javascript= { "householdMemberId":"4894d961-f83b-43f5-8189-13cb77cf3506", "checkupDate": "2021-05-21" } ``` ### Response Body Param * data | 欄位 | 型態 | 說明 | | -----| -----|-------- | | name| String| 資料列表| | gender| String | 性別| | birthDate| String| 生日| | checkupDate | String | 檢驗日期| | institutionName | String | 醫事機構名稱 | | reportList | jsonarray | 資料列表| | -id | String | 檢驗項目 id| | -medicalOrderName| String | 檢驗檢查醫囑名稱| | -inspectionItem| String | 檢驗檢查項目名稱| |-value| String | 檢查結果 | | -reference| String | 參考值| | -preExamValue| String | 該檢驗項目的前次檢查結果 | | -preExamCheckupDate| String | 該檢驗項目的前次檢查日期 | ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "checkupDate": "2021-05-20", "institutionName": "******醫院", "reportList": [ { "id": "4894d961-f83b-43f5-8189-13cb77cf3506", "medicalOrderName": "全套血液檢查I(八項)", "inspectionItem": "Blood Routine", "value": "7.3", "reference": "3.8-10", "preExamValue": "6", "preExamCheckupDate": "2021-05-12" } ], } } } ``` ## [APP/Web] 取得用藥資料內容 ```url= POST /{contextPath}/myHealthBank/drugData/detail ``` ### Request Body Param | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| | idCardNo | String| Y || 身分證字號 | | type | int| N || 0: list view 1: grid view(default) | | sorter| json| N |0 | 排序方式 | | field| String| N |0 | 排序欄位(checkupDate/diseaseCategory/institutionName/medicalOrderName) | | order| String| N |0 | 排序方式(desc/asc) | | pagination| json| N |0 | 分頁設定 | ### Request Body Example: ```javascript= { "idCardNo":"A184407779", "type": 0, "sorter": { "field": "checkupDate", "order": "desc" }, "pagination": { "current": 1, "pageSize": 10, "total": 0 } } ``` ### Response Body Param * data | 欄位 | 型態 | 說明 | | -----| -----|-------- | | name| String| 資料列表| | gender| String | 性別| | birthDate| String| 生日| | reportList | jsonarray | 資料列表| | total| int| 總數(list view only)| * reportList | 欄位 | 型態 | 說明 | | -----| -----|-------- | | id | String | id| | checkupDate | String | 檢驗日期| | detailList | jsonarray | 資料列表| * detailList | 欄位 | 型態 | 說明 | | --------- |-------- |-------- | | id | String | detail id| | diseaseCategory| String | 疾病分類| | institutionName| String | 醫事機構| | drugList| jsonarray| 用藥資訊列表 | * drugList | 欄位 | 型態 | 說明 | | --------- |-------- |-------- | | id | String | detail id| | medicalOrderCode| String | (藥品)醫囑代碼| | medicalOrderName| String | 醫囑(藥品)名稱| ### Response Body Example ```json= -- list view { "httpCode": 200, "result": { "data": { "name": "老師", "gender": "1", "birthDate": "2021-01-29", "reportList": [ { "id": "63defd18-1b30-4c6f-98b9-c7c44ad53872", "checkupDate": "2015-12-18", "diseaseCategory": "急性腎盂腎炎,未提及腎髓質壞死病灶", "institutionName": "**醫院", "medicalOrderCode": "AC20910100", "medicalOrderName": "圖留康膜衣錠250毫克" }, { "id": "71a4c315-2afd-43f1-9b3d-2c77bb4d6902", "checkupDate": "2015-03-25", "diseaseCategory": "關節痛,小腿", "institutionName": "****中醫", "medicalOrderCode": "A003284", "medicalOrderName": "“勝昌”川牛膝濃縮散" } ], "total": 2 } } } -- grid view { "httpCode": 200, "result": { "data": { "name": "李小胖", "gender": "1", "birthDate": "2020-11-20", "reportList": [ { "id": "df052574-eb55-41f7-ae88-e73f3ff43733", "checkupDate": "2015-03-25", "detailList": [ { "id": "df052574-eb55-41f7-ae88-e73f3ff43733", "diseaseCategory": "關節痛,小腿", "institutionName": "****中醫", "drugList": [ { "id": "fa716d5c-038f-48f0-a059-28397a6296d2", "medicalOrderCode": "A003284", "medicalOrderName": "“勝昌”川牛膝濃縮散" } ] } ] } ] } } } ``` ## [APP] 刪除所有健康存摺紀錄 ```url= POST /{contextPath}/myHealthBank/myHealthBank/deleteAll ``` ### Request Body Param | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| esponse Body Param * data | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| Integer| 刪除數量| ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ``` ## [APP] 取得所有健康存摺紀錄筆數 ```url= POST /{contextPath}/myHealthBank/myHealthBank/avaliable ``` ### Request Body Param | 欄位 | 型態 | 必填 | 預設 | 說明 | |---|---|---|---|---| esponse Body Param * data | 欄位 | 型態 | 說明 | | -----| -----|-------- | | count| Integer| 健康存摺總筆數, 0:沒有存摺資料| ### Response Body Example ```json= { "httpCode": 200, "result": { "data": { "count": 1 } } } ```