code: function (sampleQuery) {
          var q = $q.defer();
          $window.plugins.healthkit.querySampleType(sampleQuery,
            function (success) {
              q.resolve(success);
            },
            function (err) {
              q.resolve(err);
            }
          );
          return q.promise;
        }
docs: Sample any kind of health data through a given date range.
  sampleQuery of the format:
  {
  'startDate': yesterday, // mandatory
  'endDate': tomorrow, // mandatory
  'sampleType': 'HKQuantityTypeIdentifierHeight',
  'unit' : 'cm'
  },