Procházet zdrojové kódy

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx před 2 roky
rodič
revize
dc09c3a0d9

+ 21 - 4
controllers/sz/sz_his_api_controller.go Zobrazit soubor

@@ -2278,7 +2278,8 @@ func (c *SZHisApiController) GetSettleInfo() {
2278 2278
 							DoctorCode:         doctor_code,
2279 2279
 							Total:              detItemFeeSumamt,
2280 2280
 							DoseCode:           dose_code,
2281
-							Spec:               subItem.BaseDrugLib.DrugSpec,
2281
+							Spec:               strconv.Itoa(int(subItem.BaseDrugLib.MinNumber)) + "*" + subItem.BaseDrugLib.MinUnit + ":" + strconv.FormatFloat(subItem.BaseDrugLib.Dose, 'E', -1, 64) + subItem.BaseDrugLib.DoseUnit,
2282
+							Unit:               subItem.PrescribingNumberUnit,
2282 2283
 						}
2283 2284
 						customs = append(customs, cus)
2284 2285
 					}
@@ -2312,6 +2313,7 @@ func (c *SZHisApiController) GetSettleInfo() {
2312 2313
 								Total:              detItemFeeSumamt,
2313 2314
 								DoseCode:           "",
2314 2315
 								Spec:               "次",
2316
+								Unit:               "次",
2315 2317
 							}
2316 2318
 							customs = append(customs, cus)
2317 2319
 
@@ -2339,7 +2341,8 @@ func (c *SZHisApiController) GetSettleInfo() {
2339 2341
 								DoctorCode:         doctor_code,
2340 2342
 								Total:              detItemFeeSumamt,
2341 2343
 								DoseCode:           "",
2342
-								Spec:               "次",
2344
+								Spec:               "支",
2345
+								Unit:               "支",
2343 2346
 							}
2344 2347
 							customs = append(customs, cus)
2345 2348
 
@@ -3094,7 +3097,8 @@ func (c *SZHisApiController) GetPreSettleInfo() {
3094 3097
 						DoctorCode:         doctor_code,
3095 3098
 						Total:              detItemFeeSumamt,
3096 3099
 						DoseCode:           dose_code,
3097
-						Spec:               subItem.BaseDrugLib.DrugSpec,
3100
+						Spec:               strconv.Itoa(int(subItem.BaseDrugLib.MinNumber)) + "*" + subItem.BaseDrugLib.MinUnit + ":" + strconv.FormatFloat(subItem.BaseDrugLib.Dose, 'E', -1, 64) + subItem.BaseDrugLib.DoseUnit,
3101
+						Unit:               subItem.PrescribingNumberUnit,
3098 3102
 					}
3099 3103
 					customs = append(customs, cus)
3100 3104
 				}
@@ -3128,6 +3132,7 @@ func (c *SZHisApiController) GetPreSettleInfo() {
3128 3132
 							Total:              detItemFeeSumamt,
3129 3133
 							DoseCode:           "",
3130 3134
 							Spec:               "次",
3135
+							Unit:               "次",
3131 3136
 						}
3132 3137
 						customs = append(customs, cus)
3133 3138
 
@@ -3156,7 +3161,8 @@ func (c *SZHisApiController) GetPreSettleInfo() {
3156 3161
 							DoctorCode:         doctor_code,
3157 3162
 							Total:              detItemFeeSumamt,
3158 3163
 							DoseCode:           "",
3159
-							Spec:               "次",
3164
+							Spec:               "支",
3165
+							Unit:               "支",
3160 3166
 						}
3161 3167
 						customs = append(customs, cus)
3162 3168
 
@@ -4340,6 +4346,15 @@ func (c *SZHisApiController) GetSettleAccounts() {
4340 4346
 	//verifyCode := "000000|2c9854287e7c3cbc34439ab8e5157816"
4341 4347
 	config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
4342 4348
 	if config.IsOpen == 1 { //对接了医保,走医保流程
4349
+		//temp_mz_number := miConfig.Code + year + month + day +
4350
+		//	fmt.Sprintf("%07v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(10000000))
4351
+		//tempVerifyCode, tempVersionCode := ReadCardGetCode("XX001" + "|" + temp_mz_number + "|" + miConfig.Code)
4352
+
4353
+		//yiliao_number, id_card_number, verifyCode, version_code, health_card_no, _, ret4 := ReadBasCardGetNumber("MZ002" + "|" + number + "|" + miConfig.Code + "|")
4354
+
4355
+		//yiliao_number = "%GALMAFXJGKUKZNKWAIUH?;07857319025346309758?"
4356
+
4357
+		//result001 := service.SzybXX001(opera_name, opera_code, miConfig.Code, yiliao_number, tempVerifyCode, temp_mz_number, tempVersionCode)
4343 4358
 
4344 4359
 		result := service.SzybJY001(doctor_name, doctor_code, miConfig.Code, order.OrgSetlNumber, order.MzNumber, verifyCode, version_code)
4345 4360
 		fmt.Println(result)
@@ -4385,6 +4400,8 @@ func (c *SZHisApiController) GetSettleAccounts() {
4385 4400
 				"yiliao_leibie":      yiliao_leibie,
4386 4401
 				"before_money":       res2.Transbody.Aae240,
4387 4402
 				"after_money":        order.AccountPrice,
4403
+				"dialysis_no":        patient.DialysisNo,
4404
+				"patient_info":       his.PatientInfo,
4388 4405
 			})
4389 4406
 		} else {
4390 4407
 			c.ServeSuccessJSON(map[string]interface{}{

+ 6 - 0
models/drug.go Zobrazit soubor

@@ -59,6 +59,12 @@ type BaseDrugLib struct {
59 59
 	IsMark                      int64   `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
60 60
 	HospApprFlag                int64   `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
61 61
 	LmtUsedFlag                 int64   `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
62
+
63
+	MinNumber int64   `gorm:"column:min_number" json:"min_number" form:"min_number"`
64
+	Dose      float64 `gorm:"column:dose" json:"dose" form:"dose"`
65
+	DoseUnit  string  `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
66
+	DrugDay   string  `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
67
+	MinPrice  float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
62 68
 	//MedicineInsurancePercentage []*MedicineInsurancePercentage `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
63 69
 }
64 70
 

+ 1 - 0
models/sz_his_models.go Zobrazit soubor

@@ -17,6 +17,7 @@ type CustomDetail struct {
17 17
 	DoseCode           string
18 18
 	Spec               string
19 19
 	CustomNumber       string
20
+	Unit               string
20 21
 }
21 22
 
22 23
 type DrugDetail struct {

+ 1 - 1
service/sz_his_service.go Zobrazit soubor

@@ -211,7 +211,7 @@ func SzybFY001(doctor string, doctor_code string, fixmedins_code string, datas [
211 211
 		feedetailInfo["akc225"] = item.Price
212 212
 		feedetailInfo["akc226"] = item.Count
213 213
 		feedetailInfo["akc264"] = item.Total
214
-		feedetailInfo["aka067"] = "元"
214
+		feedetailInfo["aka067"] = item.Unit
215 215
 		feedetailInfo["akc271"] = item.ChargeOrderDate
216 216
 		feedetailInfo["bkc320"] = drug_doctor_code
217 217