|
@@ -936,7 +936,7 @@ func (this *MachineApiController) GetPatientInfo() {
|
936
|
936
|
//fmt.Println("timeStr:", timeStr)
|
937
|
937
|
timeStringToTime, _ := utils.ParseTimeStringToTime(timeLayout, timeStr+" 00:00:00")
|
938
|
938
|
timenow := timeStringToTime.Unix()
|
939
|
|
- fmt.Println("timenow是什么", timenow)
|
|
939
|
+ //fmt.Println("timenow是什么", timenow)
|
940
|
940
|
//fmt.Println("时间搓", timeStringToTime.Unix())
|
941
|
941
|
//获取当天床位号排班的所有病人
|
942
|
942
|
schedules, err := service.GetPatientInfo(addmacher.BedId, timenow, orgid)
|
|
@@ -1165,35 +1165,35 @@ func (this *MachineApiController) SaveInformation() {
|
1165
|
1165
|
Date: startdate,
|
1166
|
1166
|
Class: classtype,
|
1167
|
1167
|
// Zone: zone,
|
1168
|
|
- BedNumber: bednumber,
|
1169
|
|
- PatientId: patient_time,
|
1170
|
|
- Contagion: contagion,
|
1171
|
|
- DialysisMode: dialysis_mode,
|
1172
|
|
- StartTime: startDate.Unix(),
|
1173
|
|
- EndTime: endDate.Unix(),
|
1174
|
|
- DialysisHour: dialysis_time,
|
1175
|
|
- Hyperfiltratio: hyperfiletration,
|
1176
|
|
- WeightLoss: weight_loss,
|
1177
|
|
- WarningValue: warining_value,
|
1178
|
|
- UserTotal: user_total,
|
1179
|
|
- Move: run,
|
1180
|
|
- FailureStage: failure_stage,
|
1181
|
|
- FaultDescription: falult_desciription,
|
1182
|
|
- CodeInformation: code_information,
|
1183
|
|
- DisinfectantType: disinfectant_type,
|
1184
|
|
- DisinfectType: disinfect_type,
|
1185
|
|
- Disinfection: disinfection,
|
1186
|
|
- MachineRun: machine_run,
|
1187
|
|
- FluidPath: fluid_path,
|
1188
|
|
- Disinfectant: disinfectant,
|
1189
|
|
- DisinfectionStatus: disinfection_status,
|
1190
|
|
- DisinfectionResidue: disinfection_residue,
|
1191
|
|
- LongTime: longtime,
|
1192
|
|
- DisinfecStartime: start_Date.Unix(),
|
1193
|
|
- DisinfecEndtime: end_Date.Unix(),
|
1194
|
|
- DialysisChecked: dialysis_checked,
|
1195
|
|
- DialysisName: dialysis_name,
|
1196
|
|
- Norms: norms,
|
|
1168
|
+ BedNumber: bednumber,
|
|
1169
|
+ PatientId: patient_time,
|
|
1170
|
+ Contagion: contagion,
|
|
1171
|
+ DialysisMode: dialysis_mode,
|
|
1172
|
+ StartTime: startDate.Unix(),
|
|
1173
|
+ EndTime: endDate.Unix(),
|
|
1174
|
+ DialysisHour: dialysis_time,
|
|
1175
|
+ Hyperfiltratio: hyperfiletration,
|
|
1176
|
+ WeightLoss: weight_loss,
|
|
1177
|
+ WarningValue: warining_value,
|
|
1178
|
+ UserTotal: user_total,
|
|
1179
|
+ Move: run,
|
|
1180
|
+ FailureStage: failure_stage,
|
|
1181
|
+ FaultDescription: falult_desciription,
|
|
1182
|
+ CodeInformation: code_information,
|
|
1183
|
+ DisinfectantType: disinfectant_type,
|
|
1184
|
+ DisinfectType: disinfect_type,
|
|
1185
|
+ Disinfection: disinfection,
|
|
1186
|
+ MachineRun: machine_run,
|
|
1187
|
+ FluidPath: fluid_path,
|
|
1188
|
+ Disinfectant: disinfectant,
|
|
1189
|
+ DisinfectionStatus: disinfection_status,
|
|
1190
|
+ DisinfectionResidue: disinfection_residue,
|
|
1191
|
+ LongTime: longtime,
|
|
1192
|
+ DisinfecStartime: start_Date.Unix(),
|
|
1193
|
+ DisinfecEndtime: end_Date.Unix(),
|
|
1194
|
+ DialysisChecked: dialysis_checked,
|
|
1195
|
+ DialysisName: dialysis_name,
|
|
1196
|
+ Norms: norms,
|
1197
|
1197
|
DialysisConcentration: dialysis_concentration,
|
1198
|
1198
|
GermChecked: germ_checked,
|
1199
|
1199
|
GermName: germ_name,
|
|
@@ -1214,38 +1214,38 @@ func (this *MachineApiController) SaveInformation() {
|
1214
|
1214
|
})
|
1215
|
1215
|
} else if errinfor == nil {
|
1216
|
1216
|
infor := models.DeviceInformation{
|
1217
|
|
- Date: startdate,
|
1218
|
|
- Class: classtype,
|
1219
|
|
- Zone: zone,
|
1220
|
|
- BedNumber: bednumber,
|
1221
|
|
- PatientId: patient_time,
|
1222
|
|
- Contagion: contagion,
|
1223
|
|
- DialysisMode: dialysis_mode,
|
1224
|
|
- StartTime: startDate.Unix(),
|
1225
|
|
- EndTime: endDate.Unix(),
|
1226
|
|
- DialysisHour: dialysis_time,
|
1227
|
|
- Hyperfiltratio: hyperfiletration,
|
1228
|
|
- WeightLoss: weight_loss,
|
1229
|
|
- WarningValue: warining_value,
|
1230
|
|
- UserTotal: user_total,
|
1231
|
|
- Move: run,
|
1232
|
|
- FailureStage: failure_stage,
|
1233
|
|
- FaultDescription: falult_desciription,
|
1234
|
|
- CodeInformation: code_information,
|
1235
|
|
- DisinfectantType: disinfectant_type,
|
1236
|
|
- DisinfectType: disinfect_type,
|
1237
|
|
- Disinfection: disinfection,
|
1238
|
|
- MachineRun: machine_run,
|
1239
|
|
- FluidPath: fluid_path,
|
1240
|
|
- Disinfectant: disinfectant,
|
1241
|
|
- DisinfectionStatus: disinfection_status,
|
1242
|
|
- DisinfectionResidue: disinfection_residue,
|
1243
|
|
- LongTime: longtime,
|
1244
|
|
- DisinfecStartime: start_Date.Unix(),
|
1245
|
|
- DisinfecEndtime: end_Date.Unix(),
|
1246
|
|
- DialysisChecked: dialysis_checked,
|
1247
|
|
- DialysisName: dialysis_name,
|
1248
|
|
- Norms: norms,
|
|
1217
|
+ Date: startdate,
|
|
1218
|
+ Class: classtype,
|
|
1219
|
+ Zone: zone,
|
|
1220
|
+ BedNumber: bednumber,
|
|
1221
|
+ PatientId: patient_time,
|
|
1222
|
+ Contagion: contagion,
|
|
1223
|
+ DialysisMode: dialysis_mode,
|
|
1224
|
+ StartTime: startDate.Unix(),
|
|
1225
|
+ EndTime: endDate.Unix(),
|
|
1226
|
+ DialysisHour: dialysis_time,
|
|
1227
|
+ Hyperfiltratio: hyperfiletration,
|
|
1228
|
+ WeightLoss: weight_loss,
|
|
1229
|
+ WarningValue: warining_value,
|
|
1230
|
+ UserTotal: user_total,
|
|
1231
|
+ Move: run,
|
|
1232
|
+ FailureStage: failure_stage,
|
|
1233
|
+ FaultDescription: falult_desciription,
|
|
1234
|
+ CodeInformation: code_information,
|
|
1235
|
+ DisinfectantType: disinfectant_type,
|
|
1236
|
+ DisinfectType: disinfect_type,
|
|
1237
|
+ Disinfection: disinfection,
|
|
1238
|
+ MachineRun: machine_run,
|
|
1239
|
+ FluidPath: fluid_path,
|
|
1240
|
+ Disinfectant: disinfectant,
|
|
1241
|
+ DisinfectionStatus: disinfection_status,
|
|
1242
|
+ DisinfectionResidue: disinfection_residue,
|
|
1243
|
+ LongTime: longtime,
|
|
1244
|
+ DisinfecStartime: start_Date.Unix(),
|
|
1245
|
+ DisinfecEndtime: end_Date.Unix(),
|
|
1246
|
+ DialysisChecked: dialysis_checked,
|
|
1247
|
+ DialysisName: dialysis_name,
|
|
1248
|
+ Norms: norms,
|
1249
|
1249
|
DialysisConcentration: dialysis_concentration,
|
1250
|
1250
|
GermChecked: germ_checked,
|
1251
|
1251
|
GermName: germ_name,
|
|
@@ -2404,37 +2404,37 @@ func (this *MachineApiController) UpdateForm() {
|
2404
|
2404
|
err = service.UpdatedZoneID(bednumber, orgid, &deviceNumber)
|
2405
|
2405
|
fmt.Println("更新区号失败", err)
|
2406
|
2406
|
information := models.DeviceInformation{
|
2407
|
|
- Date: startdate,
|
2408
|
|
- Class: classtype,
|
2409
|
|
- Zone: zone,
|
2410
|
|
- BedNumber: bednumber,
|
2411
|
|
- Contagion: contagion,
|
2412
|
|
- DialysisMode: dialysis_mode,
|
2413
|
|
- StartTime: startDate.Unix(),
|
2414
|
|
- EndTime: endDate.Unix(),
|
2415
|
|
- DialysisHour: dialysis_time,
|
2416
|
|
- Hyperfiltratio: hyperfiletration,
|
2417
|
|
- WeightLoss: weight_loss,
|
2418
|
|
- WarningValue: warining_value,
|
2419
|
|
- UserTotal: user_total,
|
2420
|
|
- Move: run,
|
2421
|
|
- FailureStage: failure_stage,
|
2422
|
|
- FaultDescription: falult_desciription,
|
2423
|
|
- CodeInformation: code_information,
|
2424
|
|
- DisinfectantType: disinfectant_type,
|
2425
|
|
- DisinfectType: disinfect_type,
|
2426
|
|
- Disinfection: disinfection,
|
2427
|
|
- MachineRun: machine_run,
|
2428
|
|
- FluidPath: fluid_path,
|
2429
|
|
- Disinfectant: disinfectant,
|
2430
|
|
- DisinfectionStatus: disinfection_status,
|
2431
|
|
- DisinfectionResidue: disinfection_residue,
|
2432
|
|
- LongTime: longtime,
|
2433
|
|
- DisinfecStartime: distartime,
|
2434
|
|
- DisinfecEndtime: diendtime,
|
2435
|
|
- DialysisChecked: dialysis_checked,
|
2436
|
|
- DialysisName: dialysis_name,
|
2437
|
|
- Norms: norms,
|
|
2407
|
+ Date: startdate,
|
|
2408
|
+ Class: classtype,
|
|
2409
|
+ Zone: zone,
|
|
2410
|
+ BedNumber: bednumber,
|
|
2411
|
+ Contagion: contagion,
|
|
2412
|
+ DialysisMode: dialysis_mode,
|
|
2413
|
+ StartTime: startDate.Unix(),
|
|
2414
|
+ EndTime: endDate.Unix(),
|
|
2415
|
+ DialysisHour: dialysis_time,
|
|
2416
|
+ Hyperfiltratio: hyperfiletration,
|
|
2417
|
+ WeightLoss: weight_loss,
|
|
2418
|
+ WarningValue: warining_value,
|
|
2419
|
+ UserTotal: user_total,
|
|
2420
|
+ Move: run,
|
|
2421
|
+ FailureStage: failure_stage,
|
|
2422
|
+ FaultDescription: falult_desciription,
|
|
2423
|
+ CodeInformation: code_information,
|
|
2424
|
+ DisinfectantType: disinfectant_type,
|
|
2425
|
+ DisinfectType: disinfect_type,
|
|
2426
|
+ Disinfection: disinfection,
|
|
2427
|
+ MachineRun: machine_run,
|
|
2428
|
+ FluidPath: fluid_path,
|
|
2429
|
+ Disinfectant: disinfectant,
|
|
2430
|
+ DisinfectionStatus: disinfection_status,
|
|
2431
|
+ DisinfectionResidue: disinfection_residue,
|
|
2432
|
+ LongTime: longtime,
|
|
2433
|
+ DisinfecStartime: distartime,
|
|
2434
|
+ DisinfecEndtime: diendtime,
|
|
2435
|
+ DialysisChecked: dialysis_checked,
|
|
2436
|
+ DialysisName: dialysis_name,
|
|
2437
|
+ Norms: norms,
|
2438
|
2438
|
DialysisConcentration: dialysis_concentration,
|
2439
|
2439
|
GermChecked: germ_checked,
|
2440
|
2440
|
GermName: germ_name,
|