episphere / connect

Connect API for DCEG's Cohort Study
10 stars 5 forks source link

Get Participants Data Filter #122

Closed don-martin closed 10 months ago

don-martin commented 4 years ago

Would it be possible to filter the results returned from the getParticipants API based on whether or not a participant had a "studyId" in the "state" object? For patients with a "notyetverified" status, we have a different workflow for patients with a studyId (Invited) vs patients without a studyId (self-enrolled). This enhancement isn't vital, but it would simplify our process. Thanks for considering.

For reference, the studyId field below is what I'm talking about. { "data": [ { "RcrtUP_City_v1r0": "Sioux Falls", "state": { "uid": "EYaPo4ILzFNb1SBCNzOl1FbNCgt1", "studyId": "SH00050", "RcrtSI_Account_v1r0": 1, "RcrtV_Verification_v1r0": 0 }, "RcrtES_Aware_v1r0": { "RcrtES_Aware_v1r0_Family": 0, "RcrtES_Aware_v1r0_Invite": 0,

bhaumik55231 commented 4 years ago

Hi @don-martin we can return the data that has studyId, but our database doesn't support query to return data that doesn't have studyId.

FrogGirl1123 commented 4 years ago

Hi @don-martin and @bhaumik55231 we have a passive vs active recruit flag. You should be able to do a query based on "notyetverified" and the recruitment type flag. Correct, @bhaumik55231? I'll go over the flags when we present the data dictionary and Concept IDs at the next F&R meeting.

bhaumik55231 commented 4 years ago

@FrogGirl1123 Yes, we can have a filter to get an active or passive recruit. But passive recruit not always means that they don't have a studyId in their record. For example if someone mistypes the PIN they will be labeled as passive recruit but would still have studyId in their record.

FrogGirl1123 commented 4 years ago

@bhaumik55231 Agreed, that's something that needs to be resolved as part of the verification process.

dbakumar commented 4 years ago

I have encountered this issue and it would really helpful to have filter by "notyetverified". This approach saves lot of API calls and will change IHCS programming how we build identify verification module/reporting. Thanks for consideration @bhaumik55231 and @FrogGirl1123 .

sonyekere commented 10 months ago

Closing issue. Last update posted 08/2020.