skills/clinical-decision-support/references/decision_logic_traceability.md
“Decision logic” here means research and governance logic only:
Do not encode diagnostic, treatment, dosing, triage, alarm, urgency, bedside, or patient-facing logic.
A traceability matrix links each rule to:
The matrix documents logic. It does not execute arbitrary expressions.
input_checkdata_quality_gateevidence_rulevalidation_gatedocumentation_gatehuman_reviewrelease_gatemonitoring_gateAllowed output kinds:
include_evidenceexclude_evidenceflag_for_reviewvalidation_statusdocumentation_statusrelease_holdmonitoring_statusThere is deliberately no generic “action” node.
Write rules so an independent reviewer can reproduce the result without hidden knowledge.
Good:
If an evidence record lacks a stable citation and retrieval date, set output kind
flag_for_reviewwith valuemissing_source_provenance.
If external validation is absent, set
release_holdtotruefor claims of transportability.
Unsafe and prohibited:
If a person's score is high, trigger an urgent alert.
If a biomarker is positive, recommend a therapy.
For each node include:
For the matrix as a whole include:
The bundled helper validates identifiers, allowed node/output types, citations, and required review fields, then emits CSV. It does not parse or execute the logic statement.
For any change:
python3 scripts/decision_logic_traceability.py \
assets/decision_logic_traceability_template.json
The output is a documentation matrix, not executable clinical logic.