Aarhus-Psychiatry-Research/psycop-common

feat: allow filtering when generating patient slices

Closed this issue · 0 comments

Naively, I would add this to PatientSliceCollater.

But our RegionalSplitFilter requires access to... What exactly?

id and timestamp it seems like? So I need the filtering to happen somewhere where we have access to that.

It seems that is in the patient loader.

This might imply that PredictionTimeCollater does not need it anymore, if PatientLoader takes it.

  •  Test the PredictionTimeCollater
  •  Test the PatientSliceCollater