Idea #6319
closedAdd API endpoint for backend tables
Description
Add an API endpoint to serve the backend public facing database tables. These include:
- users
- medications
- user_files
- datasets
- immunizations
- conditions
- demographic
Each of these should have at the least some RESTful API access point to download a csv/tsv file. For example, something like 'https://my.pgp-hms.org/download/users.tsv'.
Updated by Tom Clegg over 9 years ago
- Category set to Publishing
6319-csv-exports @ 81aeac2 adds /exports/phrccr_lab_test_results.csv. If this approach looks OK, I can add more CSVs along the same lines.
It takes about 50 seconds to download 200K rows from a PGP-HMS-sized database. Not great, but surely better than scraping. I'm hoping/expecting this export will be the slowest of the lot.
Updated by Tom Clegg over 9 years ago
- Status changed from New to In Progress
- Assigned To set to Tom Clegg
- Target version set to 2015-07-08 sprint
- Story points changed from 2.0 to 1.0
Updated by Tom Clegg over 9 years ago
- /exports/users.csv
- /exports/datasets.csv
- /exports/user_files.csv
- /exports/phrccr_lab_test_allergies.csv
- /exports/phrccr_lab_test_conditions.csv
- /exports/phrccr_lab_test_demographics.csv
- /exports/phrccr_lab_test_immunizations.csv
- /exports/phrccr_lab_test_results.csv
- /exports/phrccr_medications.csv
- /exports/phrccr_procedures.csv
master at 6fa6b0f - 574 tests, 1232 assertions, 252 failures, 45 errors
6319-csv-exports at 3f83921 - 585 tests, 1270 assertions, 245 failures, 46 errors
Updated by Brett Smith over 9 years ago
- Target version changed from 2015-07-08 sprint to 2015-07-22 sprint
Updated by Ward Vandewege over 9 years ago
- Status changed from In Progress to Resolved
Applied in changeset 2eba739850301d5a871d3262667e71f5ad061878.
Updated by Ward Vandewege about 5 years ago
- Target version deleted (
2015-07-22 sprint)