|
@@ -0,0 +1,144 @@
|
|
|
+# 说明
|
|
|
+
|
|
|
+和后端交互view信息
|
|
|
+
|
|
|
+## 1. fetch views
|
|
|
+
|
|
|
+### HTTP Method: GET
|
|
|
+
|
|
|
+### Headers
|
|
|
+
|
|
|
+- **Authorization**
|
|
|
+- **Language**: `en` 或 `zh`
|
|
|
+- **Product**: `DROS` 或 `VETDROS`
|
|
|
+- **Source**: `Electron` 或 `Browser` 或 `Android`
|
|
|
+
|
|
|
+### Endpoint URL: /dr/api/v1/auth/protocol/view
|
|
|
+
|
|
|
+### query parameters
|
|
|
+
|
|
|
+patient_type:从患者类型接口获取,string or null
|
|
|
+body_part:从身体部位接口获取,string or null
|
|
|
+is_enabled:true 或 false
|
|
|
+procedure_id:从协议列表接口获取,string,maybe null
|
|
|
+
|
|
|
+### Response Status: 200 (OK)
|
|
|
+
|
|
|
+### Response Data: Returns a JSON
|
|
|
+
|
|
|
+example :
|
|
|
+
|
|
|
+```json
|
|
|
+{
|
|
|
+ "code": "0x000000",
|
|
|
+ "description": "Success",
|
|
|
+ "solution": "",
|
|
|
+ "data": {
|
|
|
+ "@type": "type.googleapis.com/dr.protocol.ViewReply",
|
|
|
+ "view_list": [
|
|
|
+ {
|
|
|
+ "internal_id": "View_DX_T_A_SK_AP_00",
|
|
|
+ "view_id": "View_DX_T_A_SK_AP_00",
|
|
|
+ "view_name": "颅骨前后位",
|
|
|
+ "view_name_local": "",
|
|
|
+ "view_other_name": "Skull AP",
|
|
|
+ "view_description": "颅骨前后位",
|
|
|
+ "view_position": "AP",
|
|
|
+ "application": "RAD",
|
|
|
+ "anatomic_region": "SKULL",
|
|
|
+ "patient_type": "Human",
|
|
|
+ "body_part_id": "Human_SKULL",
|
|
|
+ "view_icon_name": "/Image/Position/Human/skull.ap.table.x.png",
|
|
|
+ "view_big_icon_name": "/Image/Position/Human/skull.ap.table.x.png",
|
|
|
+ "view_coach_name": "/Image/Position/Human/skull.ap.table.x.png",
|
|
|
+ "modality": "DX",
|
|
|
+ "work_station_id": 0,
|
|
|
+ "apr_id": "View_DX_T_A_SK_AP_00",
|
|
|
+ "img_proc_id": "View_DX_T_A_SK_AP_00",
|
|
|
+ "config_object": {
|
|
|
+ "DX": {
|
|
|
+ "CollimatorCenter": "1",
|
|
|
+ "CollimatorFilter": "0",
|
|
|
+ "CollimatorNoChange": false,
|
|
|
+ "CollimatorSize": "14IN(35CM)X17IN(43CM)",
|
|
|
+ "CollimatorSizeLength": "17IN",
|
|
|
+ "CollimatorSizeWidth": "14IN",
|
|
|
+ "ImageHorizontalFlip": "NO",
|
|
|
+ "ImageLaterality": "U",
|
|
|
+ "ImageRotate": "0",
|
|
|
+ "LabelPosition": "LEFT TOP",
|
|
|
+ "LabelStyle": "",
|
|
|
+ "PatientOrientationColumn": "R",
|
|
|
+ "PatientOrientationRow": "L",
|
|
|
+ "RatioFactorLength": 0,
|
|
|
+ "RatioFactorSize": 0,
|
|
|
+ "RatioFactorThickness": 0,
|
|
|
+ "RatioFactorWeight": 0,
|
|
|
+ "StandPos": "43",
|
|
|
+ "TargetEXI": 250,
|
|
|
+ "ViewID": "View_DX_T_A_SK_AP_00"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "sort": 1,
|
|
|
+ "is_enabled": true,
|
|
|
+ "product": "DROS",
|
|
|
+ "is_pre_install": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internal_id": "View_DX_T_A_SK_LAT_00",
|
|
|
+ "view_id": "View_DX_T_A_SK_LAT_00",
|
|
|
+ "view_name": "颅骨左侧位",
|
|
|
+ "view_name_local": "",
|
|
|
+ "view_other_name": "Skull LAT,left",
|
|
|
+ "view_description": "颅骨左侧位",
|
|
|
+ "view_position": "LAT",
|
|
|
+ "application": "RAD",
|
|
|
+ "anatomic_region": "SKULL",
|
|
|
+ "patient_type": "Human",
|
|
|
+ "body_part_id": "Human_SKULL",
|
|
|
+ "view_icon_name": "/Image/Position/Human/Skull_T_lat_left.gif",
|
|
|
+ "view_big_icon_name": "/Image/Position/Human/Skull_T_lat_left.x.gif",
|
|
|
+ "view_coach_name": "/Image/Position/Human/Skull_T_lat_left.x.gif",
|
|
|
+ "modality": "DX",
|
|
|
+ "work_station_id": 0,
|
|
|
+ "apr_id": "View_DX_T_A_SK_LAT_00",
|
|
|
+ "img_proc_id": "View_DX_T_A_SK_LAT_00",
|
|
|
+ "config_object": {
|
|
|
+ "DX": {
|
|
|
+ "CollimatorCenter": "1",
|
|
|
+ "CollimatorFilter": "0",
|
|
|
+ "CollimatorNoChange": false,
|
|
|
+ "CollimatorSize": "8IN(20CM)X10IN(25CM)",
|
|
|
+ "CollimatorSizeLength": "10IN",
|
|
|
+ "CollimatorSizeWidth": "8IN",
|
|
|
+ "ImageHorizontalFlip": "NO",
|
|
|
+ "ImageLaterality": "U",
|
|
|
+ "ImageRotate": "0",
|
|
|
+ "LabelPosition": "RIGHT TOP",
|
|
|
+ "LabelStyle": "",
|
|
|
+ "PatientOrientationColumn": "R",
|
|
|
+ "PatientOrientationRow": "L",
|
|
|
+ "RatioFactorLength": 0,
|
|
|
+ "RatioFactorSize": 0,
|
|
|
+ "RatioFactorThickness": 0,
|
|
|
+ "RatioFactorWeight": 0,
|
|
|
+ "StandPos": "43",
|
|
|
+ "TargetEXI": 250,
|
|
|
+ "ViewID": "View_DX_T_A_SK_LAT_00"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "sort": 1,
|
|
|
+ "is_enabled": true,
|
|
|
+ "product": "DROS",
|
|
|
+ "is_pre_install": true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
+### Dynamic Behavior: None
|
|
|
+
|
|
|
+### Delay: 500ms to simulate network latency
|
|
|
+
|
|
|
+### Error Handling: None
|