Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Studystudy with id returned/{id}
MethodURIAuthBodyReturnDescription
Studies
GET/studiesAdminBridge User-PaginatedResults<Study>All studies (for creating links within any community)POST
GET/studiesAdmin/{id}Bridge User-Study 
GET/studies/enrolledBridge User-PaginatedResults<Study>All studies in which the user has one or more participants enrolled. Need this to set up correct forms, etc. in the UI
POST/studiesAdmin-StudyStudy study with id returned
PUT/studies/{id}AdminStudyStudy 
DELETE/studies/{id}Admin-- 
Forms / Dataset Definitions (one per research instrument participants will use in a study)
GET/studies/{id}/formsResearcher w/ edit permissionBridge User-PaginatedResults<Form>Unlikely to be more than a page of these
POSTGET/studies/{id}/formsResearcher w/ edit permissionForm/{id}Bridge User-Formform with id returned 
GET/studiesforms/{id}/{participantId}Bridge User-PaginatedResults<Form>All forms for a participant associated to a user. We need this to show the correct forms to the user.
POST/studies/{id}/formsResearcher w/ edit permission-FormForm form with id returned
PUT/studies/{id}/forms/{id}Researcher w/ edit permissionFormForm 
DELETE/studies/{id}/forms/{id}Researcher w/ edit permission-- 
Consents (a special kind of form/dataset definition, one per study, stored encrypted)
GET/studies/{id}/consentResearcher w/ edit permission-Form 
PUT/studies/{id}/consentResearcher w/ edit permissionForm-create or update consent
DELETE/studies/{id}/consentResearcher w/ edit permission-- 
Participants (1 or more for each research project this user is involved with; I would list all participations across all projects, since we proposed initially to show it in the profile or journal section of the app)
GET/participantsBridge User-PaginatedResults<Form>All across all studies, unless filtered for a research project
POST/studies/{id}/participantsBridge UserFormFormAgree to consent form and become a participant in the study
GET/participants/{id}Bridge User-Form 
PUT/participants/{id}Bridge UserForm- 
DELETE/participants/{id}Bridge User-  
DELETE/participants/{id}/withdrawBridge User--Delete all datasets for this participant and delete the consent record; this participant has been withdrawn from the study
Datasets (have to be scoped to a participant; not sure how to structure forms with a project or forms between projects)
GET/datasets/{id}Anonymized Participant-PaginatedResults<DatasetHeader>All datasets for one participant
GET/form/{id}/datasets/{id}Anonymized Participant PaginatedResults<DatasetHeader>All datasets for a specific form and participant
GET/study/{id}/datasets/{id}Anonymized Participant  All datasets for a specific study and participant
POST/datasets/{id}Anonymized ParticipantDataset-Append a row to the dataset (create if necessary) for a participant
GET/datasets/{id}/{row}Anonymized Participant-DatasetGet full record for row N for a participant
PUT/datasets/{id}/{row}Anonymized ParticipantDatasetDatasetEdit row N for a participant
DELETE/datasets/{id}/{row}Anonymized Participant--Delete row N for a participant