{
 "note": "The cycle-log codec's closed FHIR R4 profiles: a Bundle conforms when it is exactly what the codec can emit. Generated from the model; see codecs/cycle-log/profiles/PROFILES.md.",
 "profiles": [
  {
   "name": "cycle-log-patient",
   "title": "Patient",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient",
   "type": "Patient",
   "model": "patient",
   "description": "The person: a name (family and up to three given names) and/or a birth date; without either, the identity-free Patient {\"id\": \"0\"}."
  },
  {
   "name": "cycle-log-device",
   "title": "Source app",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-device",
   "type": "Device",
   "model": "source",
   "description": "The app or device the data came from: one user-friendly name and an optional version."
  },
  {
   "name": "cycle-log-bleeding",
   "title": "Menstrual bleeding",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bleeding",
   "type": "Observation",
   "model": "bleeding (yes/no)",
   "description": "A menstrual bleeding fact: one per entry of the model's bleeding (yes/no), dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-flow",
   "title": "Menstrual flow",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-flow",
   "type": "Observation",
   "model": "bleeding (flow states)",
   "description": "A menstrual flow fact: one per entry of the model's bleeding (flow states), dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-volume",
   "title": "Measured menstrual fluid volume",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-volume",
   "type": "Observation",
   "model": "volume",
   "description": "A measured menstrual fluid volume fact: one per entry of the model's volume, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-pain",
   "title": "Pain score",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pain",
   "type": "Observation",
   "model": "pain",
   "description": "A pain score fact: one per entry of the model's pain, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-symptom",
   "title": "Symptom",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-symptom",
   "type": "Observation",
   "model": "symptoms",
   "description": "A symptom fact: one per entry of the model's symptoms, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-bbt",
   "title": "Basal body temperature",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bbt",
   "type": "Observation",
   "model": "bbt",
   "description": "A basal body temperature fact: one per entry of the model's bbt, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-skin-temp-deviation",
   "title": "Skin temperature deviation",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-deviation",
   "type": "Observation",
   "model": "skinTemp (deviation)",
   "description": "A skin temperature deviation fact: one per entry of the model's skinTemp (deviation), dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-skin-temp-absolute",
   "title": "Nightly skin temperature",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-absolute",
   "type": "Observation",
   "model": "skinTemp (absolute)",
   "description": "A nightly skin temperature fact: one per entry of the model's skinTemp (absolute), dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-mucus",
   "title": "mucus",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mucus",
   "type": "Observation",
   "model": "mucus",
   "description": "A mucus fact: one per entry of the model's mucus, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-ovulation-test",
   "title": "ovulationTest",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-ovulation-test",
   "type": "Observation",
   "model": "ovulationTest",
   "description": "A ovulationtest fact: one per entry of the model's ovulationTest, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-progesterone-test",
   "title": "progesteroneTest",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-progesterone-test",
   "type": "Observation",
   "model": "progesteroneTest",
   "description": "A progesteronetest fact: one per entry of the model's progesteroneTest, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-pregnancy-test",
   "title": "pregnancyTest",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-test",
   "type": "Observation",
   "model": "pregnancyTest",
   "description": "A pregnancytest fact: one per entry of the model's pregnancyTest, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-sex",
   "title": "sex",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sex",
   "type": "Observation",
   "model": "sex",
   "description": "A sex fact: one per entry of the model's sex, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-mood",
   "title": "mood",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mood",
   "type": "Observation",
   "model": "mood",
   "description": "A mood fact: one per entry of the model's mood, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-energy",
   "title": "energy",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-energy",
   "type": "Observation",
   "model": "energy",
   "description": "A energy fact: one per entry of the model's energy, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-sleep",
   "title": "Sleep duration",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sleep",
   "type": "Observation",
   "model": "sleep",
   "description": "A sleep duration fact: one per entry of the model's sleep, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-pill",
   "title": "Contraceptive pill log",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pill",
   "type": "Observation",
   "model": "pill",
   "description": "A contraceptive pill log fact: one per entry of the model's pill, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-answer-usual-cycle-length",
   "title": "Answer: usual-cycle-length",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-usual-cycle-length",
   "type": "Observation",
   "model": "answers (usual-cycle-length)",
   "description": "The person's answer to usual-cycle-length, dated by the day (and time, when known) it was given."
  },
  {
   "name": "cycle-log-answer-periods-per-year",
   "title": "Answer: periods-per-year",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-per-year",
   "type": "Observation",
   "model": "answers (periods-per-year)",
   "description": "The person's answer to periods-per-year, dated by the day (and time, when known) it was given."
  },
  {
   "name": "cycle-log-answer-missed-periods-3-months",
   "title": "Answer: missed-periods-3-months",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-missed-periods-3-months",
   "type": "Observation",
   "model": "answers (missed-periods-3-months)",
   "description": "The person's answer to missed-periods-3-months, dated by the day (and time, when known) it was given."
  },
  {
   "name": "cycle-log-answer-period-in-last-year",
   "title": "Answer: period-in-last-year",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-period-in-last-year",
   "type": "Observation",
   "model": "answers (period-in-last-year)",
   "description": "The person's answer to period-in-last-year, dated by the day (and time, when known) it was given."
  },
  {
   "name": "cycle-log-answer-periods-stopped",
   "title": "Answer: periods-stopped",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-stopped",
   "type": "Observation",
   "model": "answers (periods-stopped)",
   "description": "The person's answer to periods-stopped, dated by the day (and time, when known) it was given."
  },
  {
   "name": "cycle-log-answer-age-periods-stopped",
   "title": "Answer: age-periods-stopped",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-periods-stopped",
   "type": "Observation",
   "model": "answers (age-periods-stopped)",
   "description": "The person's answer to age-periods-stopped, dated by the day (and time, when known) it was given."
  },
  {
   "name": "cycle-log-answer-age-at-menarche",
   "title": "Answer: age-at-menarche",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-at-menarche",
   "type": "Observation",
   "model": "answers (age-at-menarche)",
   "description": "The person's answer to age-at-menarche, dated by the day (and time, when known) it was given."
  },
  {
   "name": "cycle-log-contraception-interval",
   "title": "Contraception interval",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-contraception-interval",
   "type": "Observation",
   "model": "intervals (contraception)",
   "description": "A contraception state over a range of days."
  },
  {
   "name": "cycle-log-pregnancy-interval",
   "title": "Pregnancy interval",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-interval",
   "type": "Observation",
   "model": "intervals (pregnancy)",
   "description": "A pregnancy state over a range of days."
  },
  {
   "name": "cycle-log-breastfeeding-interval",
   "title": "Breastfeeding interval",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-breastfeeding-interval",
   "type": "Observation",
   "model": "intervals (breastfeeding)",
   "description": "A breastfeeding state over a range of days."
  },
  {
   "name": "cycle-log-custom-interval",
   "title": "Custom interval",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-interval",
   "type": "Observation",
   "model": "intervals ({code, value})",
   "description": "Any coded state over a range of days, under a code that is not built in and not a vital sign."
  },
  {
   "name": "cycle-log-custom-boolean",
   "title": "Custom boolean series",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-boolean",
   "type": "Observation",
   "model": "custom (boolean)",
   "description": "A yes/no fact of a card-declared series: one per entry, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-custom-coded",
   "title": "Custom coded series",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-coded",
   "type": "Observation",
   "model": "custom (coded)",
   "description": "A coded fact of a card-declared series: one per concept entry, dated by its day and, when it has one, its time."
  },
  {
   "name": "cycle-log-custom-quantity",
   "title": "Custom quantity series",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-quantity",
   "type": "Observation",
   "model": "custom (quantity)",
   "description": "A measurement of a card-declared quantity series, one per entry (any UCUM unit)."
  },
  {
   "name": "cycle-log-custom-reading",
   "title": "Custom reading with components",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-reading",
   "type": "Observation",
   "model": "custom (components)",
   "description": "A reading of a card-declared series, one per entry, with one component per recorded value (blood pressure, an app's multi-part check-in)."
  },
  {
   "name": "cycle-log-medication",
   "title": "Medication taken or not taken",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-medication",
   "type": "MedicationStatement",
   "model": "medications",
   "description": "One statement per medication entry: completed (taken) or not-taken, dated by its day and, when it has one, its time, with an optional exact dose."
  },
  {
   "name": "cycle-log-procedure",
   "title": "Procedure",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-procedure",
   "type": "Procedure",
   "model": "procedures",
   "description": "A completed procedure, dated to the year, month, day, or day and time (1900-2150)."
  },
  {
   "name": "cycle-log-condition",
   "title": "Reported condition",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-condition",
   "type": "Condition",
   "model": "conditions",
   "description": "A condition the person reports, with an optional stated status (active, resolved) and onset."
  },
  {
   "name": "cycle-log-bundle",
   "title": "cycle-log Bundle",
   "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle",
   "type": "Bundle",
   "model": "the whole card",
   "description": "What a cycle-log codec emits: a collection Bundle of exactly these profiles, with an optional export timestamp and tagged SUBSETTED when the card was reduced."
  }
 ],
 "valueSets": [
  {
   "name": "cycle-log-flow",
   "title": "Menstrual flow categories",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-flow",
   "concepts": 5
  },
  {
   "name": "cycle-log-exclude-reasons",
   "title": "Temperature exclusion reasons",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-exclude-reasons",
   "concepts": 8
  },
  {
   "name": "cycle-log-temperature-unit",
   "title": "Temperature units",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-temperature-unit",
   "concepts": 2
  },
  {
   "name": "cycle-log-medication-status",
   "title": "Medication statement statuses",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-medication-status",
   "concepts": 2
  },
  {
   "name": "cycle-log-condition-status",
   "title": "Condition clinical statuses the person can state",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-condition-status",
   "concepts": 2
  },
  {
   "name": "cycle-log-symptoms",
   "title": "Built-in symptoms",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-symptoms",
   "concepts": 35
  },
  {
   "name": "cycle-log-medications",
   "title": "Built-in medications",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-medications",
   "concepts": 7
  },
  {
   "name": "cycle-log-conditions",
   "title": "Built-in conditions",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-conditions",
   "concepts": 15
  },
  {
   "name": "cycle-log-procedures",
   "title": "Built-in procedures",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-procedures",
   "concepts": 13
  },
  {
   "name": "cycle-log-mucus",
   "title": "Built-in mucus values",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-mucus",
   "concepts": 5
  },
  {
   "name": "cycle-log-ovulation-test",
   "title": "Built-in ovulationTest values",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-ovulation-test",
   "concepts": 4
  },
  {
   "name": "cycle-log-progesterone-test",
   "title": "Built-in progesteroneTest values",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-progesterone-test",
   "concepts": 3
  },
  {
   "name": "cycle-log-pregnancy-test",
   "title": "Built-in pregnancyTest values",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-pregnancy-test",
   "concepts": 3
  },
  {
   "name": "cycle-log-sex",
   "title": "Built-in sex values",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-sex",
   "concepts": 4
  },
  {
   "name": "cycle-log-mood",
   "title": "Built-in mood values",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-mood",
   "concepts": 7
  },
  {
   "name": "cycle-log-energy",
   "title": "Built-in energy values",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-energy",
   "concepts": 4
  },
  {
   "name": "cycle-log-contraception-values",
   "title": "Built-in contraception states",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-contraception-values",
   "concepts": 13
  },
  {
   "name": "cycle-log-pregnancy-values",
   "title": "Built-in pregnancy states",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-pregnancy-values",
   "concepts": 1
  },
  {
   "name": "cycle-log-breastfeeding-values",
   "title": "Built-in breastfeeding states",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-breastfeeding-values",
   "concepts": 1
  },
  {
   "name": "cycle-log-answers-usual-cycle-length",
   "title": "Answers to usual-cycle-length",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-answers-usual-cycle-length",
   "concepts": 8
  },
  {
   "name": "cycle-log-answers-period-in-last-year",
   "title": "Answers to period-in-last-year",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-answers-period-in-last-year",
   "concepts": 2
  },
  {
   "name": "cycle-log-answers-periods-stopped",
   "title": "Answers to periods-stopped",
   "url": "https://joshuamandel.com/shc2-poc/ValueSet/cycle-log-answers-periods-stopped",
   "concepts": 4
  }
 ],
 "codeSystem": "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log (written by ../make-codesystem.ts, not here)",
 "residualRules": [
  {
   "id": "snomed-check-digit",
   "rule": "A SNOMED CT id passes the Verhoeff check digit.",
   "why": "FHIRPath has no loops or table lookups; an unrolled expression for 18 digits would run to kilobytes. The profiles check the shape and the partition (cy-coding).",
   "kind": "inherent",
   "remedy": "Terminology validation covers it: the HL7 validator with a terminology server rejects a SNOMED CT code that does not exist, which is stronger than the check digit."
  }
 ]
}
