fhir_sqlite_gen: Generating FHIR Relational Maps for SQLite
fhir_sqlite_gen - Rust - Docs.rs
Summary
The fhir_sqlite_gen crate automatically generates the relational map for FHIR resources from official specification packages. It processes resource definitions to create a database schema suitable for SQLite implementation.
Details
This tool reads FHIR definition files, such as profiles-resources.json and profiles-types.json, and walks through resource element definitions. It handles complex datatypes by expanding them in place, determining whether each element should flatten into the current table, open a child table, or route through the extension machinery. Furthermore, it includes search parameter compilation, resolving FHIRPath expressions against the built map to produce concrete (table, column) targets. This provides a foundational mechanism for efficiently handling complex FHIR data structures within an SQLite environment.
Original content copyright by respective publishers