kids-first / kf-api-dataservice

:file_cabinet: Primary API for interacting with the Kids First data
http://kf-api-dataservice.kidsfirstdrc.org
Apache License 2.0
5 stars 2 forks source link

✨ Add Sample and Container #643

Closed znatty22 closed 7 months ago

znatty22 commented 9 months ago

Motivation

The current biospecimen model does not adequately capture lineage of biospecimens or biological equivalency among groups of biospecimens. This information is important for several reasons. One reason is when someone needs to know the total remaining quantity of aliquots/biospecimens that can be used for additional sequencing or processing.

Approach

Introduce 2 new tables: Sample and Container. These tables will be populated by deriving containers and samples from the incoming Biospecimen in a POST/PATCH request (#645).

sample-container-erd

Note: We wanted to take this approach to minimize or eliminate any changes to the current biospecimen table so that current functionality is not disrupted in any way.

Database

Delete Life Cycles

API

Todo

znatty22 commented 7 months ago

Closing for now. New approach is to implement the Sample table only and keep it simple. This is an MVP to meet Portal Beta requirements