Open YoniSchirris opened 4 years ago
Hey, it's a bit more complex than that. Those appear to be done by MDs who forgot/couldn't be bothered to enter the registration code (I won't say that was to be expected and that's why we used to have two apps but it is what it is). We are more or less sure of that because it's iOS and we only accept/share the link with MDs.
I think that because it's iOS and its a controlled link shared with MD, we could move those ones to clinical datatset for now but not in the future if more people use iOS
Problem summary
Due to some confusiong during app distribution and updates to the application, some data files should be moved from the community bucket to the clinical bucket.
Current result
iPhone measurements on
2020-04-21
and2020-04-20
were actually clinical, yet are currently in the community bucket.Expected result
@MalcolmMielle Let me know if this describes the problem/solution correctly:
Surveys on
2020-04-21
and2020-04-20
withuserProfile: {licensed_medical_professional: True},
phoneBrand: iPhone
should be in the
clinical
bucket.i.e. the following survey ids
Proposed solution
Set up a python/bash script that loops over all files, checks certain conditions (names / data.json field), and moves these files from 1 bucket to the other.
As we might have this issue more often (e.g. possibly the MDs are still using the wrong application and are still uploading to the community bucket), it would be good to have a script that adjusts this according to some conditions.
@haggy Since we have read access, I think we can't do this. Hoping you are more experienced with this and have a quick solution for this.