|
@@ -841,6 +841,7 @@ func GetDialysisrecord(patientID int64, start int64, end int64, limit int64, pag
|
841
|
841
|
var orders []*models.PatientDialysisRecord
|
842
|
842
|
|
843
|
843
|
db := readDb.Table("xt_dialysis_order as do").
|
|
844
|
+ Preload("MonitoringRecord", "patient_id = ? and user_org_id = ? and status = 1", patientID, orgID).
|
844
|
845
|
Preload("DialysisPrescription", "patient_id=? and user_org_id=? and status=1", patientID, orgID).
|
845
|
846
|
Preload("PredialysisEvaluation", "patient_id=? and user_org_id=? and status=1", patientID, orgID).
|
846
|
847
|
Preload("DialysisPrescription", func(db *gorm.DB) *gorm.DB {
|