脉景处方订单生成接口
接口描述
外部调用脉景接口,生成脉景对应信息的处方订单
接入点: 脉景提供调用地址
请求方法: post
发送参数
R -- 必填 O -- 选填
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| external_out_trade_no | String | R | 外部订单号,主键 |
| medical_recode_id | String | R | 订单关联的病历唯一识别ID |
| goods_info | Array | R | 商品信息,详情见下面 |
| doctor_name | String | R | 处方订单的处方医生姓名 |
| clinic_name | String | R | 诊所名 |
| patient_name | String | O | 患者姓名 |
| patient_gender | String | O | 患者性别枚举 |
| patient_age | Number | O | 患者年龄,单位:岁 |
| patient_birthday | DateTime | O | 患者出生日期 |
| patient_idcard | String | O | 患者证件号码 |
| patient_card_type | Number | O | 患者证件类型 |
| take_medicine_way | String | R | 取药方式(自提、快递) |
| receiver_name | String | O | 收货人姓名 (快递时必填) |
| receiver_mobile | String | O | 收货人手机 (快递时必填) |
| receiver_structure_address | String | O | 收货地区,省-市-区 (快递时必填) |
| receiver_address | String | O | 收货详细地址 (快递时必填) |
| process_price | Decimal | O | 加工费 |
| total_cost_price | Decimal | R | 供货总价 |
| freight_price | Decimal | O | 运费 |
| is_medical_insurance | String | R | 是否使用医保 |
| remark | String | R | 备注 |
| store_uuid | String | O | 脉景药房ID |
| pay_url | String | O | 订单H5地址 (用于转换成二维码的待支付订单的URL ) |
商品信息
R -- 必填 O -- 选填
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| business_medicine_code | String | R | 商家药品编码 |
| name | String | R | 药品名称 |
| short_name | String | R | 药品简称 |
| dosage_form | Number | R | 药品剂型 (饮片/颗粒剂等) |
| dosage_brand | String | R | 药品品牌 |
| retail_unit | String | R | 计量单位,零售单位 |
| quantity | Number | R | 每剂药品数量 |
| grams_of_corresponding_pieces | Number | R | 此药品每剂数量对应的饮片克数 |
| medicine_floor_price | Number | R | 此药品的供货价 |
| specification | String | R | 药品规格 |
| prescription_id | String | R | 处方id |
| amount | Number | R | 剂数 |
请求参数示例
{
"external_out_trade_no": "20200511091232187525-927",
"medical_record_id": "1",
"goods_info": [
{
"business_medicine_code": "234455",
"name": "桂枝草药",
"short_name": "桂枝",
"dosage_form": 0,
"dosage_brand": "三九",
"retail_unit": "袋",
"quantity": 8,
"grams_of_corresponding_pieces": "80.000",
"medicine_floor_price": '21',
"specification": "克",
"prescription_id ": '343535'
"amount": '12',
},
{
"business_medicine_code": "234456",
"name": "桂枝草药",
"short_name": "桂枝",
"dosage_form": 0,
"dosage_brand": "三九",
"retail_unit": "袋",
"quantity": 8,
"grams_of_corresponding_pieces": "80.000",
"medicine_floor_price": '21',
"specification": "克",
"prescription_id ": '343535'
"amount": '12',
}]
"doctor_name": "医生姓名",
"clinic_name": "医院",
"patient_name": "患者",
"patient_gender": "M",
"patient_age": 23,
"patient_birtyday": "2020-03-16T",
"patient_idcard": "3201031234134213",
"patient_card_type": 0,
"take_medicine_way": "快递",
"receiver_name": "收货人姓名",
"receiver_mobile": "收货人手机",
"receiver_structure_address": "收货地区",
"receiver_address": "收货详细地址",
"operate_time": "2020-07-07 06:47:00.331041+00:00",
"paid_success_time": "2020-07-07 06:47:00.331041+00:00",
"process_price": "20.91",
"total_cost_price": "20.91",
"freight_price": "20.91",
"is_medical_insurance": "null"
"remark": "备注"
"store_uuid": "null"
"pay_url": "https://www.pythonheidong.com/blog/article/319529/3575ae4f5423ec378553/"
}
返回参数格式: JSON
示例:
{
"code": "200",
"message":"成功"
}