|
@@ -2074,14 +2074,14 @@ func (c *HisApiController) GetUploadInfo() {
|
2074
|
2074
|
|
2075
|
2075
|
roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
2076
|
2076
|
fmt.Println(his_patient_id)
|
2077
|
|
- his, _ := service.GetVMHisPatientInfo(adminUser.CurrentOrgId, id, recordDateTime)
|
|
2077
|
+ his, _ := service.GetNewHisPatientInfo(adminUser.CurrentOrgId, his_patient_id, recordDateTime)
|
2078
|
2078
|
timestamp := time.Now().Unix()
|
2079
|
2079
|
tempTime := time.Unix(timestamp, 0)
|
2080
|
2080
|
timeFormat := tempTime.Format("20060102150405")
|
2081
|
2081
|
chrgBchno := rand.Intn(100000) + 10000
|
2082
|
2082
|
chrg_bchno := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(his.PatientId, 10)
|
2083
|
2083
|
miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
2084
|
|
- patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, id, recordDateTime)
|
|
2084
|
+ patientPrescription, _ := service.FindHisPatientPrescriptionInfo(adminUser.CurrentOrgId, his_patient_id, recordDateTime)
|
2085
|
2085
|
department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
|
2086
|
2086
|
strconv.FormatInt(his.PatientId, 10)
|
2087
|
2087
|
|
|
@@ -2232,7 +2232,7 @@ func (c *HisApiController) GetUploadInfo() {
|
2232
|
2232
|
|
2233
|
2233
|
}
|
2234
|
2234
|
service.UpDatePrescriptionNumber(adminUser.CurrentOrgId, ids, chrg_bchno)
|
2235
|
|
- service.UpDatePrescriptionInfoNumber(adminUser.CurrentOrgId, patientPrescription.PatientId, chrg_bchno, recordDateTime)
|
|
2235
|
+ service.UpDateHisPrescriptionInfoNumber(adminUser.CurrentOrgId, his_patient_id, chrg_bchno, recordDateTime)
|
2236
|
2236
|
|
2237
|
2237
|
var total float64
|
2238
|
2238
|
for _, item := range prescriptions {
|