Data types (DataType) represent atomic sampling data. Health Service Kit establishes standard definitions of data types so that different apps can understand the sampling data of each other. A data type consists of a name and a field list, and each field represents a data dimension. Apps can assemble data based on the standard definitions and write the data to Health Service Kit, or parse and read data based on the standard definitions.
There are three major data types:
A data collector (DataCollector) is the raw data source of a mobile phone or an external device. It consists of the data type, app information, and device information. A unique identifier is generated when a data collector is created.
A sampling dataset (SampleSet) is a container for storing sampling points (SamplePoint) that come from the same data collector. It is usually used to insert or read atomic sampling data in batches. A sampling dataset contains a set of associated sampling points obtained from a data collector.
A sampling point (SamplePoint) is the sample of a specific type of data collected by a specific data collector at a specific moment (or within a specific period of time). It consists of the time and the sample value. For example, an app can use sampling points to write health data such as the blood pressure of a user to Health Service Kit.
Sampling points are classified into the following types:
Health Service Kit provides a group of public sampling data types in the com.huawei namespace, covering daily activities, sports, and health sampling data.
Sampling point data obtained instantaneously or within a short period of time. Any raw detailed data collected by a data collector falls into the atomic sampling detailed data type.
Atomic sampling statistical data types are generated based on statistics of the atomic sampling data by day, week, year, or any other certain time range.
An exercise record (ActivityRecord), like a running or jump rope exercise record, provides detailed data of a workout that lasts a period of time, and consists of workout type, app information, time range, exercise record characteristics, associated atomic sampling detailed data, and associated atomic sampling statistical data.

The preceding figure shows the association between ActivityRecord and SampleSet. The horizontal axis indicates the time, and the vertical axis indicates the data type of the sampling points.
As shown in the figure, a running record consists of sampling datasets of GPS, speed, cadence, and heart rate, and a rope jumping record consists of sampling datasets of cadence, jumping speed, SpO2, and heart rate.
A health record (HealthRecord), like an ECG measurement or sleep record, provides a user's health details within a period of time, and consists of health record type, data collector, time range, health record characteristics, associated atomic sampling detailed data, and associated atomic sampling statistical data.

The preceding figure shows the association between HealthRecord and SampleSet. The horizontal axis indicates the time, and the vertical axis indicates the data type of the sampling points. HealthRecord can be associated only with the sampling datasets of the current app, and can be associated with only certain sampling data types. For details, please refer to ECG Measurement Records.
In the preceding figure, the ECG measurement record is associated only with the ECG sampling dataset, and the sleep record is associated with the sleep status sampling dataset.