|
@@ -343,6 +343,9 @@ func (this *DoctorsApiController) SaveVasularAccess() {
|
343
|
343
|
stopTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", stop_time+" 00:00:00", loc)
|
344
|
344
|
patient_id, _ := this.GetInt64("patient_id")
|
345
|
345
|
other_vascular := this.GetString("other_vascular")
|
|
346
|
+ ci_type, _ := this.GetInt64("ci_type")
|
|
347
|
+ blood_cultupe, _ := this.GetInt64("blood_cultupe")
|
|
348
|
+ sequelae_type, _ := this.GetInt64("sequelae_type")
|
346
|
349
|
adminUserInfo := this.GetAdminUserInfo()
|
347
|
350
|
orgId := adminUserInfo.CurrentOrgId
|
348
|
351
|
creator := adminUserInfo.AdminUser.Id
|
|
@@ -367,6 +370,9 @@ func (this *DoctorsApiController) SaveVasularAccess() {
|
367
|
370
|
StopTime: stopTime.Unix(),
|
368
|
371
|
PatientId: patient_id,
|
369
|
372
|
OtherVascular: other_vascular,
|
|
373
|
+ CiType: ci_type,
|
|
374
|
+ BloodCultupe: blood_cultupe,
|
|
375
|
+ SequelaeType: sequelae_type,
|
370
|
376
|
}
|
371
|
377
|
err := service.SaveVascularAccess(&access)
|
372
|
378
|
if err == nil {
|
|
@@ -439,8 +445,10 @@ func (this *DoctorsApiController) UpdateVasularAccess() {
|
439
|
445
|
orgId := adminUserInfo.CurrentOrgId
|
440
|
446
|
creator := adminUserInfo.AdminUser.Id
|
441
|
447
|
patientId, _ := this.GetInt64("patient_id")
|
442
|
|
- fmt.Println("patient_id222222222222222222", patientId)
|
443
|
448
|
other_vascular := this.GetString("other_vascular")
|
|
449
|
+ ci_type, _ := this.GetInt64("ci_type")
|
|
450
|
+ blood_cultupe, _ := this.GetInt64("blood_cultupe")
|
|
451
|
+ sequelae_type, _ := this.GetInt64("sequelae_type")
|
444
|
452
|
access := models.XtPatientVascularAccess{
|
445
|
453
|
AccessProject: access_project,
|
446
|
454
|
BloodAccessPartId: blood_access_part_id,
|
|
@@ -456,6 +464,9 @@ func (this *DoctorsApiController) UpdateVasularAccess() {
|
456
|
464
|
Status: 1,
|
457
|
465
|
StopTime: stopTime.Unix(),
|
458
|
466
|
OtherVascular: other_vascular,
|
|
467
|
+ CiType: ci_type,
|
|
468
|
+ BloodCultupe: blood_cultupe,
|
|
469
|
+ SequelaeType: sequelae_type,
|
459
|
470
|
}
|
460
|
471
|
_, errcode := service.GetDialysisDateByDateOne(startTime.Unix(), patientId, orgId, id)
|
461
|
472
|
if errcode == gorm.ErrRecordNotFound {
|