opensafely-core / opensafely-core/opencodelists
BNF Code builder: Adding parent to column list to act as a filter
@inglesp is already working on this.
Since Oct 2, 2020.
- Dominant language
- Python
- Stars
- 60
- Forks
- 16
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 17
Description
Myself and @HelenCEBM have come across a potential improvement in the codelist future (not urgent!) during making an anticoagulant codelist that is being used in at least 2 pharmacoepi style papers and in aftershocks work.
The first purpose of a codelist is to identify a patient group for a single research study but now we are starting to reuse it wold be good if it could be slghtly more flexible.
In the anticoagulant work we want to identify everyone on all the various "anticoagulant" VMPs/AMPs but subsequently in all the descriptive tables we want to report at chemical subtsance level (as opposed to "anticoaglants")
| Chemical | Patient Count |
|---|---|
| Rivaroxaban | 257 |
| Warfarin | 1054 |
| Apixaban | 7000 |
We could make a separate for each but using the backend we have added a further column chemical to act as a filter.
We were wondering if this could be made a feature of the builder? i.e. include parent as sometimes you may have a chapter and want to include subparagraphs.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.