This commit is contained in:
vanilia
2025-12-06 04:40:13 +07:00
parent 95afff0c4e
commit b454f52039
4 changed files with 30 additions and 5 deletions

No files matched your search

@@ -49,6 +49,9 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.Ch
tx = tx.
Model(&e.Chemo{}).
Joins(`LEFT JOIN "Encounter" "e" ON "e"."Id" = "Chemo"."Encounter_Id"`).
Joins(`LEFT JOIN "Patient" "p" ON "e"."Patient_Id" = "p"."Id"`).
Where(`"p"."Id" = ?`, input.Patient_Id).
Scopes(gh.Preload(input.Includes)).
Scopes(gh.Filter(input.FilterDto)).
Count(&count).