ideafast / middleware-services

Python API containing endpoints for smartphone hub applications and transfer to data portal
0 stars 0 forks source link

fix unknown IDs #97

Closed davidverweij closed 3 years ago

davidverweij commented 3 years ago

As @ColinBD indicated, the location of the IDEAFAST valid, or alias, ID can be in a different location in the list of data entries. Originally, we checked for the first two entries - though it seemed, strangely only occurring for one study site, that TFA data can contain a third item in the list, which for a set of patients contained their ID's. I've rewritten the snippet that checks for the ID which now iterates to as many as needed until it finds a valid ID or known alias.

davidverweij commented 3 years ago

To get the missing files to WP4 quickly, I've build and published a docker image on this branch and set our dtransfer_live to run on that in the mean-time. When merged, it might be good to update the docker image or at least keep this in mind.