carekit-apple / CareKit

CareKit is an open source software framework for creating apps that help people better understand and manage their health.
https://www.researchandcare.org
Other
2.4k stars 443 forks source link

Question - Simple view data collection #598

Open scdi opened 3 years ago

scdi commented 3 years ago

Q. How do we get the data when a selection is made on a medication adherence card? For example, person enters event related to taking their medication. How do we capture this data to send to a cloud server?

erik-apple commented 3 years ago

The recommended approach for 2 way synchronization with a server is by using the OCKRemoteSynchronizable protocol that we introduced at WWDC last year. See this video starting around minute 19.

If you aren't interested in staying in sync with the server, but just want to capture some logs about how patients are using your app, then clipping onto OCKSynchronizedStoreManager's notificationPublisher and filtering for the notifications you're interested in might be a viable, low effort solution.

scdi commented 3 years ago

Thank you. That is very helpful.

scdi commented 3 years ago

Hi Erik,

It was a pleasure speaking with you and Gavi. Thank you so much for your help.

On Fri, Jun 11, 2021 at 1:55 PM Erik Hornberger @.***> wrote:

The recommended approach for 2 way synchronization with a server is by using the OCKRemoteSynchronizable protocol that we introduced at WWDC last year. See this video https://developer.apple.com/wwdc20/10151 starting around minute 19.

If you aren't interested in staying in sync with the server, but just want to capture some logs about how patients are using your app, then clipping onto OCKSynchronizedStoreManager's notificationPublisher and filtering for the notifications you're interested in might be a viable, low effort solution.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/carekit-apple/CareKit/issues/598#issuecomment-859746042, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHK7LYFS6FTH754IIBLPADTSJEYBANCNFSM46REDOPA .

-- Jude Jonassaint, RN Sicklesoft, Inc

Let whoever is in charge keep this simple question in her head (not, how can I always do this right thing myself, but) how can I provide for this right thing to be always done https://everydaypowerblog.com/quotes-by-martin-luther-king-jr/? – Florence Nightingale