Clinical Care Planning

What this is?

One-file, pure JS + JSON clinical reasoning demo using ARC: AnswerReasonCheck.

  • Data — JSON patients, body parts, observations.
  • Policies — declarative JSON rules (if atoms, optional "not": true negations ⇒ then atoms).
  • Answer — only newly derived facts (keeps strongest priority per patient).
  • Reason Why — mathematical-English templates with variable bindings.
  • Check — ≥10 JSON assertions against the full fact set.
  • Care Plan Summary — per-patient priority & planned interventions (chooses strongest priority).

Engine: small forward-chainer with unification, subclassing (subClass), transitive partOf, observation → patient mapping, and negation-as-failure for "not": true.

Data (JSON)

Policies (declarative JSON rules)

Checks (JSON)

Controls

Answer (newly derived facts)

computing…

Reason Why (mathematical English)

(click “Run ARC”)

Check

computing…

Care Plan Summary

(run to populate)