What this is?
One-file, pure JS + JSON demo that mimics FHIR-ish resources and coding. Edit the JSON below and click Run ARC:
- Data — FHIR-flavored resources:
Patient, Encounter, DocumentReference,
Observation, Condition, Consent; lab codes (LOINC), condition codes (SNOMED).
- Policies — declarative JSON rules: an array of objects with
if atoms (allowing "not": true) ⇒ then atoms, plus an explain template.
- Answer — the newly derived facts only (keeps the strongest
priority per patient).
- Reason Why — mathematical-English derivations based on bound variables per rule firing.
- Check — JSON assertions evaluated against the full fact set (… items).
- Health Info Summary — per-patient strongest priority and tasks. Priority order: Blocked > High > Normal > Low.
Engine: tiny 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 0
Controls
Answer (newly derived facts)
computing…
Reason Why (mathematical English)
(click “Run ARC”)
Health Info Summary
(run to populate)