|
|
|
|
2489
|
|
2489
|
|
2490
|
total, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", total), 64)
|
2490
|
total, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", total), 64)
|
2491
|
|
2491
|
|
2492
|
- yiliao_number, id_card_number, verifyCode, version_code, health_card_no, _, ret4 := ReadBasCardGetNumber("FY005" + "|" + number + "|" + miConfig.Code + "|")
|
|
|
|
|
2492
|
+ tempVerifyCode, tempVersionCode := ReadCardGetCode("FY005" + "|" + number + "|" + miConfig.Code)
|
2493
|
|
2493
|
|
|
|
2494
|
+ //yiliao_number, id_card_number, _, _, health_card_no, _, ret4 := ReadBasCardGetNumber("FY005" + "|" + number + "|" + miConfig.Code + "|")
|
|
|
2495
|
+ ret4 := 0
|
|
|
2496
|
+ yiliao_number := "%GALMAFXJGKUKZNKWAIUH?;07857319025346309758?"
|
2494
|
if ret4 == 0 {
|
2497
|
if ret4 == 0 {
|
2495
|
//根据业务的人员信息跟设备读社保卡获取的信息进行匹配,判断是否为同一个人,相同则进行挂号操作,不同则报错
|
2498
|
//根据业务的人员信息跟设备读社保卡获取的信息进行匹配,判断是否为同一个人,相同则进行挂号操作,不同则报错
|
2496
|
- tempPatient, _ := service.GetPatientByNumber(id_card_number, adminUser.CurrentOrgId)
|
|
|
|
|
2499
|
+ tempPatient, _ := service.GetPatientByNumber(his.IdCardNo, adminUser.CurrentOrgId)
|
2497
|
if tempPatient.ID == patient_id {
|
2500
|
if tempPatient.ID == patient_id {
|
2498
|
- result_three := service.SzybFY005(doctor_name, doctor_code, miConfig.Code, total, yiliao_number, verifyCode, number, mz_number, version_code, drug_doctor_code, drug_doctor_name, his.MedicalTreatmentType, sick.CountryCode)
|
|
|
|
|
2501
|
+ result_three := service.SzybFY005(doctor_name, doctor_code, miConfig.Code, total, yiliao_number, tempVerifyCode, number, mz_number, tempVersionCode, drug_doctor_code, drug_doctor_name, his.MedicalTreatmentType, sick.CountryCode)
|
2499
|
var dat map[string]interface{}
|
2502
|
var dat map[string]interface{}
|
2500
|
if err := json.Unmarshal([]byte(result_three), &dat); err == nil {
|
2503
|
if err := json.Unmarshal([]byte(result_three), &dat); err == nil {
|
2501
|
fmt.Println(dat)
|
2504
|
fmt.Println(dat)
|
|
|
|
|
2515
|
order.PayWay = pay_way
|
2518
|
order.PayWay = pay_way
|
2516
|
order.PayPrice = pay_price
|
2519
|
order.PayPrice = pay_price
|
2517
|
order.PayCardNo = pay_card_no
|
2520
|
order.PayCardNo = pay_card_no
|
2518
|
- order.PsnNo = health_card_no
|
|
|
|
|
2521
|
+ order.PsnNo = ""
|
2519
|
order.DiscountPrice = discount_price
|
2522
|
order.DiscountPrice = discount_price
|
2520
|
order.PreferentialPrice = preferential_price
|
2523
|
order.PreferentialPrice = preferential_price
|
2521
|
order.RealityPrice = reality_price
|
2524
|
order.RealityPrice = reality_price
|