opensafely-core / opensafely-core/opencodelists

One codelist minus another codelist

Open
#701 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
60
Forks
16
Avg merge
4d 12h
Merged PRs (30d)
17

Description

This request came from some of the work around Long Covid where we want to use a very high level set of codelists to define symptoms, and then minus certain terms. For example:

respiratory_conditions_codelist - high level code with many hundreds of codes.
minus chronic_respiratory_conditions_codelist

This could be done manually, or via stata / python as an alternative.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue gives an example of subtracting chronic_respiratory_conditions_codelist from respiratory_conditions_codelist, but names no files, tests, or entry point. First clarify whether this should be a reusable feature or a one-off manual operation, then identify the existing codelist workflow to extend. Done should include a defined subtraction behavior and verification using the example codelists.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.