Contents

irregularMenstrualCycles

A category sample that indicates an irregular menstrual cycle.

Declaration

static let irregularMenstrualCycles: HKCategoryTypeIdentifier

Discussion

HealthKit generates Cycle Deviation notifications based on the cycle data a person enters. HealthKit processes this data on their iOS device. If it detects a potential deviation, it sends a notification asking them to verify their logged cycle history. If the person confirms that their cycle history is accurate, HealthKit saves a corresponding sample of the detected Cycle Deviation to the HealthKit store.

Cycle Deviation notifications include:

Persistent spotting

Persistent spotting, also known as irregular intermenstrual bleeding, is defined as spotting that occurs in at least two of your cycles in the last six months. HealthKit records verified instances using persistentIntermenstrualBleeding samples.

Prolonged periods

Prolonged periods are defined as menstrual bleeding that lasts for ten or more days, and this has happened at least two times in the last six months. HealthKit records verified instances using prolongedMenstrualPeriods samples.

Irregular cycles

An irregular cycle is defined as at least a seventeen-day difference between a person’s shortest and longest cycles over the last six months. HealthKit records verified instances using irregularMenstrualCycles samples.

Infrequent periods

An infrequent period is defined as having a period one or two times in the last six months. HealthKit records verified instances using infrequentMenstrualCycles samples.

Use a HKCategoryValue.notApplicable value with these samples.

See Also

Reproductive health