美文网首页
2020-01-08

2020-01-08

作者: 姚晓辉 | 来源:发表于2020-01-08 17:57 被阅读0次

?xml version="1.0" encoding="UTF-8"?

#### 接口列表

| 接口 | 说明 |

|------ |----- |

|[1. /ehp/user/basicinfo](#basicinfo)| 获取患者基本信息|

|[2. /ehp/user/recordinfo](#recordinfo) | 获取居民健康档案信息卡|

|[3. /ehp/user/health_exam](#health_exam) | 获取体检信息|

|[4. /ehp/user/follow_up_visit_list](#follow_up_visit) | 获取随访记录|

|[5. /ehp/user/outpatient_list](#outpatient_list) | 获取门诊记录列表|

|[6. /ehp/user/outpatient_detail](#outpatient_detail) | 获取门诊记录详情|

|[7. /ehp/user/inpatient_list](#inpatient_list) | 获取住院记录列表|

|[8. /ehp/user/inpatient_detail](#inpatient_detail) | 获取住院记录详情|

#### 错误码列表

通过http协议状态码获取接口状态,不在具体接口返回值中额外定义状态码

#### 接口详情

1. 接口名称:获取患者基本信息

* 接口地址:/ehp/user/basicinfo

* 返回格式:json

* 请求方式:post

* 接口备注:

* 请求参数说明:

| 名称 | 类型 | 必填 |说明|

|----- |------| ---- |----|

|id_no |string|true|身份证号|

* 返回参数说明:

| 名称 | 类型 |说明|

|----- |------|----|

| name | string|姓名|

|sex | string|性别|

|birth_date | string|生日|

|id_no | string|身份证号|

|contact_addr | string|联系方式|

|degree | string|文化程度|

|profession | string|职业|

|marital_status | string|婚姻状况|

|drug_allergy | array|药物过敏史|

|medical_history |array|既往病史|

|family_history |string|家族史|

* JSON返回示例:

{

"name": "张三",

"sex": "男",

"birth_date": "xxxx-xx-xx",

"id_no": "xxxx",

"contact_addr": "北京市海淀区...",

"degree": "博士",

"profession": "研究员",

"marital_status": "已婚",

"drug_allergy": [

{"type": "过敏类型",

"detail": "详情"

}

],

"medical_history": [

{"date": "时间",

"detail": "病情"

}

],

"family_history": "...家族史/遗传疾病",

}

2. 接口名称:获取居民健康档案信息卡

* 接口地址:/ehp/user/recordinfo

* 返回格式:json

* 请求方式:post

* 接口备注:

* 请求参数说明:

| 名称 | 类型 | 必填 |说明|

|----- |------| ---- |----|

|id_no |string|true|身份证号|

* 返回参数说明:

| 名称 | 类型 |说明|

|----- |------|----|

| name | string|姓名|

|sex | string|性别|

|birth_date | string|生日|

|record_no | string|档案编号|

|blood_type | string|血型|

|chronic_diseases | array|慢性病患病情况|

* JSON返回示例:

```

{

"name": "张三",

"sex": "男",

"birth_date": "xxxx-xx-xx",

"record_no": "xxxx",

"blood_type": "A",

"chronic_diseases": [

{"type": "高血压",

"detail": "详情"

}

]

}

```

3. 接口名称:获取体检信息

* 接口地址:/ehp/user/health_exam

* 返回格式:json

* 请求方式:post

* 接口备注:

* 请求参数说明:

| 名称 | 类型 | 必填 |说明|

|----- |------| ---- |----|

|id_no |string|true|身份证号|

|start_timestamp |long|true|开始时间戳|

|end_timestamp |long|true|结束时间戳|

* 返回参数说明:

| 名称 | 类型 |说明|

|----- |------|----|

|name | string|姓名|

|sex | string|性别|

|birth_date | string|生日|

|exam_place | string|体检地点|

|exam_date | string|体检时间|

|doctor | string|责任医生|

|general_inspection | object|常规检查|

|inspection_result | object|检查结果|

* JSON返回示例:

```

{

"name": "张三",

"sex": "男",

"birth_date": "xxxx-xx-xx",

"history":[

{

"no": "编号",

"name": "名称",

"date": "时间",

"place": "地点",

"doctor": "责任医生",

"general_inspection": {

"height": "身高",

"weight": "体重",

"temperature": "体温",

"pulse": "脉搏",

"vision": "视力结论",

"hearing": "听力结论",

},

"inspection_result": {

"blood": "血常规结论或异常指标(正常,白细胞高。。或。。。异常指标值)",

"blood_sugar": "血糖结论(高,低,正常)",

"blood_fat": "血脂结论(轻度,中,重度等)",

"piss": "尿检查结论",

"heart": "心电图结论",

"shit": "大便检查结果",

"b_ultrasound": "b超结论",

"xray": "胸片结论",

}

}],

"doctor_guide": "健康指导"

}

```

4. 接口名称:获取随访记录

* 接口地址:/ehp/user/follow_up_visit

* 返回格式:json

* 请求方式:post

* 接口备注:

* 请求参数说明:

| 名称 | 类型 | 必填 |说明|

|----- |------| ---- |----|

|id_no |string|true|身份证号|

|start_timestamp |long|true|开始时间戳|

|end_timestamp |long|true|结束时间戳|

* 返回参数说明:

| 名称 | 类型 |说明|

|----- |------|----|

|name | string|姓名|

|sex | string|性别|

|birth_date | string|生日|

|visit_history | array|随访记录|

* JSON返回示例:

```

{

"name": "张三",

"sex": "男",

"birth_date": "xxxx-xx-xx",

"visit_history": [

{

"no": "编号",

"name": "名称",

"date": "时间",

"place": "地点",

"type": "随访类型(慢病,新生儿,孕产妇,高危职业等)",

"detail": "随访内容摘要",

"result": "随访结果摘要"

}

]

}

```

5. 接口名称:获取门诊记录列表

* 接口地址:/ehp/user/outpatient_list

* 返回格式:json

* 请求方式:post

* 接口备注:

* 请求参数说明:

| 名称 | 类型 | 必填 |说明|

|----- |------| ---- |----|

|id_no |string|true|身份证号|

|start_timestamp |long|true|开始时间戳|

|end_timestamp |long|true|结束时间戳|

* 返回参数说明:

| 名称 | 类型 |说明|

|----- |------|----|

|name | string|姓名|

|sex | string|性别|

|birth_date | string|生日|

|history | array|门诊记录|

* JSON返回示例:

```

{

"name": "张三",

"sex": "男",

"birth_date": "xxxx-xx-xx",

"history": [

{

"no": "编号",

"name": "名称",

"date": "时间",

"place": "地点",

"doctor": "医生",

"type": "诊断类型(耳鼻喉问题,内科外科问题等)",

"detail": "内容摘要",

"result": "结果摘要"

}

]

}

```

6. 接口名称:获取门诊记录详情

* 接口地址:/ehp/user/outpatient_detail

* 返回格式:json

* 请求方式:post

* 接口备注:

* 请求参数说明:

| 名称 | 类型 | 必填 |说明|

|----- |------| ---- |----|

|id_no |string|true|身份证号|

|no |string|true|门诊记录编号|

* 返回参数说明:

| 名称 | 类型 |说明|

|----- |------|----|

|name | string|姓名|

|sex | string|性别|

|birth_date | string|生日|

|history | array|门诊记录|

* JSON返回示例:

```

{

"no": "编号",

"name": "张三",

"sex": "男",

"birth_date": "xxxx-xx-xx",

"basic_info":{

"name": "名称",

"date": "时间",

"place": "地点",

"doctor": "医生",

"type": "诊断类型(耳鼻喉问题,内科外科问题等)",

"detail": "内容摘要",

"result": "结果摘要"

},

"diagnose": {

"datetime": "诊断时间",

"type": "诊断类型",

"result": "诊断结果",

"items": [

{

"no":"检查编号",

"name":"检查项",

"type":"检查类型",

"path":"检查图像路径",

"result":"检查结果",

}

]

},

"surgery": [

{

"no":"编号",

"name":"手术名称",

"type":"手术类型",

"start_time":"开始时间",

"end_time":"结束时间",

"result":"手术结果摘要"

}

],

"drug":[

{

"name":"名称",

"dose":"计量“,

"frequency":"频次“

}

]

}

```

7. 接口名称:获取住院记录列表

* 接口地址:/ehp/user/inpatient_list

* 返回格式:json

* 请求方式:post

* 接口备注:

* 请求参数说明:

| 名称 | 类型 | 必填 |说明|

|----- |------| ---- |----|

|id_no |string|true|身份证号|

|start_timestamp |long|true|开始时间戳|

|end_timestamp |long|true|结束时间戳|

* 返回参数说明:

| 名称 | 类型 |说明|

|----- |------|----|

|name | string|姓名|

|sex | string|性别|

|birth_date | string|生日|

|history | array|门诊记录|

* JSON返回示例:

```

{

"name": "张三",

"sex": "男",

"birth_date": "xxxx-xx-xx",

"history": [

{

"no": "编号",

"name": "名称",

"date": "时间",

"place": "地点",

"doctor": "医生",

"type": "诊断类型(耳鼻喉问题,内科外科问题等)",

"detail": "内容摘要",

"result": "结果摘要"

}

]

}

```

8. 接口名称:获取住院记录详情

* 接口地址:/ehp/user/inpatient_detail

* 返回格式:json

* 请求方式:post

* 接口备注:

* 请求参数说明:

| 名称 | 类型 | 必填 |说明|

|----- |------| ---- |----|

|id_no |string|true|身份证号|

|no |string|true|记录编号|

* 返回参数说明:

| 名称 | 类型 |说明|

|----- |------|----|

|name | string|姓名|

|sex | string|性别|

|birth_date | string|生日|

|history | array|门诊记录|

* JSON返回示例:

```

{

"no": "编号",

"name": "张三",

"sex": "男",

"birth_date": "xxxx-xx-xx",

"basic_info":{

"name": "名称",

"date": "时间",

"place": "地点",

"start_datetime": "入院时间",

"end_datetime": "出院时间",

"bed": "床位",

"nursing_degree": "护理级别",

"doctor": "医生",

"type": "诊断类型(耳鼻喉问题,内科外科问题等)",

"detail": "内容摘要",

"result": "结果摘要"

},

"nursing_detail": {

"level": "护理级别",

"person": "护理人员",

"result": "护理结果",

"start_datetime": "护理开始时间",

"end_datetime": "护理结束时间",

"items":[

{

"name":"护理项目"

}

]

},

"diagnose": {

"datetime": "诊断时间",

"type": "诊断类型",

"result": "诊断结果",

"items": [

{

"no":"检查编号",

"name":"检查项",

"area":"检查部位",

"type":"检查类型",

"path":"检查图像路径",

"result":"检查结果",

}

]

},

"surgery": [

{

"no":"编号",

"name":"手术名称",

"type":"手术类型",

"start_time":"开始时间",

"end_time":"结束时间",

"result":"手术结果摘要"

}

],

"drug":[

{

"name":"名称",

"dose":"计量“,

"frequency":"频次“

}

]

}

```

相关文章

网友评论

      本文标题:2020-01-08

      本文链接:https://www.haomeiwen.com/subject/oabsactx.html