@smile-digital-health/crl 4.113.0 → 4.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-kit/index.js +2 -2
- package/dist/authoring-kit/index.js.map +1 -1
- package/dist/authoring-kit/reference.d.ts +8 -8
- package/dist/authoring-kit/reference.js +97 -10
- package/dist/authoring-kit/reference.js.map +1 -1
- package/dist/cel/emitter/emitFhir.js +2 -3
- package/dist/cel/emitter/emitFhir.js.map +1 -1
- package/dist/cli/run-emit-results.js +29 -132
- package/dist/cli/run-emit-results.js.map +1 -1
- package/dist/cql-emitter/emitCQL.js.map +1 -1
- package/dist/cql-emitter/lowerLocalCodes.js +10 -1
- package/dist/cql-emitter/lowerLocalCodes.js.map +1 -1
- package/dist/emit/effectiveRepresentation.js +4 -1
- package/dist/emit/effectiveRepresentation.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +92 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/migration/migrationInventory.js +1 -1
- package/dist/migration/migrationInventory.js.map +1 -1
- package/dist/results/driver/ApplyDriver.class +0 -0
- package/dist/results/driver/ApplyDriver.java +88 -0
- package/dist/results/driver.d.ts +22 -0
- package/dist/results/driver.js +54 -0
- package/dist/results/driver.js.map +1 -0
- package/dist/results/produce.d.ts +29 -0
- package/dist/results/produce.js +147 -0
- package/dist/results/produce.js.map +1 -0
- package/dist/results/runProducer.d.ts +7 -1
- package/dist/results/runProducer.js +61 -4
- package/dist/results/runProducer.js.map +1 -1
- package/dist/results/spawn.d.ts +3 -1
- package/dist/results/spawn.js +8 -6
- package/dist/results/spawn.js.map +1 -1
- package/dist/template-match/recencyValueConcept.js +1 -1
- package/dist/template-match/recencyValueConcept.js.map +1 -1
- package/dist/template-match/resolvePipeline.js +1 -1
- package/dist/template-match/resolvePipeline.js.map +1 -1
- package/dist/validator/emitCapabilityValidator.js +3 -2
- package/dist/validator/emitCapabilityValidator.js.map +1 -1
- package/dist/validator/representationShapeValidator.js +9 -6
- package/dist/validator/representationShapeValidator.js.map +1 -1
- package/dist/validator/validator.d.ts +1 -1
- package/dist/validator/validator.js.map +1 -1
- package/package.json +4 -2
|
@@ -76,7 +76,7 @@ const CONCEPT_LAYER_MODEL = [
|
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
form: "- code is `local-code`.",
|
|
79
|
-
meaning: "Query to the LOCAL source using local domain codes. The asserted layer.
|
|
79
|
+
meaning: "Query to the LOCAL source using local domain codes. The asserted layer. ⚠ `type is` is REQUIRED alongside `code is` — there is NO implicit default. A locally coded concept is ANSWERABLE (someone can assert it), so the record must be storable, and storing it needs a resource type; omitting it is the validator error `local-code-missing-type`. The type names the resource the local record IS: `type is Observation` for an attested answer (the Stage-1 default CHOICE, written explicitly), a declared non-Observation type retrieves THAT resource. The primary in-stage producer alongside `defined as` (and, for patient age, an optional local override paired with a Patient age `value projection` — see below). MIGRATION-PROMPT (validate-only, do NOT act on it in Stage-1): a bare Scalar boolean `code is` determination — the canonical Stage-1 leaf — emits a `no-bare-scalar-code` WARNING in the shipped #189 validation slice, prompting that its existence be stated explicitly (`definition is exists this`) at the emit FLIP. IGNORE it in Stage-1: reductions are NOT emit-active yet (authoring one now FAILS emit via `emit-reduction-not-active`), so keep the bare `code is` form until the flip lands. The warning does NOT flip validity, and it does NOT contradict the `definition is` OUT-of-stage rule — it is a forward-looking flip prompt, not a Stage-1 action. (A `code is` concept whose reduction is supplied by a `value projection` posrep — patient age — is NOT bare and does not warn.)",
|
|
80
80
|
scope: "in",
|
|
81
81
|
},
|
|
82
82
|
{
|
|
@@ -284,7 +284,7 @@ const RULES = [
|
|
|
284
284
|
ref: "#190; #257; patient-age recency merge; disc 173",
|
|
285
285
|
clauses: [
|
|
286
286
|
{
|
|
287
|
-
text: "The RECENCY (local `code is` + age posrep) concept's EFFECTIVE local type is Observation — the recency merge emits an Observation-boolean retrieve. Authoring
|
|
287
|
+
text: "The RECENCY (local `code is` + age posrep) concept's EFFECTIVE local type is Observation — the recency merge emits an Observation-boolean retrieve. ⚠ Authoring MUST still declare `- type is Observation.` — the recency concept is a local `code is` like any other, and the implicit-standard omission it once relied on has been removed. A STANDALONE age posrep's own `type is` is `Patient` (the projected carrier).",
|
|
288
288
|
force: "invariant",
|
|
289
289
|
test: "verifyLoop:patient-age-projection",
|
|
290
290
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/authoring-kit/index.ts"],"names":[],"mappings":";;;AA4nDA,0CAeC;AAhoDD,6CAAyC;AAEzC,2DAAoE;AACpE,4DAAyD;AACzD,0DAAuD;AACvD,oEAAiE;AAEjE,2CAaqB;AA6QrB,MAAM,cAAc,GAAG,MAAM,CAAC;AACjB,QAAA,aAAa,GAAmB,wBAAwB,CAAC;AACzD,QAAA,MAAM,GAA8B,CAAC,qBAAa,CAAC,CAAC;AAOpD,QAAA,gBAAgB,GAAqB,KAAK,CAAC;AAC3C,QAAA,SAAS,GAGlB;IACF,GAAG,EAAE;QACH,KAAK,EACH,8FAA8F;QAChG,KAAK,EAAE,CAAC,KAAK,CAAC;KACf;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,8EAA8E;QACrF,KAAK,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC;KAC7B;CACF,CAAC;AACW,QAAA,cAAc,GAAgC,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAGjF,MAAM,YAAY,GAAG,mEAAmE,CAAC;AAEzF,MAAM,OAAO,GACX,gFAAgF;IAChF,sFAAsF;IACtF,4FAA4F;IAC5F,qFAAqF;IACrF,4DAA4D,CAAC;AAO/D,MAAM,WAAW,GAAe;IAC9B,OAAO,EACL,6GAA6G;QAC7G,2GAA2G;QAC3G,2GAA2G;QAC3G,oGAAoG;QACpG,gFAAgF;IAClF,MAAM,EAAE;QACN;YACE,KAAK,EAAE,oBAAoB;YA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c,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CACxF,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACvC,MAAM,WAAW,GAAG,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpF,OAAO,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const DECISION_REFERENCE_CRL = "# Decision Reference \u2014 Imaging Coverage (Stage 1 authoring exemplar)\nlibrary \"Imaging Coverage Reference\".\n\n/*\nCanonical Stage-1 (local-decision-support) exemplar. Every concept is a LOCAL\ncase-feature: `type is` + `code is` only \u2014 no `source representation` and no\n`definition is` / `defined as` (those are later stages). Dispositions are plain\n`activity` declarations; CRL has no approve/deny/pend verbs. The decision shows\nthe full shape: `first:` ordered precedence with a required `otherwise`, and a\nmatched branch opening an `any:` menu with per-action guards. \"Order MRI\" is\nalways offered, so a matched branch can never produce nothing.\n\nSIGNPOST \u2014 this is a CDS exemplar: \"Order MRI\"/\"Order CT\" are CPGServiceRequest\nservice ORDERS, correct here because CDS recommends the clinician ORDER a service.\nDISPOSITION TYPE follows the ACT: an act that is COMMUNICATED rather than ordered\nuses CPGCommunicationRequest instead \u2014 do NOT copy this order pattern where the act\nis a communicated decision (see the dispositions rule).\n*/\n\n// ============ Concepts (local case-features: type is + code is only) ============\n\nconcept \"Hard Exclusion\":\n- value type is boolean.\n- type is
|
|
2
|
-
export declare const DECISION_REFERENCE_CEL = "# Decision Reference \u2014 Imaging Coverage \u2014 cases (Stage 1 CEL exemplar)\nlibrary \"Imaging Coverage Reference Cases\".\ncovers \"Imaging Coverage Reference\".\n\n/*\nCompanion CEL for decision-reference.crl. `covers` names the CRL LIBRARY; the\n`result is` oracle names the DECISION. Each clinical fact is linked to a concept\nvia `defined by \"<library>\".\"<concept>\"`. The CRE checks each case's produced\nrecommendations against its `result is` (membership: the asserted branch must be\namong the produced recommendations).\n*/\n\n// ============ Patient ============\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\n// ============ Clinical facts (each linked to a concept) ============\n\nfact \"Indication Finding\":\n- date is \"2026-01-01\".\n- defined by \"Imaging Coverage Reference\".\"Qualifying Indication\".\n\nfact \"Exclusion Finding\":\n- date is \"2026-01-01\".\n- defined by \"Imaging Coverage Reference\".\"Hard Exclusion\".\n\nfact \"Contrast Allergy Finding\":\n- date is \"2026-01-01\".\n- defined by \"Imaging Coverage Reference\".\"Contrast Allergy\".\n\nfact \"Complex Case Finding\":\n- date is \"2026-01-01\".\n- defined by \"Imaging Coverage Reference\".\"Complex Case\".\n\n// ============ Cases ============\n\ncase \"indication, no contraindication -> CT offered\":\n- description is `Qualifying indication present, no contrast allergy and not a\n complex case: the menu offers MRI and CT; Refer To Specialist is guarded out.`.\n- subject is \"Sample Patient\".\n- fact is \"Indication Finding\".\n- result is \"Imaging Coverage\" is \"Order CT\".\n\ncase \"contrast allergy -> CT dropped, MRI still offered\":\n- description is `Contrast allergy contraindicates CT (unless drops it); MRI is\n always offered, so the menu still produces MRI.`.\n- subject is \"Sample Patient\".\n- fact is \"Indication Finding\".\n- fact is \"Contrast Allergy Finding\".\n- result is \"Imaging Coverage\" is \"Order MRI\".\n\ncase \"complex case -> specialist referral offered\":\n- description is `A complex case enables the only-when-guarded specialist\n referral option.`.\n- subject is \"Sample Patient\".\n- fact is \"Indication Finding\".\n- fact is \"Complex Case Finding\".\n- result is \"Imaging Coverage\" is \"Refer To Specialist\".\n\ncase \"hard exclusion -> denied\":\n- description is `A hard exclusion matches the first branch; by ordered\n precedence the decision denies regardless of indication.`.\n- subject is \"Sample Patient\".\n- fact is \"Indication Finding\".\n- fact is \"Exclusion Finding\".\n- result is \"Imaging Coverage\" is \"Deny\".\n";
|
|
1
|
+
export declare const DECISION_REFERENCE_CRL = "# Decision Reference \u2014 Imaging Coverage (Stage 1 authoring exemplar)\nlibrary \"Imaging Coverage Reference\".\n\n/*\nCanonical Stage-1 (local-decision-support) exemplar. Every concept is a LOCAL\ncase-feature: `type is` + `code is` only \u2014 no `source representation` and no\n`definition is` / `defined as` (those are later stages). Dispositions are plain\n`activity` declarations; CRL has no approve/deny/pend verbs. The decision shows\nthe full shape: `first:` ordered precedence with a required `otherwise`, and a\nmatched branch opening an `any:` menu with per-action guards. \"Order MRI\" is\nalways offered, so a matched branch can never produce nothing.\n\nSIGNPOST \u2014 this is a CDS exemplar: \"Order MRI\"/\"Order CT\" are CPGServiceRequest\nservice ORDERS, correct here because CDS recommends the clinician ORDER a service.\nDISPOSITION TYPE follows the ACT: an act that is COMMUNICATED rather than ordered\nuses CPGCommunicationRequest instead \u2014 do NOT copy this order pattern where the act\nis a communicated decision (see the dispositions rule).\n*/\n\n// ============ Concepts (local case-features: type is + code is only) ============\n\nconcept \"Hard Exclusion\":\n- value type is boolean.\n- type is Observation.\n- code is `hard-exclusion`.\n\nconcept \"Qualifying Indication\":\n- value type is boolean.\n- type is Observation.\n- code is `qualifying-indication`.\n\nconcept \"Contrast Allergy\":\n- value type is boolean.\n- type is Observation.\n- code is `contrast-allergy`.\n\nconcept \"Complex Case\":\n- value type is boolean.\n- type is Observation.\n- code is `complex-case`.\n\n// ============ Decision ============\n\ndecision \"Imaging Coverage\":\nfirst:\n- when \"Hard Exclusion\" then recommend activity \"Deny\".\n- when \"Qualifying Indication\" then:\n any:\n - recommend activity \"Order MRI\".\n - recommend activity \"Order CT\" unless \"Contrast Allergy\".\n - recommend activity \"Refer To Specialist\" only when \"Complex Case\".\n end.\n- otherwise then recommend activity \"Deny\".\n\n// ============ Activities (plain dispositions; shareable) ============\n\nactivity \"Order MRI\":\n- request CPGServiceRequest.\n- with `Order MRI of the affected region.`.\n\nactivity \"Order CT\":\n- request CPGServiceRequest.\n- with `Order CT of the affected region.`.\n\nactivity \"Refer To Specialist\":\n- request CPGCommunicationRequest.\n- with `Refer to the appropriate specialist.`.\n\nactivity \"Deny\":\n- request CPGCommunicationRequest.\n- with `Imaging is not covered for this presentation.`.\n";
|
|
2
|
+
export declare const DECISION_REFERENCE_CEL = "# Decision Reference \u2014 Imaging Coverage \u2014 cases (Stage 1 CEL exemplar)\nlibrary \"Imaging Coverage Reference Cases\".\ncovers \"Imaging Coverage Reference\".\n\n/*\nCompanion CEL for decision-reference.crl. `covers` names the CRL LIBRARY; the\n`result is` oracle names the DECISION. Each clinical fact is linked to a concept\nvia `defined by \"<library>\".\"<concept>\"`. The CRE checks each case's produced\nrecommendations against its `result is` (membership: the asserted branch must be\namong the produced recommendations).\n*/\n\n// ============ Patient ============\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\n// ============ Clinical facts (each linked to a concept) ============\n\nfact \"Indication Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Imaging Coverage Reference\".\"Qualifying Indication\".\n\nfact \"Exclusion Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Imaging Coverage Reference\".\"Hard Exclusion\".\n\nfact \"Contrast Allergy Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Imaging Coverage Reference\".\"Contrast Allergy\".\n\nfact \"Complex Case Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Imaging Coverage Reference\".\"Complex Case\".\n\n// \u26A0 NEGATIVE ANSWERS ARE NOT OPTIONAL under value-read semantics. A locally-coded boolean with a\n// bare `code is` is a QUESTION: unanswered it is UNKNOWN, so the branch guarding on it can neither\n// fire nor fall through and the decision PAUSES. Omitting \"no hard exclusion\" does not mean false; it\n// means nobody has been asked. Every case below therefore answers each criterion on its path.\n\nfact \"No Hard Exclusion\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Imaging Coverage Reference\".\"Hard Exclusion\".\n\nfact \"No Contrast Allergy\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Imaging Coverage Reference\".\"Contrast Allergy\".\n\nfact \"Not A Complex Case\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Imaging Coverage Reference\".\"Complex Case\".\n\n// ============ Cases ============\n\ncase \"indication, no contraindication -> CT offered\":\n- description is `Qualifying indication present, no contrast allergy and not a\n complex case: the menu offers MRI and CT; Refer To Specialist is guarded out.`.\n- subject is \"Sample Patient\".\n- fact is \"No Hard Exclusion\".\n- fact is \"Indication Finding\".\n- fact is \"No Contrast Allergy\".\n- fact is \"Not A Complex Case\".\n- result is \"Imaging Coverage\" is \"Order CT\".\n\ncase \"contrast allergy -> CT dropped, MRI still offered\":\n- description is `Contrast allergy contraindicates CT (unless drops it); MRI is\n always offered, so the menu still produces MRI.`.\n- subject is \"Sample Patient\".\n- fact is \"No Hard Exclusion\".\n- fact is \"Indication Finding\".\n- fact is \"Contrast Allergy Finding\".\n- fact is \"Not A Complex Case\".\n- result is \"Imaging Coverage\" is \"Order MRI\".\n\ncase \"complex case -> specialist referral offered\":\n- description is `A complex case enables the only-when-guarded specialist\n referral option.`.\n- subject is \"Sample Patient\".\n- fact is \"No Hard Exclusion\".\n- fact is \"Indication Finding\".\n- fact is \"No Contrast Allergy\".\n- fact is \"Complex Case Finding\".\n- result is \"Imaging Coverage\" is \"Refer To Specialist\".\n\ncase \"hard exclusion -> denied\":\n- description is `A hard exclusion matches the first branch; by ordered\n precedence the decision denies regardless of indication.`.\n- subject is \"Sample Patient\".\n- fact is \"Indication Finding\".\n- fact is \"Exclusion Finding\".\n- result is \"Imaging Coverage\" is \"Deny\".\n";
|
|
3
3
|
export declare const CRITERIA_DECISION_REFERENCE_CRL: string;
|
|
4
|
-
export declare const CRITERIA_DECISION_REFERENCE_CEL = "# Criteria Decision Reference \u2014 cases (Stage 1)\nlibrary \"Coverage Criteria Reference Cases\".\ncovers \"Coverage Criteria Reference\".\n\n/*\nEach case exercises a decision NODE: criterion-1 (`when[0]`), criterion-2\n(`when[0]/when[0]` \u2014 the failed-conservative-therapy or-guard, a nested NODE, not a\ncomposite), and criterion-3 (`when[0]/when[0]/when[0]` \u2014 the viral-suppression\n`defined as` node). The two approve cases prove the criterion-2 guard resolves on\nEITHER distinct criterion (failed drug OR failed physical therapy independently) AND\nthat the criterion-3 `defined as` resolves on EITHER record (lab OR chart note) of the\none occurrence; the no-viral-suppression case proves the `defined as` node denies when\nneither record is present.\n*/\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\nfact \"Diagnosis Finding\":\n- date is \"2026-01-01\".\n- defined by \"Coverage Criteria Reference\".\"Has Qualifying Diagnosis\".\n\nfact \"Drug Therapy Failure\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Failed Drug Therapy\".\n\nfact \"Physical Therapy Failure\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Failed Physical Therapy\".\n\n// #189 null/pause \u2014 \"the patient did NOT fail therapy\" is now something you STATE, not something you get by\n// omitting the fact. Omission means UNKNOWN (nothing established it and nothing can compute it), which makes\n// the gate pause and ask. An explicit `value is false` is the answer \"no\".\nfact \"No Drug Therapy Failure\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Coverage Criteria Reference\".\"Failed Drug Therapy\".\n\nfact \"No Physical Therapy Failure\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Coverage Criteria Reference\".\"Failed Physical Therapy\".\n\nfact \"Viral Load Lab Result\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Viral Load Below Threshold Lab Result\".\n\nfact \"Viral Suppression Chart Note\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Viral Suppression Charted By Clinician\".\n\ncase \"diagnosis + failed drug therapy + viral suppression (lab record) -> approve\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- fact is \"Drug Therapy Failure\".\n- fact is \"Viral Load Lab Result\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"diagnosis + failed physical therapy + viral suppression (chart record) -> approve (guard-or + defined-as either record)\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- fact is \"Physical Therapy Failure\".\n- fact is \"Viral Suppression Chart Note\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"diagnosis + failed conservative therapy but no documented viral suppression -> deny (defined-as node otherwise)\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- fact is \"Drug Therapy Failure\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n\ncase \"diagnosis + viral suppression but no conservative-therapy failure -> deny (criterion-2 node otherwise)\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- fact is \"Viral Load Lab Result\".\n- fact is \"No Drug Therapy Failure\".\n- fact is \"No Physical Therapy Failure\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n\ncase \"no qualifying diagnosis -> deny (criterion-1 node otherwise)\":\n- subject is \"Sample Patient\".\n- fact is \"Drug Therapy Failure\".\n- fact is \"Viral Load Lab Result\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n";
|
|
4
|
+
export declare const CRITERIA_DECISION_REFERENCE_CEL = "# Criteria Decision Reference \u2014 cases (Stage 1)\nlibrary \"Coverage Criteria Reference Cases\".\ncovers \"Coverage Criteria Reference\".\n\n/*\nEach case exercises a decision NODE: criterion-1 (`when[0]`), criterion-2\n(`when[0]/when[0]` \u2014 the failed-conservative-therapy or-guard, a nested NODE, not a\ncomposite), and criterion-3 (`when[0]/when[0]/when[0]` \u2014 the viral-suppression\n`defined as` node). The two approve cases prove the criterion-2 guard resolves on\nEITHER distinct criterion (failed drug OR failed physical therapy independently) AND\nthat the criterion-3 `defined as` resolves on EITHER record (lab OR chart note) of the\none occurrence; the no-viral-suppression case proves the `defined as` node denies when\nneither record is present.\n*/\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\nfact \"Diagnosis Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Has Qualifying Diagnosis\".\n\nfact \"No Qualifying Diagnosis\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Coverage Criteria Reference\".\"Has Qualifying Diagnosis\".\n\nfact \"Drug Therapy Failure\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Failed Drug Therapy\".\n\nfact \"Physical Therapy Failure\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Failed Physical Therapy\".\n\n// #189 null/pause \u2014 \"the patient did NOT fail therapy\" is now something you STATE, not something you get by\n// omitting the fact. Omission means UNKNOWN (nothing established it and nothing can compute it), which makes\n// the gate pause and ask. An explicit `value is false` is the answer \"no\".\nfact \"No Drug Therapy Failure\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Coverage Criteria Reference\".\"Failed Drug Therapy\".\n\nfact \"No Physical Therapy Failure\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Coverage Criteria Reference\".\"Failed Physical Therapy\".\n\nfact \"Viral Load Lab Result\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Viral Load Below Threshold Lab Result\".\n\nfact \"Viral Suppression Chart Note\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Coverage Criteria Reference\".\"Viral Suppression Charted By Clinician\".\n\ncase \"diagnosis + failed drug therapy + viral suppression (lab record) -> approve\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- fact is \"Drug Therapy Failure\".\n- fact is \"Viral Load Lab Result\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"diagnosis + failed physical therapy + viral suppression (chart record) -> approve (guard-or + defined-as either record)\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- fact is \"Physical Therapy Failure\".\n- fact is \"Viral Suppression Chart Note\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"diagnosis + failed conservative therapy but no documented viral suppression -> deny (defined-as node otherwise)\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- fact is \"Drug Therapy Failure\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n\ncase \"diagnosis + viral suppression but no conservative-therapy failure -> deny (criterion-2 node otherwise)\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- fact is \"Viral Load Lab Result\".\n- fact is \"No Drug Therapy Failure\".\n- fact is \"No Physical Therapy Failure\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n\ncase \"no qualifying diagnosis -> deny (criterion-1 node otherwise)\":\n- subject is \"Sample Patient\".\n- fact is \"No Qualifying Diagnosis\".\n- fact is \"Drug Therapy Failure\".\n- fact is \"Viral Load Lab Result\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n";
|
|
5
5
|
export declare const PA_DETERMINATION_REFERENCE_CRL: string;
|
|
6
|
-
export declare const PA_DETERMINATION_REFERENCE_CEL = "# PA Determination Reference \u2014 cases (Stage 1 PA exemplar)\nlibrary \"PA Determination Reference Cases\".\ncovers \"PA Determination Reference\".\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\nfact \"Diagnosis Finding\":\n- date is \"2026-01-01\".\n- defined by \"PA Determination Reference\".\"Has Qualifying Diagnosis\".\n\ncase \"qualifying diagnosis -> approve\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"no qualifying diagnosis -> deny (otherwise)\":\n- subject is \"Sample Patient\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n";
|
|
6
|
+
export declare const PA_DETERMINATION_REFERENCE_CEL = "# PA Determination Reference \u2014 cases (Stage 1 PA exemplar)\nlibrary \"PA Determination Reference Cases\".\ncovers \"PA Determination Reference\".\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\nfact \"Diagnosis Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"PA Determination Reference\".\"Has Qualifying Diagnosis\".\n\nfact \"No Qualifying Diagnosis\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"PA Determination Reference\".\"Has Qualifying Diagnosis\".\n\ncase \"qualifying diagnosis -> approve\":\n- subject is \"Sample Patient\".\n- fact is \"Diagnosis Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\n// \u26A0 An UNANSWERED criterion is UNKNOWN, not false: the tree PAUSES rather than falling through.\n// A case that means \"not met\" must ANSWER it.\ncase \"no qualifying diagnosis -> deny (otherwise)\":\n- subject is \"Sample Patient\".\n- fact is \"No Qualifying Diagnosis\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n";
|
|
7
7
|
export declare const SOURCE_DELEGATED_DECISION_REFERENCE_CRL: string;
|
|
8
|
-
export declare const SOURCE_DELEGATED_DECISION_REFERENCE_CEL = "# Source-Delegated Decision Reference \u2014 cases (Stage 1)\nlibrary \"Source Delegated Decision Reference Cases\".\ncovers \"Source Delegated Decision Reference\".\n\n/*\nCases for exemplar B. The first two route through the DELEGATED sub (\"Continuation of Therapy\nDetermination\"): its determination bubbles up so the oracle names Approve/Deny (the delegated disposition),\nnot the sub-decision name. The last two resolve in the PARENT. (Per \u00A74-req1 the kit's unit test asserts the\ncontinuation\u2192Deny case's PATH goes through the delegated sub, not the parent `otherwise`.)\n*/\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\nfact \"Continuation Request Finding\":\n- date is \"2026-01-01\".\n- defined by \"Source Delegated Decision Reference\".\"Continuation Request\".\n\n// #189 null/pause \u2014 the NEGATIVE is now STATED, not implied by omission. Omission means UNKNOWN\n// (nothing established it, nothing can compute it) and makes the gate pause and ask.\nfact \"No Demonstrated Response\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Source Delegated Decision Reference\".\"Demonstrated Response\".\n\nfact \"Demonstrated Response Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Source Delegated Decision Reference\".\"Demonstrated Response\".\n\nfact \"Clinically Indicated Finding\":\n- date is \"2026-01-01\".\n- defined by \"Source Delegated Decision Reference\".\"Clinically Indicated\".\n\ncase \"continuation + demonstrated response -> approve via delegated sub\":\n- subject is \"Sample Patient\".\n- fact is \"Continuation Request Finding\".\n- fact is \"Demonstrated Response Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"continuation, no response -> deny via delegated sub otherwise\":\n- subject is \"Sample Patient\".\n- fact is \"Continuation Request Finding\".\n- fact is \"No Demonstrated Response\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n\ncase \"clinically indicated (no continuation) -> approve in parent\":\n- subject is \"Sample Patient\".\n- fact is \"Clinically Indicated Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"neither -> deny in parent otherwise\":\n- subject is \"Sample Patient\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n";
|
|
8
|
+
export declare const SOURCE_DELEGATED_DECISION_REFERENCE_CEL = "# Source-Delegated Decision Reference \u2014 cases (Stage 1)\nlibrary \"Source Delegated Decision Reference Cases\".\ncovers \"Source Delegated Decision Reference\".\n\n/*\nCases for exemplar B. The first two route through the DELEGATED sub (\"Continuation of Therapy\nDetermination\"): its determination bubbles up so the oracle names Approve/Deny (the delegated disposition),\nnot the sub-decision name. The last two resolve in the PARENT. (Per \u00A74-req1 the kit's unit test asserts the\ncontinuation\u2192Deny case's PATH goes through the delegated sub, not the parent `otherwise`.)\n*/\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\nfact \"Continuation Request Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Source Delegated Decision Reference\".\"Continuation Request\".\n\n// #189 null/pause \u2014 the NEGATIVE is now STATED, not implied by omission. Omission means UNKNOWN\n// (nothing established it, nothing can compute it) and makes the gate pause and ask.\nfact \"No Demonstrated Response\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Source Delegated Decision Reference\".\"Demonstrated Response\".\n\nfact \"Demonstrated Response Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Source Delegated Decision Reference\".\"Demonstrated Response\".\n\nfact \"Clinically Indicated Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Source Delegated Decision Reference\".\"Clinically Indicated\".\n\nfact \"No Continuation Request\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Source Delegated Decision Reference\".\"Continuation Request\".\n\nfact \"Not Clinically Indicated\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Source Delegated Decision Reference\".\"Clinically Indicated\".\n\ncase \"continuation + demonstrated response -> approve via delegated sub\":\n- subject is \"Sample Patient\".\n- fact is \"Continuation Request Finding\".\n- fact is \"Demonstrated Response Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"continuation, no response -> deny via delegated sub otherwise\":\n- subject is \"Sample Patient\".\n- fact is \"Continuation Request Finding\".\n- fact is \"No Demonstrated Response\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n\ncase \"clinically indicated (no continuation) -> approve in parent\":\n- subject is \"Sample Patient\".\n- fact is \"No Continuation Request\".\n- fact is \"Clinically Indicated Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"neither -> deny in parent otherwise\":\n- subject is \"Sample Patient\".\n- fact is \"No Continuation Request\".\n- fact is \"Not Clinically Indicated\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n";
|
|
9
9
|
export declare const DISPOSITION_ARBITRATION_REFERENCE_CRL: string;
|
|
10
|
-
export declare const DISPOSITION_ARBITRATION_REFERENCE_CEL = "# Disposition-Arbitration Reference \u2014 cases (Stage 1)\nlibrary \"Disposition Arbitration Reference Cases\".\ncovers \"Disposition Arbitration Reference\".\n\n/*\nExercises the arbitration: each pathway alone (approve), BOTH overlap cases (a both-indication patient\nwho fails one pathway still approves via the other \u2014 the load-bearing \"no overlap-pop\" oracle),\nwithin-indication failure (Deny), and off-indication (Deny EIU). The two overlap cases are what a sibling\ntree gated on PARTIAL conditions (bare indications, not each pathway's FULL conjunction) would get wrong \u2014\nfirst-match would strand the patient on the failed pathway; the full-conjunction compound guards make the\npartial match fall THROUGH (the OR-of-pathways trap rule).\n*/\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\nfact \"Indication X Finding\":\n- date is \"2026-01-01\".\n- defined by \"Disposition Arbitration Reference\".\"Has Indication X\".\n\n// #189 null/pause \u2014 the NEGATIVE is now STATED, not implied by omission. Omission means UNKNOWN\n// (nothing established it, nothing can compute it) and makes the gate pause and ask.\nfact \"No Failed Standard Therapy\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Disposition Arbitration Reference\".\"Failed Standard Therapy\".\n\nfact \"Failed Standard Therapy Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Disposition Arbitration Reference\".\"Failed Standard Therapy\".\n\nfact \"Indication Y Finding\":\n- date is \"2026-01-01\".\n- defined by \"Disposition Arbitration Reference\".\"Has Indication Y\".\n\nfact \"Severe Markers Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Disposition Arbitration Reference\".\"Has Severe Markers\".\n\ncase \"X pathway qualifies -> approve\":\n- subject is \"Sample Patient\".\n- fact is \"Indication X Finding\".\n- fact is \"Failed Standard Therapy Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"Y pathway qualifies -> approve\":\n- subject is \"Sample Patient\".\n- fact is \"Indication Y Finding\".\n- fact is \"Severe Markers Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"OVERLAP: both indications, X-pathway fails (no failed-standard) -> approve via Y\":\n- subject is \"Sample Patient\".\n- fact is \"Indication X Finding\".\n- fact is \"Indication Y Finding\".\n- fact is \"Severe Markers Finding\".\n- fact is \"No Failed Standard Therapy\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"OVERLAP: both indications, Y-pathway fails (no severe markers) -> approve via X\":\n- subject is \"Sample Patient\".\n- fact is \"Indication X Finding\".\n- fact is \"Failed Standard Therapy Finding\".\n- fact is \"Indication Y Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"within-indication: X present but pathway fails, no Y -> Deny\":\n- subject is \"Sample Patient\".\n- fact is \"Indication X Finding\".\n- fact is \"No Failed Standard Therapy\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n\ncase \"off-indication: neither indication -> Deny EIU\":\n- subject is \"Sample Patient\".\n- result is \"Coverage Determination\" is \"not-certify.EIU\".\n";
|
|
11
|
-
export declare const PATIENT_AGE_BOTH_REP_REFERENCE_CRL = "# Patient-Age Both-Representation Reference \u2014 the local override + Patient age `source representation`\nlibrary \"Patient Age Reference\".\n\n/*\nPatient-age BOTH-REPRESENTATION exemplar. A concept carries BOTH a `code is`\nLOCAL age Observation AND a Patient age `source representation` \u2014 a posrep over\n`Patient.birthDate` whose `value projection is age today <cmp> <N> years` computes\nthe live age (#257: patient age migrated here from the retired `definition is age today` form,\nwhich is now an author-time + emit error).\nThe Inferred layer RECENCY-MERGES the two: newest of the local age Observation\n(`Observation.effective`) vs `Patient.meta.lastUpdated` wins; indeterminate\n(`lastUpdated` absent) -> the session-fresh local-source wins. The recency timestamp is\nan INVARIANT of the built Patient age projection, NOT authored (no `recency is` keyword).\nAGE ONLY \u2014 the ONLY projection with a built emit-lowering is `age today`; an `age today`\nprojection with a bad comparator/unit/carrier is tool-rejected (any OTHER projection phrase\nparses + validates but is runtime-deferred, OUT of scope by rule \u2014 not tool-rejected). This is a\n2-representation concept in the MODEL sense \u2014 ONE authored `source representation` block PLUS\none local `code is` producer \u2014 NOT two `source representation` blocks (a second age posrep is\nrejected). A STANDALONE age (no local override \u2014 see the `representation-reference` exemplar) is\njust the `source representation` with no `code is`; the recency merge applies ONLY when the\nlocal `code is` arm is present.\n\nCOMPARATORS + UNITS (#215, #257 T2): the comparator is a LOWER bound `at least <N>` (>=) or an\nUPPER bound `at most <N>` (<=, inclusive) / `under <N>` / `younger than <N>` (<, exclusive), and\nthe unit is `years` OR `months` \u2014 `days`/`weeks` are a hard error. Years compute via `AgeAt()`\n(whole years), months via `AgeInMonths()` (whole months); both truncate, so `at most N` \u2261\n`under N+1` in the chosen unit (a pediatric \"under 21\" gate is `under 21`, an infant \"under 6\nmonths\" gate is `under 6 months`). The upper bounds are the engine-verified alternative to the\nINCORRECT `sem-not \"Age N Or Older\"` complement. The exact closed-world cell: with NO usable\n`Patient.birthDate` AND no local age assertion, the concept is FALSE (deny) \u2014 unlike `sem-not`,\nMISSING evidence does not become TRUE (a session-fresh local TRUE assertion still wins via\nrecency; the recency arbitration is unit-independent).\n*/\n\nconcept \"Age 18 Or Older\":\n- value type is boolean.\n- meta is `@business-logic-deferred: the human-assert answer Observation for this age criterion must NOT persist beyond the client session (mechanism deferred \u2014 #190); the recency lattice treats it as session-fresh`.\n- code is `age-18-or-older`.\n- source representation:\n - type is Patient.\n - value element is Patient.birthDate.\n - value type is date.\n - value projection is age today at least 18 years.\n\n// UPPER bound (#215) \u2014 the pediatric \"under 21\" gate as ONE positive concept, NOT the\n// wrong `sem-not \"Age 21 Or Older\"` complement. Unknown age recency-merges to FALSE (deny).\nconcept \"Patient Under Twenty One Years\":\n- value type is boolean.\n- meta is `@business-logic-deferred: the human-assert answer Observation for this age criterion must NOT persist beyond the client session (mechanism deferred \u2014 #190); the recency lattice treats it as session-fresh`.\n- code is `under-21`.\n- source representation:\n - type is Patient.\n - value element is Patient.birthDate.\n - value type is date.\n - value projection is age today under 21 years.\n\ndecision \"Adult Eligibility Determination\":\nfirst:\n- when \"Age 18 Or Older\" then recommend activity \"Approve\".\n- otherwise then recommend activity \"Deny\".\n\ndecision \"Pediatric Eligibility Determination\":\nfirst:\n- when \"Patient Under Twenty One Years\" then recommend activity \"Approve\".\n- otherwise then recommend activity \"Deny\".\n\n// Neutral disposition text \u2014 the SAME two activities serve BOTH decisions, so the payload\n// must not name a specific population (a pediatric approval must not read \"adult\").\nactivity \"Approve\":\n- request CPGCommunicationRequest.\n- with `Eligibility: APPROVE \u2014 age criterion met.`.\nactivity \"Deny\":\n- request CPGCommunicationRequest.\n- with `Eligibility: DENY \u2014 age criterion not met.`.\n";
|
|
12
|
-
export declare const REPRESENTATION_REFERENCE_CRL = "# Representation-model reference \u2014 Mammogram (multi-source) + BMI (cascade)\n// Canonical `concept-layer-model` exemplar (authoring-kit). The v3 concept model, reconciled\n// with both KE teams. FORWARD-LOOKING capability preview: it exercises constructs that PARSE +\n// VALIDATE but are mostly runtime-DEFERRED (the general external posrep #257; `defined as exists`\n// #270; `definition is` selection/count/within) \u2014 EXCEPT the patient-age `value projection` (the\n// #257 age slice: T1 recency + T2 months) which RUNS. Shipped as `verification: validate-only` \u2014\n// NOT a Stage-1 authoring license (see the kit `boundary`); the value-preserving `sem-or` union +\n// the standalone age `value projection` are the pieces to learn.\n// NOTE: when the concept-form addressability clause lands, this header's discipline duplicates it\n// and this artifact is byte-pinned \u2014 reconcile the two then (cite the clause; #257).\n//\n// \u2500\u2500 Addressability discipline (split on ADDRESSABILITY, not provenance alone) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// A `source representation` is an alternative SHAPE of ONE datum \u2014 not independently nameable.\n// A `sem-or` operand is a CONCEPT \u2014 independently assertable and referenceable. So you SPLIT a\n// concept into named sub-concepts only when a downstream query needs to NAME a subset; you do\n// NOT split merely because the data came from different systems.\n// \u2022 \"Height\" \u2014 ONE source rep, NO split. Nobody needs \"height via value set X\" as a separate\n// fact, so there is nothing to name; a lone posrep suffices.\n// \u2022 \"Mammogram\" \u2014 SPLIT into \"Clinical Mammogram\" (performed: ImagingStudy/DiagnosticReport)\n// and \"Administrative Mammogram\" (billed: Claim/EoB). \"Most recent CLINICAL mammogram\" is a\n// real query, so the clinical subset must be nameable \u2014 hence two assertable concepts,\n// value-preservingly unioned by `sem-or` into a dateTime \"Mammogram\".\n// Author self-check (DELETE TEST): delete a split; if nothing downstream loses the ability to\n// NAME something, it should not have been split. This keeps (C) from becoming a cargo-cult\n// \"always split by provenance\".\n//\n// The union is a WORKED `sem-or` over two dateTime concepts \u2014 value-preserving, NOT boolean.\n// (`sem-or`/`sem-and`/bare `defined as` preserve the operands' value type; only `defined as\n// exists` / a top-level `sem-not` are boolean.) Time-selection (`most recent \"Mammogram\"`) is\n// valid because \"Mammogram\" is an instance-bearing dateTime, not a derived boolean.\nlibrary \"Representation Examples\".\n\n// ============ Terminologies (external systems / value sets) ============\nterminology \"Mammogram VS\":\n- valueset is `http://example.org/screening/ValueSet/mammogram`.\nterminology \"Mammogram DiagnosticReport VS\":\n- valueset is `http://example.org/screening/ValueSet/mammogram-dr`.\nterminology \"Mammogram Billing VS\":\n- valueset is `http://example.org/screening/ValueSet/mammogram-billing`.\nterminology \"Height VS\":\n- valueset is `http://example.org/vitals/ValueSet/height`.\nterminology \"Weight VS\":\n- valueset is `http://example.org/vitals/ValueSet/weight`.\nterminology \"Clinical BMI\":\n- valueset is `http://example.org/vitals/ValueSet/bmi`.\n\n// ============ Mammogram \u2014 split by ADDRESSABILITY (clinical vs administrative), source-rep-only ============\n// The performed study: ImagingStudy/DiagnosticReport prove the study HAPPENED. Serviced-not-created,\n// effective-not-issued (`.issued` lags the study and would corrupt a recency window).\nconcept \"Clinical Mammogram\":\n- value type is dateTime.\n- source representation:\n - type is ImagingStudy.\n - coded from \"Mammogram VS\".\n- source representation:\n - type is DiagnosticReport.\n - coded from \"Mammogram DiagnosticReport VS\".\n\n// The billed study: Claim/EoB prove it was BILLED (deniable/reversible; no findings). A distinct\n// grade of evidence \u2014 payers distinguish them. Its own billing VS (CPT/HCPCS, not clinical codes).\nconcept \"Administrative Mammogram\":\n- value type is dateTime.\n- source representation:\n - type is Claim.\n - coded from \"Mammogram Billing VS\".\n- source representation:\n - type is ExplanationOfBenefit.\n - coded from \"Mammogram Billing VS\".\n\n// ============ Mammogram \u2014 locally coded (`code is`) + value-preserving `sem-or` union ============\nconcept \"Mammogram\":\n- value type is dateTime.\n- code is `mammogram`.\n- defined as ( \"Clinical Mammogram\" sem-or \"Administrative Mammogram\" ).\n\n// Two natural user-assertion points (assert at any level, ADR 0001 \u00A78):\n// - assert the EVENT (\"Mammogram\") \u2192 flows to most-recent, count, up-to-date;\n// - assert the BOOLEAN (\"Up To Date On Mammography\") \u2192 directly answers the screening question.\nconcept \"Had Mammogram\":\n- value type is boolean.\n- code is `had-mammogram`.\n- defined as exists (\"Mammogram\").\n\nconcept \"Most Recent Mammogram\":\n- value type is dateTime.\n- definition is most recent \"Mammogram\".\n\nconcept \"Mammograms In Last Six Months\":\n- value type is integer.\n- definition is count of \"Mammogram\" within last 6 months.\n\nconcept \"Up To Date On Mammography\":\n- value type is boolean.\n- code is `up-to-date-on-mammography`.\n- definition is \"Most Recent Mammogram\" within last 27 months.\n\n// ============ BMI cascade \u2014 Height (no split) contrasts with Mammogram (split) ============\nconcept \"Height\":\n- value type is Quantity.\n- code is `height`.\n- source representation:\n - type is Observation.\n - coded from \"Height VS\".\n\nconcept \"Weight\":\n- value type is Quantity.\n- code is `weight`.\n- source representation:\n - type is Observation.\n - coded from \"Weight VS\".\n\nconcept \"BMI\":\n- value type is Quantity.\n- code is `bmi`.\n- definition is body mass index of \"Weight\" and \"Height\".\n- source representation:\n - type is Observation.\n - coded from \"Clinical BMI\".\n\nconcept \"High BMI\":\n- value type is boolean.\n- code is `high-bmi`.\n- definition is \"BMI\" at least 30 'kg/m2'.\n\n// ============ Patient age \u2014 the one sanctioned `value projection` posrep (standalone, months) ============\n// A STANDALONE age determination: the Patient age `source representation` ALONE (no local `code is`),\n// so the determination IS the live projection over `Patient.birthDate`. `value projection` is the\n// rep-level COMPUTATION \u2014 the sole one with a built emit-lowering is `age today` (#257 T1; T2 added\n// the `months` unit alongside `years`); an `age today` projection with a bad comparator/unit/carrier\n// is tool-rejected (other projection phrases parse but are runtime-deferred, not rejected). Recency\n// applies ONLY when a local `code is` override is also present (see the patient-age recency\n// exemplar); this standalone form has none.\nconcept \"Patient Under Six Months\":\n- value type is boolean.\n- source representation:\n - type is Patient.\n - value projection is age today under 6 months.\n";
|
|
10
|
+
export declare const DISPOSITION_ARBITRATION_REFERENCE_CEL = "# Disposition-Arbitration Reference \u2014 cases (Stage 1)\nlibrary \"Disposition Arbitration Reference Cases\".\ncovers \"Disposition Arbitration Reference\".\n\n/*\nExercises the arbitration: each pathway alone (approve), BOTH overlap cases (a both-indication patient\nwho fails one pathway still approves via the other \u2014 the load-bearing \"no overlap-pop\" oracle),\nwithin-indication failure (Deny), and off-indication (Deny EIU). The two overlap cases are what a sibling\ntree gated on PARTIAL conditions (bare indications, not each pathway's FULL conjunction) would get wrong \u2014\nfirst-match would strand the patient on the failed pathway; the full-conjunction compound guards make the\npartial match fall THROUGH (the OR-of-pathways trap rule).\n*/\n\nfact \"Sample Patient\":\n- name is \"Sample Patient\".\n- birth date is \"1970-01-01\".\n- defined by \"Patient\".\n\nfact \"Indication X Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Disposition Arbitration Reference\".\"Has Indication X\".\n\n// #189 null/pause \u2014 the NEGATIVE is now STATED, not implied by omission. Omission means UNKNOWN\n// (nothing established it, nothing can compute it) and makes the gate pause and ask.\nfact \"No Failed Standard Therapy\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Disposition Arbitration Reference\".\"Failed Standard Therapy\".\n\nfact \"Failed Standard Therapy Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Disposition Arbitration Reference\".\"Failed Standard Therapy\".\n\nfact \"Indication Y Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Disposition Arbitration Reference\".\"Has Indication Y\".\n\nfact \"No Indication X\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Disposition Arbitration Reference\".\"Has Indication X\".\n\nfact \"No Indication Y\":\n- date is \"2026-01-01\".\n- value is false.\n- defined by \"Disposition Arbitration Reference\".\"Has Indication Y\".\n\nfact \"Severe Markers Finding\":\n- date is \"2026-01-01\".\n- value is true.\n- defined by \"Disposition Arbitration Reference\".\"Has Severe Markers\".\n\ncase \"X pathway qualifies -> approve\":\n- subject is \"Sample Patient\".\n- fact is \"Indication X Finding\".\n- fact is \"Failed Standard Therapy Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"Y pathway qualifies -> approve\":\n- subject is \"Sample Patient\".\n- fact is \"No Indication X\".\n- fact is \"Indication Y Finding\".\n- fact is \"Severe Markers Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"OVERLAP: both indications, X-pathway fails (no failed-standard) -> approve via Y\":\n- subject is \"Sample Patient\".\n- fact is \"Indication X Finding\".\n- fact is \"Indication Y Finding\".\n- fact is \"Severe Markers Finding\".\n- fact is \"No Failed Standard Therapy\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"OVERLAP: both indications, Y-pathway fails (no severe markers) -> approve via X\":\n- subject is \"Sample Patient\".\n- fact is \"Indication X Finding\".\n- fact is \"Failed Standard Therapy Finding\".\n- fact is \"Indication Y Finding\".\n- result is \"Coverage Determination\" is \"certify.Approve\".\n\ncase \"within-indication: X present but pathway fails, no Y -> Deny\":\n- subject is \"Sample Patient\".\n- fact is \"Indication X Finding\".\n- fact is \"No Failed Standard Therapy\".\n- fact is \"No Indication Y\".\n- result is \"Coverage Determination\" is \"not-certify.Deny\".\n\ncase \"off-indication: neither indication -> Deny EIU\":\n- subject is \"Sample Patient\".\n- fact is \"No Indication X\".\n- fact is \"No Indication Y\".\n- result is \"Coverage Determination\" is \"not-certify.EIU\".\n";
|
|
11
|
+
export declare const PATIENT_AGE_BOTH_REP_REFERENCE_CRL = "# Patient-Age Both-Representation Reference \u2014 the local override + Patient age `source representation`\nlibrary \"Patient Age Reference\".\n\n/*\nPatient-age BOTH-REPRESENTATION exemplar. A concept carries BOTH a `code is`\nLOCAL age Observation AND a Patient age `source representation` \u2014 a posrep over\n`Patient.birthDate` whose `value projection is age today <cmp> <N> years` computes\nthe live age (#257: patient age migrated here from the retired `definition is age today` form,\nwhich is now an author-time + emit error).\nThe Inferred layer RECENCY-MERGES the two: newest of the local age Observation\n(`Observation.effective`) vs `Patient.meta.lastUpdated` wins; indeterminate\n(`lastUpdated` absent) -> the session-fresh local-source wins. The recency timestamp is\nan INVARIANT of the built Patient age projection, NOT authored (no `recency is` keyword).\nAGE ONLY \u2014 the ONLY projection with a built emit-lowering is `age today`; an `age today`\nprojection with a bad comparator/unit/carrier is tool-rejected (any OTHER projection phrase\nparses + validates but is runtime-deferred, OUT of scope by rule \u2014 not tool-rejected). This is a\n2-representation concept in the MODEL sense \u2014 ONE authored `source representation` block PLUS\none local `code is` producer \u2014 NOT two `source representation` blocks (a second age posrep is\nrejected). A STANDALONE age (no local override \u2014 see the `representation-reference` exemplar) is\njust the `source representation` with no `code is`; the recency merge applies ONLY when the\nlocal `code is` arm is present.\n\nCOMPARATORS + UNITS (#215, #257 T2): the comparator is a LOWER bound `at least <N>` (>=) or an\nUPPER bound `at most <N>` (<=, inclusive) / `under <N>` / `younger than <N>` (<, exclusive), and\nthe unit is `years` OR `months` \u2014 `days`/`weeks` are a hard error. Years compute via `AgeAt()`\n(whole years), months via `AgeInMonths()` (whole months); both truncate, so `at most N` \u2261\n`under N+1` in the chosen unit (a pediatric \"under 21\" gate is `under 21`, an infant \"under 6\nmonths\" gate is `under 6 months`). The upper bounds are the engine-verified alternative to the\nINCORRECT `sem-not \"Age N Or Older\"` complement. The exact closed-world cell: with NO usable\n`Patient.birthDate` AND no local age assertion, the concept is FALSE (deny) \u2014 unlike `sem-not`,\nMISSING evidence does not become TRUE (a session-fresh local TRUE assertion still wins via\nrecency; the recency arbitration is unit-independent).\n*/\n\nconcept \"Age 18 Or Older\":\n- value type is boolean.\n- meta is `@business-logic-deferred: the human-assert answer Observation for this age criterion must NOT persist beyond the client session (mechanism deferred \u2014 #190); the recency lattice treats it as session-fresh`.\n- type is Observation.\n- code is `age-18-or-older`.\n- source representation:\n - type is Patient.\n - value element is Patient.birthDate.\n - value type is date.\n - value projection is age today at least 18 years.\n\n// UPPER bound (#215) \u2014 the pediatric \"under 21\" gate as ONE positive concept, NOT the\n// wrong `sem-not \"Age 21 Or Older\"` complement. Unknown age recency-merges to FALSE (deny).\nconcept \"Patient Under Twenty One Years\":\n- value type is boolean.\n- meta is `@business-logic-deferred: the human-assert answer Observation for this age criterion must NOT persist beyond the client session (mechanism deferred \u2014 #190); the recency lattice treats it as session-fresh`.\n- type is Observation.\n- code is `under-21`.\n- source representation:\n - type is Patient.\n - value element is Patient.birthDate.\n - value type is date.\n - value projection is age today under 21 years.\n\ndecision \"Adult Eligibility Determination\":\nfirst:\n- when \"Age 18 Or Older\" then recommend activity \"Approve\".\n- otherwise then recommend activity \"Deny\".\n\ndecision \"Pediatric Eligibility Determination\":\nfirst:\n- when \"Patient Under Twenty One Years\" then recommend activity \"Approve\".\n- otherwise then recommend activity \"Deny\".\n\n// Neutral disposition text \u2014 the SAME two activities serve BOTH decisions, so the payload\n// must not name a specific population (a pediatric approval must not read \"adult\").\nactivity \"Approve\":\n- request CPGCommunicationRequest.\n- with `Eligibility: APPROVE \u2014 age criterion met.`.\nactivity \"Deny\":\n- request CPGCommunicationRequest.\n- with `Eligibility: DENY \u2014 age criterion not met.`.\n";
|
|
12
|
+
export declare const REPRESENTATION_REFERENCE_CRL = "# Representation-model reference \u2014 Mammogram (multi-source) + BMI (cascade)\n// Canonical `concept-layer-model` exemplar (authoring-kit). The v3 concept model, reconciled\n// with both KE teams. FORWARD-LOOKING capability preview: it exercises constructs that PARSE +\n// VALIDATE but are mostly runtime-DEFERRED (the general external posrep #257; `defined as exists`\n// #270; `definition is` selection/count/within) \u2014 EXCEPT the patient-age `value projection` (the\n// #257 age slice: T1 recency + T2 months) which RUNS. Shipped as `verification: validate-only` \u2014\n// NOT a Stage-1 authoring license (see the kit `boundary`); the value-preserving `sem-or` union +\n// the standalone age `value projection` are the pieces to learn.\n// NOTE: when the concept-form addressability clause lands, this header's discipline duplicates it\n// and this artifact is byte-pinned \u2014 reconcile the two then (cite the clause; #257).\n//\n// \u2500\u2500 Addressability discipline (split on ADDRESSABILITY, not provenance alone) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// A `source representation` is an alternative SHAPE of ONE datum \u2014 not independently nameable.\n// A `sem-or` operand is a CONCEPT \u2014 independently assertable and referenceable. So you SPLIT a\n// concept into named sub-concepts only when a downstream query needs to NAME a subset; you do\n// NOT split merely because the data came from different systems.\n// \u2022 \"Height\" \u2014 ONE source rep, NO split. Nobody needs \"height via value set X\" as a separate\n// fact, so there is nothing to name; a lone posrep suffices.\n// \u2022 \"Mammogram\" \u2014 SPLIT into \"Clinical Mammogram\" (performed: ImagingStudy/DiagnosticReport)\n// and \"Administrative Mammogram\" (billed: Claim/EoB). \"Most recent CLINICAL mammogram\" is a\n// real query, so the clinical subset must be nameable \u2014 hence two assertable concepts,\n// value-preservingly unioned by `sem-or` into a dateTime \"Mammogram\".\n// Author self-check (DELETE TEST): delete a split; if nothing downstream loses the ability to\n// NAME something, it should not have been split. This keeps (C) from becoming a cargo-cult\n// \"always split by provenance\".\n//\n// The union is a WORKED `sem-or` over two dateTime concepts \u2014 value-preserving, NOT boolean.\n// (`sem-or`/`sem-and`/bare `defined as` preserve the operands' value type; only `defined as\n// exists` / a top-level `sem-not` are boolean.) Time-selection (`most recent \"Mammogram\"`) is\n// valid because \"Mammogram\" is an instance-bearing dateTime, not a derived boolean.\nlibrary \"Representation Examples\".\n\n// ============ Terminologies (external systems / value sets) ============\nterminology \"Mammogram VS\":\n- valueset is `http://example.org/screening/ValueSet/mammogram`.\nterminology \"Mammogram DiagnosticReport VS\":\n- valueset is `http://example.org/screening/ValueSet/mammogram-dr`.\nterminology \"Mammogram Billing VS\":\n- valueset is `http://example.org/screening/ValueSet/mammogram-billing`.\nterminology \"Height VS\":\n- valueset is `http://example.org/vitals/ValueSet/height`.\nterminology \"Weight VS\":\n- valueset is `http://example.org/vitals/ValueSet/weight`.\nterminology \"Clinical BMI\":\n- valueset is `http://example.org/vitals/ValueSet/bmi`.\n\n// ============ Mammogram \u2014 split by ADDRESSABILITY (clinical vs administrative), source-rep-only ============\n// The performed study: ImagingStudy/DiagnosticReport prove the study HAPPENED. Serviced-not-created,\n// effective-not-issued (`.issued` lags the study and would corrupt a recency window).\nconcept \"Clinical Mammogram\":\n- value type is dateTime.\n- source representation:\n - type is ImagingStudy.\n - coded from \"Mammogram VS\".\n- source representation:\n - type is DiagnosticReport.\n - coded from \"Mammogram DiagnosticReport VS\".\n\n// The billed study: Claim/EoB prove it was BILLED (deniable/reversible; no findings). A distinct\n// grade of evidence \u2014 payers distinguish them. Its own billing VS (CPT/HCPCS, not clinical codes).\nconcept \"Administrative Mammogram\":\n- value type is dateTime.\n- source representation:\n - type is Claim.\n - coded from \"Mammogram Billing VS\".\n- source representation:\n - type is ExplanationOfBenefit.\n - coded from \"Mammogram Billing VS\".\n\n// ============ Mammogram \u2014 locally coded (`code is`) + value-preserving `sem-or` union ============\nconcept \"Mammogram\":\n- value type is dateTime.\n- type is Observation.\n- code is `mammogram`.\n- defined as ( \"Clinical Mammogram\" sem-or \"Administrative Mammogram\" ).\n\n// Two natural user-assertion points (assert at any level, ADR 0001 \u00A78):\n// - assert the EVENT (\"Mammogram\") \u2192 flows to most-recent, count, up-to-date;\n// - assert the BOOLEAN (\"Up To Date On Mammography\") \u2192 directly answers the screening question.\nconcept \"Had Mammogram\":\n- value type is boolean.\n- type is Observation.\n- code is `had-mammogram`.\n- defined as exists (\"Mammogram\").\n\nconcept \"Most Recent Mammogram\":\n- value type is dateTime.\n- definition is most recent \"Mammogram\".\n\nconcept \"Mammograms In Last Six Months\":\n- value type is integer.\n- definition is count of \"Mammogram\" within last 6 months.\n\nconcept \"Up To Date On Mammography\":\n- value type is boolean.\n- type is Observation.\n- code is `up-to-date-on-mammography`.\n- definition is \"Most Recent Mammogram\" within last 27 months.\n\n// ============ BMI cascade \u2014 Height (no split) contrasts with Mammogram (split) ============\nconcept \"Height\":\n- value type is Quantity.\n- type is Observation.\n- code is `height`.\n- source representation:\n - type is Observation.\n - coded from \"Height VS\".\n\nconcept \"Weight\":\n- value type is Quantity.\n- type is Observation.\n- code is `weight`.\n- source representation:\n - type is Observation.\n - coded from \"Weight VS\".\n\nconcept \"BMI\":\n- value type is Quantity.\n- type is Observation.\n- code is `bmi`.\n- definition is body mass index of \"Weight\" and \"Height\".\n- source representation:\n - type is Observation.\n - coded from \"Clinical BMI\".\n\nconcept \"High BMI\":\n- value type is boolean.\n- type is Observation.\n- code is `high-bmi`.\n- definition is \"BMI\" at least 30 'kg/m2'.\n\n// ============ Patient age \u2014 the one sanctioned `value projection` posrep (standalone, months) ============\n// A STANDALONE age determination: the Patient age `source representation` ALONE (no local `code is`),\n// so the determination IS the live projection over `Patient.birthDate`. `value projection` is the\n// rep-level COMPUTATION \u2014 the sole one with a built emit-lowering is `age today` (#257 T1; T2 added\n// the `months` unit alongside `years`); an `age today` projection with a bad comparator/unit/carrier\n// is tool-rejected (other projection phrases parse but are runtime-deferred, not rejected). Recency\n// applies ONLY when a local `code is` override is also present (see the patient-age recency\n// exemplar); this standalone form has none.\nconcept \"Patient Under Six Months\":\n- value type is boolean.\n- source representation:\n - type is Patient.\n - value projection is age today under 6 months.\n";
|