Skip to content

BeatHeartDisease Alpha#48

Closed
cswingle98 wants to merge 56 commits intoCardinalKit:mainfrom
cswingle98:main
Closed

BeatHeartDisease Alpha#48
cswingle98 wants to merge 56 commits intoCardinalKit:mainfrom
cswingle98:main

Conversation

@cswingle98
Copy link

Harry Mellsop
Collin Schlager
Colton Swingle

@schlagercollin
Copy link

Preliminary PR prior to assignment 4 review

@schlagercollin
Copy link

schlagercollin commented Mar 4, 2021

FIREBASE RULES

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
  
  
  	match /providers/{document=**} {
    	allow read;
    }

    match /registered-patients/{email}/{document=**} {
      allow create, update, read, write: if request.auth.token.email == email;
    }
    match /{document=**} {
    	allow create, update, read, write: if exists(/databases/$(database)/documents/providers/$(request.auth.token.email)) && get(/databases/$(database)/documents/providers/$(request.auth.token.email)).data.admin == true;
    }
  }
}

@cswingle98
Copy link
Author

cswingle98 commented Mar 7, 2021

Assignment 4 Submission:

Firestore Rules:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
  
  
  	match /providers/{document=**} {
    	allow read;
    }

    match /registered-patients/{email}/{document=**} {
      allow create, update, read, write: if request.auth.token.email == email;
    }
    match /{document=**} {
    	allow create, update, read, write: if exists(/databases/$(database)/documents/providers/$(request.auth.token.email)) && get(/databases/$(database)/documents/providers/$(request.auth.token.email)).data.admin == true;
    }
  }
}

Features:

  1. Use Core Bluetooth APIs or HealthKit to collect information from an external Omron blood-pressure (BP) cuff. Save the collection results in Firestore. Create at least one view to visualize BP progress for your patient over time. You may use CareKit charts or ResearchKit charts.
  2. Create a provider app that allows an authenticated user to see patient data. The app can be a web-app (ReactJS sample), or another native iPad app. The app must have a way to: (1) see a list of patients, and (2) per patient see at least two data types. Data types include: surveys, healthkit data, location data, bluetooth collected data, and others. Check in with us to confirm that you will receive full credit for your implementation.
  3. Study progress charts for blood pressure.
  4. Secure rules.
  5. Healthkit Health records.
  6. CareKit contact cards.
  7. Secure provider authorisation for user sign up.

HarryMellsop and others added 22 commits March 12, 2021 12:20
* Added CK diary log
* Added CK drug checklist
* Added plot of both
…ider portal adding this functionality (data so far manually spoofed)
…without needing to refresh; dodges race conditions on all except the first login. Will solve that next.
…t race conditions with adding to CareKit store
* Changes <drugs> taken to <drug> to save space in figure legend
* Created plot function that maps data series index to a color
@schlagercollin
Copy link

This PR is up-to-date with our latest code for the final presentation

@vishnuravi vishnuravi closed this Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants