Roll-up of for Table 1 type characterization of conditions: 20 clinical categories, similar to ICD10 chapters

Friends:

Looks like I need to back out a bit here of a debate that wasn’t the intention. Or better yet, jump into that one as well. There is nothing better than a 2-front war. :slight_smile:

Debate #1: Characterize the conditions of a population. That’s what @pandamiao started this debate with. Skip this if you are interested in the Table 1 discussion.

This solves the following problem: If you have a bunch of patients and you want to summarize what diseases they have. Since there are many of them, you need categories. The above script puts each Condition concept into one of 20 clinically meaningful statistical categories. The categories are:

  • Blood disease
  • Injury and poisoning
  • Congenital disease
  • Pregnancy or childbirth disease
  • Perinatal disease
  • Infection
  • Neoplasm
  • Endocrine or metabolic disease
  • Mental disease
  • Nerve disease and pain
  • Eye disease
  • ENT disease
  • Cardiovascular disease
  • Respiratory disease
  • Digestive disease
  • Skin disease
  • Soft tissue or bone disease
  • Genitourinary disease
  • Iatrogenic condition
  • Not categorized

These categories are very similar, but not exactly the same as the 22 ICD-10 Chapters. The differences are threefold:

If you want to use the script, join the concept_id of the main select to the condition_concept_id of your CONDITION_OCCURRENCE table and count up the different category_name occurrences. The total will be equal to the total rows in the table, so the % add up to 100.

The next step is to build a similar script, but with about 100 finer grained categories. Otherwise same idea.