Hello,
I am currently trying to determine the appropriate response format for this case.
Let's say I have System A, which contains a large amount of BIDS data and actively collects data from patients, converting it into BIDS format. System A serves as the primary storage for BIDS data. All data is stored in S3 and is exposed to other systems via an API.
Now, let's say I have System B, which needs to download data from System A (using the API response and S3 storage from System A). System B will then insert this data into its database and display it on the frontend.
I am designing the JSON response from System A to ensure System B can efficiently utilize and download the data. Here is my initial idea:
{
"dataset": "Name of dataset",
"subject": "Subject ID",
"session": "Session ID",
...
"other_entities": "Additional relevant fields"
}
Would this structure make it easier for System B to process and download the data? Any suggestions or improvements are welcome!
Thank you so much
Thank you for your response.
I’m familiar with PyBIDS and currently use it for System B to digest data and inserted to System B's database, but I hadn’t heard of BIDS2Table before—thanks for the suggestion!
System B also needs to download data from System A’s S3 storage, which I consider the original BIDS dataset ( Which only allow to be downloaded )
My main concern is how System B can detect and update changes when data in System A is modified. For example, suppose System A (via API and S3) initially contains 125 subjects, and System B successfully imports and loads them into its database. Now, if System A later corrects errors for two subjects or if System A deleted 2 subjects how would System B know to update or remove them? Additionally, what happens if a user has already run a pipeline on the incorrect data before the update?
Dont hesitate to let me know if you have any question i am trying my best to explain cause i feel like this is really interesting use case.
Thanks again
You don't often get email from eric.e...@gmail.com.
Learn why this is important
|