handlers.md 1.4 KB

以下是handler描述

Handler 1: 获取患者类型

HTTP Method: GET

Headers

  • Authorization
  • Language: enzh
  • Product: DROSVETDROS
  • Source: ElectronBrowserAndroid

Endpoint URL: /dr/api/v1/auth/protocol/patient_type

Response Status: 200 (OK)

Response Data: Returns a JSON

Example:

``` json
{
"code": "0x000000",
"description": "Success",
"solution": "",
"data": {
    "patient_type_list": [
        {
            "id": "1",
            "patient_type_id": "Human",
            "patient_type_name": "Human",
            "patient_type_local": "Human",
            "patient_type_description": "Human",
            "sort": 1,
            "is_enabled": true,
            "product": "DROC",
            "is_pre_install": true
        },
        {
            "id": "2",
            "patient_type_id": "SpecialType",
            "patient_type_name": "SpecialType",
            "patient_type_local": "SpecialType",
            "patient_type_description": "SpecialType",
            "sort": 2,
            "is_enabled": false,
            "product": "DROC",
            "is_pre_install": true
        }
    ]
}

} ```

Dynamic Behavior: None

Delay: 500ms to simulate network latency

Error Handling: None