com.youper.healthrecords
v0.0.11
Published
## Description Cordova plugin to read records from user's health history using Apple Health Records feature, only available on iOS 12. Only reads records about Conditions.
Downloads
13
Maintainers
Readme
healthrecords
Description
Cordova plugin to read records from user's health history using Apple Health Records feature, only available on iOS 12. Only reads records about Conditions.
How to install
Install the plugin on the project:
cordova plugin add com.youper.healthrecords
Set property in info.plist file inside XCode project:
Privacy - Health Records Usage Description : Youper requires access to your conditions records
How to use
HealthRecords.getConditionsAndMedications(function (conditionsAndMedications) {
var result = {conditions: [], medications: []};
try {
var conditionsAndMedications = JSON.parse(conditionsAndMedications);
var conditionsArray = conditionsAndMedications['Conditions'];
var medicationsArray = conditionsAndMedications['Medications'];
} catch(err) {
...
}
}, function (err) {
...
});
Known problems
- It does not work on Android. Need to implement code to not break on Android
- There is always an empty record.
- Find a better way to return the records, instead of using string concatenation.