You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, instead of:
asthma_codelist = codelist_from_csv("XXX", column="YYY")
you will need a line more like:
asthma_codelist = codelist_from_csv("your-asthma-codelist.csv", column="code")
which provides the filename your-asthma-codelist.csv and the name of the CSV column with codes.
It was previously clear to me that XXX/YYY were placeholders, but I'm not sure that it would be to researchers, especially as the rest of the document is all example usage rather than placeholders. I propose going through the examples & replacing the placeholders with example usage, e.g.
I'd be happy to see the XXX placeholders go, but whatever we replace them with it needs to be obvious that, when a researchers copies it verbatim into their project and it doesn't work, it's because they haven't changed something they were supposed to change rather than that there's something wrong with the example.
somehow I'd not seen this paragraph before
https://docs.opensafely.org/ehrql/how-to/examples/#some-examples-using-codelist_from_csv
It was previously clear to me that
XXX
/YYY
were placeholders, but I'm not sure that it would be to researchers, especially as the rest of the document is all example usage rather than placeholders. I propose going through the examples & replacing the placeholders with example usage, e.g.https://docs.opensafely.org/ehrql/how-to/examples/#does-each-patient-have-a-clinical-event-matching-a-code-in-a-codelist
to
The text was updated successfully, but these errors were encountered: