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 new Sample table and API #646

Closed znatty22 closed 6 months ago

znatty22 commented 7 months ago

Motivation

Dataservice model does not track specimen lineage - which specimens were derived from another (specimen hierarchy tree). See Sample design presentation for design details

Approach

This is an MVP design to satisfy current KF needs and KF Portal Beta requirements. We recognize that this design will not allow one to capture a specimen tree with more than 1 level (e.g. sp1 -> sp2 -sp3).

Sample Table + API

image

Sample ETL

The Dataservice to Dewrangle CLI will have a command added to it which will pull all biospecimens, derive the parent samples from them, and create the samples in Dataservice

Todo