|
@@ -1779,7 +1779,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
1779
|
1779
|
insutype = "310"
|
1780
|
1780
|
}
|
1781
|
1781
|
|
1782
|
|
- insutype = "390"
|
|
1782
|
+ //insutype = "390"
|
1783
|
1783
|
|
1784
|
1784
|
//if count == 1 {
|
1785
|
1785
|
// c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterRepeatException)
|
|
@@ -2037,14 +2037,14 @@ func (c *HisApiController) GetUploadInfo() {
|
2037
|
2037
|
|
2038
|
2038
|
roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
2039
|
2039
|
fmt.Println(his_patient_id)
|
2040
|
|
- his, _ := service.GetHisPatientInfo(adminUser.CurrentOrgId, id, recordDateTime)
|
|
2040
|
+ his, _ := service.GetNewHisPatientInfo(adminUser.CurrentOrgId, his_patient_id, recordDateTime)
|
2041
|
2041
|
timestamp := time.Now().Unix()
|
2042
|
2042
|
tempTime := time.Unix(timestamp, 0)
|
2043
|
2043
|
timeFormat := tempTime.Format("20060102150405")
|
2044
|
2044
|
chrgBchno := rand.Intn(100000) + 10000
|
2045
|
2045
|
chrg_bchno := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(his.PatientId, 10)
|
2046
|
2046
|
miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
2047
|
|
- patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, id, recordDateTime)
|
|
2047
|
+ patientPrescription, _ := service.FindHisPatientPrescriptionInfo(adminUser.CurrentOrgId, his_patient_id, recordDateTime)
|
2048
|
2048
|
department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
|
2049
|
2049
|
strconv.FormatInt(his.PatientId, 10)
|
2050
|
2050
|
|
|
@@ -2261,7 +2261,7 @@ func (c *HisApiController) GetUploadInfo() {
|
2261
|
2261
|
insutype = "310"
|
2262
|
2262
|
}
|
2263
|
2263
|
|
2264
|
|
- insutype = "390"
|
|
2264
|
+ //insutype = "390"
|
2265
|
2265
|
if his.IdCardType == 1 {
|
2266
|
2266
|
cert_no = his.MedicalInsuranceNumber
|
2267
|
2267
|
|