tony-shannon / bootstrapVueAdminUI

1 stars 0 forks source link

Request Patient List from CI #7

Open tony-shannon opened 4 years ago

tony-shannon commented 4 years ago

see here image

{"query":"\n query q($study_id: UUID) {\n all_enrolments(study_id: $study_id) {\n created_date patient_id record\n { first_name family_name date_of_birth gender id }\n }\n }","variables":{"study_id":"67385377-9514-4104-b6c3-27d20a79132b"}}

this is the current response

{"data":{"all_enrolments":[{"created_date":"2020-03-03T12:45:56.735925+00:00","patient_id":"123","record":{"first_name":"Tony","family_name":"Murphy","date_of_birth":"2020-03-01","gender":"Male","id":"9fbf05cb-98fa-4f66-ac54-63ef47b3f92c"}},{"created_date":"2020-03-03T15:10:39.376242+00:00","patient_id":"345","record":{"first_name":"John","family_name":"McMorrow","date_of_birth":"1960-02-03","gender":"Male","id":"57962105-27e7-421a-9007-54f738f1d347"}}]}}

yudin-s commented 4 years ago

@tony-shannon here I need only a hour or so. Request/response is pretty simple, I just will change data structure and that all.

yudin-s commented 4 years ago

@tony-shannon all data are placed inside js constant file and retrieve when graphql mode is enabled. GraphQL server is not used for this query , so any edit, delete will not working correctly