Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

API missing fields #38

Open
jbrough opened this issue Feb 12, 2019 · 7 comments
Open

API missing fields #38

jbrough opened this issue Feb 12, 2019 · 7 comments

Comments

@jbrough
Copy link
Collaborator

jbrough commented Feb 12, 2019

Guys can you let me know an example response format you need from the API and I'll fix it up today.

You should be able to traverse the current response easily once you've derserialised the JSON into a JavaScript object but I'm happy to change it on the API side.

Also ant additional fields or info that needs adding, please provide a quick example and I'll add.

Thanks!

@HStewart23
Copy link
Contributor

HStewart23 commented Feb 12, 2019

Hey @jbrough,

Here is the information we would ideally like in the API plus a few questions we have about it.

Data we would like to add :

  • start/ end dates of trial (if end dates aren’t available some kind of indication of duration)
  • primary contact (right now there are sometimes more that one)
  • entry criteria
  • trial phase
  • disease stage
  • description (if possible)
  • side effects
  • weblink to actual trial (if possible)

Data that would ideally be less nested :

  • location/ locations of trial (already there)
  • id (already there)
  • gender (already there)
  • max age/ min age (already there)
  • recruiting (already there)
  • conditions (already there)

Questions

  • The ‘Locations’ part of the api often has multiple locations/ contacts why is this and which ones should we render?
  • What are MESHTerms ?
  • We noticed a field called note (inside Contact) with what appears to be a name in it. Is this the name of the person running the trial?

Thank you so much for helping us with this!

@jbrough
Copy link
Collaborator Author

jbrough commented Feb 13, 2019

sorry guys been off with a nasty cold, but means I'm free to work on this all day at least!

I'll update the api as I go, without changing existing fields, so you don't get broken.

Location - will filter to the nearest location, but for now just choose the first one.

Mesh terms - just keywords, ok to ignore.

Inside contact - yep this is contact person, but not necessary to display this info, I don't think.

I'll update this ticket as I push the chnages to the api.

@sesola
Copy link
Collaborator

sesola commented Feb 13, 2019

Sorry about the cold Jamie. Get well soon

@HStewart23
Copy link
Contributor

Hey @jbrough,
Hope you are feeling better ! How are things going with the API? Please, check out issue #63 as it has halted remote deployment for us and we'd really appreciate any help you can give towards solving it!
best,
Hannah

@jbrough
Copy link
Collaborator Author

jbrough commented Feb 18, 2019 via email

@sesola
Copy link
Collaborator

sesola commented Feb 18, 2019 via email

@HStewart23
Copy link
Contributor

Thanks, @jbrough for sorting out the deploying issue! Would be great if you could push your changes to the API though as some of the results card info is currently hardcoded because it is not included in the API. The most important bits of information for us is the summary, trial phase and start/end date. 🌻

@zurda zurda changed the title API changes API missing fields Feb 19, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants