Skip to content

last_ons_death and categorising the cause of death #1333

Answered by evansd
p-stehlik asked this question in Q&A
Discussion options

You must be logged in to vote

Ah sorry, this is our fault! There were some typos in some of documentation examples which used isin but the actual method name is is_in:
https://docs.opensafely.org/ehrql/reference/language/#CodePatientSeries.is_in

So if you just add underscores in two places to your code then it should all work.

You also have the option, instead of using ~, to write:

cause_of_death.is_not_in(codes_ICD10_covid)

But use whichever seems clearest to you.

And thanks for the encouraging words!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by p-stehlik
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants