|
@@ -252,29 +252,29 @@ func (c *PatientApiController) CreatePatient() {
|
252
|
252
|
//获取老表的最后一条数据
|
253
|
253
|
patients, err := service.GetLastPatientData(adminUserInfo.CurrentOrgId)
|
254
|
254
|
patientsNew := models.XtPatientsNew{
|
255
|
|
- UserOrgId: adminUserInfo.CurrentOrgId,
|
256
|
|
- UserId: 0,
|
257
|
|
- Avatar: patients.Avatar,
|
258
|
|
- PatientType: patients.PatientType,
|
259
|
|
- DialysisNo: patients.DialysisNo,
|
260
|
|
- AdmissionNumber: patients.AdmissionNumber,
|
261
|
|
- Source: patients.Source,
|
262
|
|
- Lapseto: patients.Lapseto,
|
263
|
|
- PartitionId: patients.PartitionId,
|
264
|
|
- BedId: patients.BedId,
|
265
|
|
- Name: patients.Name,
|
266
|
|
- Alias: patients.Alias,
|
267
|
|
- Gender: patients.Gender,
|
268
|
|
- MaritalStatus: patients.MaritalStatus,
|
269
|
|
- IdCardNo: patients.IdCardNo,
|
270
|
|
- Birthday: patients.Birthday,
|
271
|
|
- ReimbursementWayId: patients.ReimbursementWayId,
|
272
|
|
- HealthCareType: patients.HealthCareType,
|
273
|
|
- HealthCareNo: patients.HealthCareNo,
|
274
|
|
- HealthCareDueDate: patients.HealthCareDueDate,
|
275
|
|
- Height: patients.Height,
|
276
|
|
- BloodType: patients.BloodType,
|
277
|
|
- Rh: patients.Rh,
|
|
255
|
+ UserOrgId: adminUserInfo.CurrentOrgId,
|
|
256
|
+ UserId: 0,
|
|
257
|
+ Avatar: patients.Avatar,
|
|
258
|
+ PatientType: patients.PatientType,
|
|
259
|
+ DialysisNo: patients.DialysisNo,
|
|
260
|
+ AdmissionNumber: patients.AdmissionNumber,
|
|
261
|
+ Source: patients.Source,
|
|
262
|
+ Lapseto: patients.Lapseto,
|
|
263
|
+ PartitionId: patients.PartitionId,
|
|
264
|
+ BedId: patients.BedId,
|
|
265
|
+ Name: patients.Name,
|
|
266
|
+ Alias: patients.Alias,
|
|
267
|
+ Gender: patients.Gender,
|
|
268
|
+ MaritalStatus: patients.MaritalStatus,
|
|
269
|
+ IdCardNo: patients.IdCardNo,
|
|
270
|
+ Birthday: patients.Birthday,
|
|
271
|
+ ReimbursementWayId: patients.ReimbursementWayId,
|
|
272
|
+ HealthCareType: patients.HealthCareType,
|
|
273
|
+ HealthCareNo: patients.HealthCareNo,
|
|
274
|
+ HealthCareDueDate: patients.HealthCareDueDate,
|
|
275
|
+ Height: patients.Height,
|
|
276
|
+ BloodType: patients.BloodType,
|
|
277
|
+ Rh: patients.Rh,
|
278
|
278
|
HealthCareDueAlertDate: patients.HealthCareDueAlertDate,
|
279
|
279
|
EducationLevel: patients.EducationLevel,
|
280
|
280
|
Profession: patients.Profession,
|
|
@@ -320,28 +320,28 @@ func (c *PatientApiController) CreatePatient() {
|
320
|
320
|
Nation: patients.Nation,
|
321
|
321
|
NativePlace: patients.NativePlace,
|
322
|
322
|
Age: patients.Age,
|
323
|
|
- InfectiousNextRecordTime: patients.InfectiousNextRecordTime,
|
324
|
|
- IsInfectious: patients.IsInfectious,
|
325
|
|
- RemindCycle: patients.RemindCycle,
|
326
|
|
- ResponseResult: patients.ResponseResult,
|
327
|
|
- IsOpenRemind: patients.IsOpenRemind,
|
328
|
|
- FirstTreatmentDate: patients.FirstTreatmentDate,
|
329
|
|
- DialysisAge: patients.DialysisAge,
|
330
|
|
- ExpenseKind: patients.ExpenseKind,
|
331
|
|
- TellPhone: patients.TellPhone,
|
332
|
|
- ContactName: patients.ContactName,
|
333
|
|
- BloodPatients: 1,
|
334
|
|
- SlowPatients: 0,
|
335
|
|
- MemberPatients: 0,
|
336
|
|
- EcommerPatients: "",
|
337
|
|
- BloodId: patients.ID,
|
338
|
|
- SlowId: 0,
|
339
|
|
- MemberId: 0,
|
340
|
|
- MemberFistdate: 0,
|
341
|
|
- MemberPatienttype: 0,
|
342
|
|
- MemberTreatement: 0,
|
343
|
|
- EquitmentId: "",
|
344
|
|
- UserSysBeforeCount: patient.UserSysBeforeCount,
|
|
323
|
+ InfectiousNextRecordTime: patients.InfectiousNextRecordTime,
|
|
324
|
+ IsInfectious: patients.IsInfectious,
|
|
325
|
+ RemindCycle: patients.RemindCycle,
|
|
326
|
+ ResponseResult: patients.ResponseResult,
|
|
327
|
+ IsOpenRemind: patients.IsOpenRemind,
|
|
328
|
+ FirstTreatmentDate: patients.FirstTreatmentDate,
|
|
329
|
+ DialysisAge: patients.DialysisAge,
|
|
330
|
+ ExpenseKind: patients.ExpenseKind,
|
|
331
|
+ TellPhone: patients.TellPhone,
|
|
332
|
+ ContactName: patients.ContactName,
|
|
333
|
+ BloodPatients: 1,
|
|
334
|
+ SlowPatients: 0,
|
|
335
|
+ MemberPatients: 0,
|
|
336
|
+ EcommerPatients: "",
|
|
337
|
+ BloodId: patients.ID,
|
|
338
|
+ SlowId: 0,
|
|
339
|
+ MemberId: 0,
|
|
340
|
+ MemberFistdate: 0,
|
|
341
|
+ MemberPatienttype: 0,
|
|
342
|
+ MemberTreatement: 0,
|
|
343
|
+ EquitmentId: "",
|
|
344
|
+ UserSysBeforeCount: patient.UserSysBeforeCount,
|
345
|
345
|
}
|
346
|
346
|
|
347
|
347
|
err = service.CreatePatientsNew(&patientsNew)
|
|
@@ -469,29 +469,29 @@ func (c *PatientApiController) EditPatient() {
|
469
|
469
|
}
|
470
|
470
|
fmt.Println("病人--------------------------------------------------------------", patient.Name, patient.Age)
|
471
|
471
|
patientsNew := models.XtPatientsNew{
|
472
|
|
- UserOrgId: patient.UserOrgId,
|
473
|
|
- UserId: patient.UserId,
|
474
|
|
- Avatar: patient.Avatar,
|
475
|
|
- PatientType: patient.PatientType,
|
476
|
|
- DialysisNo: patient.DialysisNo,
|
477
|
|
- AdmissionNumber: patient.AdmissionNumber,
|
478
|
|
- Source: patient.Source,
|
479
|
|
- Lapseto: patient.Lapseto,
|
480
|
|
- PartitionId: patient.PartitionId,
|
481
|
|
- BedId: patient.BedId,
|
482
|
|
- Name: patient.Name,
|
483
|
|
- Alias: patient.Alias,
|
484
|
|
- Gender: patient.Gender,
|
485
|
|
- MaritalStatus: patient.MaritalStatus,
|
486
|
|
- IdCardNo: patient.IdCardNo,
|
487
|
|
- Birthday: patient.Birthday,
|
488
|
|
- ReimbursementWayId: patient.ReimbursementWayId,
|
489
|
|
- HealthCareType: patient.HealthCareType,
|
490
|
|
- HealthCareNo: patient.HealthCareNo,
|
491
|
|
- HealthCareDueDate: patient.HealthCareDueDate,
|
492
|
|
- Height: patient.Height,
|
493
|
|
- BloodType: patient.BloodType,
|
494
|
|
- Rh: patient.Rh,
|
|
472
|
+ UserOrgId: patient.UserOrgId,
|
|
473
|
+ UserId: patient.UserId,
|
|
474
|
+ Avatar: patient.Avatar,
|
|
475
|
+ PatientType: patient.PatientType,
|
|
476
|
+ DialysisNo: patient.DialysisNo,
|
|
477
|
+ AdmissionNumber: patient.AdmissionNumber,
|
|
478
|
+ Source: patient.Source,
|
|
479
|
+ Lapseto: patient.Lapseto,
|
|
480
|
+ PartitionId: patient.PartitionId,
|
|
481
|
+ BedId: patient.BedId,
|
|
482
|
+ Name: patient.Name,
|
|
483
|
+ Alias: patient.Alias,
|
|
484
|
+ Gender: patient.Gender,
|
|
485
|
+ MaritalStatus: patient.MaritalStatus,
|
|
486
|
+ IdCardNo: patient.IdCardNo,
|
|
487
|
+ Birthday: patient.Birthday,
|
|
488
|
+ ReimbursementWayId: patient.ReimbursementWayId,
|
|
489
|
+ HealthCareType: patient.HealthCareType,
|
|
490
|
+ HealthCareNo: patient.HealthCareNo,
|
|
491
|
+ HealthCareDueDate: patient.HealthCareDueDate,
|
|
492
|
+ Height: patient.Height,
|
|
493
|
+ BloodType: patient.BloodType,
|
|
494
|
+ Rh: patient.Rh,
|
495
|
495
|
HealthCareDueAlertDate: patient.HealthCareDueAlertDate,
|
496
|
496
|
EducationLevel: patient.EducationLevel,
|
497
|
497
|
Profession: patient.Profession,
|
|
@@ -533,17 +533,17 @@ func (c *PatientApiController) EditPatient() {
|
533
|
533
|
Nation: patient.Nation,
|
534
|
534
|
NativePlace: patient.NativePlace,
|
535
|
535
|
Age: patient.Age,
|
536
|
|
- InfectiousNextRecordTime: patient.InfectiousNextRecordTime,
|
537
|
|
- IsInfectious: patient.IsInfectious,
|
538
|
|
- RemindCycle: patient.RemindCycle,
|
539
|
|
- ResponseResult: patient.ResponseResult,
|
540
|
|
- IsOpenRemind: patient.IsOpenRemind,
|
541
|
|
- FirstTreatmentDate: patient.FirstTreatmentDate,
|
542
|
|
- DialysisAge: patient.DialysisAge,
|
543
|
|
- ExpenseKind: patient.ExpenseKind,
|
544
|
|
- TellPhone: patient.TellPhone,
|
545
|
|
- ContactName: patient.ContactName,
|
546
|
|
- UpdatedTime: time.Now().Unix(),
|
|
536
|
+ InfectiousNextRecordTime: patient.InfectiousNextRecordTime,
|
|
537
|
+ IsInfectious: patient.IsInfectious,
|
|
538
|
+ RemindCycle: patient.RemindCycle,
|
|
539
|
+ ResponseResult: patient.ResponseResult,
|
|
540
|
+ IsOpenRemind: patient.IsOpenRemind,
|
|
541
|
+ FirstTreatmentDate: patient.FirstTreatmentDate,
|
|
542
|
+ DialysisAge: patient.DialysisAge,
|
|
543
|
+ ExpenseKind: patient.ExpenseKind,
|
|
544
|
+ TellPhone: patient.TellPhone,
|
|
545
|
+ ContactName: patient.ContactName,
|
|
546
|
+ UpdatedTime: time.Now().Unix(),
|
547
|
547
|
}
|
548
|
548
|
// //更新病人ID获取新表病人ID
|
549
|
549
|
err = service.UpdatepatientTwo(&patientsNew, id)
|