mycoralhealth / mycoral-patient

Mobile app for patients to interact with Coral Health blockchain
17 stars 7 forks source link

Add support for chart views and vital signs record #68

Closed KristonCosta closed 6 years ago

KristonCosta commented 6 years ago

Changes in this PR:

New record type, Vital Signs:

Added support for min/max values for record fields, applies to vital signs only for now.

Added cached store of record types on device along with basic metadata information to speed up chart filtering and creation. The schema for the cached value is: { "encryptionInfo": <the same key/iv stored by the regular record store> "hash": "time":

Moved the add records button up to allow for more records to be added without hiding the button.

Added the View Charts button:

Bugfix: If you try to decrypt more than one record at a time you'd hit a URI exception because the md5 file name would often collide. Changed the md5 name to be based off a snowflake id rather than the current time.