|
@@ -205,16 +205,35 @@ func (c *HisApiController) GetMonthHisPatient() {
|
205
|
205
|
var patients []service.NewTempPatients
|
206
|
206
|
var patients_two []service.NewTempPatients
|
207
|
207
|
|
208
|
|
- for _, item := range tempPatients {
|
209
|
|
- //过滤掉没挂号的和没开处方的
|
210
|
|
- if len(item.HisPatient) > 0 && len(item.HisPrescription) > 0 {
|
211
|
|
- patients = append(patients, item)
|
|
208
|
+ if c.GetAdminUserInfo().CurrentOrgId == 10206 {
|
|
209
|
+
|
|
210
|
+ for _, item := range tempPatients {
|
|
211
|
+ //过滤掉没挂号的和没开处方的
|
|
212
|
+ if len(item.HisPrescription) > 0 {
|
|
213
|
+ patients = append(patients, item)
|
|
214
|
+ patients_two = append(patients_two, item)
|
|
215
|
+
|
|
216
|
+ }
|
|
217
|
+ ////过滤掉没挂号的
|
|
218
|
+ //if len(item.HisPatient) > 0 {
|
|
219
|
+ //}
|
|
220
|
+ }
|
|
221
|
+
|
|
222
|
+ } else {
|
|
223
|
+
|
|
224
|
+ for _, item := range tempPatients {
|
|
225
|
+ //过滤掉没挂号的和没开处方的
|
|
226
|
+ if len(item.HisPatient) > 0 && len(item.HisPrescription) > 0 {
|
|
227
|
+ patients = append(patients, item)
|
|
228
|
+ }
|
|
229
|
+ ////过滤掉没挂号的
|
|
230
|
+ //if len(item.HisPatient) > 0 {
|
|
231
|
+ // patients_two = append(patients_two, item)
|
|
232
|
+ //}
|
212
|
233
|
}
|
213
|
|
- ////过滤掉没挂号的
|
214
|
|
- //if len(item.HisPatient) > 0 {
|
215
|
|
- // patients_two = append(patients_two, item)
|
216
|
|
- //}
|
|
234
|
+
|
217
|
235
|
}
|
|
236
|
+
|
218
|
237
|
c.ServeSuccessJSON(map[string]interface{}{
|
219
|
238
|
"list": patients,
|
220
|
239
|
"list_two": patients_two,
|
|
@@ -7863,24 +7882,41 @@ func (c *HisApiController) GetHisChargePatientList() {
|
7863
|
7882
|
adminInfo := c.GetAdminUserInfo()
|
7864
|
7883
|
var tempPatients []*service.NewTempPatients
|
7865
|
7884
|
//tempPatients, _ := service.GetAllChargeHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime)
|
7866
|
|
- if order_status != 2 {
|
7867
|
|
- tempPatients, _ = service.GetNewAllUnChargeHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
|
|
7885
|
+ if c.GetAdminUserInfo().CurrentOrgId == 10206 { //针对用了坐标系统的机构
|
|
7886
|
+ if order_status != 2 {
|
|
7887
|
+ tempPatients, _ = service.GetNewAllUnChargeHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
|
|
7888
|
+ } else {
|
|
7889
|
+ tempPatients, _ = service.GetNewAllChargeHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
|
|
7890
|
+ }
|
|
7891
|
+
|
7868
|
7892
|
} else {
|
7869
|
|
- tempPatients, _ = service.GetNewAllChargeHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
|
|
7893
|
+
|
|
7894
|
+ if order_status != 2 {
|
|
7895
|
+ tempPatients, _ = service.GetNewAllUnChargeHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
|
|
7896
|
+ } else {
|
|
7897
|
+ tempPatients, _ = service.GetNewAllChargeHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
|
|
7898
|
+ }
|
|
7899
|
+
|
7870
|
7900
|
}
|
7871
|
7901
|
|
7872
|
7902
|
var patients []*service.NewTempPatients
|
7873
|
7903
|
var patients_two []*service.NewTempPatients
|
7874
|
7904
|
|
7875
|
7905
|
for _, item := range tempPatients {
|
7876
|
|
- //过滤掉没挂号的和没开处方的
|
7877
|
|
- if len(item.HisPatient) > 0 || len(item.HisPrescription) > 0 {
|
7878
|
|
- patients = append(patients, item)
|
7879
|
|
- }
|
|
7906
|
+ if c.GetAdminUserInfo().CurrentOrgId != 10206 {
|
|
7907
|
+ //过滤掉没挂号的和没开处方的
|
|
7908
|
+ if len(item.HisPatient) > 0 || len(item.HisPrescription) > 0 {
|
|
7909
|
+ patients = append(patients, item)
|
|
7910
|
+ }
|
|
7911
|
+ //过滤掉没挂号的
|
|
7912
|
+ if len(item.HisPatient) > 0 {
|
|
7913
|
+ patients_two = append(patients_two, item)
|
|
7914
|
+ }
|
7880
|
7915
|
|
7881
|
|
- //过滤掉没挂号的
|
7882
|
|
- if len(item.HisPatient) > 0 {
|
7883
|
|
- patients_two = append(patients_two, item)
|
|
7916
|
+ } else {
|
|
7917
|
+ if len(item.HisPrescription) > 0 {
|
|
7918
|
+ patients = append(patients, item)
|
|
7919
|
+ }
|
7884
|
7920
|
}
|
7885
|
7921
|
}
|
7886
|
7922
|
c.ServeSuccessJSON(map[string]interface{}{
|