Baessler-Lab / swag-tag

A Streamlit-based webapp for annotation of medical images and reports.
2 stars 0 forks source link

feat (db): Normalize schema #30

Open pwoznicki opened 1 year ago

pwoznicki commented 1 year ago

Feature Request

Currently, we have quite a bit of redundancy in the swag database - all 3 tables: studies, image_uris, and reports contain the same keys: 'PatientID', 'StudyInstanceUID', and 'AccessionNumber', additionally table annotations contains both 'StudyInstanceUID' and 'AccessionNumber' keys.

It seems for our purposes, 'AccessionNumber' is the key that joins all those tables together.

The proposed solution: