Expand description
fhir-sqlite-gen: generates the fhir-sqlite relational map from the official FHIR specification packages (profiles-resources.json, profiles-types.json).
Modules§
- assets
- Regenerating the committed relational-map assets (
G2.1,G2.2). - build
- Map construction: walk each resource’s element definitions, expanding complex datatypes in place, and decide for every element whether it flattens into the current table, opens a child table, spills (type cycles), or routes to the extension machinery.
- names
- Identifier construction: snake_case conversion and deterministic fitting into PostgreSQL’s 63-byte identifier limit.
- search
- Search-parameter compilation: resolve each SearchParameter’s FHIRPath expression against the built map, producing concrete (table, column) targets. Parameters that use FHIRPath features beyond the supported subset compile to an empty target list with a note — the server reports them as unsupported rather than guessing.
- spec
- FHIR specification-package parsing: profiles-resources.json and profiles-types.json → element definitions the builder can walk.
Enums§
Functions§
- generate
- Generate the relational map for one FHIR version from a definitions directory containing profiles-resources.json and profiles-types.json.