SHC vNext QR proof of concept

FHIR profiles

The cycle-log codec's FHIR R4 profiles: what a Bundle may hold to be exactly a card's record.

The contract

The profiles allow exactly what the input model can say, and nothing else: every other element, extension and modifier value is forbidden. A Bundle that conforms lifts into the model exactly, and the Bundle the decoder writes from a card always conforms. A Bundle that goes beyond them can still be lifted (the fit page does it), but that is a reduction: what does not fit is left out or changed, each with a reason, and the card is marked as reduced.

The profiles are differentials generated from the model (38 StructureDefinitions and 22 ValueSets); snapshots are not published, as validators build them from the differentials. Each is served at its canonical URL and again with .json. The concepts are in the codec's CodeSystem. The index of profiles, value sets and residual rules is index.json; the summaries below are summaries.json. How they are made and tested: PROFILES.md.

To validate Bundles with the HL7 validator against the generated definitions (as the repository does):

R4_DEFINITIONS=<dir> PUBLISHER_JAR=<jar> SCRATCH=<dir> bun codecs/cycle-log/profiles/validate.ts

The profiles

ProfileCarries, in the modelJSON
Bundle
cycle-log Bundlethe whole cardcycle-log-bundle
Patient
Patientpatientcycle-log-patient
Device
Source appsourcecycle-log-device
Observation
Menstrual bleedingbleeding (yes/no)cycle-log-bleeding
Menstrual flowbleeding (flow states)cycle-log-flow
Measured menstrual fluid volumevolumecycle-log-volume
Pain scorepaincycle-log-pain
Symptomsymptomscycle-log-symptom
Basal body temperaturebbtcycle-log-bbt
Skin temperature deviationskinTemp (deviation)cycle-log-skin-temp-deviation
Nightly skin temperatureskinTemp (absolute)cycle-log-skin-temp-absolute
mucusmucuscycle-log-mucus
ovulationTestovulationTestcycle-log-ovulation-test
progesteroneTestprogesteroneTestcycle-log-progesterone-test
pregnancyTestpregnancyTestcycle-log-pregnancy-test
sexsexcycle-log-sex
moodmoodcycle-log-mood
energyenergycycle-log-energy
Sleep durationsleepcycle-log-sleep
Contraceptive pill logpillcycle-log-pill
Answer: usual-cycle-lengthanswers (usual-cycle-length)cycle-log-answer-usual-cycle-length
Answer: periods-per-yearanswers (periods-per-year)cycle-log-answer-periods-per-year
Answer: missed-periods-3-monthsanswers (missed-periods-3-months)cycle-log-answer-missed-periods-3-months
Answer: period-in-last-yearanswers (period-in-last-year)cycle-log-answer-period-in-last-year
Answer: periods-stoppedanswers (periods-stopped)cycle-log-answer-periods-stopped
Answer: age-periods-stoppedanswers (age-periods-stopped)cycle-log-answer-age-periods-stopped
Answer: age-at-menarcheanswers (age-at-menarche)cycle-log-answer-age-at-menarche
Contraception intervalintervals (contraception)cycle-log-contraception-interval
Pregnancy intervalintervals (pregnancy)cycle-log-pregnancy-interval
Breastfeeding intervalintervals (breastfeeding)cycle-log-breastfeeding-interval
Custom intervalintervals ({code, value})cycle-log-custom-interval
Custom boolean seriescustom (boolean)cycle-log-custom-boolean
Custom coded seriescustom (coded)cycle-log-custom-coded
Custom quantity seriescustom (quantity)cycle-log-custom-quantity
Custom reading with componentscustom (components)cycle-log-custom-reading
MedicationStatement
Medication taken or not takenmedicationscycle-log-medication
Procedure
Procedureprocedurescycle-log-procedure
Condition
Reported conditionconditionscycle-log-condition

Value sets

A required binding allows only the listed concepts; a preferred one lists the built-in concepts and allows any other concept as an escape, as the model does.

Rules the profiles cannot state

The model rules that R4 profiles do not express, with the reason; validate() in the model checks them. "Inherent": R4 FHIRPath cannot state it. "Change": a small change to the model or the codec would bring it inside.

RuleWhat it saysWhy outsideKind
snomed-check-digitA SNOMED CT id passes the Verhoeff check digit.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).inherent

Each profile

Patient

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient (Patient). Model part: patient.

The person: a name (family and up to three given names) and/or a birth date; without either, the identity-free Patient {"id": "0"}.

elementconstraint
nameoptional
name.familyoptional; at most 64 characters
name.given0 to 3; at most 64 characters
birthDateoptional
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-patient-id: A Patient with no name and no birth date (the identity-free Patient) carries an id, so that it is not empty (R4 bdl-5); the id says nothing.
  • cy-name-part: A name has a family name or at least one given name.
  • cy-name-text: Names and the source app's name and version have no leading or trailing whitespace and no control characters (lengths are maxLength).
  • cy-birthdate: The birth date year is in 1900..2150.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient.

Source app

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-device (Device). Model part: source.

The app or device the data came from: one user-friendly name and an optional version.

elementconstraint
deviceNamerequired
deviceName.namerequired; at most 64 characters
deviceName.typerequired; always "user-friendly-name"
versionoptional
version.valuerequired; at most 32 characters
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-device"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-name-text: Names and the source app's name and version have no leading or trailing whitespace and no control characters (lengths are maxLength).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-device.

Menstrual bleeding

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bleeding (Observation). Model part: bleeding (yes/no).

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.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "menstrual-bleeding"
code.coding.displayrequired; always "Menstrual bleeding"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as boolean
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bleeding"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bleeding.

Menstrual flow

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-flow (Observation). Model part: bleeding (flow states).

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.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "menstrual-flow"
code.coding.displayrequired; always "Patient-reported menstrual flow category"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; one of "Menstrual flow categories"
value[x].codingrequired
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-flow"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-flow.

Measured menstrual fluid volume

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-volume (Observation). Model part: volume.

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.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "menstrual-fluid-volume"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired; from 0 to 500
value[x].unitrequired; always "mL"
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; always "mL"
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-volume"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-integer: The value is a whole number (the model holds integers here).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-volume.

Pain score

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pain (Observation). Model part: pain.

A pain score fact: one per entry of the model's pain, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "72514-3"
code.coding.displayrequired; always "Pain severity - 0-10 verbal numeric rating [Score] - Reported"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired; from 0 to 10
value[x].unitrequired; always "{score}"
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; always "{score}"
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pain"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-integer: The value is a whole number (the model holds integers here).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pain.

Symptom

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-symptom (Observation). Model part: symptoms.

A symptom fact: one per entry of the model's symptoms, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "symptom"
code.coding.displayrequired; always "Symptom"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Built-in symptoms" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-symptom"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-symptom.

Basal body temperature

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bbt (Observation). Model part: bbt.

A basal body temperature fact: one per entry of the model's bbt, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "basal-body-temperature"
code.coding.displayrequired; always "Basal body temperature"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired
value[x].unitrequired; at most 64 characters
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; one of "Temperature units"; at most 64 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
component0 to 2
component.coderequired
component.code.codingrequired
component.code.coding.systemrequired; at most 255 characters
component.code.coding.coderequired; at most 128 characters
component.value[x]required; as boolean or CodeableConcept
component.value[x]:valueBooleanoptional; always true
component.value[x]:valueCodeableConceptoptional; preferably from "Temperature exclusion reasons" (any concept allowed)
component.value[x]:valueCodeableConcept.codingoptional
component.value[x]:valueCodeableConcept.coding.systemrequired; at most 255 characters
component.value[x]:valueCodeableConcept.coding.coderequired; at most 128 characters
component.value[x]:valueCodeableConcept.coding.displayoptional; at most 128 characters
component.value[x]:valueCodeableConcept.textoptional; at most 128 characters
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bbt"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-quantity-unit: Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces.
  • cy-hundredths: A temperature has at most two decimals.
  • cy-bbt-range: A BBT reading is in the model's range for its unit: Cel 34-42, [degF] 93-107.6.
  • cy-component-codes: The components of one reading have different codes.
  • cy-temp-exclude: A temperature reading's optional components carry only reading-excluded (valueBoolean = true) and, when excluded, reading-exclusion-reason (valueCodeableConcept).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bbt.

Skin temperature deviation

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-deviation (Observation). Model part: skinTemp (deviation).

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.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "skin-temperature-deviation"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired
value[x].unitrequired; at most 64 characters
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; one of "Temperature units"; at most 64 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
component0 to 2
component.coderequired
component.code.codingrequired
component.code.coding.systemrequired; at most 255 characters
component.code.coding.coderequired; at most 128 characters
component.value[x]required; as boolean or CodeableConcept
component.value[x]:valueBooleanoptional; always true
component.value[x]:valueCodeableConceptoptional; preferably from "Temperature exclusion reasons" (any concept allowed)
component.value[x]:valueCodeableConcept.codingoptional
component.value[x]:valueCodeableConcept.coding.systemrequired; at most 255 characters
component.value[x]:valueCodeableConcept.coding.coderequired; at most 128 characters
component.value[x]:valueCodeableConcept.coding.displayoptional; at most 128 characters
component.value[x]:valueCodeableConcept.textoptional; at most 128 characters
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-deviation"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-quantity-unit: Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces.
  • cy-hundredths: A temperature has at most two decimals.
  • cy-skin-deviation-range: A deviation skin temperature is in the model's range for its unit: Cel -5 to 5, [degF] -9 to 9.
  • cy-component-codes: The components of one reading have different codes.
  • cy-temp-exclude: A temperature reading's optional components carry only reading-excluded (valueBoolean = true) and, when excluded, reading-exclusion-reason (valueCodeableConcept).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-deviation.

Nightly skin temperature

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-absolute (Observation). Model part: skinTemp (absolute).

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.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "nightly-skin-temperature"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired
value[x].unitrequired; at most 64 characters
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; one of "Temperature units"; at most 64 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
component0 to 2
component.coderequired
component.code.codingrequired
component.code.coding.systemrequired; at most 255 characters
component.code.coding.coderequired; at most 128 characters
component.value[x]required; as boolean or CodeableConcept
component.value[x]:valueBooleanoptional; always true
component.value[x]:valueCodeableConceptoptional; preferably from "Temperature exclusion reasons" (any concept allowed)
component.value[x]:valueCodeableConcept.codingoptional
component.value[x]:valueCodeableConcept.coding.systemrequired; at most 255 characters
component.value[x]:valueCodeableConcept.coding.coderequired; at most 128 characters
component.value[x]:valueCodeableConcept.coding.displayoptional; at most 128 characters
component.value[x]:valueCodeableConcept.textoptional; at most 128 characters
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-absolute"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-quantity-unit: Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces.
  • cy-hundredths: A temperature has at most two decimals.
  • cy-skin-absolute-range: A absolute skin temperature is in the model's range for its unit: Cel 25 to 40, [degF] 77 to 104.
  • cy-component-codes: The components of one reading have different codes.
  • cy-temp-exclude: A temperature reading's optional components carry only reading-excluded (valueBoolean = true) and, when excluded, reading-exclusion-reason (valueCodeableConcept).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-absolute.

mucus

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mucus (Observation). Model part: mucus.

A mucus fact: one per entry of the model's mucus, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "cervical-mucus"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Built-in mucus values" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mucus"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mucus.

ovulationTest

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-ovulation-test (Observation). Model part: ovulationTest.

A ovulationtest fact: one per entry of the model's ovulationTest, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "ovulation-test"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Built-in ovulationTest values" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-ovulation-test"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-ovulation-test.

progesteroneTest

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-progesterone-test (Observation). Model part: progesteroneTest.

A progesteronetest fact: one per entry of the model's progesteroneTest, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "pdg-test"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Built-in progesteroneTest values" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-progesterone-test"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-progesterone-test.

pregnancyTest

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-test (Observation). Model part: pregnancyTest.

A pregnancytest fact: one per entry of the model's pregnancyTest, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "2106-3"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Built-in pregnancyTest values" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-test"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-test.

sex

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sex (Observation). Model part: sex.

A sex fact: one per entry of the model's sex, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://snomed.info/sct"
code.coding.coderequired; always "364316005"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Built-in sex values" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sex"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sex.

mood

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mood (Observation). Model part: mood.

A mood fact: one per entry of the model's mood, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "mood-valence"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Built-in mood values" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mood"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mood.

energy

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-energy (Observation). Model part: energy.

A energy fact: one per entry of the model's energy, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "energy-level"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Built-in energy values" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-energy"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-energy.

Sleep duration

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sleep (Observation). Model part: sleep.

A sleep duration fact: one per entry of the model's sleep, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "93832-4"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired; from 0 to 1440
value[x].unitrequired; always "min"
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; always "min"
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sleep"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-integer: The value is a whole number (the model holds integers here).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sleep.

Contraceptive pill log

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pill (Observation). Model part: pill.

A contraceptive pill log fact: one per entry of the model's pill, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log"
code.coding.coderequired; always "contraceptive-pill-taken"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as boolean
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pill"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pill.

Answer: usual-cycle-length

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-usual-cycle-length (Observation). Model part: answers (usual-cycle-length).

The person's answer to usual-cycle-length, dated by the day (and time, when known) it was given.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "64700-8"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Answers to usual-cycle-length" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-usual-cycle-length"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-usual-cycle-length.

Answer: periods-per-year

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-per-year (Observation). Model part: answers (periods-per-year).

The person's answer to periods-per-year, dated by the day (and time, when known) it was given.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "92656-8"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired; from 0 to 100
value[x].unitrequired; always "/a"
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; always "/a"
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-per-year"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-integer: The value is a whole number (the model holds integers here).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-per-year.

Answer: missed-periods-3-months

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-missed-periods-3-months (Observation). Model part: answers (missed-periods-3-months).

The person's answer to missed-periods-3-months, dated by the day (and time, when known) it was given.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "65930-0"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired; from 0 to 3
value[x].unitrequired; always "{#}/(3.mo)"
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; always "{#}/(3.mo)"
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-missed-periods-3-months"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-integer: The value is a whole number (the model holds integers here).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-missed-periods-3-months.

Answer: period-in-last-year

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-period-in-last-year (Observation). Model part: answers (period-in-last-year).

The person's answer to period-in-last-year, dated by the day (and time, when known) it was given.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "63889-0"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Answers to period-in-last-year" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-period-in-last-year"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-period-in-last-year.

Answer: periods-stopped

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-stopped (Observation). Model part: answers (periods-stopped).

The person's answer to periods-stopped, dated by the day (and time, when known) it was given.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "64701-6"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept; preferably from "Answers to periods-stopped" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-stopped"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-stopped.

Answer: age-periods-stopped

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-periods-stopped (Observation). Model part: answers (age-periods-stopped).

The person's answer to age-periods-stopped, dated by the day (and time, when known) it was given.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "64702-4"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired; from 0 to 100
value[x].unitrequired; always "a"
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; always "a"
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-periods-stopped"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-integer: The value is a whole number (the model holds integers here).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-periods-stopped.

Answer: age-at-menarche

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-at-menarche (Observation). Model part: answers (age-at-menarche).

The person's answer to age-at-menarche, dated by the day (and time, when known) it was given.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "63888-2"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired; from 0 to 100
value[x].unitrequired; always "a"
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; always "a"
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-at-menarche"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-integer: The value is a whole number (the model holds integers here).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-at-menarche.

Contraception interval

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-contraception-interval (Observation). Model part: intervals (contraception).

A contraception state over a range of days.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "8659-5"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as Period
effective[x].startrequired
effective[x].endrequired
value[x]required; as CodeableConcept; preferably from "Built-in contraception states" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-contraception-interval"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-day: Every date of a Period is a calendar day YYYY-MM-DD, without a time.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-contraception-interval.

Pregnancy interval

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-interval (Observation). Model part: intervals (pregnancy).

A pregnancy state over a range of days.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "82810-3"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as Period
effective[x].startrequired
effective[x].endrequired
value[x]required; as CodeableConcept; preferably from "Built-in pregnancy states" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-interval"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-day: Every date of a Period is a calendar day YYYY-MM-DD, without a time.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-interval.

Breastfeeding interval

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-breastfeeding-interval (Observation). Model part: intervals (breastfeeding).

A breastfeeding state over a range of days.

elementconstraint
statusrequired; always "final"
coderequired
code.codingrequired
code.coding.systemrequired; always "http://loinc.org"
code.coding.coderequired; always "63895-7"
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as Period
effective[x].startrequired
effective[x].endrequired
value[x]required; as CodeableConcept; preferably from "Built-in breastfeeding states" (any concept allowed)
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-breastfeeding-interval"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-day: Every date of a Period is a calendar day YYYY-MM-DD, without a time.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-breastfeeding-interval.

Custom interval

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-interval (Observation). Model part: intervals ({code, value}).

Any coded state over a range of days, under a code that is not built in and not a vital sign.

elementconstraint
statusrequired; always "final"
coderequired
code.codingoptional
code.coding.systemrequired; at most 255 characters
code.coding.coderequired; at most 128 characters
code.coding.displayoptional; at most 128 characters
code.textoptional; at most 128 characters
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as Period
effective[x].startrequired
effective[x].endrequired
value[x]required; as CodeableConcept
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-interval"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-day: Every date of a Period is a calendar day YYYY-MM-DD, without a time.
  • cy-not-reserved: A custom series or custom interval does not use a built-in series code or a screening question's code (those facts are carried by the built-in).
  • cy-interval-not-vital: A custom interval does not use an R4 vital-sign code.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-interval.

Custom boolean series

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-boolean (Observation). Model part: custom (boolean).

A yes/no fact of a card-declared series: one per entry, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingoptional
code.coding.systemrequired; at most 255 characters
code.coding.coderequired; at most 128 characters
code.coding.displayoptional; at most 128 characters
code.textoptional; at most 128 characters
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as boolean
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
categoryoptional
category.codingrequired
category.coding.systemrequired; always "http://terminology.hl7.org/CodeSystem/observation-category"
category.coding.coderequired; always "vital-signs"
category.coding.displayrequired; always "Vital Signs"
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-boolean"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-not-reserved: A custom series or custom interval does not use a built-in series code or a screening question's code (those facts are carried by the built-in).
  • cy-vital-category: A custom series fact carries the vital-signs category exactly when its code is an R4 vital-sign code (the LOINC codes for which the HL7 validator applies an R4 vital-signs profile).
  • cy-vital-shape: A custom series whose code has its own R4 vital-signs profile has that profile's shape: 8310-5 a quantity in Cel or [degF]; 8867-4 a quantity in /min; 9279-1 a quantity in /min; 2708-6 a quantity in %; 8302-2 a quantity in cm or [in_i]; 9843-4 a quantity in cm or [in_i]; 29463-7 a quantity in kg or g or [lb_av]; 39156-5 a quantity in kg/m2; 85354-9 components 8480-6 in mm[Hg], 8462-4 in mm[Hg]; any quantity component of a vital-sign series is in %, cm, [in_i], kg, g, [lb_av], Cel, [degF], mm[Hg], /min, kg/m2, m2.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-boolean.

Custom coded series

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-coded (Observation). Model part: custom (coded).

A coded fact of a card-declared series: one per concept entry, dated by its day and, when it has one, its time.

elementconstraint
statusrequired; always "final"
coderequired
code.codingoptional
code.coding.systemrequired; at most 255 characters
code.coding.coderequired; at most 128 characters
code.coding.displayoptional; at most 128 characters
code.textoptional; at most 128 characters
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as CodeableConcept
value[x].codingoptional
value[x].coding.systemrequired; at most 255 characters
value[x].coding.coderequired; at most 128 characters
value[x].coding.displayoptional; at most 128 characters
value[x].textoptional; at most 128 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
categoryoptional
category.codingrequired
category.coding.systemrequired; always "http://terminology.hl7.org/CodeSystem/observation-category"
category.coding.coderequired; always "vital-signs"
category.coding.displayrequired; always "Vital Signs"
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-coded"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-not-reserved: A custom series or custom interval does not use a built-in series code or a screening question's code (those facts are carried by the built-in).
  • cy-vital-category: A custom series fact carries the vital-signs category exactly when its code is an R4 vital-sign code (the LOINC codes for which the HL7 validator applies an R4 vital-signs profile).
  • cy-vital-shape: A custom series whose code has its own R4 vital-signs profile has that profile's shape: 8310-5 a quantity in Cel or [degF]; 8867-4 a quantity in /min; 9279-1 a quantity in /min; 2708-6 a quantity in %; 8302-2 a quantity in cm or [in_i]; 9843-4 a quantity in cm or [in_i]; 29463-7 a quantity in kg or g or [lb_av]; 39156-5 a quantity in kg/m2; 85354-9 components 8480-6 in mm[Hg], 8462-4 in mm[Hg]; any quantity component of a vital-sign series is in %, cm, [in_i], kg, g, [lb_av], Cel, [degF], mm[Hg], /min, kg/m2, m2.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-coded.

Custom quantity series

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-quantity (Observation). Model part: custom (quantity).

A measurement of a card-declared quantity series, one per entry (any UCUM unit).

elementconstraint
statusrequired; always "final"
coderequired
code.codingoptional
code.coding.systemrequired; at most 255 characters
code.coding.coderequired; at most 128 characters
code.coding.displayoptional; at most 128 characters
code.textoptional; at most 128 characters
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
value[x]required; as Quantity
value[x].valuerequired
value[x].unitrequired; at most 64 characters
value[x].systemrequired; always "http://unitsofmeasure.org"
value[x].coderequired; at most 64 characters
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
categoryoptional
category.codingrequired
category.coding.systemrequired; always "http://terminology.hl7.org/CodeSystem/observation-category"
category.coding.coderequired; always "vital-signs"
category.coding.displayrequired; always "Vital Signs"
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-quantity"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-not-reserved: A custom series or custom interval does not use a built-in series code or a screening question's code (those facts are carried by the built-in).
  • cy-vital-category: A custom series fact carries the vital-signs category exactly when its code is an R4 vital-sign code (the LOINC codes for which the HL7 validator applies an R4 vital-signs profile).
  • cy-vital-shape: A custom series whose code has its own R4 vital-signs profile has that profile's shape: 8310-5 a quantity in Cel or [degF]; 8867-4 a quantity in /min; 9279-1 a quantity in /min; 2708-6 a quantity in %; 8302-2 a quantity in cm or [in_i]; 9843-4 a quantity in cm or [in_i]; 29463-7 a quantity in kg or g or [lb_av]; 39156-5 a quantity in kg/m2; 85354-9 components 8480-6 in mm[Hg], 8462-4 in mm[Hg]; any quantity component of a vital-sign series is in %, cm, [in_i], kg, g, [lb_av], Cel, [degF], mm[Hg], /min, kg/m2, m2.
  • cy-quantity-unit: Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces.
  • cy-decimals: A custom quantity has at most 6 decimals and a magnitude below 1,000,000,000.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-quantity.

Custom reading with components

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-reading (Observation). Model part: custom (components).

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).

elementconstraint
statusrequired; always "final"
coderequired
code.codingoptional
code.coding.systemrequired; at most 255 characters
code.coding.coderequired; at most 128 characters
code.coding.displayoptional; at most 128 characters
code.textoptional; at most 128 characters
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
deviceoptional
device.referencerequired; in any form that resolves within the Bundle (cy-b-references)
component1 to 16
component.coderequired
component.code.codingoptional
component.code.coding.systemrequired; at most 255 characters
component.code.coding.coderequired; at most 128 characters
component.code.coding.displayoptional; at most 128 characters
component.code.textoptional; at most 128 characters
component.value[x]required; as boolean or CodeableConcept or Quantity
component.value[x]:valueBooleanoptional
component.value[x]:valueCodeableConceptoptional
component.value[x]:valueCodeableConcept.codingoptional
component.value[x]:valueCodeableConcept.coding.systemrequired; at most 255 characters
component.value[x]:valueCodeableConcept.coding.coderequired; at most 128 characters
component.value[x]:valueCodeableConcept.coding.displayoptional; at most 128 characters
component.value[x]:valueCodeableConcept.textoptional; at most 128 characters
component.value[x]:valueQuantityoptional
component.value[x]:valueQuantity.valuerequired
component.value[x]:valueQuantity.unitrequired; at most 64 characters
component.value[x]:valueQuantity.systemrequired; always "http://unitsofmeasure.org"
component.value[x]:valueQuantity.coderequired; at most 64 characters
categoryoptional
category.codingrequired
category.coding.systemrequired; always "http://terminology.hl7.org/CodeSystem/observation-category"
category.coding.coderequired; always "vital-signs"
category.coding.displayrequired; always "Vital Signs"
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-reading"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-not-reserved: A custom series or custom interval does not use a built-in series code or a screening question's code (those facts are carried by the built-in).
  • cy-vital-category: A custom series fact carries the vital-signs category exactly when its code is an R4 vital-sign code (the LOINC codes for which the HL7 validator applies an R4 vital-signs profile).
  • cy-vital-shape: A custom series whose code has its own R4 vital-signs profile has that profile's shape: 8310-5 a quantity in Cel or [degF]; 8867-4 a quantity in /min; 9279-1 a quantity in /min; 2708-6 a quantity in %; 8302-2 a quantity in cm or [in_i]; 9843-4 a quantity in cm or [in_i]; 29463-7 a quantity in kg or g or [lb_av]; 39156-5 a quantity in kg/m2; 85354-9 components 8480-6 in mm[Hg], 8462-4 in mm[Hg]; any quantity component of a vital-sign series is in %, cm, [in_i], kg, g, [lb_av], Cel, [degF], mm[Hg], /min, kg/m2, m2.
  • cy-component-codes: The components of one reading have different codes.
  • cy-quantity-unit: Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces.
  • cy-decimals: A custom quantity has at most 6 decimals and a magnitude below 1,000,000,000.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-reading.

Medication taken or not taken

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-medication (MedicationStatement). Model part: medications.

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.

elementconstraint
statusrequired; one of "Medication statement statuses"
medication[x]required; as CodeableConcept; preferably from "Built-in medications" (any concept allowed)
medication[x].codingoptional
medication[x].coding.systemrequired; at most 255 characters
medication[x].coding.coderequired; at most 128 characters
medication[x].coding.displayoptional; at most 128 characters
medication[x].textoptional; at most 128 characters
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
effective[x]required; as dateTime
dosageoptional
dosage.doseAndRaterequired
dosage.doseAndRate.dose[x]required; as Quantity
dosage.doseAndRate.dose[x].valuerequired
dosage.doseAndRate.dose[x].unitrequired; at most 64 characters
dosage.doseAndRate.dose[x].systemrequired; always "http://unitsofmeasure.org"
dosage.doseAndRate.dose[x].coderequired; at most 64 characters
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-medication"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-time: A fact is dated by its day YYYY-MM-DD, or by its day and a time of day with seconds and a UTC offset (YYYY-MM-DDTHH:MM:SS±HH:MM; offset hours at most 14, minutes 00, 15, 30 or 45, never -00:00).
  • cy-quantity-unit: Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces.
  • cy-med-dose: A medication dose is strictly positive with at most 6 decimals and below 1,000,000,000.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-medication.

Procedure

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-procedure (Procedure). Model part: procedures.

A completed procedure, dated to the year, month, day, or day and time (1900-2150).

elementconstraint
statusrequired; always "completed"
coderequired; preferably from "Built-in procedures" (any concept allowed)
code.codingoptional
code.coding.systemrequired; at most 255 characters
code.coding.coderequired; at most 128 characters
code.coding.displayoptional; at most 128 characters
code.textoptional; at most 128 characters
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
performed[x]required; as dateTime
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-procedure"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-partial-date: A procedure date is a date of any precision (YYYY, YYYY-MM or YYYY-MM-DD), or a full day with a time of day and offset (never -00:00); a condition onset is a date of any precision without a time. Years are in 1900..2150.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-procedure.

Reported condition

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-condition (Condition). Model part: conditions.

A condition the person reports, with an optional stated status (active, resolved) and onset.

elementconstraint
clinicalStatusoptional; one of "Condition clinical statuses the person can state"
clinicalStatus.codingrequired
clinicalStatus.coding.systemrequired; always "http://terminology.hl7.org/CodeSystem/condition-clinical"
clinicalStatus.coding.coderequired; at most 128 characters
coderequired; preferably from "Built-in conditions" (any concept allowed)
code.codingoptional
code.coding.systemrequired; at most 255 characters
code.coding.coderequired; at most 128 characters
code.coding.displayoptional; at most 128 characters
code.textoptional; at most 128 characters
subjectrequired
subject.referencerequired; in any form that resolves within the Bundle (cy-b-references)
onset[x]optional; as dateTime
asserterrequired
asserter.referencerequired; in any form that resolves within the Bundle (cy-b-references)
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.profilerequired; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-condition"

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-cc: Every CodeableConcept carries a coding, text, or both.
  • cy-coding: Every coding is a concept key the model can hold: an absolute URI system of printable ASCII without "|" (at most 255 characters), a code of at most 128 characters with single spaces only between non-space characters and no control characters, and for SNOMED CT a concept-id shaped code (6-18 digits, partition 00 or 10; the check digit is not tested).
  • cy-label: An escape coding display (not fixed by its position) or CodeableConcept text is allowed only on non-built-in concepts (or text-only concepts), with no leading or trailing whitespace, no control characters and at most 128 characters.
  • cy-partial-date: A procedure date is a date of any precision (YYYY, YYYY-MM or YYYY-MM-DD), or a full day with a time of day and offset (never -00:00); a condition onset is a date of any precision without a time. Years are in 1900..2150.

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-condition.

cycle-log Bundle

https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle (Bundle). Model part: the whole card.

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.

elementconstraint
idoptional; any id (addressing; carries no meaning)
metaoptional
meta.tagoptional
meta.tag.systemrequired; always "http://terminology.hl7.org/CodeSystem/v3-ObservationValue"
meta.tag.coderequired; always "SUBSETTED"
meta.tag.displayoptional; always "subsetted"
meta.profileoptional; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"
typerequired; always "collection"
timestampoptional
entryat least 1; one entry per resource, each conforming to exactly one of: Patient (exactly one), Source app (at most one), Menstrual bleeding (any number), Menstrual flow (any number), Measured menstrual fluid volume (any number), Pain score (any number), Symptom (any number), Basal body temperature (any number), Skin temperature deviation (any number), Nightly skin temperature (any number), mucus (any number), ovulationTest (any number), progesteroneTest (any number), pregnancyTest (any number), sex (any number), mood (any number), energy (any number), Sleep duration (any number), Contraceptive pill log (any number), Answer: usual-cycle-length (any number), Answer: periods-per-year (any number), Answer: missed-periods-3-months (any number), Answer: period-in-last-year (any number), Answer: periods-stopped (any number), Answer: age-periods-stopped (any number), Answer: age-at-menarche (any number), Contraception interval (any number), Pregnancy interval (any number), Breastfeeding interval (any number), Custom interval (any number), Custom boolean series (any number), Custom coded series (any number), Custom quantity series (any number), Custom reading with components (any number), Medication taken or not taken (any number), Procedure (any number), Reported condition (any number)
entry.fullUrlrequired
entry.resourcerequired

Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0).

Rules:

  • cy-instant: An optional export timestamp is a full instant YYYY-MM-DDTHH:MM:SS±HH:MM with date in 2000-01-01..2099-12-31, quarter-hour UTC offset (hours at most 14), never Z and never -00:00.
  • cy-b-fullurl: No two entries have the same fullUrl (any absolute URI; the decoder writes resource:N).
  • cy-b-references: Every subject and asserter resolves, within the Bundle, to the Patient, and every Observation.device to the source app's Device (by fullUrl, or as a relative Type/id against the referring entry's RESTful fullUrl base; not version-specific); every Observation names the Device exactly when the Bundle has one.
  • cy-b-span: Every daily Observation, MedicationStatement, interval and screening answer lies in 2000-01-01..2099-12-31, every interval has start <= end, and all such dates span at most 10000 days from earliest to latest.
  • cy-b-bleeding-flow: Every flow fact has a bleeding fact of the same day and time: false with flow-none, true with any other flow.
  • cy-b-flow-count: Per day and time, there are no more flow-none facts than false bleeding facts, and no more flow-level facts (spotting to heavy) than true bleeding facts: each flow fact pairs with its own bleeding fact. (Stated with FHIRPath 3.0 defineVariable, which the HL7 validator supports.)
  • cy-b-interval-merge: Intervals of one state (the same code and value) neither overlap nor touch: the decoder writes their union as one interval. (Stated with FHIRPath 3.0 defineVariable, which the HL7 validator supports.)
  • cy-b-components: A component code has one shape (boolean, coded or quantity) and, as a quantity, one unit on the whole card.
  • cy-b-bbt: All BBT readings share one unit.
  • cy-b-skin: Skin temperature readings are of one kind (deviation or absolute) and one unit.
  • cy-b-custom-shape: Each custom series has one shape (boolean, coded, quantity, or readings with components) and a quantity series one unit.
  • cy-b-labels: A non-built-in coded concept carries the same coding display on every occurrence (or none), and the same CodeableConcept text on every occurrence (or none).
  • cy-b-limits: At most 32 custom series, 256 intervals, 512 procedures, 512 escape text/display strings and 20000 facts (a reading with components counts one fact per component).

The profile as JSON, also at its canonical address https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle.