CDCgov / phdi

https://cdcgov.github.io/dibbs-site/
Creative Commons Zero v1.0 Universal
35 stars 14 forks source link

Add `DibbsDisplayType` field to DB #2788

Closed bamader closed 1 month ago

bamader commented 1 month ago

As part of Option 3 Marcelle proposed here, we'll be removing the perpetual mapping and unmapping of clinical service field abbreviations (e.g. lrtc) to values like conditions and medications. To support this work, we need to assign each ValueSet in the DB its appropriate DibbsDisplayType at the DB level. The scope of this ticket is carrying out this work in two migrations:

  1. We'll write a migration that adds the DibbsDisplayType column to the valuesets table
  2. We'll write a migration that fills in this field for each row of the valueset table by mapping the value currently stored in the type column (which holds a clinical service abbreviation code) to its appropriate DisplayType.