{"resourceType":"StructureDefinition","id":"cycle-log-bundle","url":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle","version":"0.1.0","name":"CycleLogBundle","title":"cycle-log Bundle","status":"draft","experimental":true,"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. Closed: every element not listed is max 0. Generated from the cycle-log model (codecs/cycle-log/profiles/make-profiles.ts).","fhirVersion":"4.0.1","kind":"resource","abstract":false,"type":"Bundle","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Bundle","derivation":"constraint","differential":{"element":[{"id":"Bundle","path":"Bundle","constraint":[{"key":"cy-instant","severity":"error","human":"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.","expression":"timestamp.all(toString().matches('^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9][+-](0[0-9]|1[0-4]):(00|15|30|45)$') and toString().endsWith('-00:00').not())","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-fullurl","severity":"error","human":"No two entries have the same fullUrl (any absolute URI; the decoder writes resource:N).","expression":"entry.fullUrl.isDistinct()","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-references","severity":"error","human":"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.","expression":"entry.resource.select(subject | asserter).all(resolve() is Patient) and entry.resource.ofType(Observation).device.all(resolve() is Device) and iif(entry.resource.ofType(Device).exists(), entry.resource.ofType(Observation).all(device.exists()), entry.resource.ofType(Observation).all(device.empty()))","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-span","severity":"error","human":"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.","expression":"((entry.resource.ofType(Observation) | entry.resource.ofType(MedicationStatement)).effective.ofType(dateTime).select(toString().substring(0, 10)) | entry.resource.ofType(Observation).effective.ofType(Period).select(start.toString() | end.toString())).distinct().all($this >= '2000-01-01' and $this <= '2099-12-31') and entry.resource.ofType(Observation).where(effective.ofType(Period).exists()).all(effective.start <= effective.end) and (((entry.resource.ofType(Observation) | entry.resource.ofType(MedicationStatement)).effective.ofType(dateTime).select(toString().substring(0, 10)) | entry.resource.ofType(Observation).effective.ofType(Period).select(start.toString() | end.toString())).distinct().empty() or (((entry.resource.ofType(Observation) | entry.resource.ofType(MedicationStatement)).effective.ofType(dateTime).select(toString().substring(0, 10)) | entry.resource.ofType(Observation).effective.ofType(Period).select(start.toString() | end.toString())).distinct().aggregate(iif($total.empty() or $this < $total, $this, $total)).toDate() + 9999 days >= ((entry.resource.ofType(Observation) | entry.resource.ofType(MedicationStatement)).effective.ofType(dateTime).select(toString().substring(0, 10)) | entry.resource.ofType(Observation).effective.ofType(Period).select(start.toString() | end.toString())).distinct().aggregate(iif($total.empty() or $this > $total, $this, $total)).toDate()))","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-bleeding-flow","severity":"error","human":"Every flow fact has a bleeding fact of the same day and time: false with flow-none, true with any other flow.","expression":"entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'menstrual-flow').exists()).select(effective.toString() & iif(value.coding.code = 'flow-none', '=false', '=true')).subsetOf(entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'menstrual-bleeding').exists()).select(effective.toString() & '=' & value.toString()))","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-flow-count","severity":"error","human":"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.)","expression":"entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'menstrual-flow').exists() and value.coding.code = 'flow-none').all(effective.toString().defineVariable('t').select(%resource.entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'menstrual-flow').exists() and value.coding.code = 'flow-none' and effective.toString() = %t).count() <= %resource.entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'menstrual-bleeding').exists() and value = false and effective.toString() = %t).count())) and entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'menstrual-flow').exists() and value.coding.code != 'flow-none').all(effective.toString().defineVariable('t').select(%resource.entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'menstrual-flow').exists() and value.coding.code != 'flow-none' and effective.toString() = %t).count() <= %resource.entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'menstrual-bleeding').exists() and value = true and effective.toString() = %t).count()))","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-interval-merge","severity":"error","human":"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.)","expression":"entry.resource.ofType(Observation).where(effective.ofType(Period).exists()).all(defineVariable('k', iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text) & '=' & iif(value.coding.exists(), value.coding.system & '|' & value.coding.code, '|' & value.text)).defineVariable('s', effective.start).defineVariable('e', effective.end).select(%resource.entry.resource.ofType(Observation).where(effective.ofType(Period).exists()).where((iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text) & '=' & iif(value.coding.exists(), value.coding.system & '|' & value.coding.code, '|' & value.text)) = %k and effective.start <= (%e + 1 day) and effective.end >= (%s - 1 day)).count() = 1))","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-components","severity":"error","human":"A component code has one shape (boolean, coded or quantity) and, as a quantity, one unit on the whole card.","expression":"entry.resource.ofType(Observation).where(component.exists() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'basal-body-temperature').exists().not() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'skin-temperature-deviation').exists().not() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'nightly-skin-temperature').exists().not()).component.select(iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text)).distinct().count() = entry.resource.ofType(Observation).where(component.exists() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'basal-body-temperature').exists().not() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'skin-temperature-deviation').exists().not() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'nightly-skin-temperature').exists().not()).component.select(iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text) & '#' & iif(value.ofType(boolean).exists(), 'b', iif(value.ofType(CodeableConcept).exists(), 'c', iif(value.ofType(Quantity).exists(), 'q:' & value.code, 'r')))).distinct().count()","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-bbt","severity":"error","human":"All BBT readings share one unit.","expression":"entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'basal-body-temperature').exists()).select(value.code).distinct().count() <= 1","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-skin","severity":"error","human":"Skin temperature readings are of one kind (deviation or absolute) and one unit.","expression":"entry.resource.ofType(Observation).where(code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'skin-temperature-deviation').exists() or code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'nightly-skin-temperature').exists()).select(code.coding.code & '/' & value.code).distinct().count() <= 1","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-custom-shape","severity":"error","human":"Each custom series has one shape (boolean, coded, quantity, or readings with components) and a quantity series one unit.","expression":"entry.resource.ofType(Observation).where(effective.ofType(dateTime).exists() and (iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://snomed.info/sct|364316005' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom')).not()).select(iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text)).distinct().count() = entry.resource.ofType(Observation).where(effective.ofType(dateTime).exists() and (iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://snomed.info/sct|364316005' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom')).not()).select(iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text) & '#' & iif(value.ofType(boolean).exists(), 'b', iif(value.ofType(CodeableConcept).exists(), 'c', iif(value.ofType(Quantity).exists(), 'q:' & value.code, 'r')))).distinct().count()","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-labels","severity":"error","human":"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).","expression":"entry.resource.descendants().ofType(CodeableConcept).where(coding.exists() and ((coding.system & '|' & coding.code) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://loinc.org|LA12688-0' | 'http://loinc.org|LA12693-0' | 'http://loinc.org|LA137-2' | 'http://loinc.org|LA14649-0' | 'http://loinc.org|LA14650-8' | 'http://loinc.org|LA14651-6' | 'http://loinc.org|LA14652-4' | 'http://loinc.org|LA14653-2' | 'http://loinc.org|LA14654-0' | 'http://loinc.org|LA14655-7' | 'http://loinc.org|LA14656-5' | 'http://loinc.org|LA14657-3' | 'http://loinc.org|LA15173-0' | 'http://loinc.org|LA16581-3' | 'http://loinc.org|LA27901-0' | 'http://loinc.org|LA27902-8' | 'http://loinc.org|LA27903-6' | 'http://loinc.org|LA27904-4' | 'http://loinc.org|LA27907-7' | 'http://loinc.org|LA27908-5' | 'http://loinc.org|LA27909-3' | 'http://loinc.org|LA27911-9' | 'http://loinc.org|LA27912-7' | 'http://loinc.org|LA27918-4' | 'http://loinc.org|LA27919-2' | 'http://loinc.org|LA29252-6' | 'http://loinc.org|LA32-8' | 'http://loinc.org|LA33-6' | 'http://snomed.info/sct|10828004' | 'http://snomed.info/sct|109006003' | 'http://snomed.info/sct|11381005' | 'http://snomed.info/sct|11401008' | 'http://snomed.info/sct|116289008' | 'http://snomed.info/sct|11847009' | 'http://snomed.info/sct|1237359009' | 'http://snomed.info/sct|1263416007' | 'http://snomed.info/sct|128105004' | 'http://snomed.info/sct|129103003' | 'http://snomed.info/sct|1372819003' | 'http://snomed.info/sct|14760008' | 'http://snomed.info/sct|161541000119104' | 'http://snomed.info/sct|161891005' | 'http://snomed.info/sct|165232002' | 'http://snomed.info/sct|169553002' | 'http://snomed.info/sct|18963009' | 'http://snomed.info/sct|193462001' | 'http://snomed.info/sct|225038006' | 'http://snomed.info/sct|2314005' | 'http://snomed.info/sct|236884004' | 'http://snomed.info/sct|236886002' | 'http://snomed.info/sct|237055002' | 'http://snomed.info/sct|237120002' | 'http://snomed.info/sct|237662005' | 'http://snomed.info/sct|237788002' | 'http://snomed.info/sct|248132003' | 'http://snomed.info/sct|25064002' | 'http://snomed.info/sct|260385009' | 'http://snomed.info/sct|265060005' | 'http://snomed.info/sct|271681002' | 'http://snomed.info/sct|279039007' | 'http://snomed.info/sct|289532003' | 'http://snomed.info/sct|301807007' | 'http://snomed.info/sct|30473006' | 'http://snomed.info/sct|30729008' | 'http://snomed.info/sct|312138002' | 'http://snomed.info/sct|31908003' | 'http://snomed.info/sct|34364009' | 'http://snomed.info/sct|34486009' | 'http://snomed.info/sct|364316005' | 'http://snomed.info/sct|366979004' | 'http://snomed.info/sct|37796009' | 'http://snomed.info/sct|38268001' | 'http://snomed.info/sct|404640003' | 'http://snomed.info/sct|40930008' | 'http://snomed.info/sct|42010004' | 'http://snomed.info/sct|422587007' | 'http://snomed.info/sct|42984000' | 'http://snomed.info/sct|431416001' | 'http://snomed.info/sct|43548008' | 'http://snomed.info/sct|48694002' | 'http://snomed.info/sct|53430007' | 'http://snomed.info/sct|55222007' | 'http://snomed.info/sct|55929007' | 'http://snomed.info/sct|56317004' | 'http://snomed.info/sct|58436003' | 'http://snomed.info/sct|62315008' | 'http://snomed.info/sct|6247001' | 'http://snomed.info/sct|63537005' | 'http://snomed.info/sct|64779008' | 'http://snomed.info/sct|65200003' | 'http://snomed.info/sct|70256003' | 'http://snomed.info/sct|71315007' | 'http://snomed.info/sct|73595000' | 'http://snomed.info/sct|76498008' | 'http://snomed.info/sct|76876009' | 'http://snomed.info/sct|784314006' | 'http://snomed.info/sct|80313002' | 'http://snomed.info/sct|82334004' | 'http://snomed.info/sct|83152002' | 'http://snomed.info/sct|8357008' | 'http://snomed.info/sct|84229001' | 'http://snomed.info/sct|87522002' | 'http://snomed.info/sct|90332006' | 'http://snomed.info/sct|95315005' | 'http://terminology.hl7.org/CodeSystem/observation-category|vital-signs' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-energized' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-exhausted' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-high' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-low' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|estrogen-surge' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-alcohol' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-fever' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-late-wake' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-medication' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-other' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-poor-sleep' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-stress' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-travel' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-heavy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-light' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-moderate' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-none' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-spotting' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|hot-flash' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-creamy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-dry' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-egg-white' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-sticky' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-watery' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|no-sexual-intercourse' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-excluded' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-exclusion-reason' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-neutral' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-unpleasant')).not()).select(coding.system & '|' & coding.code).distinct().count() = entry.resource.descendants().ofType(CodeableConcept).where(coding.exists() and ((coding.system & '|' & coding.code) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://loinc.org|LA12688-0' | 'http://loinc.org|LA12693-0' | 'http://loinc.org|LA137-2' | 'http://loinc.org|LA14649-0' | 'http://loinc.org|LA14650-8' | 'http://loinc.org|LA14651-6' | 'http://loinc.org|LA14652-4' | 'http://loinc.org|LA14653-2' | 'http://loinc.org|LA14654-0' | 'http://loinc.org|LA14655-7' | 'http://loinc.org|LA14656-5' | 'http://loinc.org|LA14657-3' | 'http://loinc.org|LA15173-0' | 'http://loinc.org|LA16581-3' | 'http://loinc.org|LA27901-0' | 'http://loinc.org|LA27902-8' | 'http://loinc.org|LA27903-6' | 'http://loinc.org|LA27904-4' | 'http://loinc.org|LA27907-7' | 'http://loinc.org|LA27908-5' | 'http://loinc.org|LA27909-3' | 'http://loinc.org|LA27911-9' | 'http://loinc.org|LA27912-7' | 'http://loinc.org|LA27918-4' | 'http://loinc.org|LA27919-2' | 'http://loinc.org|LA29252-6' | 'http://loinc.org|LA32-8' | 'http://loinc.org|LA33-6' | 'http://snomed.info/sct|10828004' | 'http://snomed.info/sct|109006003' | 'http://snomed.info/sct|11381005' | 'http://snomed.info/sct|11401008' | 'http://snomed.info/sct|116289008' | 'http://snomed.info/sct|11847009' | 'http://snomed.info/sct|1237359009' | 'http://snomed.info/sct|1263416007' | 'http://snomed.info/sct|128105004' | 'http://snomed.info/sct|129103003' | 'http://snomed.info/sct|1372819003' | 'http://snomed.info/sct|14760008' | 'http://snomed.info/sct|161541000119104' | 'http://snomed.info/sct|161891005' | 'http://snomed.info/sct|165232002' | 'http://snomed.info/sct|169553002' | 'http://snomed.info/sct|18963009' | 'http://snomed.info/sct|193462001' | 'http://snomed.info/sct|225038006' | 'http://snomed.info/sct|2314005' | 'http://snomed.info/sct|236884004' | 'http://snomed.info/sct|236886002' | 'http://snomed.info/sct|237055002' | 'http://snomed.info/sct|237120002' | 'http://snomed.info/sct|237662005' | 'http://snomed.info/sct|237788002' | 'http://snomed.info/sct|248132003' | 'http://snomed.info/sct|25064002' | 'http://snomed.info/sct|260385009' | 'http://snomed.info/sct|265060005' | 'http://snomed.info/sct|271681002' | 'http://snomed.info/sct|279039007' | 'http://snomed.info/sct|289532003' | 'http://snomed.info/sct|301807007' | 'http://snomed.info/sct|30473006' | 'http://snomed.info/sct|30729008' | 'http://snomed.info/sct|312138002' | 'http://snomed.info/sct|31908003' | 'http://snomed.info/sct|34364009' | 'http://snomed.info/sct|34486009' | 'http://snomed.info/sct|364316005' | 'http://snomed.info/sct|366979004' | 'http://snomed.info/sct|37796009' | 'http://snomed.info/sct|38268001' | 'http://snomed.info/sct|404640003' | 'http://snomed.info/sct|40930008' | 'http://snomed.info/sct|42010004' | 'http://snomed.info/sct|422587007' | 'http://snomed.info/sct|42984000' | 'http://snomed.info/sct|431416001' | 'http://snomed.info/sct|43548008' | 'http://snomed.info/sct|48694002' | 'http://snomed.info/sct|53430007' | 'http://snomed.info/sct|55222007' | 'http://snomed.info/sct|55929007' | 'http://snomed.info/sct|56317004' | 'http://snomed.info/sct|58436003' | 'http://snomed.info/sct|62315008' | 'http://snomed.info/sct|6247001' | 'http://snomed.info/sct|63537005' | 'http://snomed.info/sct|64779008' | 'http://snomed.info/sct|65200003' | 'http://snomed.info/sct|70256003' | 'http://snomed.info/sct|71315007' | 'http://snomed.info/sct|73595000' | 'http://snomed.info/sct|76498008' | 'http://snomed.info/sct|76876009' | 'http://snomed.info/sct|784314006' | 'http://snomed.info/sct|80313002' | 'http://snomed.info/sct|82334004' | 'http://snomed.info/sct|83152002' | 'http://snomed.info/sct|8357008' | 'http://snomed.info/sct|84229001' | 'http://snomed.info/sct|87522002' | 'http://snomed.info/sct|90332006' | 'http://snomed.info/sct|95315005' | 'http://terminology.hl7.org/CodeSystem/observation-category|vital-signs' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-energized' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-exhausted' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-high' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-low' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|estrogen-surge' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-alcohol' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-fever' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-late-wake' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-medication' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-other' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-poor-sleep' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-stress' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-travel' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-heavy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-light' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-moderate' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-none' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-spotting' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|hot-flash' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-creamy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-dry' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-egg-white' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-sticky' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-watery' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|no-sexual-intercourse' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-excluded' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-exclusion-reason' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-neutral' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-unpleasant')).not()).select(coding.system & '|' & coding.code & '|' & coding.display).distinct().count() and entry.resource.descendants().ofType(CodeableConcept).where(coding.exists() and ((coding.system & '|' & coding.code) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://loinc.org|LA12688-0' | 'http://loinc.org|LA12693-0' | 'http://loinc.org|LA137-2' | 'http://loinc.org|LA14649-0' | 'http://loinc.org|LA14650-8' | 'http://loinc.org|LA14651-6' | 'http://loinc.org|LA14652-4' | 'http://loinc.org|LA14653-2' | 'http://loinc.org|LA14654-0' | 'http://loinc.org|LA14655-7' | 'http://loinc.org|LA14656-5' | 'http://loinc.org|LA14657-3' | 'http://loinc.org|LA15173-0' | 'http://loinc.org|LA16581-3' | 'http://loinc.org|LA27901-0' | 'http://loinc.org|LA27902-8' | 'http://loinc.org|LA27903-6' | 'http://loinc.org|LA27904-4' | 'http://loinc.org|LA27907-7' | 'http://loinc.org|LA27908-5' | 'http://loinc.org|LA27909-3' | 'http://loinc.org|LA27911-9' | 'http://loinc.org|LA27912-7' | 'http://loinc.org|LA27918-4' | 'http://loinc.org|LA27919-2' | 'http://loinc.org|LA29252-6' | 'http://loinc.org|LA32-8' | 'http://loinc.org|LA33-6' | 'http://snomed.info/sct|10828004' | 'http://snomed.info/sct|109006003' | 'http://snomed.info/sct|11381005' | 'http://snomed.info/sct|11401008' | 'http://snomed.info/sct|116289008' | 'http://snomed.info/sct|11847009' | 'http://snomed.info/sct|1237359009' | 'http://snomed.info/sct|1263416007' | 'http://snomed.info/sct|128105004' | 'http://snomed.info/sct|129103003' | 'http://snomed.info/sct|1372819003' | 'http://snomed.info/sct|14760008' | 'http://snomed.info/sct|161541000119104' | 'http://snomed.info/sct|161891005' | 'http://snomed.info/sct|165232002' | 'http://snomed.info/sct|169553002' | 'http://snomed.info/sct|18963009' | 'http://snomed.info/sct|193462001' | 'http://snomed.info/sct|225038006' | 'http://snomed.info/sct|2314005' | 'http://snomed.info/sct|236884004' | 'http://snomed.info/sct|236886002' | 'http://snomed.info/sct|237055002' | 'http://snomed.info/sct|237120002' | 'http://snomed.info/sct|237662005' | 'http://snomed.info/sct|237788002' | 'http://snomed.info/sct|248132003' | 'http://snomed.info/sct|25064002' | 'http://snomed.info/sct|260385009' | 'http://snomed.info/sct|265060005' | 'http://snomed.info/sct|271681002' | 'http://snomed.info/sct|279039007' | 'http://snomed.info/sct|289532003' | 'http://snomed.info/sct|301807007' | 'http://snomed.info/sct|30473006' | 'http://snomed.info/sct|30729008' | 'http://snomed.info/sct|312138002' | 'http://snomed.info/sct|31908003' | 'http://snomed.info/sct|34364009' | 'http://snomed.info/sct|34486009' | 'http://snomed.info/sct|364316005' | 'http://snomed.info/sct|366979004' | 'http://snomed.info/sct|37796009' | 'http://snomed.info/sct|38268001' | 'http://snomed.info/sct|404640003' | 'http://snomed.info/sct|40930008' | 'http://snomed.info/sct|42010004' | 'http://snomed.info/sct|422587007' | 'http://snomed.info/sct|42984000' | 'http://snomed.info/sct|431416001' | 'http://snomed.info/sct|43548008' | 'http://snomed.info/sct|48694002' | 'http://snomed.info/sct|53430007' | 'http://snomed.info/sct|55222007' | 'http://snomed.info/sct|55929007' | 'http://snomed.info/sct|56317004' | 'http://snomed.info/sct|58436003' | 'http://snomed.info/sct|62315008' | 'http://snomed.info/sct|6247001' | 'http://snomed.info/sct|63537005' | 'http://snomed.info/sct|64779008' | 'http://snomed.info/sct|65200003' | 'http://snomed.info/sct|70256003' | 'http://snomed.info/sct|71315007' | 'http://snomed.info/sct|73595000' | 'http://snomed.info/sct|76498008' | 'http://snomed.info/sct|76876009' | 'http://snomed.info/sct|784314006' | 'http://snomed.info/sct|80313002' | 'http://snomed.info/sct|82334004' | 'http://snomed.info/sct|83152002' | 'http://snomed.info/sct|8357008' | 'http://snomed.info/sct|84229001' | 'http://snomed.info/sct|87522002' | 'http://snomed.info/sct|90332006' | 'http://snomed.info/sct|95315005' | 'http://terminology.hl7.org/CodeSystem/observation-category|vital-signs' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-energized' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-exhausted' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-high' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-low' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|estrogen-surge' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-alcohol' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-fever' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-late-wake' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-medication' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-other' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-poor-sleep' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-stress' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-travel' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-heavy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-light' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-moderate' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-none' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-spotting' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|hot-flash' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-creamy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-dry' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-egg-white' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-sticky' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-watery' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|no-sexual-intercourse' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-excluded' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-exclusion-reason' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-neutral' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-unpleasant')).not()).select(coding.system & '|' & coding.code).distinct().count() = entry.resource.descendants().ofType(CodeableConcept).where(coding.exists() and ((coding.system & '|' & coding.code) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://loinc.org|LA12688-0' | 'http://loinc.org|LA12693-0' | 'http://loinc.org|LA137-2' | 'http://loinc.org|LA14649-0' | 'http://loinc.org|LA14650-8' | 'http://loinc.org|LA14651-6' | 'http://loinc.org|LA14652-4' | 'http://loinc.org|LA14653-2' | 'http://loinc.org|LA14654-0' | 'http://loinc.org|LA14655-7' | 'http://loinc.org|LA14656-5' | 'http://loinc.org|LA14657-3' | 'http://loinc.org|LA15173-0' | 'http://loinc.org|LA16581-3' | 'http://loinc.org|LA27901-0' | 'http://loinc.org|LA27902-8' | 'http://loinc.org|LA27903-6' | 'http://loinc.org|LA27904-4' | 'http://loinc.org|LA27907-7' | 'http://loinc.org|LA27908-5' | 'http://loinc.org|LA27909-3' | 'http://loinc.org|LA27911-9' | 'http://loinc.org|LA27912-7' | 'http://loinc.org|LA27918-4' | 'http://loinc.org|LA27919-2' | 'http://loinc.org|LA29252-6' | 'http://loinc.org|LA32-8' | 'http://loinc.org|LA33-6' | 'http://snomed.info/sct|10828004' | 'http://snomed.info/sct|109006003' | 'http://snomed.info/sct|11381005' | 'http://snomed.info/sct|11401008' | 'http://snomed.info/sct|116289008' | 'http://snomed.info/sct|11847009' | 'http://snomed.info/sct|1237359009' | 'http://snomed.info/sct|1263416007' | 'http://snomed.info/sct|128105004' | 'http://snomed.info/sct|129103003' | 'http://snomed.info/sct|1372819003' | 'http://snomed.info/sct|14760008' | 'http://snomed.info/sct|161541000119104' | 'http://snomed.info/sct|161891005' | 'http://snomed.info/sct|165232002' | 'http://snomed.info/sct|169553002' | 'http://snomed.info/sct|18963009' | 'http://snomed.info/sct|193462001' | 'http://snomed.info/sct|225038006' | 'http://snomed.info/sct|2314005' | 'http://snomed.info/sct|236884004' | 'http://snomed.info/sct|236886002' | 'http://snomed.info/sct|237055002' | 'http://snomed.info/sct|237120002' | 'http://snomed.info/sct|237662005' | 'http://snomed.info/sct|237788002' | 'http://snomed.info/sct|248132003' | 'http://snomed.info/sct|25064002' | 'http://snomed.info/sct|260385009' | 'http://snomed.info/sct|265060005' | 'http://snomed.info/sct|271681002' | 'http://snomed.info/sct|279039007' | 'http://snomed.info/sct|289532003' | 'http://snomed.info/sct|301807007' | 'http://snomed.info/sct|30473006' | 'http://snomed.info/sct|30729008' | 'http://snomed.info/sct|312138002' | 'http://snomed.info/sct|31908003' | 'http://snomed.info/sct|34364009' | 'http://snomed.info/sct|34486009' | 'http://snomed.info/sct|364316005' | 'http://snomed.info/sct|366979004' | 'http://snomed.info/sct|37796009' | 'http://snomed.info/sct|38268001' | 'http://snomed.info/sct|404640003' | 'http://snomed.info/sct|40930008' | 'http://snomed.info/sct|42010004' | 'http://snomed.info/sct|422587007' | 'http://snomed.info/sct|42984000' | 'http://snomed.info/sct|431416001' | 'http://snomed.info/sct|43548008' | 'http://snomed.info/sct|48694002' | 'http://snomed.info/sct|53430007' | 'http://snomed.info/sct|55222007' | 'http://snomed.info/sct|55929007' | 'http://snomed.info/sct|56317004' | 'http://snomed.info/sct|58436003' | 'http://snomed.info/sct|62315008' | 'http://snomed.info/sct|6247001' | 'http://snomed.info/sct|63537005' | 'http://snomed.info/sct|64779008' | 'http://snomed.info/sct|65200003' | 'http://snomed.info/sct|70256003' | 'http://snomed.info/sct|71315007' | 'http://snomed.info/sct|73595000' | 'http://snomed.info/sct|76498008' | 'http://snomed.info/sct|76876009' | 'http://snomed.info/sct|784314006' | 'http://snomed.info/sct|80313002' | 'http://snomed.info/sct|82334004' | 'http://snomed.info/sct|83152002' | 'http://snomed.info/sct|8357008' | 'http://snomed.info/sct|84229001' | 'http://snomed.info/sct|87522002' | 'http://snomed.info/sct|90332006' | 'http://snomed.info/sct|95315005' | 'http://terminology.hl7.org/CodeSystem/observation-category|vital-signs' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-energized' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-exhausted' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-high' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-low' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|estrogen-surge' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-alcohol' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-fever' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-late-wake' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-medication' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-other' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-poor-sleep' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-stress' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-travel' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-heavy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-light' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-moderate' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-none' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-spotting' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|hot-flash' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-creamy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-dry' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-egg-white' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-sticky' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-watery' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|no-sexual-intercourse' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-excluded' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-exclusion-reason' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-neutral' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-unpleasant')).not()).select(coding.system & '|' & coding.code & '|' & text).distinct().count()","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"key":"cy-b-limits","severity":"error","human":"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).","expression":"entry.resource.ofType(Observation).where(effective.ofType(dateTime).exists() and (iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://snomed.info/sct|364316005' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom')).not()).select(iif(code.coding.exists(), code.coding.system & '|' & code.coding.code, '|' & code.text)).distinct().count() <= 32 and entry.resource.ofType(Observation).where(effective.ofType(Period).exists()).count() <= 256 and entry.resource.ofType(Procedure).count() <= 512 and (entry.resource.ofType(Observation).count() + entry.resource.ofType(MedicationStatement).count() + entry.resource.ofType(Procedure).count() + entry.resource.ofType(Condition).count() + entry.resource.ofType(Observation).where(component.exists() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'basal-body-temperature').exists().not() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'skin-temperature-deviation').exists().not() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'nightly-skin-temperature').exists().not()).component.count() - entry.resource.ofType(Observation).where(component.exists() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'basal-body-temperature').exists().not() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'skin-temperature-deviation').exists().not() and code.coding.where(system = 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log' and code = 'nightly-skin-temperature').exists().not()).count()) <= 20000 and (entry.resource.descendants().ofType(CodeableConcept).where(coding.exists() and ((coding.system & '|' & coding.code) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://loinc.org|LA12688-0' | 'http://loinc.org|LA12693-0' | 'http://loinc.org|LA137-2' | 'http://loinc.org|LA14649-0' | 'http://loinc.org|LA14650-8' | 'http://loinc.org|LA14651-6' | 'http://loinc.org|LA14652-4' | 'http://loinc.org|LA14653-2' | 'http://loinc.org|LA14654-0' | 'http://loinc.org|LA14655-7' | 'http://loinc.org|LA14656-5' | 'http://loinc.org|LA14657-3' | 'http://loinc.org|LA15173-0' | 'http://loinc.org|LA16581-3' | 'http://loinc.org|LA27901-0' | 'http://loinc.org|LA27902-8' | 'http://loinc.org|LA27903-6' | 'http://loinc.org|LA27904-4' | 'http://loinc.org|LA27907-7' | 'http://loinc.org|LA27908-5' | 'http://loinc.org|LA27909-3' | 'http://loinc.org|LA27911-9' | 'http://loinc.org|LA27912-7' | 'http://loinc.org|LA27918-4' | 'http://loinc.org|LA27919-2' | 'http://loinc.org|LA29252-6' | 'http://loinc.org|LA32-8' | 'http://loinc.org|LA33-6' | 'http://snomed.info/sct|10828004' | 'http://snomed.info/sct|109006003' | 'http://snomed.info/sct|11381005' | 'http://snomed.info/sct|11401008' | 'http://snomed.info/sct|116289008' | 'http://snomed.info/sct|11847009' | 'http://snomed.info/sct|1237359009' | 'http://snomed.info/sct|1263416007' | 'http://snomed.info/sct|128105004' | 'http://snomed.info/sct|129103003' | 'http://snomed.info/sct|1372819003' | 'http://snomed.info/sct|14760008' | 'http://snomed.info/sct|161541000119104' | 'http://snomed.info/sct|161891005' | 'http://snomed.info/sct|165232002' | 'http://snomed.info/sct|169553002' | 'http://snomed.info/sct|18963009' | 'http://snomed.info/sct|193462001' | 'http://snomed.info/sct|225038006' | 'http://snomed.info/sct|2314005' | 'http://snomed.info/sct|236884004' | 'http://snomed.info/sct|236886002' | 'http://snomed.info/sct|237055002' | 'http://snomed.info/sct|237120002' | 'http://snomed.info/sct|237662005' | 'http://snomed.info/sct|237788002' | 'http://snomed.info/sct|248132003' | 'http://snomed.info/sct|25064002' | 'http://snomed.info/sct|260385009' | 'http://snomed.info/sct|265060005' | 'http://snomed.info/sct|271681002' | 'http://snomed.info/sct|279039007' | 'http://snomed.info/sct|289532003' | 'http://snomed.info/sct|301807007' | 'http://snomed.info/sct|30473006' | 'http://snomed.info/sct|30729008' | 'http://snomed.info/sct|312138002' | 'http://snomed.info/sct|31908003' | 'http://snomed.info/sct|34364009' | 'http://snomed.info/sct|34486009' | 'http://snomed.info/sct|364316005' | 'http://snomed.info/sct|366979004' | 'http://snomed.info/sct|37796009' | 'http://snomed.info/sct|38268001' | 'http://snomed.info/sct|404640003' | 'http://snomed.info/sct|40930008' | 'http://snomed.info/sct|42010004' | 'http://snomed.info/sct|422587007' | 'http://snomed.info/sct|42984000' | 'http://snomed.info/sct|431416001' | 'http://snomed.info/sct|43548008' | 'http://snomed.info/sct|48694002' | 'http://snomed.info/sct|53430007' | 'http://snomed.info/sct|55222007' | 'http://snomed.info/sct|55929007' | 'http://snomed.info/sct|56317004' | 'http://snomed.info/sct|58436003' | 'http://snomed.info/sct|62315008' | 'http://snomed.info/sct|6247001' | 'http://snomed.info/sct|63537005' | 'http://snomed.info/sct|64779008' | 'http://snomed.info/sct|65200003' | 'http://snomed.info/sct|70256003' | 'http://snomed.info/sct|71315007' | 'http://snomed.info/sct|73595000' | 'http://snomed.info/sct|76498008' | 'http://snomed.info/sct|76876009' | 'http://snomed.info/sct|784314006' | 'http://snomed.info/sct|80313002' | 'http://snomed.info/sct|82334004' | 'http://snomed.info/sct|83152002' | 'http://snomed.info/sct|8357008' | 'http://snomed.info/sct|84229001' | 'http://snomed.info/sct|87522002' | 'http://snomed.info/sct|90332006' | 'http://snomed.info/sct|95315005' | 'http://terminology.hl7.org/CodeSystem/observation-category|vital-signs' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-energized' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-exhausted' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-high' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-low' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|estrogen-surge' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-alcohol' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-fever' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-late-wake' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-medication' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-other' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-poor-sleep' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-stress' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-travel' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-heavy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-light' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-moderate' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-none' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-spotting' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|hot-flash' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-creamy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-dry' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-egg-white' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-sticky' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-watery' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|no-sexual-intercourse' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-excluded' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-exclusion-reason' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-neutral' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-unpleasant')).not()).where(coding.display.exists()).select(coding.system & '|' & coding.code).distinct().count() + entry.resource.descendants().ofType(CodeableConcept).where(coding.exists() and ((coding.system & '|' & coding.code) in ('http://loinc.org|2106-3' | 'http://loinc.org|63888-2' | 'http://loinc.org|63889-0' | 'http://loinc.org|63895-7' | 'http://loinc.org|64700-8' | 'http://loinc.org|64701-6' | 'http://loinc.org|64702-4' | 'http://loinc.org|65930-0' | 'http://loinc.org|72514-3' | 'http://loinc.org|82810-3' | 'http://loinc.org|8659-5' | 'http://loinc.org|92656-8' | 'http://loinc.org|93832-4' | 'http://loinc.org|LA12688-0' | 'http://loinc.org|LA12693-0' | 'http://loinc.org|LA137-2' | 'http://loinc.org|LA14649-0' | 'http://loinc.org|LA14650-8' | 'http://loinc.org|LA14651-6' | 'http://loinc.org|LA14652-4' | 'http://loinc.org|LA14653-2' | 'http://loinc.org|LA14654-0' | 'http://loinc.org|LA14655-7' | 'http://loinc.org|LA14656-5' | 'http://loinc.org|LA14657-3' | 'http://loinc.org|LA15173-0' | 'http://loinc.org|LA16581-3' | 'http://loinc.org|LA27901-0' | 'http://loinc.org|LA27902-8' | 'http://loinc.org|LA27903-6' | 'http://loinc.org|LA27904-4' | 'http://loinc.org|LA27907-7' | 'http://loinc.org|LA27908-5' | 'http://loinc.org|LA27909-3' | 'http://loinc.org|LA27911-9' | 'http://loinc.org|LA27912-7' | 'http://loinc.org|LA27918-4' | 'http://loinc.org|LA27919-2' | 'http://loinc.org|LA29252-6' | 'http://loinc.org|LA32-8' | 'http://loinc.org|LA33-6' | 'http://snomed.info/sct|10828004' | 'http://snomed.info/sct|109006003' | 'http://snomed.info/sct|11381005' | 'http://snomed.info/sct|11401008' | 'http://snomed.info/sct|116289008' | 'http://snomed.info/sct|11847009' | 'http://snomed.info/sct|1237359009' | 'http://snomed.info/sct|1263416007' | 'http://snomed.info/sct|128105004' | 'http://snomed.info/sct|129103003' | 'http://snomed.info/sct|1372819003' | 'http://snomed.info/sct|14760008' | 'http://snomed.info/sct|161541000119104' | 'http://snomed.info/sct|161891005' | 'http://snomed.info/sct|165232002' | 'http://snomed.info/sct|169553002' | 'http://snomed.info/sct|18963009' | 'http://snomed.info/sct|193462001' | 'http://snomed.info/sct|225038006' | 'http://snomed.info/sct|2314005' | 'http://snomed.info/sct|236884004' | 'http://snomed.info/sct|236886002' | 'http://snomed.info/sct|237055002' | 'http://snomed.info/sct|237120002' | 'http://snomed.info/sct|237662005' | 'http://snomed.info/sct|237788002' | 'http://snomed.info/sct|248132003' | 'http://snomed.info/sct|25064002' | 'http://snomed.info/sct|260385009' | 'http://snomed.info/sct|265060005' | 'http://snomed.info/sct|271681002' | 'http://snomed.info/sct|279039007' | 'http://snomed.info/sct|289532003' | 'http://snomed.info/sct|301807007' | 'http://snomed.info/sct|30473006' | 'http://snomed.info/sct|30729008' | 'http://snomed.info/sct|312138002' | 'http://snomed.info/sct|31908003' | 'http://snomed.info/sct|34364009' | 'http://snomed.info/sct|34486009' | 'http://snomed.info/sct|364316005' | 'http://snomed.info/sct|366979004' | 'http://snomed.info/sct|37796009' | 'http://snomed.info/sct|38268001' | 'http://snomed.info/sct|404640003' | 'http://snomed.info/sct|40930008' | 'http://snomed.info/sct|42010004' | 'http://snomed.info/sct|422587007' | 'http://snomed.info/sct|42984000' | 'http://snomed.info/sct|431416001' | 'http://snomed.info/sct|43548008' | 'http://snomed.info/sct|48694002' | 'http://snomed.info/sct|53430007' | 'http://snomed.info/sct|55222007' | 'http://snomed.info/sct|55929007' | 'http://snomed.info/sct|56317004' | 'http://snomed.info/sct|58436003' | 'http://snomed.info/sct|62315008' | 'http://snomed.info/sct|6247001' | 'http://snomed.info/sct|63537005' | 'http://snomed.info/sct|64779008' | 'http://snomed.info/sct|65200003' | 'http://snomed.info/sct|70256003' | 'http://snomed.info/sct|71315007' | 'http://snomed.info/sct|73595000' | 'http://snomed.info/sct|76498008' | 'http://snomed.info/sct|76876009' | 'http://snomed.info/sct|784314006' | 'http://snomed.info/sct|80313002' | 'http://snomed.info/sct|82334004' | 'http://snomed.info/sct|83152002' | 'http://snomed.info/sct|8357008' | 'http://snomed.info/sct|84229001' | 'http://snomed.info/sct|87522002' | 'http://snomed.info/sct|90332006' | 'http://snomed.info/sct|95315005' | 'http://terminology.hl7.org/CodeSystem/observation-category|vital-signs' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|basal-body-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|cervical-mucus' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|contraceptive-pill-taken' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-energized' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-exhausted' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-high' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-level' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|energy-low' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|estrogen-surge' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-alcohol' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-fever' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-late-wake' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-medication' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-other' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-poor-sleep' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-stress' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|exclude-travel' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-heavy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-light' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-moderate' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-none' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|flow-spotting' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|hot-flash' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-bleeding' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-flow' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|menstrual-fluid-volume' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mood-valence' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-creamy' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-dry' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-egg-white' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-sticky' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|mucus-watery' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|nightly-skin-temperature' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|no-sexual-intercourse' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|ovulation-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|pdg-test' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-excluded' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|reading-exclusion-reason' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|skin-temperature-deviation' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|symptom' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-neutral' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-slightly-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-unpleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-pleasant' | 'https://joshuamandel.com/shc2-poc/CodeSystem/cycle-log|valence-very-unpleasant')).not()).where(text.exists()).select(coding.system & '|' & coding.code).distinct().count() + entry.resource.descendants().ofType(CodeableConcept).where(coding.empty() and text.exists()).select(text).distinct().count()) <= 512","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"}]},{"id":"Bundle.meta.id","path":"Bundle.meta.id","max":"0"},{"id":"Bundle.meta.extension","path":"Bundle.meta.extension","max":"0"},{"id":"Bundle.meta.versionId","path":"Bundle.meta.versionId","max":"0"},{"id":"Bundle.meta.lastUpdated","path":"Bundle.meta.lastUpdated","max":"0"},{"id":"Bundle.meta.source","path":"Bundle.meta.source","max":"0"},{"id":"Bundle.meta.profile","path":"Bundle.meta.profile","max":"1","fixedCanonical":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bundle"},{"id":"Bundle.meta.profile.id","path":"Bundle.meta.profile.id","max":"0"},{"id":"Bundle.meta.profile.extension","path":"Bundle.meta.profile.extension","max":"0"},{"id":"Bundle.meta.security","path":"Bundle.meta.security","max":"0"},{"id":"Bundle.meta.tag","path":"Bundle.meta.tag","max":"1"},{"id":"Bundle.meta.tag.id","path":"Bundle.meta.tag.id","max":"0"},{"id":"Bundle.meta.tag.extension","path":"Bundle.meta.tag.extension","max":"0"},{"id":"Bundle.meta.tag.system","path":"Bundle.meta.tag.system","min":1,"fixedUri":"http://terminology.hl7.org/CodeSystem/v3-ObservationValue"},{"id":"Bundle.meta.tag.system.id","path":"Bundle.meta.tag.system.id","max":"0"},{"id":"Bundle.meta.tag.system.extension","path":"Bundle.meta.tag.system.extension","max":"0"},{"id":"Bundle.meta.tag.version","path":"Bundle.meta.tag.version","max":"0"},{"id":"Bundle.meta.tag.code","path":"Bundle.meta.tag.code","min":1,"fixedCode":"SUBSETTED"},{"id":"Bundle.meta.tag.code.id","path":"Bundle.meta.tag.code.id","max":"0"},{"id":"Bundle.meta.tag.code.extension","path":"Bundle.meta.tag.code.extension","max":"0"},{"id":"Bundle.meta.tag.display","path":"Bundle.meta.tag.display","fixedString":"subsetted"},{"id":"Bundle.meta.tag.display.id","path":"Bundle.meta.tag.display.id","max":"0"},{"id":"Bundle.meta.tag.display.extension","path":"Bundle.meta.tag.display.extension","max":"0"},{"id":"Bundle.meta.tag.userSelected","path":"Bundle.meta.tag.userSelected","max":"0"},{"id":"Bundle.implicitRules","path":"Bundle.implicitRules","max":"0"},{"id":"Bundle.language","path":"Bundle.language","max":"0"},{"id":"Bundle.identifier","path":"Bundle.identifier","max":"0"},{"id":"Bundle.type","path":"Bundle.type","fixedCode":"collection"},{"id":"Bundle.type.id","path":"Bundle.type.id","max":"0"},{"id":"Bundle.type.extension","path":"Bundle.type.extension","max":"0"},{"id":"Bundle.timestamp.id","path":"Bundle.timestamp.id","max":"0"},{"id":"Bundle.timestamp.extension","path":"Bundle.timestamp.extension","max":"0"},{"id":"Bundle.total","path":"Bundle.total","max":"0"},{"id":"Bundle.link","path":"Bundle.link","max":"0"},{"id":"Bundle.entry","path":"Bundle.entry","min":1,"slicing":{"discriminator":[{"type":"profile","path":"resource"}],"ordered":false,"rules":"closed"}},{"id":"Bundle.entry.id","path":"Bundle.entry.id","max":"0"},{"id":"Bundle.entry.extension","path":"Bundle.entry.extension","max":"0"},{"id":"Bundle.entry.modifierExtension","path":"Bundle.entry.modifierExtension","max":"0"},{"id":"Bundle.entry.link","path":"Bundle.entry.link","max":"0"},{"id":"Bundle.entry.fullUrl","path":"Bundle.entry.fullUrl","min":1},{"id":"Bundle.entry.fullUrl.id","path":"Bundle.entry.fullUrl.id","max":"0"},{"id":"Bundle.entry.fullUrl.extension","path":"Bundle.entry.fullUrl.extension","max":"0"},{"id":"Bundle.entry.resource","path":"Bundle.entry.resource","min":1},{"id":"Bundle.entry.search","path":"Bundle.entry.search","max":"0"},{"id":"Bundle.entry.request","path":"Bundle.entry.request","max":"0"},{"id":"Bundle.entry.response","path":"Bundle.entry.response","max":"0"},{"id":"Bundle.entry:patient","path":"Bundle.entry","sliceName":"patient","min":1,"max":"1"},{"id":"Bundle.entry:patient.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient"]}]},{"id":"Bundle.entry:device","path":"Bundle.entry","sliceName":"device","min":0,"max":"1"},{"id":"Bundle.entry:device.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-device"]}]},{"id":"Bundle.entry:bleeding","path":"Bundle.entry","sliceName":"bleeding","min":0,"max":"*"},{"id":"Bundle.entry:bleeding.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bleeding"]}]},{"id":"Bundle.entry:flow","path":"Bundle.entry","sliceName":"flow","min":0,"max":"*"},{"id":"Bundle.entry:flow.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-flow"]}]},{"id":"Bundle.entry:volume","path":"Bundle.entry","sliceName":"volume","min":0,"max":"*"},{"id":"Bundle.entry:volume.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-volume"]}]},{"id":"Bundle.entry:pain","path":"Bundle.entry","sliceName":"pain","min":0,"max":"*"},{"id":"Bundle.entry:pain.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pain"]}]},{"id":"Bundle.entry:symptom","path":"Bundle.entry","sliceName":"symptom","min":0,"max":"*"},{"id":"Bundle.entry:symptom.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-symptom"]}]},{"id":"Bundle.entry:bbt","path":"Bundle.entry","sliceName":"bbt","min":0,"max":"*"},{"id":"Bundle.entry:bbt.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-bbt"]}]},{"id":"Bundle.entry:skin-temp-deviation","path":"Bundle.entry","sliceName":"skin-temp-deviation","min":0,"max":"*"},{"id":"Bundle.entry:skin-temp-deviation.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-deviation"]}]},{"id":"Bundle.entry:skin-temp-absolute","path":"Bundle.entry","sliceName":"skin-temp-absolute","min":0,"max":"*"},{"id":"Bundle.entry:skin-temp-absolute.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-skin-temp-absolute"]}]},{"id":"Bundle.entry:mucus","path":"Bundle.entry","sliceName":"mucus","min":0,"max":"*"},{"id":"Bundle.entry:mucus.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mucus"]}]},{"id":"Bundle.entry:ovulation-test","path":"Bundle.entry","sliceName":"ovulation-test","min":0,"max":"*"},{"id":"Bundle.entry:ovulation-test.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-ovulation-test"]}]},{"id":"Bundle.entry:progesterone-test","path":"Bundle.entry","sliceName":"progesterone-test","min":0,"max":"*"},{"id":"Bundle.entry:progesterone-test.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-progesterone-test"]}]},{"id":"Bundle.entry:pregnancy-test","path":"Bundle.entry","sliceName":"pregnancy-test","min":0,"max":"*"},{"id":"Bundle.entry:pregnancy-test.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-test"]}]},{"id":"Bundle.entry:sex","path":"Bundle.entry","sliceName":"sex","min":0,"max":"*"},{"id":"Bundle.entry:sex.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sex"]}]},{"id":"Bundle.entry:mood","path":"Bundle.entry","sliceName":"mood","min":0,"max":"*"},{"id":"Bundle.entry:mood.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-mood"]}]},{"id":"Bundle.entry:energy","path":"Bundle.entry","sliceName":"energy","min":0,"max":"*"},{"id":"Bundle.entry:energy.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-energy"]}]},{"id":"Bundle.entry:sleep","path":"Bundle.entry","sliceName":"sleep","min":0,"max":"*"},{"id":"Bundle.entry:sleep.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-sleep"]}]},{"id":"Bundle.entry:pill","path":"Bundle.entry","sliceName":"pill","min":0,"max":"*"},{"id":"Bundle.entry:pill.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pill"]}]},{"id":"Bundle.entry:answer-usual-cycle-length","path":"Bundle.entry","sliceName":"answer-usual-cycle-length","min":0,"max":"*"},{"id":"Bundle.entry:answer-usual-cycle-length.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-usual-cycle-length"]}]},{"id":"Bundle.entry:answer-periods-per-year","path":"Bundle.entry","sliceName":"answer-periods-per-year","min":0,"max":"*"},{"id":"Bundle.entry:answer-periods-per-year.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-per-year"]}]},{"id":"Bundle.entry:answer-missed-periods-3-months","path":"Bundle.entry","sliceName":"answer-missed-periods-3-months","min":0,"max":"*"},{"id":"Bundle.entry:answer-missed-periods-3-months.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-missed-periods-3-months"]}]},{"id":"Bundle.entry:answer-period-in-last-year","path":"Bundle.entry","sliceName":"answer-period-in-last-year","min":0,"max":"*"},{"id":"Bundle.entry:answer-period-in-last-year.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-period-in-last-year"]}]},{"id":"Bundle.entry:answer-periods-stopped","path":"Bundle.entry","sliceName":"answer-periods-stopped","min":0,"max":"*"},{"id":"Bundle.entry:answer-periods-stopped.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-periods-stopped"]}]},{"id":"Bundle.entry:answer-age-periods-stopped","path":"Bundle.entry","sliceName":"answer-age-periods-stopped","min":0,"max":"*"},{"id":"Bundle.entry:answer-age-periods-stopped.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-periods-stopped"]}]},{"id":"Bundle.entry:answer-age-at-menarche","path":"Bundle.entry","sliceName":"answer-age-at-menarche","min":0,"max":"*"},{"id":"Bundle.entry:answer-age-at-menarche.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-answer-age-at-menarche"]}]},{"id":"Bundle.entry:contraception-interval","path":"Bundle.entry","sliceName":"contraception-interval","min":0,"max":"*"},{"id":"Bundle.entry:contraception-interval.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-contraception-interval"]}]},{"id":"Bundle.entry:pregnancy-interval","path":"Bundle.entry","sliceName":"pregnancy-interval","min":0,"max":"*"},{"id":"Bundle.entry:pregnancy-interval.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-pregnancy-interval"]}]},{"id":"Bundle.entry:breastfeeding-interval","path":"Bundle.entry","sliceName":"breastfeeding-interval","min":0,"max":"*"},{"id":"Bundle.entry:breastfeeding-interval.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-breastfeeding-interval"]}]},{"id":"Bundle.entry:custom-interval","path":"Bundle.entry","sliceName":"custom-interval","min":0,"max":"*"},{"id":"Bundle.entry:custom-interval.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-interval"]}]},{"id":"Bundle.entry:custom-boolean","path":"Bundle.entry","sliceName":"custom-boolean","min":0,"max":"*"},{"id":"Bundle.entry:custom-boolean.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-boolean"]}]},{"id":"Bundle.entry:custom-coded","path":"Bundle.entry","sliceName":"custom-coded","min":0,"max":"*"},{"id":"Bundle.entry:custom-coded.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-coded"]}]},{"id":"Bundle.entry:custom-quantity","path":"Bundle.entry","sliceName":"custom-quantity","min":0,"max":"*"},{"id":"Bundle.entry:custom-quantity.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-quantity"]}]},{"id":"Bundle.entry:custom-reading","path":"Bundle.entry","sliceName":"custom-reading","min":0,"max":"*"},{"id":"Bundle.entry:custom-reading.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-custom-reading"]}]},{"id":"Bundle.entry:medication","path":"Bundle.entry","sliceName":"medication","min":0,"max":"*"},{"id":"Bundle.entry:medication.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-medication"]}]},{"id":"Bundle.entry:procedure","path":"Bundle.entry","sliceName":"procedure","min":0,"max":"*"},{"id":"Bundle.entry:procedure.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-procedure"]}]},{"id":"Bundle.entry:condition","path":"Bundle.entry","sliceName":"condition","min":0,"max":"*"},{"id":"Bundle.entry:condition.resource","path":"Bundle.entry.resource","min":1,"type":[{"code":"Resource","profile":["https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-condition"]}]},{"id":"Bundle.signature","path":"Bundle.signature","max":"0"}]}}
