← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / scientific-agent-skills / skills / clinical-decision-support / references / decision_logic_traceability.md

Decision-Logic Traceability

Scope

“Decision logic” here means research and governance logic only:

Do not encode diagnostic, treatment, dosing, triage, alarm, urgency, bedside, or patient-facing logic.

Matrix Purpose

A traceability matrix links each rule to:

The matrix documents logic. It does not execute arbitrary expressions.

Allowed Node Types

Allowed output kinds:

There is deliberately no generic “action” node.

Required Fields

Matrix Metadata

Per Node

Rule-Writing Guidance

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_review with value missing_source_provenance.

If external validation is absent, set release_hold to true for 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.

Validation Tests

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.

Change Control

For any change:

  1. state the reason;
  2. link new evidence or requirement;
  3. identify affected nodes and downstream artifacts;
  4. update tests;
  5. independently validate;
  6. record approval;
  7. define rollout/rollback when applicable;
  8. retain the previous version;
  9. update monitoring;
  10. retire superseded logic explicitly.

Script

python3 scripts/decision_logic_traceability.py \
  assets/decision_logic_traceability_template.json

The output is a documentation matrix, not executable clinical logic.