syntax = "proto3"; package com.ywt.gapi.drug; option java_generic_services = true; option java_multiple_files = true; option java_package = "com.ywt.gapi.drug"; //处方信息 message PrescriptionInfo { //处方药品信息 message PrescriptionDrugInfo { string drugCode = 1; string drugCode3th = 2; double oneDosage = 3; string oneDosageUnit = 4; int32 amount = 5; string units = 6; string frequencyCode = 7; string frequency = 8; int32 frequencyQty = 9; string usageCode = 10; string usage = 11; int32 price = 12; string drugName = 13; string drugSpec = 14; int32 quantity = 15; int32 total = 16; int32 course = 17;//疗程,单位:天 int32 group = 18; //组号,组号相同表示它们为同组药 int32 orderIndex = 19; //序号 int32 combination = 20; //是否为同组药(1-是,0-否) string remark = 21; //备注 string executeDate = 22; //开始执行日期(医嘱) int32 injections = 23; //注射次数(医嘱) string packDetail = 24; //药品打包说明 string oneDosageDetail = 25; //每次剂量说明(例:每次2片) string usageRemarks = 26; //用药医生说明(例:宜饭前服用) string drugPrintName = 27; //药品打印名称 string drugRefrigeration =28; //药品是否冷藏(0或空不冷藏,1是冷藏) int32 drugId = 29; string producer = 30; double specDosage = 31; string adviceId = 32; // 医嘱id,必须为唯一id int32 adviceFlag = 33; // 医嘱标志:1-核实,2-作废,4-停止,默认为0(0表示没有值),以及其他,除了1是正常,其他的均可理解成异常 } string no3th = 1; string doctorName = 2; string patientName = 3; string patientAge = 4; string patientSex = 5; string patientNo = 6; string diagnose = 7; string dept = 8; int32 source = 10; string hosptialCode = 11; int32 hosptialId = 12; string orgCode3th = 13; repeated PrescriptionDrugInfo drugs = 14; int32 totalPrice = 15; int32 status = 16; string statusStr = 17; int64 createOn = 18; int32 payStatus = 19; string createOnStr = 20; string patientMobile = 21; string description = 22; //病情描述 string allergicHistory = 23; //过敏史 int32 doctorSignId = 24; //医生签名Id int32 prescriptionId = 25; //处方单Id string bizNo = 26; //业务编码 int32 userId = 27; //用户Id string hisOrderNo = 28; //HIS单号 int32 addressId = 29; //地址ID int32 deliveryMethod = 30; // 取药方式:1-快递 2-自取 string sendNo = 31; // 配送号 string qrCodeUrl = 32; // 取药二维码 string pharmacyAddress = 33; // 药店地址(由省、市、区、详细地址组成) string pharmacyName = 34; // 药店名称 int64 finshTime = 35; // 完成时间 int32 doctorId = 36; // 医生ID int32 individual = 37; // 个人支付总金额(药品总金额 - 医保 + 运费) int32 extStatus = 38; // 拓展状态,位运算,1-是否报到,2-是否发药,4-是否打印发票,8-包含其他收费项目(广三来源) int32 needPrintStatus = 39; // 是否需要打印发票,0-不需要,1-需要 int32 freight = 40; // 快递费,单位:分 string idCardNo = 41; //身份证号 int32 pharmacyId = 42; //药房地址ID string prescriptionDate = 43; //处方日期(一般用于第三方来源) string timeStandard = 44; // 时效标准(快递的预计送达时间) string orderNo = 45; // 订单号 int32 orderId = 46; // 订单ID string refundNo = 47; //退款单号 int32 refundStatus = 48; //退款状态 1: 退款成功,2: 退款异常,3: 退款关闭 int64 payTime = 49; // 支付时间 string invoiceEndTime = 50; // 发票开具结束时间 int32 terminal = 51; //终端号 string hisOeoriOrderId = 52; // HIS 医嘱订单编号 string hisPatientId = 53; string hisClinicCode = 54; int32 cancelStatus = 55; string cancelRemark = 56; int32 patientAgeInt = 57; int32 patientSexInt = 58; string icdCodes = 59; string patientAddress = 60; string remarks = 61; bool addressModified = 62;// 是否已修改过配送地址 string postSource = 63; //邮寄服务 string presctype = 64; //类型:“O”为门诊,“I”为住院 “E”为急诊 “H”为体检 } message SaveHisOpenApiPrescriptionRequest { repeated PrescriptionInfo prescriptionInfos = 1; int32 flag = 2; } message SaveHisOpenApiPrescriptionResponse { int32 code = 1; string info = 2; string bizNo = 3; string data = 4; } //药品相关服务 service DrugService { // 保存从his_open_api过来的处方信息 rpc saveHisOpenApiPrescription(SaveHisOpenApiPrescriptionRequest) returns (SaveHisOpenApiPrescriptionResponse); }