Browse Source

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

csx 4 years ago
parent
commit
4be358fff9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      controllers/sg/his_api_controller.go

+ 3 - 3
controllers/sg/his_api_controller.go View File

@@ -1,5 +1,6 @@
1 1
 package sg
2 2
 
3
+import "C"
3 4
 import (
4 5
 	"archive/zip"
5 6
 	"bytes"
@@ -876,10 +877,8 @@ func (c *HisApiController) GetRegisterInfo() {
876 877
 	}
877 878
 
878 879
 	//adminRole, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, adminInfo.AdminUser.Id)
879
-
880 880
 	diagnosisConfig, _ := service.FindDiagnoseById(diagnosis_id)
881 881
 	sickConfig, _ := service.FindSickById(sick_type)
882
-
883 882
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminInfo.CurrentOrgId)
884 883
 	if patient.ID == 0 {
885 884
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodePatientNoExist)
@@ -4070,7 +4069,7 @@ func (c *HisApiController) PsnPutNCDSOnRecord() {
4070 4069
 				UserOrgId:     adminUser.CurrentOrgId,
4071 4070
 				PatientId:     patient.ID,
4072 4071
 				PsnNo:         psn_no,
4073
-				DoctorId:      doctor.ID,
4072
+				DoctorId:      doctor.AdminUserId,
4074 4073
 				DepartmentId:  department_id,
4075 4074
 				SickType:      sick_id,
4076 4075
 				Insutype:      insutype,
@@ -4084,6 +4083,7 @@ func (c *HisApiController) PsnPutNCDSOnRecord() {
4084 4083
 			c.ServeSuccessJSON(map[string]interface{}{
4085 4084
 				"failed_code": 0,
4086 4085
 				"msg":         "备案成功",
4086
+				"result":      psnResult,
4087 4087
 			})
4088 4088
 
4089 4089
 		} else {