|
@@ -1041,9 +1041,8 @@ func (this *HisProjectApiController) GetDoctorAdvicePrint() {
|
1041
|
1041
|
adminUserInfo := this.GetAdminUserInfo()
|
1042
|
1042
|
advicePrint, err := service.GetDoctorAdvicePrint(patient_id, recordDateTime, idStrs, adminUserInfo.CurrentOrgId)
|
1043
|
1043
|
projectlist, err := service.GetAllProjectList(adminUserInfo.CurrentOrgId)
|
1044
|
|
- //doctorPorject, err := service.GetDoctorProjectItem(patient_id, recordDateTime)
|
1045
|
|
- //patient, err := service.GetBloodPatientByPatient(patient_id)
|
1046
|
|
- //prescriptionInfo, err := service.GetPrscriptionInfo(patient_id, recordDateTime)
|
|
1044
|
+ //prescriptionInfo, _ := service.GetPrscriptionInfo(patient_id, recordDateTime)
|
|
1045
|
+ hisPatient, _ := service.GetHisPatientById(patient_id)
|
1047
|
1046
|
if err != nil {
|
1048
|
1047
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeUpdateConfig)
|
1049
|
1048
|
return
|
|
@@ -1051,9 +1050,7 @@ func (this *HisProjectApiController) GetDoctorAdvicePrint() {
|
1051
|
1050
|
this.ServeSuccessJSON(map[string]interface{}{
|
1052
|
1051
|
"advicePrint": advicePrint,
|
1053
|
1052
|
"projectlist": projectlist,
|
1054
|
|
- //"patient": patient,
|
1055
|
|
- //"doctorPorject": doctorPorject,
|
1056
|
|
- //"prescriptionInfo": prescriptionInfo,
|
|
1053
|
+ "hisPatient": hisPatient,
|
1057
|
1054
|
})
|
1058
|
1055
|
}
|
1059
|
1056
|
|
|
@@ -1324,6 +1321,7 @@ func (this *HisProjectApiController) GetChargePrint() {
|
1324
|
1321
|
chargePrint, err := service.GetChargePrint(recordDateTime, patient_id, adminUserInfo.CurrentOrgId)
|
1325
|
1322
|
prescription, err := service.GetHisPrescriptionNight(adminUserInfo.CurrentOrgId, patient_id, recordDateTime, prescription_id)
|
1326
|
1323
|
patient, err := service.GetPatientByID(adminUserInfo.CurrentOrgId, patient_id)
|
|
1324
|
+ hisPatient, err := service.GetHisPatientById(patient_id)
|
1327
|
1325
|
if err != nil {
|
1328
|
1326
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeUpdateConfig)
|
1329
|
1327
|
return
|
|
@@ -1332,6 +1330,7 @@ func (this *HisProjectApiController) GetChargePrint() {
|
1332
|
1330
|
"list": chargePrint,
|
1333
|
1331
|
"prescription": prescription,
|
1334
|
1332
|
"patient": patient,
|
|
1333
|
+ "hisPatient": hisPatient,
|
1335
|
1334
|
})
|
1336
|
1335
|
}
|
1337
|
1336
|
|