|
@@ -865,7 +865,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
865
|
865
|
chrg_bchno := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(record.PatientId, 10)
|
866
|
866
|
miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
867
|
867
|
patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, id, recordDateTime)
|
868
|
|
- department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
|
|
868
|
+ department, _ := service.GetDepartMentDetail(record.Departments)
|
869
|
869
|
strconv.FormatInt(record.PatientId, 10)
|
870
|
870
|
|
871
|
871
|
client := &http.Client{}
|
|
@@ -875,7 +875,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
875
|
875
|
data["org_name"] = miConfig.OrgName
|
876
|
876
|
data["doctor"] = roles.UserName
|
877
|
877
|
data["doctor_id"] = strconv.FormatInt(roles.AdminUserId, 10)
|
878
|
|
- data["dept"] = strconv.FormatInt(patientPrescription.Departments, 10)
|
|
878
|
+ data["dept"] = strconv.FormatInt(department.ID, 10)
|
879
|
879
|
data["fixmedins_code"] = miConfig.Code
|
880
|
880
|
if (department.ID == 0 && adminUser.CurrentOrgId == 9919) || (department.ID == 0 && adminUser.CurrentOrgId == 10106) {
|
881
|
881
|
data["dept_code"] = "15"
|