SoF conformance: ViewDefinition search parameters and fixture housekeeping - #723
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
smunini
requested changes
Aug 27, 2026
…l IG custom file Addresses review feedback on #723
…parameters data/sql-on-fhir-search-parameters.json is now regenerated from the official IG package (hl7.fhir.uv.sql-on-fhir) by scripts/sync-sof-search-params.py instead of being maintained by hand. The script strips generated narratives and rewrites the composites' legacy component.definition canonicals to the core-namespace canonicals the parameters declare (upstream inconsistency reported as HL7/sql-on-fhir#403; the rewrite is a no-op once fixed upstream). Regenerating also drops a spurious "language": "en" that the hand-built file carried (present in no official artifact) and picks up the pinned release's build date. Claude-Session: https://claude.ai/code/session_01CktNg2DJpWsPFANE1VevR9
Contributor
|
Tracking for the upstream composite-canonical inconsistency that
Once fixed upstream, the script's canonical rewrite becomes a no-op and |
smunini
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ViewDefinition search parameters (#570)
data/sql-on-fhir-search-parameters.json: the 17ViewDefinitionSearchParameters (url,name,status,date,version,identifier,title,description,publisher,jurisdiction,resource,profile, and thecontext*family) copied from the current official SQL-on-FHIR IG build (hl7.fhir.uv.sql-on-fhir3.0.0-ballot) under their official core-namespace canonicals (http://hl7.org/fhir/SearchParameter/ViewDefinition-{code}). The file is loaded through the existing custom-file mechanism (anydata/*.jsonnot matchingsearch-parameters-*.json), so the verbatim HL7 spec artifactsdata/search-parameters-r*.jsonand the loader's production code are untouched.context-type-quantity,context-type-value) reference their components via legacyuv/sql-on-fhircanonicals upstream, which would never resolve in the registry (components would be silently skipped and the composites would index nothing). Our copy uses the core canonicals for those fourcomponent.definitionvalues.contextparameters actually index a matchinguseContext, and an integration suite (crates/rest/tests/view_definition_search_params.rs, 25 tests) coveringGET /ViewDefinition?url|name|status|date|_lastUpdated, the CapabilityStatement entry (full interaction set + advertised searchParams;Libraryfull interaction set), and a$reindexround trip restoring searchability of pre-existing ViewDefinitions.$reindexafter upgrading to become searchable by the new parameters; the HFS README's data-directory tree lists the new file.Conformance fixture housekeeping (#571)
tests/repeat.jsonchanged (upstream fixture-data fix: requiredQuestionnaire.statusadded, an invalid childlessgroupitem changed todisplay). No fixtures added or removed.crates/sof/tests/sql-on-fhir-v2/to the version-neutralcrates/sof/tests/sql-on-fhir/, as decided in Decide: keep or rename crates/sof/tests/sql-on-fhir-v2 (path stability vs version-neutral name) #718: the fixtures track the current spec (3.0.0-ballot), not v2. Puregit mv(all 22 fixtures byte-identical), all path references updated, and the README's path-stability note removed in the same change. The one historical citation to the oldFHIR/sql-on-fhir-v2GitHub repository (a PR reference inemit.rs) is kept as provenance..gitattributesso byte-verbatim comparison against upstream stays clean on Windows checkouts.PASS_FLOORstays 132; the 12 remaining failures are the documented engine gap).Testing
cargo fmt --all -- --check,cargo clippy -p helios-fhir -p helios-rest -p helios-persistence --all-targets -- -D warningscargo test -p helios-fhir search(default +--all-features),cargo test -p helios-persistence --lib search::extractor,cargo test -p helios-rest(full suite),cargo test -p helios-sof --testsmainback into the branch: all greenurl/name/status/date/_lastUpdated, CapabilityStatement entry verifiedFixes #570
Fixes #571
Closes #718