0.0.11 • Published 6 years ago

com.youper.healthrecords v0.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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

  1. Install the plugin on the project:

    cordova plugin add com.youper.healthrecords

  2. 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

  1. It does not work on Android. Need to implement code to not break on Android
  2. There is always an empty record.
  3. Find a better way to return the records, instead of using string concatenation.
0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago