openEHR, in Rust

openEHR Reference Model types, validation, paths, AQL parsing, change-control security primitives, and persistence — in Rust.

openEHR specifies clinical information as a small, stable Reference Model of about ninety classes, plus archetypes that constrain it into clinical content. These crates implement the Reference Model and the machinery around it, so a Rust program can read, build, check, address, and safely disclose openEHR data without inventing its own idea of what a health record is.

The core crate

openehr

openEHR Reference Model types, validation, paths, AQL parsing, and change-control security primitives — in Rust.

openehr = "0.1"

Persistence

One engine-agnostic crate holds the storage model, the projection onto rows, the commit rules, and the conformance suite. Each database crate states how much of that suite it has actually run — Store means a working store verified against a real database, Schema means the DDL has been executed by a real server, and Dialect means the crate emits DDL that no server of that kind has yet seen.

openehr-store

The engine-agnostic half of openEHR persistence: the storage model, the projection from openEHR objects onto rows, the commit rules, and the conformance suite every engine runs.

openehr-sqlite

Store

openEHR persistence for SQLite 3 — a complete embedded store.

openehr-mysql

Schema

openEHR persistence for MySQL 8.4 — the schema dialect.

openehr-mssql

Dialect

openEHR persistence for Microsoft SQL Server 2022 — the schema dialect.

openehr-oracle

Dialect

openEHR persistence for Oracle Database 23ai — the schema dialect.

Specification-driven

The specification is normative, and it is published here in full — 18 documents. Every requirement has a permanent identifier cited from the code, the tests, and the documentation, so a claim about these crates is traceable back to a decision. The conformance matrix records what is verified today, and the audit records every known gap with its evidence.

Source

This site renders the crates' own documentation. The crates are the source of truth.