-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_output.json
More file actions
883 lines (883 loc) · 39.4 KB
/
Copy pathsample_output.json
File metadata and controls
883 lines (883 loc) · 39.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
{
"contract_version": "causal-graph/2",
"builder": "evidence_first",
"seconds": 17.1,
"graph": {
"contract_version": "causal-graph/2",
"case_id": "",
"title": "",
"subtitle": "",
"nodes": [
{
"id": "out_ldl_cholesterol",
"label": "LDL cholesterol\nwhat the plan targets",
"role": "causal",
"kind": "real_outcome",
"style_class": "outcome",
"in_plan_view": true,
"grounding": "the plan impliedly acts on this: \u201catorvastatin 80 mg daily\u201d",
"ask": "",
"finding_rank": null,
"flag_card": null,
"provenance": "ir",
"concept": "LDL cholesterol",
"cui": "",
"snomed_id": "",
"absent_term": "",
"triggered_by": ""
},
{
"id": "out_platelet_aggregati",
"label": "platelet aggregation\nwhat the plan targets",
"role": "causal",
"kind": "real_outcome",
"style_class": "outcome",
"in_plan_view": true,
"grounding": "the plan impliedly acts on this: \u201cContinue aspirin 81 mg daily\u201d",
"ask": "",
"finding_rank": null,
"flag_card": null,
"provenance": "ir",
"concept": "platelet aggregation",
"cui": "",
"snomed_id": "",
"absent_term": "",
"triggered_by": ""
},
{
"id": "gap_a_specific_ldlc_t",
"label": "A specific LDL-C treatment target (such as <70 mg/dL or <55 mg/dL) and a plan to intensify therapy if that target is not reached\nthe literature says this matters here",
"role": "causal",
"kind": "flag",
"style_class": "flag",
"in_plan_view": false,
"grounding": "Trials in patients with atherosclerotic cardiovascular disease showed that LDL-C target\u2013directed treatment strategies and more intensive LDL-C goals were associated with improved cardiovascular outcomes compared with less intensive approaches. Rechecking lipids without defining a target leaves no threshold for escalation if LDL-C remains markedly elevated.",
"ask": "\u201cCan we look at A specific LDL-C treatment target (such as <70 mg/dL or <55 mg/dL) and a plan to intensify?\u201d",
"finding_rank": 0,
"flag_card": {
"type": "hidden_upstream_driver",
"code": "01",
"label": "Hidden upstream driver",
"pattern": "omission-upstream",
"accent": "#1f3be0",
"accent_ink": "#1730a8",
"chain": [
"Atorvastatin 80 mg\u2026",
"LDL cholesterol"
],
"gap": "A specific LDL-C tr\u2026",
"goal": "",
"caption": ""
},
"provenance": "ir",
"concept": "",
"cui": "",
"snomed_id": "",
"absent_term": "A specific LDL-C treatment target (such as <70 mg/dL or <55 ",
"triggered_by": "Recheck lipid panel in three months."
},
{
"id": "gap_consideration_of_a",
"label": "Consideration of additional nonstatin LDL-lowering therapy such as ezetimibe or combination therapy if evolocumab alone does not achieve adequate LDL-C reduction after statin intolerance\nthe literature says this matters here",
"role": "causal",
"kind": "flag",
"style_class": "flag",
"in_plan_view": false,
"grounding": "The literature provided identifies ezetimibe, bempedoic acid, and PCSK9 inhibitors as complementary LDL-lowering options, and combination therapy can produce substantially greater LDL-C lowering than single-agent therapy. The current plan switches from atorvastatin directly to evolocumab but does not address escalation pathways if LDL-C remains uncontrolled.",
"ask": "\u201cCan we look at Consideration of additional nonstatin LDL-lowering therapy such as ezetimibe or combinatio?\u201d",
"finding_rank": 1,
"flag_card": {
"type": "hidden_upstream_driver",
"code": "01",
"label": "Hidden upstream driver",
"pattern": "omission-upstream",
"accent": "#1f3be0",
"accent_ink": "#1730a8",
"chain": [
"Atorvastatin 80 mg\u2026",
"LDL cholesterol"
],
"gap": "Consideration of ad\u2026",
"goal": "",
"caption": ""
},
"provenance": "ir",
"concept": "",
"cui": "",
"snomed_id": "",
"absent_term": "Consideration of additional nonstatin LDL-lowering therapy s",
"triggered_by": "Stopped the statin after six weeks of muscle aches. Started Repatha (evolocumab) 140 mg subcutaneous every two weeks."
},
{
"id": "gap_assessment_of_lipo",
"label": "Assessment of lipoprotein(a) as a contributor to residual cardiovascular risk\nthe literature says this matters here",
"role": "causal",
"kind": "flag",
"style_class": "flag",
"in_plan_view": false,
"grounding": "The retrieved literature identifies lipoprotein(a) as an important contributor to residual cardiovascular risk beyond LDL-C, and evolocumab has been shown to lower lipoprotein(a). The plan focuses only on LDL-C monitoring and does not address whether elevated lipoprotein(a) may be contributing to risk in this patient with severe hypercholesterolemia.",
"ask": "\u201cCan we look at Assessment of lipoprotein(a) as a contributor to residual cardiovascular risk?\u201d",
"finding_rank": 2,
"flag_card": {
"type": "hidden_upstream_driver",
"code": "01",
"label": "Hidden upstream driver",
"pattern": "omission-upstream",
"accent": "#1f3be0",
"accent_ink": "#1730a8",
"chain": [
"Atorvastatin 80 mg\u2026",
"LDL cholesterol"
],
"gap": "Assessment of lipop\u2026",
"goal": "",
"caption": ""
},
"provenance": "ir",
"concept": "",
"cui": "",
"snomed_id": "",
"absent_term": "Assessment of lipoprotein(a) as a contributor to residual ca",
"triggered_by": "LDL cholesterol 190 mg/dL"
},
{
"id": "gap_assessment_of_addi",
"label": "Assessment of additional lipid risk markers such as apolipoprotein B (apoB)\nthe literature says this matters here",
"role": "causal",
"kind": "flag",
"style_class": "flag",
"in_plan_view": false,
"grounding": "The literature provided states that apoB measurement may outperform LDL-C alone for predicting atherosclerotic cardiovascular disease risk and discusses its clinical use when LDL-C does not fully capture atherogenic particle burden. The current plan monitors only a standard lipid panel.",
"ask": "\u201cCan we look at Assessment of additional lipid risk markers such as apolipoprotein B (apoB)?\u201d",
"finding_rank": 3,
"flag_card": {
"type": "hidden_upstream_driver",
"code": "01",
"label": "Hidden upstream driver",
"pattern": "omission-upstream",
"accent": "#1f3be0",
"accent_ink": "#1730a8",
"chain": [
"Atorvastatin 80 mg\u2026",
"LDL cholesterol"
],
"gap": "Assessment of addit\u2026",
"goal": "",
"caption": ""
},
"provenance": "ir",
"concept": "",
"cui": "",
"snomed_id": "",
"absent_term": "Assessment of additional lipid risk markers such as apolipop",
"triggered_by": "Recheck lipid panel in three months."
},
{
"id": "do_atorvastatin",
"label": "Atorvastatin 80 mg daily",
"role": "intervention",
"kind": "unknown",
"style_class": "act",
"in_plan_view": true,
"grounding": "",
"ask": "",
"finding_rank": null,
"flag_card": null,
"provenance": "ir",
"concept": "",
"cui": "",
"snomed_id": "",
"absent_term": "",
"triggered_by": ""
},
{
"id": "do_evolocumab",
"label": "Evolocumab 140 mg subcutaneous every two weeks",
"role": "intervention",
"kind": "unknown",
"style_class": "act",
"in_plan_view": true,
"grounding": "",
"ask": "",
"finding_rank": null,
"flag_card": null,
"provenance": "ir",
"concept": "",
"cui": "",
"snomed_id": "",
"absent_term": "",
"triggered_by": ""
},
{
"id": "do_aspirin",
"label": "Aspirin 81 mg daily",
"role": "intervention",
"kind": "unknown",
"style_class": "act",
"in_plan_view": true,
"grounding": "",
"ask": "",
"finding_rank": null,
"flag_card": null,
"provenance": "ir",
"concept": "",
"cui": "",
"snomed_id": "",
"absent_term": "",
"triggered_by": ""
}
],
"edges": [
{
"id": "do_atorvastatin__out_ldl_cholesterol",
"source": "do_atorvastatin",
"target": "out_ldl_cholesterol",
"label": "",
"role": "lever",
"status": "supported",
"path_type": "upstream",
"evidence": "hypothesis",
"pmids": [],
"style": "bold",
"provenance": "ir"
},
{
"id": "do_evolocumab__out_ldl_cholesterol",
"source": "do_evolocumab",
"target": "out_ldl_cholesterol",
"label": "",
"role": "lever",
"status": "supported",
"path_type": "upstream",
"evidence": "hypothesis",
"pmids": [],
"style": "bold",
"provenance": "ir"
},
{
"id": "do_aspirin__out_platelet_aggregati",
"source": "do_aspirin",
"target": "out_platelet_aggregati",
"label": "",
"role": "lever",
"status": "supported",
"path_type": "upstream",
"evidence": "hypothesis",
"pmids": [],
"style": "bold",
"provenance": "ir"
},
{
"id": "gap_a_specific_ldlc_t__out_ldl_cholesterol",
"source": "gap_a_specific_ldlc_t",
"target": "out_ldl_cholesterol",
"label": "Trials in patients with atherosclerotic cardiovascular disease showed that LDL-C target\u2013directed treatment strategies and more intensive LDL-C goals were associated with improved c",
"role": "causal",
"status": "omitted",
"path_type": "upstream",
"evidence": "observational",
"pmids": [
"41910315",
"36877807"
],
"style": "plain",
"provenance": "ir"
},
{
"id": "gap_consideration_of_a__out_ldl_cholesterol",
"source": "gap_consideration_of_a",
"target": "out_ldl_cholesterol",
"label": "The literature provided identifies ezetimibe, bempedoic acid, and PCSK9 inhibitors as complementary LDL-lowering options, and combination therapy can produce substantially greater ",
"role": "causal",
"status": "omitted",
"path_type": "upstream",
"evidence": "observational",
"pmids": [
"41504909",
"33514449",
"39565634"
],
"style": "plain",
"provenance": "ir"
},
{
"id": "gap_assessment_of_lipo__out_ldl_cholesterol",
"source": "gap_assessment_of_lipo",
"target": "out_ldl_cholesterol",
"label": "The retrieved literature identifies lipoprotein(a) as an important contributor to residual cardiovascular risk beyond LDL-C, and evolocumab has been shown to lower lipoprotein(a). ",
"role": "causal",
"status": "omitted",
"path_type": "upstream",
"evidence": "observational",
"pmids": [
"41504909",
"30586750"
],
"style": "plain",
"provenance": "ir"
},
{
"id": "gap_assessment_of_addi__out_ldl_cholesterol",
"source": "gap_assessment_of_addi",
"target": "out_ldl_cholesterol",
"label": "The literature provided states that apoB measurement may outperform LDL-C alone for predicting atherosclerotic cardiovascular disease risk and discusses its clinical use when LDL-C",
"role": "causal",
"status": "omitted",
"path_type": "upstream",
"evidence": "observational",
"pmids": [
"38950110"
],
"style": "plain",
"provenance": "ir"
}
],
"mechanisms": [],
"moderators": [],
"ir_gaps": [
"moderator / effect modification \u2014 no way to say 'this edge is weaker in X'; hand-added as a fixture",
"mechanism sub-path \u2014 no way to say 'this edge expands into A\u2192B\u2192C'; no edge-refines-edge relation",
"edge predicate \u2014 CausalEdge has src/dst but no verb, so every edge label is invented at render time",
"node-level evidence \u2014 pmids live on edges only; a never-screened exposure cannot cite its own basis",
"per-edge magnitude \u2014 no effect size, so 'supported' cannot be distinguished from 'supported and large'",
"intervention\u2192outcome edges are typed as CausalEdge with a do_id in src \u2014 the lever/causal distinction is recovered by string matching against interventions, not by the type system",
"no mediator rung in NodeKind \u2014 an intermediate quantity (fat mass, lean mass) has to be mis-typed as proxy or adverse_event, so the palette shows two 'proxies' where the model means one proxy and one step",
"a moderator attaches to a CLAIM, not to a rendering \u2014 hence Moderator.expanded_edge_id, which exists only because the same claim is drawn as one arrow collapsed and another arrow expanded",
"NodeKind.flag is an untyped catch-all \u2014 it carries no rung, so a durability finding and an un-taken-up problem are the same node type and the four-type resolution has to guess from graph shape. flag-cards.md puts durability under type 02; nothing in the IR says which `flag` nodes those are, and reading it off the label would be exactly the prose-sniffing the kicker map fixed",
"no headline on CausalNode \u2014 flag-cards.md \u00a74 wants the consequence in plain speech ('Something is pushing on your weight that nobody has looked at'), separate from the node label ('Insulin resistance'). The IR has `label`, `grounding` and `ask` and no consequence sentence, so the card renders `grounding` in the headline slot",
"no interval / duration on an edge \u2014 type 03's caption ('trial judged at 68 weeks \u00b7 your plan at 12') is the payload of that card and there is no field it could come from"
]
},
"schema": {
"$defs": {
"EdgeRole": {
"enum": [
"causal",
"lever",
"mechanism"
],
"title": "EdgeRole",
"type": "string"
},
"EdgeStatus": {
"description": "Whether the PLAN accounts for this edge. Distinct from `EvidenceStatus`, which is about whether the LITERATURE does \u2014 a link can be well evidenced and still absent from the plan, and that combination is precisely what an omission is. `supported`: The plan accounts for this link. `weak`: The plan touches this link only partly, or on contested grounds. `omitted`: The plan is SILENT on this link. This is the diff \u2014 the finding \u2014 not a rendering detail. Absent from the plan is not the same as absent in reality. `missing`: Cannot be judged without information the patient has not supplied. NOT a negative finding: it means we did not ask, and it must never be reported as 'no problem'.",
"enum": [
"supported",
"weak",
"omitted",
"missing"
],
"title": "EdgeStatus",
"type": "string"
},
"EvidenceStatus": {
"description": "The grounding gate: a claim is guilty until cited. The default is `hypothesis`, so nothing unsourced can silently read as established fact. `rct`: Backed by randomised controlled trial evidence, and the PMIDs are attached to this same object. Check them; do not take the label's word for it. `observational`: Backed by observational evidence only, with PMIDs attached. Association, not established causation \u2014 do not restate it as cause. `hypothesis`: NO citation was found or attached. This is a plausible link, NOT an established one. It must be presented as unproven wherever it is repeated. Restating it as fact is the specific error this field exists to prevent.",
"enum": [
"rct",
"observational",
"hypothesis"
],
"title": "EvidenceStatus",
"type": "string"
},
"FlagCard": {
"description": "One finding as flag-cards.md renders it: a type, and the labels its glyph is drawn from.\n\n\u00a75 of that document is a **generation contract** \u2014 the glyph is *derived, not drawn*::\n\n type 01 | 02 | 03 | 04 -> picks the shape template\n chain[] the plan's route nodes -> the solid boxes, left to right\n gap_node label + position -> the dashed box\n goal_node label -> the filled box (types 03, 04 may omit)\n caption optional -> type 03's interval contrast\n\nThat is this model, field for field. The renderer holds four SVG templates and no knowledge of\nthe domain, so a case cannot get a hand-drawn picture and no picture can assert an edge the\ngraph does not have: every label here is a node label that exists in the model.",
"properties": {
"type": {
"description": "FlagType value, e.g. hidden_upstream_driver",
"title": "Type",
"type": "string"
},
"code": {
"description": "\"01\"..\"04\" \u2014 picks the shape template",
"title": "Code",
"type": "string"
},
"label": {
"description": "the kicker, verbatim",
"title": "Label",
"type": "string"
},
"pattern": {
"description": "which FlagPattern fired; recorded so a wrong card is debuggable",
"title": "Pattern",
"type": "string"
},
"accent": {
"description": "the type's accent colour, declared once in flag_types.TYPE_SPEC",
"title": "Accent",
"type": "string"
},
"accent_ink": {
"default": "",
"description": "the darker companion, for accent-coloured TEXT. The reference cards stroke in `accent` and set label text a shade down, so 11px type on white stays readable at the orange and the green",
"title": "Accent Ink",
"type": "string"
},
"chain": {
"description": "the plan's own route, left to right \u2014 the solid boxes",
"items": {
"type": "string"
},
"title": "Chain",
"type": "array"
},
"gap": {
"default": "",
"description": "the dashed box. Empty for 03, where the EDGE is the gap",
"title": "Gap",
"type": "string"
},
"goal": {
"default": "",
"description": "the filled box \u2014 what they said they wanted",
"title": "Goal",
"type": "string"
},
"caption": {
"default": "",
"description": "type 03's interval contrast; the IR cannot supply one yet (see IR_GAPS), so it ships empty",
"title": "Caption",
"type": "string"
}
},
"required": [
"type",
"code",
"label",
"pattern",
"accent"
],
"title": "FlagCard",
"type": "object"
},
"GraphEdge": {
"properties": {
"id": {
"description": "Stable identifier for this edge.",
"title": "Id",
"type": "string"
},
"source": {
"description": "`id` of the node or do-node this edge starts at.",
"title": "Source",
"type": "string"
},
"target": {
"description": "`id` of the node this edge points to.",
"title": "Target",
"type": "string"
},
"label": {
"default": "",
"description": "CausalEdge.note \u2014 the IR has no predicate (see IR_GAPS)",
"title": "Label",
"type": "string"
},
"role": {
"$ref": "#/$defs/EdgeRole",
"default": "causal",
"description": "What kind of link this is in the rendered graph."
},
"status": {
"$ref": "#/$defs/EdgeStatus",
"default": "supported",
"description": "The claim about the PLAN, not about the evidence. `omitted` means the plan is silent on this link \u2014 absent from the plan is NOT absent in reality. `missing` means we could not judge it without information the patient did not give; it is not a clean result."
},
"path_type": {
"$ref": "#/$defs/PathType",
"default": "upstream",
"description": "Whether this link runs upstream, through a proxy, or bypasses the proxy entirely."
},
"evidence": {
"$ref": "#/$defs/EvidenceStatus",
"default": "hypothesis",
"description": "The evidence axis, INDEPENDENT of `status`. `hypothesis` means NO citation was found \u2014 never restate it as established. `rct`/`observational` mean at least one PMID is attached, and you should check them rather than take the label's word."
},
"pmids": {
"description": "PubMed identifiers supporting THIS relationship. Empty is common and honest: nothing was retrieved for this edge, NOT that the link is refuted. Read alongside `evidence`.",
"items": {
"type": "string"
},
"title": "Pmids",
"type": "array"
},
"style": {
"$ref": "#/$defs/LineStyle",
"default": "plain",
"description": "Derived palette key. Presentation only \u2014 carries no clinical meaning and should be ignored when reasoning."
},
"provenance": {
"$ref": "#/$defs/Provenance",
"default": "ir",
"description": "Which engine produced this edge. Same caveat as the node field."
}
},
"required": [
"id",
"source",
"target"
],
"title": "GraphEdge",
"type": "object"
},
"GraphNode": {
"description": "A rendered node. `kind` is the IR's own vocabulary; `style_class` is the derived palette key.",
"properties": {
"id": {
"description": "Stable identifier, unique across nodes AND intervention do-nodes \u2014 one shared namespace. Edges reference it.",
"title": "Id",
"type": "string"
},
"label": {
"description": "Display text, two lines: the clinical noun, then a verdict on its status IN THIS PLAN. The second line is the finding.",
"title": "Label",
"type": "string"
},
"role": {
"$ref": "#/$defs/NodeRole",
"description": "Whether this is a causal node or an intervention do-node. Decides which vocabulary `kind` uses."
},
"kind": {
"description": "Which rung or mechanism this node is. Causal nodes use the NodeKind vocabulary; intervention do-nodes use InterventionMechanism.",
"title": "Kind",
"type": "string",
"x-vocabularies": {
"InterventionMechanism": {
"etiologic": "Acts on this patient's upstream cause, so the improvement can persist after the treatment stops.",
"suppressive": "Clamps a mediator regardless of what is causing it. The number improves while taken and typically REBOUNDS on stopping. Not a criticism \u2014 it is often the right choice \u2014 but a plan made only of these has no exit.",
"unknown": "Mechanism not established here. Report as unknown; do not infer either of the above from the drug class."
},
"NodeKind": {
"adverse_event": "A downstream harm caused by something in the plan \u2014 e.g. muscle loss on a GLP-1. Not a hypothetical risk: something this plan makes more likely.",
"exposure": "An upstream lever this person can actually move (a drug they take, a habit, a stacked substance). May sit at either cause rung.",
"flag": "A priority problem node, called out for attention.",
"hassle": "A downstream cost in effort, money or inconvenience. Real enough to end adherence, which makes it a clinical fact rather than a lifestyle note.",
"proxy": "The SURROGATE the plan optimises \u2014 e.g. body weight, LDL. NOT the goal. Improving it is not the same as getting what the patient wants, and conflating the two is the single most common failure this audit looks for.",
"real_outcome": "What the patient actually wants and can feel \u2014 energy, healthspan, a pregnancy. The thing the proxy is standing in for.",
"root_cause": "The deepest modifiable driver of this person's problem \u2014 e.g. insulin resistance. Exactly one per model. What the plan should be aimed at.",
"surface_cause": "A proximate mechanism between the root and the proxy \u2014 e.g. appetite, energy expenditure. Real, but treating it alone leaves the root untouched."
}
}
},
"style_class": {
"description": "palette key shared with the Mermaid projection",
"title": "Style Class",
"type": "string"
},
"in_plan_view": {
"default": true,
"description": "true = the plan's own reasoning already accounts for this. false = the audit added it. THE DIFF BETWEEN THE TWO IS THE PRODUCT \u2014 a graph where everything is true has found nothing.",
"title": "In Plan View",
"type": "boolean"
},
"grounding": {
"default": "",
"description": "Why we believe this, or what would settle it ('would be settled by a fasting insulin'). Never a citation \u2014 citations live on edges as `pmids`.",
"title": "Grounding",
"type": "string"
},
"ask": {
"default": "",
"description": "For `in_plan_view: false` only: the question to say out loud in an appointment, in the patient's own voice. Empty for anything the plan already covers.",
"title": "Ask",
"type": "string"
},
"finding_rank": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Position in the ranked findings list, or null for 'not a finding'. The order the literature search used, so a reader and the retrieval agree.",
"title": "Finding Rank"
},
"flag_card": {
"anyOf": [
{
"$ref": "#/$defs/FlagCard"
},
{
"type": "null"
}
],
"default": null,
"description": "The card this finding renders as, when it is one. null otherwise."
},
"provenance": {
"$ref": "#/$defs/Provenance",
"default": "ir",
"description": "Which engine produced this node. `llm_judged` means a model's reading with NO retrieval behind the graph itself \u2014 treat it as a candidate, never as evidence."
},
"concept": {
"default": "",
"description": "The single clinical entity this node denotes, as a bare noun a clinician would search for. Empty is a real answer for a node that denotes no clinical entity at all.",
"title": "Concept",
"type": "string"
},
"cui": {
"default": "",
"description": "UMLS Concept Unique Identifier for `concept`, assigned by a terminology resolver AFTER the producer ran. Never model-generated. Empty means the concept did not resolve \u2014 NOT that none exists.",
"title": "Cui",
"type": "string"
},
"snomed_id": {
"default": "",
"description": "SNOMED CT identifier for `concept`, same provenance and same caveat as `cui`. This is the id to join on when merging this graph with another system's data.",
"title": "Snomed Id",
"type": "string"
},
"absent_term": {
"default": "",
"description": "For `in_plan_view: false` nodes: the word that WOULD appear in the plan if it addressed this, and does not. \u26a0\ufe0f Do NOT treat its presence in the plan text as proof the gap is false \u2014 a plan often names a thing in order to skip it.",
"title": "Absent Term",
"type": "string"
},
"triggered_by": {
"default": "",
"description": "For `in_plan_view: false` nodes: a verbatim span from the plan showing this gap applies to THIS person rather than being generic best practice. Verified against the source at build time; a fabricated quote drops the node.",
"title": "Triggered By",
"type": "string"
}
},
"required": [
"id",
"label",
"role",
"kind",
"style_class"
],
"title": "GraphNode",
"type": "object"
},
"LineStyle": {
"enum": [
"plain",
"dashed",
"bold"
],
"title": "LineStyle",
"type": "string"
},
"Mechanism": {
"description": "The sub-path one edge expands into \u2014 the whole point of the island.\n\n\u26a0 `CausalModel` has no edge-refines-edge relation, so every instance of this is a fixture today.",
"properties": {
"edge_id": {
"description": "the edge this replaces when expanded",
"title": "Edge Id",
"type": "string"
},
"summary": {
"default": "",
"description": "One-line statement of the mechanism this group of nodes and edges describes.",
"title": "Summary",
"type": "string"
},
"nodes": {
"items": {
"$ref": "#/$defs/GraphNode"
},
"title": "Nodes",
"type": "array"
},
"edges": {
"items": {
"$ref": "#/$defs/GraphEdge"
},
"title": "Edges",
"type": "array"
},
"provenance": {
"$ref": "#/$defs/Provenance",
"default": "fixture",
"description": "Which engine asserted this mechanism."
}
},
"required": [
"edge_id"
],
"title": "Mechanism",
"type": "object"
},
"Moderator": {
"description": "Effect modification on an edge \u2014 'this edge is weaker/stronger when Z'.\n\n\u26a0 Not in `CausalModel` at all (the known edge-annotation gap). Fixture-only today.",
"properties": {
"id": {
"description": "Stable identifier for this moderator.",
"title": "Id",
"type": "string"
},
"edge_id": {
"description": "the edge it badges while that edge is collapsed",
"title": "Edge Id",
"type": "string"
},
"expanded_edge_id": {
"default": "",
"description": "the interior edge it really acts on once the parent edge is expanded. That this field has to exist IS the gap: a moderator attaches to a *claim*, and one claim has two renderings (collapsed arrow / opened sub-path). An edge-annotation slot on the IR would carry the attachment once and let the projection place it.",
"title": "Expanded Edge Id",
"type": "string"
},
"label": {
"description": "What is being moderated, in display text.",
"title": "Label",
"type": "string"
},
"direction": {
"$ref": "#/$defs/ModeratorDirection",
"default": "unknown",
"description": "Whether this moderator strengthens or weakens the relationship it attaches to."
},
"detail": {
"default": "",
"description": "The specific condition under which the moderation applies.",
"title": "Detail",
"type": "string"
},
"evidence": {
"default": "hypothesis",
"description": "Evidence tier for the moderation claim. Same semantics as `GraphEdge.evidence`.",
"title": "Evidence",
"type": "string"
},
"pmids": {
"description": "PubMed identifiers supporting the moderation claim. Empty means none were retrieved.",
"items": {
"type": "string"
},
"title": "Pmids",
"type": "array"
},
"provenance": {
"$ref": "#/$defs/Provenance",
"default": "fixture",
"description": "Which engine asserted this moderator."
}
},
"required": [
"id",
"edge_id",
"label"
],
"title": "Moderator",
"type": "object"
},
"ModeratorDirection": {
"enum": [
"amplifies",
"attenuates",
"unknown"
],
"title": "ModeratorDirection",
"type": "string"
},
"NodeRole": {
"enum": [
"causal",
"intervention",
"mechanism"
],
"title": "NodeRole",
"type": "string"
},
"PathType": {
"description": "Where an edge sits relative to the proxy. This is the audit's key distinction: a plan that contains only `through_proxy` edges has assumed the proxy is the only route to what the patient wants, and every `bypass` edge is a counter-example to that assumption. `upstream`: Cause to cause, above the proxy \u2014 root to surface. The part of the picture a plan aimed at the proxy never touches. `through_proxy`: Lever to proxy to outcome: the plan's assumed single funnel. Moving the proxy is assumed to move the outcome. `bypass`: Cause or lever reaching the outcome DIRECTLY, skipping the proxy. Each one is a route to what the patient wants that the plan is not using \u2014 the audit's payoff.",
"enum": [
"upstream",
"through_proxy",
"bypass"
],
"title": "PathType",
"type": "string"
},
"Provenance": {
"description": "Where a piece of the rendered graph came from. The UI badges anything that is not `ir`.",
"enum": [
"ir",
"fixture"
],
"title": "Provenance",
"type": "string"
}
},
"description": "The wire format. Stable, versioned, and the *only* thing the frontend knows about the domain.",
"properties": {
"contract_version": {
"default": "causal-graph/2",
"title": "Contract Version",
"type": "string"
},
"case_id": {
"title": "Case Id",
"type": "string"
},
"title": {
"default": "",
"title": "Title",
"type": "string"
},
"subtitle": {
"default": "",
"title": "Subtitle",
"type": "string"
},
"nodes": {
"description": "Every node: causal nodes AND intervention do-nodes, in ONE shared id namespace. Read `in_plan_view` on each to separate what the plan already covers from what the audit added \u2014 that difference is the product.",
"items": {
"$ref": "#/$defs/GraphNode"
},
"title": "Nodes",
"type": "array"
},
"edges": {
"items": {
"$ref": "#/$defs/GraphEdge"
},
"title": "Edges",
"type": "array"
},
"mechanisms": {
"items": {
"$ref": "#/$defs/Mechanism"
},
"title": "Mechanisms",
"type": "array"
},
"moderators": {
"items": {
"$ref": "#/$defs/Moderator"
},
"title": "Moderators",
"type": "array"
},
"ir_gaps": {
"description": "shipped in the payload so the UI can show, in situ, what the ontology cannot say",
"items": {
"type": "string"
},
"title": "Ir Gaps",
"type": "array"
}
},
"required": [
"case_id"
],
"title": "CausalGraph",
"type": "object"
},
"mermaid": "flowchart TD\n out_ldl_cholesterol[\"LDL cholesterol<br/>what the plan targets\"]\n out_platelet_aggregati[\"platelet aggregation<br/>what the plan targets\"]\n gap_a_specific_ldlc_t[\"A specific LDL-C treatment target (such as <70 mg/dL or <55 mg/dL) and a plan to intensify therapy if that target is not reached<br/>the literature says this matters here\"]\n gap_consideration_of_a[\"Consideration of additional nonstatin LDL-lowering therapy such as ezetimibe or combination therapy if evolocumab alone does not achieve adequate LDL-C reduction after statin intolerance<br/>the literature says this matters here\"]\n gap_assessment_of_lipo[\"Assessment of lipoprotein(a) as a contributor to residual cardiovascular risk<br/>the literature says this matters here\"]\n gap_assessment_of_addi[\"Assessment of additional lipid risk markers such as apolipoprotein B (apoB)<br/>the literature says this matters here\"]\n do_atorvastatin{{\"Atorvastatin 80 mg daily\"}}\n do_evolocumab{{\"Evolocumab 140 mg subcutaneous every two weeks\"}}\n do_aspirin{{\"Aspirin 81 mg daily\"}}\n do_atorvastatin ==> out_ldl_cholesterol\n do_evolocumab ==> out_ldl_cholesterol\n do_aspirin ==> out_platelet_aggregati\n gap_a_specific_ldlc_t --> out_ldl_cholesterol\n gap_consideration_of_a --> out_ldl_cholesterol\n gap_assessment_of_lipo --> out_ldl_cholesterol\n gap_assessment_of_addi --> out_ldl_cholesterol\n classDef outcome fill:#f1f5f9,color:#0f172a,stroke:#94a3b8;\n classDef act fill:#dbeafe,color:#1e3a8a,stroke:#2563eb;\n classDef flag fill:#fee2e2,color:#991b1b,stroke:#dc2626,stroke-width:2px;\n class out_ldl_cholesterol,out_platelet_aggregati outcome;\n class do_atorvastatin,do_evolocumab,do_aspirin act;\n class gap_a_specific_ldlc_t,gap_consideration_of_a,gap_assessment_of_lipo,gap_assessment_of_addi flag;\n",
"how_to_read_this": [
"This is an evidence AUDIT of a plan, not medical advice and not a diagnosis.",
"`evidence: hypothesis` means NO citation was found. Never restate it as established.",
"`pmids: []` means nothing was retrieved for that edge \u2014 NOT that the link is refuted.",
"`status: omitted` means the plan is silent on a link. Absent from the plan is not absent in reality.",
"`in_plan_view: false` means the node is absent from the plan's own picture of itself. The DIFFERENCE between the two views is the finding.",
"`cui`/`snomed_id` empty means the concept did not resolve \u2014 not that none exists.",
"When `builder` is `llm_judged`, no literature retrieval ran for the graph itself: treat it as a candidate generator, never as an evidence engine.",
"NO INTAKE SCREENING RAN. If you serve this to patients, apply your own."
]
}