Open in Viewer
Inspect synthetic cycle-log cards with the specialized clinical view: KPI snapshot, calendar, cycles, BBT, symptoms, medications, and scannable QR.
Longitudinal menstrual-cycle and health tracking spanning up to 10,000 days (bounded naturally by QR capacity): uniform FHIR-aligned entry arrays for bleeding and flow, pain, symptoms, basal and wearable temperature (with exclusions), fertility signs, wellbeing series, pill log, medications (with optional doses), contraception, pregnancy and breastfeeding intervals, procedures, screening answers, custom series, optional export timestamp, name and birth date.
01f2811c67a352393f632482b61756815b4d99dc574b070ebb9fb9a89b046a0f68 (download by hash)model.d.ts · model.schema.json · CodeSystem/cycle-log.json · minimal-teaching.model.jsonTools specific to cycle-log — kept here on the codec's hub so the platform navigation stays clean as more codecs are added.
Inspect synthetic cycle-log cards with the specialized clinical view: KPI snapshot, calendar, cycles, BBT, symptoms, medications, and scannable QR.
Turn period days in a calendar export (.ics) into a cycle-log record, card, and QR code locally in your browser.
Trim span, toggle categories, and watch the real WASM encoder's card size, QR version, and byte breakdown react live.
Take a real cycle-log card apart symbol by symbol, from QR digits and card bytes down to each day's range-coder cost.
Lift an arbitrary FHIR R4 Bundle into CycleLog with a per-resource report, and apply omission-only reduction steps to fit a chosen QR version.
Each sample record in three forms: the JSON input model an app writes, the encoded card, and the FHIR R4 Bundle the codec expands it to.
Also published: minimal-teaching.model.json, the smallest useful example.
The concepts of the cycle-log dense-card codec (SMART Health Cards dense QR experiment) that no standard terminology covers exactly (checked on tx.fhir.org, LOINC 2.83, SNOMED CT International 20260701): the bleeding and flow facts, the symptom fact, and the other series, values and statements the card defines. Each is a candidate for submission to LOINC or SNOMED CT. The design started from the HL7 Period Tracking guide; reconciling these concepts with its code system is future work. Not for production use. Version 0.1.0, status draft. FHIR JSON: CodeSystem/cycle-log.json, also served at its canonical address CodeSystem/cycle-log.
| Code | Display | Definition |
|---|---|---|
menstrual-bleeding | Menstrual bleeding | Whether the person had menstrual bleeding on a day, as they recorded it: valueBoolean true = bleeding (any amount), false = explicitly recorded as no bleeding. Absence of the fact means not recorded, never no bleeding. When a flow category is also known, a menstrual-flow fact on the same day gives it. |
menstrual-flow | Patient-reported menstrual flow category | The person's own rating of the amount of menstrual flow on a day. Values are flow-none, flow-spotting, flow-light, flow-moderate and flow-heavy of this system. Always paired with a menstrual-bleeding fact on the same day: false with flow-none, true with any other flow. |
flow-none | No flow | No menstrual flow on the day (recorded explicitly). |
flow-spotting | Spotting | A few drops of blood, not needing protection or only a liner. |
flow-light | Light flow | Light menstrual flow. |
flow-moderate | Moderate flow | Moderate menstrual flow. |
flow-heavy | Heavy flow | Heavy menstrual flow, as the person rated it. |
symptom | Symptom | A symptom the person recorded on a day. The value is the symptom as a coded concept (SNOMED CT clinical findings for the built-in symptoms, or any other concept the source used). Presence only: a symptom not recorded is not recorded, never absent. |
cervical-mucus | Cervical mucus quality (self-observed) | The person's own observation of cervical mucus (vulvar sensation and appearance) on a day, as charted in fertility-awareness and cycle-tracking apps. Values are the mucus-* codes of this system, or any other coded concept the source used. |
mucus-dry | Dry | No cervical mucus seen or felt (Apple HealthKit cervicalMucusQuality dry). |
mucus-sticky | Sticky | Sticky, tacky or pasty mucus that breaks easily. |
mucus-creamy | Creamy | Creamy, lotion-like mucus. |
mucus-watery | Watery | Clear, wet, watery mucus. |
mucus-egg-white | Egg white | Clear, slippery, stretchy mucus resembling raw egg white; the most fertile-type mucus. |
ovulation-test | Home urine ovulation test result | Result of a home urine test for the luteinizing hormone (LH) surge, optionally combined with an estrogen-metabolite (estrone-3-glucuronide) channel as in 'advanced' digital tests. Values: SNOMED CT 260385009 Negative, 10828004 Positive (LH surge detected), 82334004 Indeterminate, or estrogen-surge from this system, or any other coded concept the source used. |
estrogen-surge | Estrogen rise detected, no LH surge | A combined LH/estrogen home test reported rising estrogen (often shown as 'high fertility') without an LH surge (Apple HealthKit ovulationTestResult estrogenSurge). |
pdg-test | Home urine progesterone metabolite (PdG) test result | Result of a qualitative home urine test for pregnanediol-3-glucuronide above the device threshold, used to confirm ovulation (Apple HealthKit progesteroneTestResult). Values: SNOMED CT 260385009 Negative, 10828004 Positive, 82334004 Indeterminate. |
no-sexual-intercourse | No sexual intercourse (explicitly recorded) | The person explicitly recorded that no sexual intercourse took place on the day. Used as a value of SNOMED CT 364316005 Sexual intercourse observable. |
contraceptive-pill-taken | Contraceptive pill taken (self-reported) | Whether the person took their scheduled oral contraceptive pill on the day: valueBoolean true = taken, false = explicitly recorded as missed (equivalent to SNOMED CT 315604002 Missed contraceptive pill (situation)). Absence of the fact means not recorded. The kind of pill is given by the contraception-method Observation (LOINC 8659-5) covering the day. SNOMED CT has a concept for the missed case only, none for 'pill taken'. |
mood-valence | Self-rated mood valence (7-point) | The person's rating of how they felt on a day on a 7-point valence scale from very unpleasant to very pleasant (Apple HealthKit HKStateOfMind valence classification). Values are the valence-* codes of this system, or the levels of another mood scale as coded concepts. |
valence-very-unpleasant | Very unpleasant | Valence 1 of 7. |
valence-unpleasant | Unpleasant | Valence 2 of 7. |
valence-slightly-unpleasant | Slightly unpleasant | Valence 3 of 7. |
valence-neutral | Neutral | Valence 4 of 7. |
valence-slightly-pleasant | Slightly pleasant | Valence 5 of 7. |
valence-pleasant | Pleasant | Valence 6 of 7. |
valence-very-pleasant | Very pleasant | Valence 7 of 7. |
energy-level | Self-rated energy level (4-point) | The person's rating of their energy on a day on a 4-level ordinal scale (Clue: exhausted, low energy, high energy, energized). Values are the energy-* codes of this system, or the levels of another energy scale as coded concepts. |
energy-exhausted | Exhausted | Energy level 1 of 4. |
energy-low | Low energy | Energy level 2 of 4. |
energy-high | High energy | Energy level 3 of 4. |
energy-energized | Energized | Energy level 4 of 4. |
menstrual-fluid-volume | Menstrual fluid volume collected (measured) | Total menstrual fluid collected on a day, in mL, as measured by a smart cup or read from a graduated cup. Collected fluid includes non-blood components: blood averaged 36% of menstrual fluid (range 2–82%; Fraser 1985, PMID 3969232) and about 50% in heavy losses (Fraser 2001, PMID 11704173). Not the same as SNOMED CT 364308001 Quantity of menstrual blood loss. |
skin-temperature-deviation | Nightly skin temperature deviation from personal baseline (wearable) | A wearable's nightly skin or wrist temperature expressed as the difference from the wearer's own baseline as the device computes it (e.g. Oura temperature_deviation, Fitbit nightlyRelative), attributed to the wake day. Signed; a positive value is warmer than baseline. The value is a temperature difference, carried in Cel (or [degF] for a Fahrenheit device). Not a basal body temperature. |
nightly-skin-temperature | Nightly skin temperature (wearable, absolute) | A wearable's absolute nightly skin or wrist temperature aggregated over sleep (e.g. Apple appleSleepingWristTemperature, Google Health nightlyTemperatureCelsius), attributed to the wake day. Not a basal body temperature. |
hot-flash | Hot flash | A sudden feeling of heat, typically over the face, neck and chest, often with flushing and sweating, recorded as a symptom without asserting its cause. SNOMED CT International has only cause-specific concepts (198436008 Menopausal flushing, 427368007 Climacteric flushing, 143661000119109 Non-menopausal hot flash, 439407002 Hot flash caused by medication). |
basal-body-temperature | Basal body temperature | Waking resting basal body temperature at 0.01 Cel or 0.01 [degF] precision. Distinct from general LOINC 8310-5 Body temperature so clinic or fever temperatures never pollute a basal temperature chart. |
reading-excluded | Reading excluded from baseline/shift | Component flag (valueBoolean true) marking a basal or wearable skin temperature reading as disturbed or excluded from cycle thermal-shift interpretation while keeping the recorded temperature visible. |
reading-exclusion-reason | Reason reading was excluded | Component giving the coded reason a temperature reading was marked excluded (an exclude-* code of this system or any other coded concept). |
exclude-fever | Fever or illness | Temperature reading disturbed by fever or acute illness. |
exclude-alcohol | Alcohol | Temperature reading disturbed by alcohol intake. |
exclude-poor-sleep | Poor or disrupted sleep | Temperature reading disturbed by short or disrupted sleep. |
exclude-late-wake | Unusual wake time | Temperature reading taken significantly earlier or later than habitual wake time. |
exclude-travel | Travel or time-zone shift | Temperature reading disturbed by travel or circadian shift. |
exclude-stress | Stress | Temperature reading disturbed by acute stress. |
exclude-medication | Medication effect | Temperature reading disturbed by antipyretic or other temperature-altering medication. |
exclude-other | Other disturbance | Temperature reading disturbed for another unspecified reason. |