What does recordCount mean in exported xml from Health.app?

I'm working on an app dealing with the data exported from Health.app using build in export feature.

In the exported xml some of the records have "recordCount" attribute and I can't figure out what does it mean.

<Record type="HKQuantityTypeIdentifierHeartRate" source="Victor's Apple Watch" unit="count/s" startDate="20150603003800-0700" endDate="20150604003800-0700" min="1.01667" max="1.35" average="1.21111" recordCount="9"/>
<Record type="HKQuantityTypeIdentifierHeartRate" source="Victor's Apple Watch" unit="count/s" startDate="20150604003800-0700" endDate="20150605003800-0700" min="0.766667" max="1.7" average="1.13559" recordCount="37"/>
<Record type="HKQuantityTypeIdentifierHeartRate" source="Victor's Apple Watch" unit="count/s" startDate="20150605003800-0700" endDate="20150606003800-0700" min="1.01667" max="2.3" average="1.41458" recordCount="16"/>
<Record type="HKQuantityTypeIdentifierHeartRate" source="Victor's Apple Watch" unit="count/s" startDate="20150606003800-0700" endDate="20150607003800-0700" min="1.03333" max="1.78333" average="1.2619" recordCount="14"/>
<Record type="HKQuantityTypeIdentifierHeartRate" source="Victor's Apple Watch" unit="count/s" startDate="20150607003800-0700" endDate="20150608003800-0700" min="1.01667" max="1.35" average="1.22222" recordCount="12"/>
<Record type="HKQuantityTypeIdentifierDistanceWalkingRunning" source="Victor's Apple Watch" unit="m" startDate="20150502003800-0700" endDate="20150503003800-0700" value="17209.8" recordCount="398"/>
<Record type="HKQuantityTypeIdentifierDistanceWalkingRunning" source="Victor's Apple Watch" unit="m" startDate="20150503003800-0700" endDate="20150504003800-0700" value="10004.2" recordCount="227"/>
<Record type="HKQuantityTypeIdentifierDistanceWalkingRunning" source="Victor's Apple Watch" unit="m" startDate="20150504003800-0700" endDate="20150505003800-0700" value="4662.04" recordCount="170"/>
<Record type="HKQuantityTypeIdentifierDistanceWalkingRunning" source="Victor's Apple Watch" unit="m" startDate="20150505003800-0700" endDate="20150506003800-0700" value="4201.85" recordCount="126"/>

Could somebody clarify this for me please? Thanks in advance!

Any response from an Apple engineer, please?

I'm not sure but it seems that in the export process some data like step count is totalized. I figure that if you found 5342 steps they are the sum of a number of different records.


don't know why there is no documentation about the two files generated in the export process. Did you find something?

Ok, I'm looking at <Record type="HKQuantityTypeIdentifierFlightsClimbed" source="iPhone de Antonio" unit="count" startDate="20151027122800+0100" endDate="20151028122800+0100" value="2" recordCount="2"/>

in my iPhone there are two record both with a value of 1.


<Record type="HKQuantityTypeIdentifierFlightsClimbed" source="iPhone de Antonio" unit="count" startDate="20151018112800+0100" endDate="20151019112800+0100" value="3" recordCount="3"/>

in my iPhone I have 3 records each with a value of 1. but the hours don´t match.


<Record type="HKQuantityTypeIdentifierFlightsClimbed" source="iPhone de Antonio" unit="count" startDate="20151005112800+0100" endDate="20151006112800+0100" value="5" recordCount="5"/>

Same, two records with a value of 1 on day 6, and 3 recods with a value of 1 on day 5 so recordCount=5 and Value=5.


If I delete one record and make a new export the result is that tha last register has been divided into two register both with a record count of 2. So Recordcount is the number of registers totalized in the export.


The start and end dates are a misterious for me right now. I can´t understand the purpose of this export file.

What does recordCount mean in exported xml from Health.app?
 
 
Q