fhir-persistence 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.7.0] - 2025-03-18
9
+
10
+ ### Added
11
+
12
+ #### Conformance Storage Module (`src/conformance/`)
13
+
14
+ New module for IG-related conformance resource management, unblocking IG Explorer (Phase-fhir-server-004):
15
+
16
+ - **`IGResourceMapRepo`** (P1) — `ig_resource_map` table tracking IG → resource mappings with grouped index queries
17
+ - **`SDIndexRepo`** (P2) — `structure_definition_index` table for fast SD queries by type, kind, base definition
18
+ - **`ElementIndexRepo`** (P3) — `structure_element_index` table for element-level queries across SDs (dialect-aware: SQLite INTEGER vs PostgreSQL BOOLEAN/JSONB)
19
+ - **`ExpansionCacheRepo`** (P4) — `value_set_expansion` cache table for ValueSet expansion results (dialect-aware timestamps)
20
+ - **`ConceptHierarchyRepo`** (P5) — `code_system_concept` hierarchical table with parent-child relationships and level queries
21
+ - **`SearchParamIndexRepo`** (B1) — `search_parameter_index` table for IG-scoped SearchParameter tracking
22
+ - **`IGImportOrchestrator`** (B2) — Coordinates all repos for complete IG import pipeline; accepts optional fhir-runtime extraction functions (`extractElementIndex`, `flattenConcepts`, `extractDependencies`)
23
+
24
+ All repos follow existing patterns: `StorageAdapter` + `DDLDialect`, `?` placeholders, SQLite/PostgreSQL dual-backend support.
25
+
26
+ ### Changed
27
+
28
+ - **`fhir-runtime` dependency** — Upgraded from `^0.10.0` to `^0.11.0` (IG extraction API: `extractSDDependencies`, `extractElementIndexRows`, `flattenConceptHierarchy`)
29
+ - **`src/index.ts`** — Added conformance module exports (7 classes + 9 types)
30
+
31
+ ### Test Coverage
32
+
33
+ - **1061 total tests** (1053 passing, 8 skipped) across 63 test files — no regressions
34
+ - **47 new conformance tests** covering all 6 repos + orchestrator (SQLite in-memory)
35
+
8
36
  ## [0.6.1] - 2025-03-18
9
37
 
10
38
  ### Changed
package/README.md CHANGED
@@ -5,7 +5,7 @@ Embedded FHIR R4 persistence layer — CRUD, search, indexing, and schema migrat
5
5
  [![npm version](https://img.shields.io/npm/v/fhir-persistence)](https://www.npmjs.com/package/fhir-persistence)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
7
7
 
8
- > **v0.6.1** — Dependency upgrade: fhir-runtime ^0.10.0 (Profile Slicing & Choice Type support)
8
+ > **v0.7.0** — Conformance storage module for IG Explorer: 6 repos + import orchestrator
9
9
 
10
10
  ## Features
11
11