opensafely / codelist-development

Repository for discussion of OpenSAFELY codelists
7 stars 4 forks source link

*CONDITION* Atrial fibrillation or flutter #23

Closed hmcd closed 4 years ago

hmcd commented 4 years ago

DEFINITION: Codes for a history of atrial fibrillation

Variables: 1) a binary variable denoting the presence of one of the codes at any point in the patient record. 2) the earliest date of such a code.

CODE LISTS: Plan to 1) check SNOMED 2) add to codelist in Read V2 AF_readv2.xlsx 3) map to CTV3 4) And add to QOF (CTV3) lists available Atrial_fibrillation_diagnosis_codes_QOF.txt Atrial_fibrillation_exception_reporting_codes.txt Atrial_fibrillation_review_codes.txt

FLEXIBILITY NEEDED BETWEEN STUDIES: None. Other studies might want to consider medication status as separate variable.

EFFECTS ON COHORT SELECTION: Consider requirement for patients to have been registered for at least 12 months before the index date, in order to allow for recording of relevant codes.

POTENTIAL BIASES: Ascertainment may depend on health-seeking behaviour, or be prompted by investigation of other cardiac disease.

amirmehrkar commented 4 years ago

@hmcd @brianmackenna @inglesp I've looked through this. Also discussed with @brianmackenna.

Given that AF codes are pretty well established in primary care, I think the best option is to use TPP CTV3 QOF codelist (and ask TPP to obviously then generate the link to SNOMED)

There is already another issue that links to the aftershocks works. https://docs.google.com/spreadsheets/d/1m_aLIl6Nm4jqynYrqKgo_eeGDQf5wYV0uSCebotOMrI/edit?usp=sharing

So I would suggest:

  1. include cluster AFIB
  2. include cluster AFIBDI
  3. include cluster AFIEXC
  4. include cluster AFIBINVITE
  5. include cluster AFIBPCADEC
  6. include cluster AFIBPCAPU
  7. DO NOT include AFIBRES

So perhaps this should be closed and merged with https://github.com/opensafely/anticoagulants-research/issues/1 although looking at the current https://codelists.opensafely.org/codelist/opensafely/atrial-fibrillation/#full-list codelist on opencodelists, the monitoring codes and exception codes are not included.

hmcd commented 4 years ago

That sounds good to me! @StatsFizz also suggested could use the AF component of the e-frailty index, but QOF might be a better choice.

johntaz commented 4 years ago

Thanks everyone - @amirmehrkar I've generated a codelist including your suggestions above. If approved I will submit to codelists openSAFELY.

@hmcd @StatsFizz AF_QOF.xlsx

hmcd commented 4 years ago

Thanks @johntaz !

@amirmehrkar these all look appropriate if we're defining atrial fibrilliation OR atrial flutter - which seems appropriate given we're interested in risk factors for clots. In which case, shall we change the topic name to "Atrial fibrillation or flutter"?

hmcd commented 4 years ago

DEFINITION: Codes for a history of atrial fibrillation or atrial flutter

Variables: (1) a binary variable denoting the presence of one of the codes at any point in the patient record. (2) the earliest date of such a code.

CODE LIST: From Quality Outcomes Framework lists: include cluster AFIB include cluster AFIBDI include cluster AFIEXC include cluster AFIBINVITE include cluster AFIBPCADEC include cluster AFIBPCAPU DO NOT include AFIBRES

Results in final codelist AF_QOF.xlsx

FLEXIBILITY NEEDED BETWEEN STUDIES: None. Other studies might want to consider medication status as a separate variable.

EFFECTS ON COHORT SELECTION: Consider requirement for patients to have been registered for a period before the index date, in order to allow for recording of relevant codes.

POTENTIAL BIASES: Ascertainment may depend on health-seeking behaviour, or be prompted by investigation of other cardiac disease.

CLINICAL SIGN OFF & DATE: Amir Mehrkar 29/07/20

EPIDEMIOLOGY SIGN OFF & DATE: Helen McDonald 29/07/20

SHARED WITH WIDER TEAM: Yes/No

FINAL SIGN OFF DATE (and apply label)