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
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.
| Value set | Concepts | Binding |
|---|---|---|
| Menstrual flow categories | 5 | required |
| Temperature exclusion reasons | 8 | preferred |
| Temperature units | 2 | required |
| Medication statement statuses | 2 | required |
| Condition clinical statuses the person can state | 2 | required |
| Built-in symptoms | 35 | preferred |
| Built-in medications | 7 | preferred |
| Built-in conditions | 15 | preferred |
| Built-in procedures | 13 | preferred |
| Built-in mucus values | 5 | preferred |
| Built-in ovulationTest values | 4 | preferred |
| Built-in progesteroneTest values | 3 | preferred |
| Built-in pregnancyTest values | 3 | preferred |
| Built-in sex values | 4 | preferred |
| Built-in mood values | 7 | preferred |
| Built-in energy values | 4 | preferred |
| Built-in contraception states | 13 | preferred |
| Built-in pregnancy states | 1 | preferred |
| Built-in breastfeeding states | 1 | preferred |
| Answers to usual-cycle-length | 8 | preferred |
| Answers to period-in-last-year | 2 | preferred |
| Answers to periods-stopped | 4 | preferred |
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.
| Rule | What it says | Why outside | Kind |
|---|---|---|---|
snomed-check-digit | A 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"}.
| element | constraint |
|---|---|
name | optional |
name.family | optional; at most 64 characters |
name.given | 0 to 3; at most 64 characters |
birthDate | optional |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
deviceName | required |
deviceName.name | required; at most 64 characters |
deviceName.type | required; always "user-friendly-name" |
version | optional |
version.value | required; at most 32 characters |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "menstrual-bleeding" |
code.coding.display | required; always "Menstrual bleeding" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as boolean |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "menstrual-flow" |
code.coding.display | required; always "Patient-reported menstrual flow category" |
subject | required |
subject.reference | required; 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].coding | required |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "menstrual-fluid-volume" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required; from 0 to 500 |
value[x].unit | required; always "mL" |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; always "mL" |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "72514-3" |
code.coding.display | required; always "Pain severity - 0-10 verbal numeric rating [Score] - Reported" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required; from 0 to 10 |
value[x].unit | required; always "{score}" |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; always "{score}" |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "symptom" |
code.coding.display | required; always "Symptom" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "basal-body-temperature" |
code.coding.display | required; always "Basal body temperature" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required |
value[x].unit | required; at most 64 characters |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; one of "Temperature units"; at most 64 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
component | 0 to 2 |
component.code | required |
component.code.coding | required |
component.code.coding.system | required; at most 255 characters |
component.code.coding.code | required; at most 128 characters |
component.value[x] | required; as boolean or CodeableConcept |
component.value[x]:valueBoolean | optional; always true |
component.value[x]:valueCodeableConcept | optional; preferably from "Temperature exclusion reasons" (any concept allowed) |
component.value[x]:valueCodeableConcept.coding | optional |
component.value[x]:valueCodeableConcept.coding.system | required; at most 255 characters |
component.value[x]:valueCodeableConcept.coding.code | required; at most 128 characters |
component.value[x]:valueCodeableConcept.coding.display | optional; at most 128 characters |
component.value[x]:valueCodeableConcept.text | optional; at most 128 characters |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "skin-temperature-deviation" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required |
value[x].unit | required; at most 64 characters |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; one of "Temperature units"; at most 64 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
component | 0 to 2 |
component.code | required |
component.code.coding | required |
component.code.coding.system | required; at most 255 characters |
component.code.coding.code | required; at most 128 characters |
component.value[x] | required; as boolean or CodeableConcept |
component.value[x]:valueBoolean | optional; always true |
component.value[x]:valueCodeableConcept | optional; preferably from "Temperature exclusion reasons" (any concept allowed) |
component.value[x]:valueCodeableConcept.coding | optional |
component.value[x]:valueCodeableConcept.coding.system | required; at most 255 characters |
component.value[x]:valueCodeableConcept.coding.code | required; at most 128 characters |
component.value[x]:valueCodeableConcept.coding.display | optional; at most 128 characters |
component.value[x]:valueCodeableConcept.text | optional; at most 128 characters |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "nightly-skin-temperature" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required |
value[x].unit | required; at most 64 characters |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; one of "Temperature units"; at most 64 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
component | 0 to 2 |
component.code | required |
component.code.coding | required |
component.code.coding.system | required; at most 255 characters |
component.code.coding.code | required; at most 128 characters |
component.value[x] | required; as boolean or CodeableConcept |
component.value[x]:valueBoolean | optional; always true |
component.value[x]:valueCodeableConcept | optional; preferably from "Temperature exclusion reasons" (any concept allowed) |
component.value[x]:valueCodeableConcept.coding | optional |
component.value[x]:valueCodeableConcept.coding.system | required; at most 255 characters |
component.value[x]:valueCodeableConcept.coding.code | required; at most 128 characters |
component.value[x]:valueCodeableConcept.coding.display | optional; at most 128 characters |
component.value[x]:valueCodeableConcept.text | optional; at most 128 characters |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "cervical-mucus" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "ovulation-test" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "pdg-test" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "2106-3" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://snomed.info/sct" |
code.coding.code | required; always "364316005" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "mood-valence" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "energy-level" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "93832-4" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required; from 0 to 1440 |
value[x].unit | required; always "min" |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; always "min" |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log" |
code.coding.code | required; always "contraceptive-pill-taken" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as boolean |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "64700-8" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "92656-8" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required; from 0 to 100 |
value[x].unit | required; always "/a" |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; always "/a" |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "65930-0" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required; from 0 to 3 |
value[x].unit | required; always "{#}/(3.mo)" |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; always "{#}/(3.mo)" |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "63889-0" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "64701-6" |
subject | required |
subject.reference | required; 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].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "64702-4" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required; from 0 to 100 |
value[x].unit | required; always "a" |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; always "a" |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "63888-2" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required; from 0 to 100 |
value[x].unit | required; always "a" |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; always "a" |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "8659-5" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as Period |
effective[x].start | required |
effective[x].end | required |
value[x] | required; as CodeableConcept; preferably from "Built-in contraception states" (any concept allowed) |
value[x].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "82810-3" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as Period |
effective[x].start | required |
effective[x].end | required |
value[x] | required; as CodeableConcept; preferably from "Built-in pregnancy states" (any concept allowed) |
value[x].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | required |
code.coding.system | required; always "http://loinc.org" |
code.coding.code | required; always "63895-7" |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as Period |
effective[x].start | required |
effective[x].end | required |
value[x] | required; as CodeableConcept; preferably from "Built-in breastfeeding states" (any concept allowed) |
value[x].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | optional |
code.coding.system | required; at most 255 characters |
code.coding.code | required; at most 128 characters |
code.coding.display | optional; at most 128 characters |
code.text | optional; at most 128 characters |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as Period |
effective[x].start | required |
effective[x].end | required |
value[x] | required; as CodeableConcept |
value[x].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | optional |
code.coding.system | required; at most 255 characters |
code.coding.code | required; at most 128 characters |
code.coding.display | optional; at most 128 characters |
code.text | optional; at most 128 characters |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as boolean |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
category | optional |
category.coding | required |
category.coding.system | required; always "http://terminology.hl7.org/CodeSystem/observation-category" |
category.coding.code | required; always "vital-signs" |
category.coding.display | required; always "Vital Signs" |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | optional |
code.coding.system | required; at most 255 characters |
code.coding.code | required; at most 128 characters |
code.coding.display | optional; at most 128 characters |
code.text | optional; at most 128 characters |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as CodeableConcept |
value[x].coding | optional |
value[x].coding.system | required; at most 255 characters |
value[x].coding.code | required; at most 128 characters |
value[x].coding.display | optional; at most 128 characters |
value[x].text | optional; at most 128 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
category | optional |
category.coding | required |
category.coding.system | required; always "http://terminology.hl7.org/CodeSystem/observation-category" |
category.coding.code | required; always "vital-signs" |
category.coding.display | required; always "Vital Signs" |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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).
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | optional |
code.coding.system | required; at most 255 characters |
code.coding.code | required; at most 128 characters |
code.coding.display | optional; at most 128 characters |
code.text | optional; at most 128 characters |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
value[x] | required; as Quantity |
value[x].value | required |
value[x].unit | required; at most 64 characters |
value[x].system | required; always "http://unitsofmeasure.org" |
value[x].code | required; at most 64 characters |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
category | optional |
category.coding | required |
category.coding.system | required; always "http://terminology.hl7.org/CodeSystem/observation-category" |
category.coding.code | required; always "vital-signs" |
category.coding.display | required; always "Vital Signs" |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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).
| element | constraint |
|---|---|
status | required; always "final" |
code | required |
code.coding | optional |
code.coding.system | required; at most 255 characters |
code.coding.code | required; at most 128 characters |
code.coding.display | optional; at most 128 characters |
code.text | optional; at most 128 characters |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
device | optional |
device.reference | required; in any form that resolves within the Bundle (cy-b-references) |
component | 1 to 16 |
component.code | required |
component.code.coding | optional |
component.code.coding.system | required; at most 255 characters |
component.code.coding.code | required; at most 128 characters |
component.code.coding.display | optional; at most 128 characters |
component.code.text | optional; at most 128 characters |
component.value[x] | required; as boolean or CodeableConcept or Quantity |
component.value[x]:valueBoolean | optional |
component.value[x]:valueCodeableConcept | optional |
component.value[x]:valueCodeableConcept.coding | optional |
component.value[x]:valueCodeableConcept.coding.system | required; at most 255 characters |
component.value[x]:valueCodeableConcept.coding.code | required; at most 128 characters |
component.value[x]:valueCodeableConcept.coding.display | optional; at most 128 characters |
component.value[x]:valueCodeableConcept.text | optional; at most 128 characters |
component.value[x]:valueQuantity | optional |
component.value[x]:valueQuantity.value | required |
component.value[x]:valueQuantity.unit | required; at most 64 characters |
component.value[x]:valueQuantity.system | required; always "http://unitsofmeasure.org" |
component.value[x]:valueQuantity.code | required; at most 64 characters |
category | optional |
category.coding | required |
category.coding.system | required; always "http://terminology.hl7.org/CodeSystem/observation-category" |
category.coding.code | required; always "vital-signs" |
category.coding.display | required; always "Vital Signs" |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
status | required; one of "Medication statement statuses" |
medication[x] | required; as CodeableConcept; preferably from "Built-in medications" (any concept allowed) |
medication[x].coding | optional |
medication[x].coding.system | required; at most 255 characters |
medication[x].coding.code | required; at most 128 characters |
medication[x].coding.display | optional; at most 128 characters |
medication[x].text | optional; at most 128 characters |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
effective[x] | required; as dateTime |
dosage | optional |
dosage.doseAndRate | required |
dosage.doseAndRate.dose[x] | required; as Quantity |
dosage.doseAndRate.dose[x].value | required |
dosage.doseAndRate.dose[x].unit | required; at most 64 characters |
dosage.doseAndRate.dose[x].system | required; always "http://unitsofmeasure.org" |
dosage.doseAndRate.dose[x].code | required; at most 64 characters |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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).
| element | constraint |
|---|---|
status | required; always "completed" |
code | required; preferably from "Built-in procedures" (any concept allowed) |
code.coding | optional |
code.coding.system | required; at most 255 characters |
code.coding.code | required; at most 128 characters |
code.coding.display | optional; at most 128 characters |
code.text | optional; at most 128 characters |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
performed[x] | required; as dateTime |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
clinicalStatus | optional; one of "Condition clinical statuses the person can state" |
clinicalStatus.coding | required |
clinicalStatus.coding.system | required; always "http://terminology.hl7.org/CodeSystem/condition-clinical" |
clinicalStatus.coding.code | required; at most 128 characters |
code | required; preferably from "Built-in conditions" (any concept allowed) |
code.coding | optional |
code.coding.system | required; at most 255 characters |
code.coding.code | required; at most 128 characters |
code.coding.display | optional; at most 128 characters |
code.text | optional; at most 128 characters |
subject | required |
subject.reference | required; in any form that resolves within the Bundle (cy-b-references) |
onset[x] | optional; as dateTime |
asserter | required |
asserter.reference | required; in any form that resolves within the Bundle (cy-b-references) |
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.profile | required; 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.
| element | constraint |
|---|---|
id | optional; any id (addressing; carries no meaning) |
meta | optional |
meta.tag | optional |
meta.tag.system | required; always "http://terminology.hl7.org/CodeSystem/v3-ObservationValue" |
meta.tag.code | required; always "SUBSETTED" |
meta.tag.display | optional; always "subsetted" |
meta.profile | optional; always "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle" |
type | required; always "collection" |
timestamp | optional |
entry | at 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.fullUrl | required |
entry.resource | required |
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.