---
# System prepended metadata

title: 視訊通話 WebRTC/OpenVidu

---

# 視訊通話 WebRTC/OpenVidu

- OpenVidu中所使用的API
- 皆不作user token的驗證

---
API 清單
- 個案關懷-dashboard[WEB]
  - [更新最近一次生理量測資料(for openVidu)](#更新最近一次生理量測資料)
---


## [WEB]更新最近一次生理量測資料(for openVidu)
<!-- 
須同步修改 查詢最近量測-含異常資訊
https://hackmd.io/BpvOkwuaQteEneeibx4uVw#%E6%9F%A5%E8%A9%A2%E6%9C%80%E8%BF%91%E9%87%8F%E6%B8%AC-%E5%90%AB%E7%95%B0%E5%B8%B8%E8%B3%87%E8%A8%8A
-->
```url
GET /openvidu/phy/recentDetail
```

### Request Params
* query params
 
 |欄位 | 型態 | 必填 | 預設 | 說明  
 |---|---|---|---|---
 |householdMemberId | string | Y | | householdMemberId|
 
### Response Body
| 欄位 | 型態 | 說明 |
|---|---|---|
|bodyWeight | number | 最新一筆體重資訊|
|bmi | number |  最新一筆 bmi 資訊|
|fat  | number | 最新一筆體脂資訊|
|systolic | number  | 最新一筆收縮壓資訊|
|diastolic | number |  最新一筆舒張壓資訊|
|heartRate  | number | 最新一筆心跳資訊|
|beforeMeals | number | 最新一筆飯前血糖資訊|
|afterMeals | number |  最新一筆飯後血糖資訊|
|insulin  | number | 最新一筆胰島素資訊|
|temperature  | number | 最新一筆體溫資訊|
|oxygen  | number | 最新一筆血氧資訊|
|muscle  | number | 最新一筆肌肉量資訊|
|waterVolume  | number | 最新一筆有記錄的當天喝水量資訊|
|dailyDehydration|number|今日脫水量|
|hasPdHistoryRecords|boolean| 往前一個月內是否有上傳腹膜透析紀錄|
|abnormalNum  | number | 量測值異常的數量|
|value | number | 量測值|
|isNormal | boolean | 量測值是否異常|
|unit | string | 量測值單位|
|measureDate | number | 量測時間|
|resource | String |資料來源，<br/>MANUAL: 手動輸入<br/>DEVICE: App測量上傳<br/>ALL_IN_ONE: ALL_IN_ONE|
|deviceName | String | 量測裝置|
|name | String | 姓名|
|gender | Integer | 性別|
|age | Integer | 年齡|
|mobile | String | 電話|

```javascript
{
    "httpCode": 200,
    "result": {
        "data": {
            "userInfo": {
                "name": "蘇凱文",
                "gender": 1,
                "age": 33,
                "mobile": "0925309365"
            },
            "bodyWeight": {
                "value": "81.8",
                "isNormal": true,
                "unit": "kg",
                "measureDate": 1650006882035,
                "resource": "MANUAL",
                "deviceName": "MMA-1"
            },
            "bmi": {
                "value": "27.3",
                "isNormal": true,
                "measureDate": 1650006882035,
                "resource": "MANUAL",
                "deviceName": "MMA-1"
            },
            "fat": {
                "value": "28.5",
                "isNormal": false,
                "unit": "%",
                "measureDate": 1650006882035,
                "resource": "MANUAL",
                "deviceName": "MMA-1"
            },
            "systolic": {
                "value": "10",
                "isNormal": false,
                "unit": "mmHg",
                "measureDate": 1649927685078,
                "resource": "MANUAL"
            },
            "diastolic": {
                "value": "10",
                "isNormal": false,
                "unit": "mmHg",
                "measureDate": 1649927685078,
                "resource": "MANUAL"
            },
            "heartRate": {
                "value": "200",
                "isNormal": false,
                "unit": "次/分鐘",
                "measureDate": 1649927685078,
                "resource": "MANUAL"
            },
            "beforeMeals": {
                "value": "12",
                "isNormal": false,
                "unit": "mg/dL",
                "measureDate": 1649810389572,
                "resource": "MANUAL"
            },
            "insulin": {
                "value": "30",
                "isNormal": true,
                "unit": "u",
                "measureDate": 1649810341572,
                "resource": "MANUAL"
            },
            "temperature": {
                "value": "36.2",
                "isNormal": true,
                "unit": "度",
                "measureDate": 1649988255400,
                "resource": "MANUAL"
            },
            "oxygen": {
                "value": "99",
                "isNormal": true,
                "unit": "%",
                "measureDate": 1642492175239,
                "resource": "MANUAL"
            },
            "waterVolume": {
                "value": "500",
                "isNormal": true,
                "unit": "ml",
                "measureDate": 1642492227061,
                "resource": "MANUAL"
            },
            "muscle": {
                "value": "51.81",
                "isNormal": true,
                "unit": "kg",
                "measureDate": 1650006882035,
                "resource": "MANUAL"
            },
            "hasPdHistoryRecords": false,
            "abnormalNum": 5,
            "recordNum": 13
        }
    }
}
```