Implement $populate operation for SDC and update documentation - #97
Conversation
- Add `FHIRQuestionnairePopulateService::populate` for `Questionnaire/$populate` functionality. - Support expression-based and observation-based population mechanisms. - Update SDC docs and examples to reflect `$populate` capabilities alongside `$extract`.
There was a problem hiding this comment.
Pull request overview
This PR updates the SDC documentation and changelog to reflect newly added support for the Questionnaire/$populate operation, alongside the existing QuestionnaireResponse/$extract capability.
Changes:
- Documented a new
$populatequick-start example and updated SDC overview text to describe both operations. - Updated top-level docs pages to describe SDC as supporting both
$populateand$extract. - Added changelog entries describing the new
$populatepublic API and supported mechanisms.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/sdc/overview.md | Updates SDC overview and adds a $populate quick start example. |
| docs/README.md | Updates the docs index table to mention $populate in the SDC row. |
| docs/getting-started/packages.md | Updates the package summary line for ardenexal/fhir-sdc to include $populate. |
| CHANGELOG.md | Adds changelog entries describing the new $populate API and supported features. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Benchmark ResultsSerialization + FHIRPath benchmarks✅ Regression check passedComparison vs baselineRun |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
❌ FHIR Model Generation Test OUT OF DATEThis automated test regenerates the R4B FHIR models and verifies that the generation functionality works correctly with the changes in this PR, then checks that the committed models are up to date. 📋 Click to view detailed outputM src/Component/Models/src/R4B/Extension/PublicationDateExtension.php |
Benchmark ResultsSerialization + FHIRPath benchmarks✅ Regression check passedComparison vs baselineRun |
Benchmark ResultsSerialization + FHIRPath benchmarks✅ Regression check passedComparison vs baselineRun |
What does this PR do?
Implements support for the
$populateoperation within the SDC module by addingFHIRQuestionnairePopulateService::populate, enabling both expression-based and observation-based population mechanisms.What is included?
$populateoperation in theFHIRQuestionnairePopulateService.$populatecapabilities alongside$extract.Testing guidance:
Ensure that both expression and observation-based population mechanisms work as expected. Verify updated documentation and examples for accuracy.