소스 검색

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

csx 3 년 전
부모
커밋
dc09c3a0d9
4개의 변경된 파일29개의 추가작업 그리고 5개의 파일을 삭제
  1. 21 4
      controllers/sz/sz_his_api_controller.go
  2. 6 0
      models/drug.go
  3. 1 0
      models/sz_his_models.go
  4. 1 1
      service/sz_his_service.go

+ 21 - 4
controllers/sz/sz_his_api_controller.go 파일 보기

2278
 							DoctorCode:         doctor_code,
2278
 							DoctorCode:         doctor_code,
2279
 							Total:              detItemFeeSumamt,
2279
 							Total:              detItemFeeSumamt,
2280
 							DoseCode:           dose_code,
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
 						customs = append(customs, cus)
2284
 						customs = append(customs, cus)
2284
 					}
2285
 					}
2312
 								Total:              detItemFeeSumamt,
2313
 								Total:              detItemFeeSumamt,
2313
 								DoseCode:           "",
2314
 								DoseCode:           "",
2314
 								Spec:               "次",
2315
 								Spec:               "次",
2316
+								Unit:               "次",
2315
 							}
2317
 							}
2316
 							customs = append(customs, cus)
2318
 							customs = append(customs, cus)
2317
 
2319
 
2339
 								DoctorCode:         doctor_code,
2341
 								DoctorCode:         doctor_code,
2340
 								Total:              detItemFeeSumamt,
2342
 								Total:              detItemFeeSumamt,
2341
 								DoseCode:           "",
2343
 								DoseCode:           "",
2342
-								Spec:               "次",
2344
+								Spec:               "支",
2345
+								Unit:               "支",
2343
 							}
2346
 							}
2344
 							customs = append(customs, cus)
2347
 							customs = append(customs, cus)
2345
 
2348
 
3094
 						DoctorCode:         doctor_code,
3097
 						DoctorCode:         doctor_code,
3095
 						Total:              detItemFeeSumamt,
3098
 						Total:              detItemFeeSumamt,
3096
 						DoseCode:           dose_code,
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
 					customs = append(customs, cus)
3103
 					customs = append(customs, cus)
3100
 				}
3104
 				}
3128
 							Total:              detItemFeeSumamt,
3132
 							Total:              detItemFeeSumamt,
3129
 							DoseCode:           "",
3133
 							DoseCode:           "",
3130
 							Spec:               "次",
3134
 							Spec:               "次",
3135
+							Unit:               "次",
3131
 						}
3136
 						}
3132
 						customs = append(customs, cus)
3137
 						customs = append(customs, cus)
3133
 
3138
 
3156
 							DoctorCode:         doctor_code,
3161
 							DoctorCode:         doctor_code,
3157
 							Total:              detItemFeeSumamt,
3162
 							Total:              detItemFeeSumamt,
3158
 							DoseCode:           "",
3163
 							DoseCode:           "",
3159
-							Spec:               "次",
3164
+							Spec:               "支",
3165
+							Unit:               "支",
3160
 						}
3166
 						}
3161
 						customs = append(customs, cus)
3167
 						customs = append(customs, cus)
3162
 
3168
 
4340
 	//verifyCode := "000000|2c9854287e7c3cbc34439ab8e5157816"
4346
 	//verifyCode := "000000|2c9854287e7c3cbc34439ab8e5157816"
4341
 	config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
4347
 	config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
4342
 	if config.IsOpen == 1 { //对接了医保,走医保流程
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
 		result := service.SzybJY001(doctor_name, doctor_code, miConfig.Code, order.OrgSetlNumber, order.MzNumber, verifyCode, version_code)
4359
 		result := service.SzybJY001(doctor_name, doctor_code, miConfig.Code, order.OrgSetlNumber, order.MzNumber, verifyCode, version_code)
4345
 		fmt.Println(result)
4360
 		fmt.Println(result)
4385
 				"yiliao_leibie":      yiliao_leibie,
4400
 				"yiliao_leibie":      yiliao_leibie,
4386
 				"before_money":       res2.Transbody.Aae240,
4401
 				"before_money":       res2.Transbody.Aae240,
4387
 				"after_money":        order.AccountPrice,
4402
 				"after_money":        order.AccountPrice,
4403
+				"dialysis_no":        patient.DialysisNo,
4404
+				"patient_info":       his.PatientInfo,
4388
 			})
4405
 			})
4389
 		} else {
4406
 		} else {
4390
 			c.ServeSuccessJSON(map[string]interface{}{
4407
 			c.ServeSuccessJSON(map[string]interface{}{

+ 6 - 0
models/drug.go 파일 보기

59
 	IsMark                      int64   `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
59
 	IsMark                      int64   `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
60
 	HospApprFlag                int64   `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
60
 	HospApprFlag                int64   `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
61
 	LmtUsedFlag                 int64   `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
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
 	//MedicineInsurancePercentage []*MedicineInsurancePercentage `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
68
 	//MedicineInsurancePercentage []*MedicineInsurancePercentage `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
63
 }
69
 }
64
 
70
 

+ 1 - 0
models/sz_his_models.go 파일 보기

17
 	DoseCode           string
17
 	DoseCode           string
18
 	Spec               string
18
 	Spec               string
19
 	CustomNumber       string
19
 	CustomNumber       string
20
+	Unit               string
20
 }
21
 }
21
 
22
 
22
 type DrugDetail struct {
23
 type DrugDetail struct {

+ 1 - 1
service/sz_his_service.go 파일 보기

211
 		feedetailInfo["akc225"] = item.Price
211
 		feedetailInfo["akc225"] = item.Price
212
 		feedetailInfo["akc226"] = item.Count
212
 		feedetailInfo["akc226"] = item.Count
213
 		feedetailInfo["akc264"] = item.Total
213
 		feedetailInfo["akc264"] = item.Total
214
-		feedetailInfo["aka067"] = "元"
214
+		feedetailInfo["aka067"] = item.Unit
215
 		feedetailInfo["akc271"] = item.ChargeOrderDate
215
 		feedetailInfo["akc271"] = item.ChargeOrderDate
216
 		feedetailInfo["bkc320"] = drug_doctor_code
216
 		feedetailInfo["bkc320"] = drug_doctor_code
217
 
217