Replies: 1 comment 3 replies
-
Worth pointing out that one failed attempt at solving this neatly was to use
It doesn't work because |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a project in which I want to select individuals who have not been vaccinated in the 12 weeks following their eligibility date (project not yet approved so in my personal GitHub repo - can give access on request) . Therefore, when selecting the population I want
patients.registered_as_of(elig_date)
, and let's assume there are 10 different possible values forelig_date
. I'll also want to useelig_date
when defining other variables in the study definition.I've allowed for this by creating a different study definition for each
elig_group
, which was done by adapting @wjchulme's create-project.R such that the study definitions are created from a file calledtemplate_study_definition.py
:Then I can create the actions for the project.yaml using the
action
function defined in create-project.R.I was chatting to @wjchulme about this in case he knew of a more elegant way to do this, and he recommended posting it on here to see if anyone else has as a better solution/can use my solution if it's useful!
(I appreciate this might be a bit difficult to follow without access to the repo so please let me know and I can give you access!)
Beta Was this translation helpful? Give feedback.
All reactions