openehr-its 0.0.2

openEHR ITS (Implementation Technology Specifications): canonical JSON + XML serialization, ITS-REST OpenAPI contract, ITS-BMM. Mirrors the specifications-ITS-{JSON,XML,REST,BMM} repos.
Documentation
//! **ITS-REST** — the openEHR REST API contract (ITS-REST 1.1.0).
//!
//! The transport DTOs, a server trait per API group, and a route table are
//! **generated** by `openehr-codegen`'s `emit-rest` target into [`generated`],
//! spec-first from the vendored OpenAPI (`vendor/rest-oas/*-codegen.openapi.yaml`).
//! RM payload types resolve to `openehr-rm`/`openehr-base` rather than being
//! re-emitted. This module is the hand-written [`runtime`] (the `ApiError`
//! response type) + re-exports. `ferroehr-rest` implements the generated traits
//! and wires axum; the handler bodies are our own service layer (`ferroehr`,
//! the openEHR specs are the authority, EHRbase is prior art).
//! Regenerate with `cargo run -p openehr-codegen -- emit-rest`.

// The generated contract and its runtime need the crate's dependency set (axum,
// serde, the spec crates), so they ride the default `full` feature; the
// std-only `smart_scopes` grammar is always compiled — see the crate docs.
#[cfg(feature = "full")]
pub mod generated;
#[cfg(feature = "full")]
pub mod runtime;
pub mod smart_scopes;

#[cfg(feature = "full")]
pub use runtime::ApiError;