Skip to content
Discussion options

You must be logged in to vote

Currently there isn't a straightforward way to return all the individual events themselves. We hope to add this functionality eventually.

However, if you only need to count the individual events, you can return the count of recorded events within a given time period by using the returning="number_of_matches_in_period" option, which will return an integer count, as documented here:
https://docs.opensafely.org/study-def-variables/#cohortextractor.patients.with_these_clinical_events

Does that fulfil your use case?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@SRW612
Comment options

@SRW612
Comment options

@alexwalkerepi
Comment options

@SRW612
Comment options

Answer selected by SRW612
Comment options

You must be logged in to vote
1 reply
@SRW612
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants