[
 {
  "name": "cycle-log-patient",
  "title": "Patient",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient",
  "resourceType": "Patient",
  "model": "patient",
  "description": "The person: a name (family and up to three given names) and/or a birth date; without either, the identity-free Patient {\"id\": \"0\"}.",
  "elements": [
   {
    "path": "name",
    "text": "optional"
   },
   {
    "path": "name.family",
    "text": "optional; at most 64 characters"
   },
   {
    "path": "name.given",
    "text": "0 to 3; at most 64 characters"
   },
   {
    "path": "birthDate",
    "text": "optional"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient\""
   }
  ],
  "invariants": [
   {
    "key": "cy-patient-id",
    "text": "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."
   },
   {
    "key": "cy-name-part",
    "text": "A name has a family name or at least one given name."
   },
   {
    "key": "cy-name-text",
    "text": "Names and the source app's name and version have no leading or trailing whitespace and no control characters (lengths are maxLength)."
   },
   {
    "key": "cy-birthdate",
    "text": "The birth date year is in 1900..2150."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-device",
  "title": "Source app",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-device",
  "resourceType": "Device",
  "model": "source",
  "description": "The app or device the data came from: one user-friendly name and an optional version.",
  "elements": [
   {
    "path": "deviceName",
    "text": "required"
   },
   {
    "path": "deviceName.name",
    "text": "required; at most 64 characters"
   },
   {
    "path": "deviceName.type",
    "text": "required; always \"user-friendly-name\""
   },
   {
    "path": "version",
    "text": "optional"
   },
   {
    "path": "version.value",
    "text": "required; at most 32 characters"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-device\""
   }
  ],
  "invariants": [
   {
    "key": "cy-name-text",
    "text": "Names and the source app's name and version have no leading or trailing whitespace and no control characters (lengths are maxLength)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-bleeding",
  "title": "Menstrual bleeding",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bleeding",
  "resourceType": "Observation",
  "model": "bleeding (yes/no)",
  "description": "A menstrual bleeding fact: one per entry of the model's bleeding (yes/no), dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"menstrual-bleeding\""
   },
   {
    "path": "code.coding.display",
    "text": "required; always \"Menstrual bleeding\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as boolean"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bleeding\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-flow",
  "title": "Menstrual flow",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-flow",
  "resourceType": "Observation",
  "model": "bleeding (flow states)",
  "description": "A menstrual flow fact: one per entry of the model's bleeding (flow states), dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"menstrual-flow\""
   },
   {
    "path": "code.coding.display",
    "text": "required; always \"Patient-reported menstrual flow category\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; one of \"Menstrual flow categories\""
   },
   {
    "path": "value[x].coding",
    "text": "required"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-flow\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-volume",
  "title": "Measured menstrual fluid volume",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-volume",
  "resourceType": "Observation",
  "model": "volume",
  "description": "A measured menstrual fluid volume fact: one per entry of the model's volume, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"menstrual-fluid-volume\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required; from 0 to 500"
   },
   {
    "path": "value[x].unit",
    "text": "required; always \"mL\""
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; always \"mL\""
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-volume\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-integer",
    "text": "The value is a whole number (the model holds integers here)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-pain",
  "title": "Pain score",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pain",
  "resourceType": "Observation",
  "model": "pain",
  "description": "A pain score fact: one per entry of the model's pain, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"72514-3\""
   },
   {
    "path": "code.coding.display",
    "text": "required; always \"Pain severity - 0-10 verbal numeric rating [Score] - Reported\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required; from 0 to 10"
   },
   {
    "path": "value[x].unit",
    "text": "required; always \"{score}\""
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; always \"{score}\""
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pain\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-integer",
    "text": "The value is a whole number (the model holds integers here)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-symptom",
  "title": "Symptom",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-symptom",
  "resourceType": "Observation",
  "model": "symptoms",
  "description": "A symptom fact: one per entry of the model's symptoms, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"symptom\""
   },
   {
    "path": "code.coding.display",
    "text": "required; always \"Symptom\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in symptoms\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-symptom\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-bbt",
  "title": "Basal body temperature",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bbt",
  "resourceType": "Observation",
  "model": "bbt",
  "description": "A basal body temperature fact: one per entry of the model's bbt, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"basal-body-temperature\""
   },
   {
    "path": "code.coding.display",
    "text": "required; always \"Basal body temperature\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required"
   },
   {
    "path": "value[x].unit",
    "text": "required; at most 64 characters"
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; one of \"Temperature units\"; at most 64 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "component",
    "text": "0 to 2"
   },
   {
    "path": "component.code",
    "text": "required"
   },
   {
    "path": "component.code.coding",
    "text": "required"
   },
   {
    "path": "component.code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "component.code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "component.value[x]",
    "text": "required; as boolean or CodeableConcept"
   },
   {
    "path": "component.value[x]:valueBoolean",
    "text": "optional; always true"
   },
   {
    "path": "component.value[x]:valueCodeableConcept",
    "text": "optional; preferably from \"Temperature exclusion reasons\" (any concept allowed)"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding",
    "text": "optional"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bbt\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-quantity-unit",
    "text": "Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces."
   },
   {
    "key": "cy-hundredths",
    "text": "A temperature has at most two decimals."
   },
   {
    "key": "cy-bbt-range",
    "text": "A BBT reading is in the model's range for its unit: Cel 34-42, [degF] 93-107.6."
   },
   {
    "key": "cy-component-codes",
    "text": "The components of one reading have different codes."
   },
   {
    "key": "cy-temp-exclude",
    "text": "A temperature reading's optional components carry only reading-excluded (valueBoolean = true) and, when excluded, reading-exclusion-reason (valueCodeableConcept)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-skin-temp-deviation",
  "title": "Skin temperature deviation",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-deviation",
  "resourceType": "Observation",
  "model": "skinTemp (deviation)",
  "description": "A skin temperature deviation fact: one per entry of the model's skinTemp (deviation), dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"skin-temperature-deviation\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required"
   },
   {
    "path": "value[x].unit",
    "text": "required; at most 64 characters"
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; one of \"Temperature units\"; at most 64 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "component",
    "text": "0 to 2"
   },
   {
    "path": "component.code",
    "text": "required"
   },
   {
    "path": "component.code.coding",
    "text": "required"
   },
   {
    "path": "component.code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "component.code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "component.value[x]",
    "text": "required; as boolean or CodeableConcept"
   },
   {
    "path": "component.value[x]:valueBoolean",
    "text": "optional; always true"
   },
   {
    "path": "component.value[x]:valueCodeableConcept",
    "text": "optional; preferably from \"Temperature exclusion reasons\" (any concept allowed)"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding",
    "text": "optional"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-deviation\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-quantity-unit",
    "text": "Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces."
   },
   {
    "key": "cy-hundredths",
    "text": "A temperature has at most two decimals."
   },
   {
    "key": "cy-skin-deviation-range",
    "text": "A deviation skin temperature is in the model's range for its unit: Cel -5 to 5, [degF] -9 to 9."
   },
   {
    "key": "cy-component-codes",
    "text": "The components of one reading have different codes."
   },
   {
    "key": "cy-temp-exclude",
    "text": "A temperature reading's optional components carry only reading-excluded (valueBoolean = true) and, when excluded, reading-exclusion-reason (valueCodeableConcept)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-skin-temp-absolute",
  "title": "Nightly skin temperature",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-absolute",
  "resourceType": "Observation",
  "model": "skinTemp (absolute)",
  "description": "A nightly skin temperature fact: one per entry of the model's skinTemp (absolute), dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"nightly-skin-temperature\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required"
   },
   {
    "path": "value[x].unit",
    "text": "required; at most 64 characters"
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; one of \"Temperature units\"; at most 64 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "component",
    "text": "0 to 2"
   },
   {
    "path": "component.code",
    "text": "required"
   },
   {
    "path": "component.code.coding",
    "text": "required"
   },
   {
    "path": "component.code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "component.code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "component.value[x]",
    "text": "required; as boolean or CodeableConcept"
   },
   {
    "path": "component.value[x]:valueBoolean",
    "text": "optional; always true"
   },
   {
    "path": "component.value[x]:valueCodeableConcept",
    "text": "optional; preferably from \"Temperature exclusion reasons\" (any concept allowed)"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding",
    "text": "optional"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-absolute\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-quantity-unit",
    "text": "Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces."
   },
   {
    "key": "cy-hundredths",
    "text": "A temperature has at most two decimals."
   },
   {
    "key": "cy-skin-absolute-range",
    "text": "A absolute skin temperature is in the model's range for its unit: Cel 25 to 40, [degF] 77 to 104."
   },
   {
    "key": "cy-component-codes",
    "text": "The components of one reading have different codes."
   },
   {
    "key": "cy-temp-exclude",
    "text": "A temperature reading's optional components carry only reading-excluded (valueBoolean = true) and, when excluded, reading-exclusion-reason (valueCodeableConcept)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-mucus",
  "title": "mucus",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mucus",
  "resourceType": "Observation",
  "model": "mucus",
  "description": "A mucus fact: one per entry of the model's mucus, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"cervical-mucus\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in mucus values\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mucus\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-ovulation-test",
  "title": "ovulationTest",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-ovulation-test",
  "resourceType": "Observation",
  "model": "ovulationTest",
  "description": "A ovulationtest fact: one per entry of the model's ovulationTest, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"ovulation-test\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in ovulationTest values\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-ovulation-test\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-progesterone-test",
  "title": "progesteroneTest",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-progesterone-test",
  "resourceType": "Observation",
  "model": "progesteroneTest",
  "description": "A progesteronetest fact: one per entry of the model's progesteroneTest, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"pdg-test\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in progesteroneTest values\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-progesterone-test\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-pregnancy-test",
  "title": "pregnancyTest",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-test",
  "resourceType": "Observation",
  "model": "pregnancyTest",
  "description": "A pregnancytest fact: one per entry of the model's pregnancyTest, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"2106-3\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in pregnancyTest values\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-test\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-sex",
  "title": "sex",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sex",
  "resourceType": "Observation",
  "model": "sex",
  "description": "A sex fact: one per entry of the model's sex, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://snomed.info/sct\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"364316005\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in sex values\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sex\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-mood",
  "title": "mood",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mood",
  "resourceType": "Observation",
  "model": "mood",
  "description": "A mood fact: one per entry of the model's mood, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"mood-valence\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in mood values\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mood\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-energy",
  "title": "energy",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-energy",
  "resourceType": "Observation",
  "model": "energy",
  "description": "A energy fact: one per entry of the model's energy, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"energy-level\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in energy values\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-energy\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-sleep",
  "title": "Sleep duration",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sleep",
  "resourceType": "Observation",
  "model": "sleep",
  "description": "A sleep duration fact: one per entry of the model's sleep, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"93832-4\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required; from 0 to 1440"
   },
   {
    "path": "value[x].unit",
    "text": "required; always \"min\""
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; always \"min\""
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sleep\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-integer",
    "text": "The value is a whole number (the model holds integers here)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-pill",
  "title": "Contraceptive pill log",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pill",
  "resourceType": "Observation",
  "model": "pill",
  "description": "A contraceptive pill log fact: one per entry of the model's pill, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"contraceptive-pill-taken\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as boolean"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pill\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-answer-usual-cycle-length",
  "title": "Answer: usual-cycle-length",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-usual-cycle-length",
  "resourceType": "Observation",
  "model": "answers (usual-cycle-length)",
  "description": "The person's answer to usual-cycle-length, dated by the day (and time, when known) it was given.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"64700-8\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Answers to usual-cycle-length\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-usual-cycle-length\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-answer-periods-per-year",
  "title": "Answer: periods-per-year",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-per-year",
  "resourceType": "Observation",
  "model": "answers (periods-per-year)",
  "description": "The person's answer to periods-per-year, dated by the day (and time, when known) it was given.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"92656-8\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required; from 0 to 100"
   },
   {
    "path": "value[x].unit",
    "text": "required; always \"/a\""
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; always \"/a\""
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-per-year\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-integer",
    "text": "The value is a whole number (the model holds integers here)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-answer-missed-periods-3-months",
  "title": "Answer: missed-periods-3-months",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-missed-periods-3-months",
  "resourceType": "Observation",
  "model": "answers (missed-periods-3-months)",
  "description": "The person's answer to missed-periods-3-months, dated by the day (and time, when known) it was given.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"65930-0\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required; from 0 to 3"
   },
   {
    "path": "value[x].unit",
    "text": "required; always \"{#}/(3.mo)\""
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; always \"{#}/(3.mo)\""
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-missed-periods-3-months\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-integer",
    "text": "The value is a whole number (the model holds integers here)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-answer-period-in-last-year",
  "title": "Answer: period-in-last-year",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-period-in-last-year",
  "resourceType": "Observation",
  "model": "answers (period-in-last-year)",
  "description": "The person's answer to period-in-last-year, dated by the day (and time, when known) it was given.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"63889-0\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Answers to period-in-last-year\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-period-in-last-year\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-answer-periods-stopped",
  "title": "Answer: periods-stopped",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-stopped",
  "resourceType": "Observation",
  "model": "answers (periods-stopped)",
  "description": "The person's answer to periods-stopped, dated by the day (and time, when known) it was given.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"64701-6\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Answers to periods-stopped\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-stopped\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-answer-age-periods-stopped",
  "title": "Answer: age-periods-stopped",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-periods-stopped",
  "resourceType": "Observation",
  "model": "answers (age-periods-stopped)",
  "description": "The person's answer to age-periods-stopped, dated by the day (and time, when known) it was given.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"64702-4\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required; from 0 to 100"
   },
   {
    "path": "value[x].unit",
    "text": "required; always \"a\""
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; always \"a\""
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-periods-stopped\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-integer",
    "text": "The value is a whole number (the model holds integers here)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-answer-age-at-menarche",
  "title": "Answer: age-at-menarche",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-at-menarche",
  "resourceType": "Observation",
  "model": "answers (age-at-menarche)",
  "description": "The person's answer to age-at-menarche, dated by the day (and time, when known) it was given.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"63888-2\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required; from 0 to 100"
   },
   {
    "path": "value[x].unit",
    "text": "required; always \"a\""
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; always \"a\""
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-at-menarche\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-integer",
    "text": "The value is a whole number (the model holds integers here)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-contraception-interval",
  "title": "Contraception interval",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-contraception-interval",
  "resourceType": "Observation",
  "model": "intervals (contraception)",
  "description": "A contraception state over a range of days.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"8659-5\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as Period"
   },
   {
    "path": "effective[x].start",
    "text": "required"
   },
   {
    "path": "effective[x].end",
    "text": "required"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in contraception states\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-contraception-interval\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-day",
    "text": "Every date of a Period is a calendar day YYYY-MM-DD, without a time."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-pregnancy-interval",
  "title": "Pregnancy interval",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-interval",
  "resourceType": "Observation",
  "model": "intervals (pregnancy)",
  "description": "A pregnancy state over a range of days.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"82810-3\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as Period"
   },
   {
    "path": "effective[x].start",
    "text": "required"
   },
   {
    "path": "effective[x].end",
    "text": "required"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in pregnancy states\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-interval\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-day",
    "text": "Every date of a Period is a calendar day YYYY-MM-DD, without a time."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-breastfeeding-interval",
  "title": "Breastfeeding interval",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-breastfeeding-interval",
  "resourceType": "Observation",
  "model": "intervals (breastfeeding)",
  "description": "A breastfeeding state over a range of days.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "required"
   },
   {
    "path": "code.coding.system",
    "text": "required; always \"http://loinc.org\""
   },
   {
    "path": "code.coding.code",
    "text": "required; always \"63895-7\""
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as Period"
   },
   {
    "path": "effective[x].start",
    "text": "required"
   },
   {
    "path": "effective[x].end",
    "text": "required"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in breastfeeding states\" (any concept allowed)"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-breastfeeding-interval\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-day",
    "text": "Every date of a Period is a calendar day YYYY-MM-DD, without a time."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-custom-interval",
  "title": "Custom interval",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-interval",
  "resourceType": "Observation",
  "model": "intervals ({code, value})",
  "description": "Any coded state over a range of days, under a code that is not built in and not a vital sign.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "optional"
   },
   {
    "path": "code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "code.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "code.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as Period"
   },
   {
    "path": "effective[x].start",
    "text": "required"
   },
   {
    "path": "effective[x].end",
    "text": "required"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-interval\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-day",
    "text": "Every date of a Period is a calendar day YYYY-MM-DD, without a time."
   },
   {
    "key": "cy-not-reserved",
    "text": "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)."
   },
   {
    "key": "cy-interval-not-vital",
    "text": "A custom interval does not use an R4 vital-sign code."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-custom-boolean",
  "title": "Custom boolean series",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-boolean",
  "resourceType": "Observation",
  "model": "custom (boolean)",
  "description": "A yes/no fact of a card-declared series: one per entry, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "optional"
   },
   {
    "path": "code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "code.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "code.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as boolean"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "category",
    "text": "optional"
   },
   {
    "path": "category.coding",
    "text": "required"
   },
   {
    "path": "category.coding.system",
    "text": "required; always \"http://terminology.hl7.org/CodeSystem/observation-category\""
   },
   {
    "path": "category.coding.code",
    "text": "required; always \"vital-signs\""
   },
   {
    "path": "category.coding.display",
    "text": "required; always \"Vital Signs\""
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-boolean\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-not-reserved",
    "text": "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)."
   },
   {
    "key": "cy-vital-category",
    "text": "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)."
   },
   {
    "key": "cy-vital-shape",
    "text": "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."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-custom-coded",
  "title": "Custom coded series",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-coded",
  "resourceType": "Observation",
  "model": "custom (coded)",
  "description": "A coded fact of a card-declared series: one per concept entry, dated by its day and, when it has one, its time.",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "optional"
   },
   {
    "path": "code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "code.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "code.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as CodeableConcept"
   },
   {
    "path": "value[x].coding",
    "text": "optional"
   },
   {
    "path": "value[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "value[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "value[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "value[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "category",
    "text": "optional"
   },
   {
    "path": "category.coding",
    "text": "required"
   },
   {
    "path": "category.coding.system",
    "text": "required; always \"http://terminology.hl7.org/CodeSystem/observation-category\""
   },
   {
    "path": "category.coding.code",
    "text": "required; always \"vital-signs\""
   },
   {
    "path": "category.coding.display",
    "text": "required; always \"Vital Signs\""
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-coded\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-not-reserved",
    "text": "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)."
   },
   {
    "key": "cy-vital-category",
    "text": "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)."
   },
   {
    "key": "cy-vital-shape",
    "text": "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."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-custom-quantity",
  "title": "Custom quantity series",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-quantity",
  "resourceType": "Observation",
  "model": "custom (quantity)",
  "description": "A measurement of a card-declared quantity series, one per entry (any UCUM unit).",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "optional"
   },
   {
    "path": "code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "code.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "code.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "value[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "value[x].value",
    "text": "required"
   },
   {
    "path": "value[x].unit",
    "text": "required; at most 64 characters"
   },
   {
    "path": "value[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "value[x].code",
    "text": "required; at most 64 characters"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "category",
    "text": "optional"
   },
   {
    "path": "category.coding",
    "text": "required"
   },
   {
    "path": "category.coding.system",
    "text": "required; always \"http://terminology.hl7.org/CodeSystem/observation-category\""
   },
   {
    "path": "category.coding.code",
    "text": "required; always \"vital-signs\""
   },
   {
    "path": "category.coding.display",
    "text": "required; always \"Vital Signs\""
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-quantity\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-not-reserved",
    "text": "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)."
   },
   {
    "key": "cy-vital-category",
    "text": "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)."
   },
   {
    "key": "cy-vital-shape",
    "text": "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."
   },
   {
    "key": "cy-quantity-unit",
    "text": "Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces."
   },
   {
    "key": "cy-decimals",
    "text": "A custom quantity has at most 6 decimals and a magnitude below 1,000,000,000."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-custom-reading",
  "title": "Custom reading with components",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-reading",
  "resourceType": "Observation",
  "model": "custom (components)",
  "description": "A reading of a card-declared series, one per entry, with one component per recorded value (blood pressure, an app's multi-part check-in).",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"final\""
   },
   {
    "path": "code",
    "text": "required"
   },
   {
    "path": "code.coding",
    "text": "optional"
   },
   {
    "path": "code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "code.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "code.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "device",
    "text": "optional"
   },
   {
    "path": "device.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "component",
    "text": "1 to 16"
   },
   {
    "path": "component.code",
    "text": "required"
   },
   {
    "path": "component.code.coding",
    "text": "optional"
   },
   {
    "path": "component.code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "component.code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "component.code.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "component.code.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "component.value[x]",
    "text": "required; as boolean or CodeableConcept or Quantity"
   },
   {
    "path": "component.value[x]:valueBoolean",
    "text": "optional"
   },
   {
    "path": "component.value[x]:valueCodeableConcept",
    "text": "optional"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding",
    "text": "optional"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueCodeableConcept.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "component.value[x]:valueQuantity",
    "text": "optional"
   },
   {
    "path": "component.value[x]:valueQuantity.value",
    "text": "required"
   },
   {
    "path": "component.value[x]:valueQuantity.unit",
    "text": "required; at most 64 characters"
   },
   {
    "path": "component.value[x]:valueQuantity.system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "component.value[x]:valueQuantity.code",
    "text": "required; at most 64 characters"
   },
   {
    "path": "category",
    "text": "optional"
   },
   {
    "path": "category.coding",
    "text": "required"
   },
   {
    "path": "category.coding.system",
    "text": "required; always \"http://terminology.hl7.org/CodeSystem/observation-category\""
   },
   {
    "path": "category.coding.code",
    "text": "required; always \"vital-signs\""
   },
   {
    "path": "category.coding.display",
    "text": "required; always \"Vital Signs\""
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-reading\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-not-reserved",
    "text": "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)."
   },
   {
    "key": "cy-vital-category",
    "text": "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)."
   },
   {
    "key": "cy-vital-shape",
    "text": "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."
   },
   {
    "key": "cy-component-codes",
    "text": "The components of one reading have different codes."
   },
   {
    "key": "cy-quantity-unit",
    "text": "Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces."
   },
   {
    "key": "cy-decimals",
    "text": "A custom quantity has at most 6 decimals and a magnitude below 1,000,000,000."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-medication",
  "title": "Medication taken or not taken",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-medication",
  "resourceType": "MedicationStatement",
  "model": "medications",
  "description": "One statement per medication entry: completed (taken) or not-taken, dated by its day and, when it has one, its time, with an optional exact dose.",
  "elements": [
   {
    "path": "status",
    "text": "required; one of \"Medication statement statuses\""
   },
   {
    "path": "medication[x]",
    "text": "required; as CodeableConcept; preferably from \"Built-in medications\" (any concept allowed)"
   },
   {
    "path": "medication[x].coding",
    "text": "optional"
   },
   {
    "path": "medication[x].coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "medication[x].coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "medication[x].coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "medication[x].text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "effective[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "dosage",
    "text": "optional"
   },
   {
    "path": "dosage.doseAndRate",
    "text": "required"
   },
   {
    "path": "dosage.doseAndRate.dose[x]",
    "text": "required; as Quantity"
   },
   {
    "path": "dosage.doseAndRate.dose[x].value",
    "text": "required"
   },
   {
    "path": "dosage.doseAndRate.dose[x].unit",
    "text": "required; at most 64 characters"
   },
   {
    "path": "dosage.doseAndRate.dose[x].system",
    "text": "required; always \"http://unitsofmeasure.org\""
   },
   {
    "path": "dosage.doseAndRate.dose[x].code",
    "text": "required; at most 64 characters"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-medication\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-time",
    "text": "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)."
   },
   {
    "key": "cy-quantity-unit",
    "text": "Every quantity's human-readable unit is its UCUM code, which is printable ASCII without spaces."
   },
   {
    "key": "cy-med-dose",
    "text": "A medication dose is strictly positive with at most 6 decimals and below 1,000,000,000."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-procedure",
  "title": "Procedure",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-procedure",
  "resourceType": "Procedure",
  "model": "procedures",
  "description": "A completed procedure, dated to the year, month, day, or day and time (1900-2150).",
  "elements": [
   {
    "path": "status",
    "text": "required; always \"completed\""
   },
   {
    "path": "code",
    "text": "required; preferably from \"Built-in procedures\" (any concept allowed)"
   },
   {
    "path": "code.coding",
    "text": "optional"
   },
   {
    "path": "code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "code.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "code.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "performed[x]",
    "text": "required; as dateTime"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-procedure\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-partial-date",
    "text": "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."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-condition",
  "title": "Reported condition",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-condition",
  "resourceType": "Condition",
  "model": "conditions",
  "description": "A condition the person reports, with an optional stated status (active, resolved) and onset.",
  "elements": [
   {
    "path": "clinicalStatus",
    "text": "optional; one of \"Condition clinical statuses the person can state\""
   },
   {
    "path": "clinicalStatus.coding",
    "text": "required"
   },
   {
    "path": "clinicalStatus.coding.system",
    "text": "required; always \"http://terminology.hl7.org/CodeSystem/condition-clinical\""
   },
   {
    "path": "clinicalStatus.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "code",
    "text": "required; preferably from \"Built-in conditions\" (any concept allowed)"
   },
   {
    "path": "code.coding",
    "text": "optional"
   },
   {
    "path": "code.coding.system",
    "text": "required; at most 255 characters"
   },
   {
    "path": "code.coding.code",
    "text": "required; at most 128 characters"
   },
   {
    "path": "code.coding.display",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "code.text",
    "text": "optional; at most 128 characters"
   },
   {
    "path": "subject",
    "text": "required"
   },
   {
    "path": "subject.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "onset[x]",
    "text": "optional; as dateTime"
   },
   {
    "path": "asserter",
    "text": "required"
   },
   {
    "path": "asserter.reference",
    "text": "required; in any form that resolves within the Bundle (cy-b-references)"
   },
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.profile",
    "text": "required; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-condition\""
   }
  ],
  "invariants": [
   {
    "key": "cy-cc",
    "text": "Every CodeableConcept carries a coding, text, or both."
   },
   {
    "key": "cy-coding",
    "text": "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)."
   },
   {
    "key": "cy-label",
    "text": "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."
   },
   {
    "key": "cy-partial-date",
    "text": "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."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 },
 {
  "name": "cycle-log-bundle",
  "title": "cycle-log Bundle",
  "url": "https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle",
  "resourceType": "Bundle",
  "model": "the whole card",
  "description": "What a cycle-log codec emits: a collection Bundle of exactly these profiles, with an optional export timestamp and tagged SUBSETTED when the card was reduced.",
  "elements": [
   {
    "path": "id",
    "text": "optional; any id (addressing; carries no meaning)"
   },
   {
    "path": "meta",
    "text": "optional"
   },
   {
    "path": "meta.tag",
    "text": "optional"
   },
   {
    "path": "meta.tag.system",
    "text": "required; always \"http://terminology.hl7.org/CodeSystem/v3-ObservationValue\""
   },
   {
    "path": "meta.tag.code",
    "text": "required; always \"SUBSETTED\""
   },
   {
    "path": "meta.tag.display",
    "text": "optional; always \"subsetted\""
   },
   {
    "path": "meta.profile",
    "text": "optional; always \"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle\""
   },
   {
    "path": "type",
    "text": "required; always \"collection\""
   },
   {
    "path": "timestamp",
    "text": "optional"
   },
   {
    "path": "entry",
    "text": "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)"
   },
   {
    "path": "entry.fullUrl",
    "text": "required"
   },
   {
    "path": "entry.resource",
    "text": "required"
   }
  ],
  "invariants": [
   {
    "key": "cy-instant",
    "text": "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."
   },
   {
    "key": "cy-b-fullurl",
    "text": "No two entries have the same fullUrl (any absolute URI; the decoder writes resource:N)."
   },
   {
    "key": "cy-b-references",
    "text": "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."
   },
   {
    "key": "cy-b-span",
    "text": "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."
   },
   {
    "key": "cy-b-bleeding-flow",
    "text": "Every flow fact has a bleeding fact of the same day and time: false with flow-none, true with any other flow."
   },
   {
    "key": "cy-b-flow-count",
    "text": "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.)"
   },
   {
    "key": "cy-b-interval-merge",
    "text": "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.)"
   },
   {
    "key": "cy-b-components",
    "text": "A component code has one shape (boolean, coded or quantity) and, as a quantity, one unit on the whole card."
   },
   {
    "key": "cy-b-bbt",
    "text": "All BBT readings share one unit."
   },
   {
    "key": "cy-b-skin",
    "text": "Skin temperature readings are of one kind (deviation or absolute) and one unit."
   },
   {
    "key": "cy-b-custom-shape",
    "text": "Each custom series has one shape (boolean, coded, quantity, or readings with components) and a quantity series one unit."
   },
   {
    "key": "cy-b-labels",
    "text": "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)."
   },
   {
    "key": "cy-b-limits",
    "text": "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)."
   }
  ],
  "closed": "Every other element, every extension and modifierExtension, and every other type of a choice element is not allowed (max 0)."
 }
]
