接口描述
第三方用户提供相关接口,在脉景系统管理员配置成功且开启相关功能权限后,第三方用户可以将脉景健康合作伙伴系统中的药品清单明细数据写入相关系统。
接口调用示例
请求地址:由第三方提供
请求方法:post
token(固定值):由第三方提供
接口参数示例
{
"index_id": "20200511091232187525-927",
"order_type": "Prescription",
"medical_record_id": "1",
"prescription_id": "1",
"medical_record_created_time": "2020-03-16T07:33:14.679000Z",
"doctor_id": "2",
"doctor_name": "医生姓名",
"hospital_id": "1",
"patient_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"patient_name": "患者",
"patient_gender": "M",
"patient_age": 23,
"syndrome_type": "表阳虚证",
"prescription_amount": 7,
"prescription_type": 1,
"prescription_approach": "口服",
"patient_birtyday": "2020-03-16T",
"patient_idcard": "xxxxxxxxxxxxxxxx",
"patient_card_type": 0,
"paid_amount": 40.01,
"paid_success_time": "2020-03-16T07:33:14.679000Z",
"clinic_name": "医院",
"process_price": 20.91,
"total_order_price": 20.91,
"total_cost_price": 20.91,
"freight_price": 20.91,
"use_times": 1,
"medicines": [
{
"name": "桂枝草药",
"short_name": "桂枝",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 8,
"grams_of_corresponding_pieces": "80.000",
"business_medicine_code": '5262626565623',
"batch_number": "123450",
"medicine_floor_price ": 21.00
},
{
"name": "肉桂草药",
"short_name": "肉桂",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 4,
"grams_of_corresponding_pieces": "40.000",
"business_medicine_code": '5262626565624',
"batch_number": "123450",
"medicine_floor_price ": 21.00
},
{
"name": "生白芍草药",
"short_name": "生白芍",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 11,
"grams_of_corresponding_pieces": "110.000",
"business_medicine_code": '5262626565625',
"batch_number": "123450",
"medicine_floor_price ": 21.00
},
{
"name": "干姜草药",
"short_name": "干姜",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 6,
"grams_of_corresponding_pieces": "60.000",
"business_medicine_code": '5262626565626',
"batch_number": "123450",
"medicine_floor_price ": 21.00
},
{
"name": "大枣草药",
"short_name": "大枣",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 14,
"grams_of_corresponding_pieces": "140.000",
"business_medicine_code": '5262626565627',
"batch_number": "123450",
"medicine_floor_price ": 21.00
},
{
"name": "制附子草药",
"short_name": "制附子",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 7,
"grams_of_corresponding_pieces": "70.000",
"business_medicine_code": '5262626565628',
"business_medicine_code": '5262626565631'
"batch_number": "123450",
"medicine_floor_price ": 21.00
},
{
"name": "生甘草草药",
"short_name": "生甘草",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 6,
"grams_of_corresponding_pieces": "60.000",
"business_medicine_code": '5262626565629'
},
{
"name": "生龙骨草药",
"short_name": "生龙骨",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 21,
"grams_of_corresponding_pieces": "210.000",
"business_medicine_code": '5262626565630',
"business_medicine_code": '5262626565631',
"batch_number": "123450",
"medicine_floor_price ": 21.00
},
{
"name": "生牡蛎草药",
"short_name": "生牡蛎",
"dosage_form": 0,
"take_method_id": "",
"retail_unit": "袋",
"quantity": 21,
"grams_of_corresponding_pieces": "210.000",
"business_medicine_code": '5262626565631',
"batch_number": "123450",
"medicine_floor_price ": 21.00,
}
],
"decoction_enabled": true,
"decoction_capacity": 100,
"order_id": "20200511091232187525",
"order_created_time": "2020-05-11T09:12:32.194697Z",
"receiver_name": "收货人姓名",
"receiver_mobile": "收货人手机",
"receiver_structure_address": "收货地区",
"receiver_address": "收货详细地址",
"operator_name": "操作人",
"operate_time": "2020-07-07 06:47:00.331041+00:00"
}
发送参数
名称 |
类型 |
描述 |
index_id |
String |
流水号,唯一 |
order_type |
String |
订单类型枚举 |
medical_record_id |
String |
病历号 |
prescription_id |
String |
处方号 |
medical_record_created_time |
DateTime |
开方时间,病历创建时间 |
doctor_id |
String |
下单医生号 |
doctor_name |
String |
医生姓名 |
hospital_id |
String |
医疗机构号 |
clinic_name |
String |
医生登录机构 |
patient_id |
String |
患者号 |
patient_name |
String |
患者姓名 |
patient_gender |
String |
患者性别枚举 |
patient_age |
Number |
患者年龄,单位:岁 |
patient_birthday |
DateTime |
患者出生日期 |
patient_idcard |
String |
患者证件号码 |
patient_card_type |
Number |
患者证件类型 |
syndrome_type |
String |
诊断,脉景处方中的诊断信息,即病历中证型 |
prescription_amount |
Number |
处方剂数 |
prescription_approach |
String |
处方途径 |
prescription_type |
Number |
处方类型 |
use_times |
Number |
每剂服用次数 |
medicines |
Array |
药品明细,处方中已下单的药品明细 |
decoction_enabled |
Boolean |
是否代煎 |
decoction_capacity |
Number |
每服代煎容量,配药中心设置的每服代煎容量 |
order_id |
String |
订单号 |
order_created_time |
DateTime |
下单时间,订单创建时间 |
receiver_name |
String |
收货人姓名 |
receiver_mobile |
String |
收货人手机 |
receiver_structure_address |
String |
收货地区,省-市-区 |
receiver_address |
String |
收货详细地址 |
operator_name |
String |
操作人,合作伙伴平台点击“处方发送”的账号用户名 |
operate_time |
DateTime |
操作时间 |
paid_success_time |
DateTime |
支付时间 |
paid_amount |
Number |
支付金额 |
process_price |
Decimal |
处方加工费 |
total_order_price |
Decimal |
处方订单总价 |
total_cost_price |
Decimal |
处方成本总价 |
freight_price |
Decimal |
处方运费 |
药品明细
名称 |
类型 |
描述 |
business_medicine_code |
String |
商家药品编码 |
name |
String |
药品名称 |
short_name |
String |
药品简称 |
dosage_form |
Number |
药品剂型枚举 |
retail_unit |
String |
计量单位,零售单位 |
quantity |
Number |
每剂药品数量 |
grams_of_corresponding_pieces |
String |
此药品每剂数量对应的饮片克数 |
take_method_id |
String |
煎煮方法枚举 |
batch_number |
String |
药品的批次号 |
medicine_floor_price |
Number |
此药品的供货底价 |
响应示例
{
"code": 2000,
"description": "success",
}
响应参数
名称 |
类型 |
描述 |
示例 |
code |
Number |
状态码 |
2000 |
description |
String |
状态描述 |
"success" |