Browse Source

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

csx 4 years ago
parent
commit
88aca17b6e
1 changed files with 12 additions and 2 deletions
  1. 12 2
      controllers/sz/sz_his_api_controller.go

+ 12 - 2
controllers/sz/sz_his_api_controller.go View File

869
 						DoctorCode:         doctor_code,
869
 						DoctorCode:         doctor_code,
870
 						Total:              detItemFeeSumamt,
870
 						Total:              detItemFeeSumamt,
871
 						DoseCode:           "",
871
 						DoseCode:           "",
872
-						Spec:               "",
872
+						Spec:               "",
873
 					}
873
 					}
874
 					customs = append(customs, cus)
874
 					customs = append(customs, cus)
875
 				}
875
 				}
1523
 	var order models.HisOrder
1523
 	var order models.HisOrder
1524
 	order, _ = service.GetHisOrderByID(order_id)
1524
 	order, _ = service.GetHisOrderByID(order_id)
1525
 
1525
 
1526
+	patient, _ := service.GetPatientByIDTwo(adminUser.CurrentOrgId, patient_id)
1527
+
1528
+	patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, patient_id, recordDateTime)
1529
+	adminRole_two, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, patientPrescription.DoctorId)
1530
+
1526
 	if order.ID == 0 {
1531
 	if order.ID == 0 {
1527
 		order, _ = service.GetHisOrderThree(recordDateTime, patient_id, adminUser.CurrentOrgId)
1532
 		order, _ = service.GetHisOrderThree(recordDateTime, patient_id, adminUser.CurrentOrgId)
1528
 
1533
 
1571
 		}
1576
 		}
1572
 		if res.Transreturncode == "00000000" {
1577
 		if res.Transreturncode == "00000000" {
1573
 			c.ServeSuccessJSON(map[string]interface{}{
1578
 			c.ServeSuccessJSON(map[string]interface{}{
1574
-				"result": res,
1579
+				"result":       res,
1580
+				"org_name":     miConfig.OrgName,
1581
+				"org_code":     miConfig.Code,
1582
+				"patient_name": patient.Name,
1583
+				"doctor_code":  adminRole_two.DoctorCode,
1584
+				"doctor_name":  doctor_name,
1575
 			})
1585
 			})
1576
 		} else {
1586
 		} else {
1577
 			c.ServeSuccessJSON(map[string]interface{}{
1587
 			c.ServeSuccessJSON(map[string]interface{}{