-
Type:
Change Request
-
Resolution: Not Persuasive with Modification
-
Priority:
Medium
-
Structured Data Capture (SDC) (FHIR)
-
current
-
FHIR Infrastructure
-
Populate Questionnaire
-
-
Brian Postlethwaite/Stoyan Halkaliev: 6-0-0
-
Clarification
-
Non-substantive
Problem
QuestionnaireResponse had been created by $populate operation. A user had added some answers and saved QuestionnaireResponse.
Then Questionnaire got changes. This changes introduced a new field and this new field has a population rules.
Now the user open the QuestionnaireResponse to edit.
The new field will be empty since there is no way to partially populate some fields to existing QuestionnaireResponse.
If the user starts from scratch with $populate operation, all data entered to the QuestionnaireResponse will be missed.
There is no way to partially populate missing filed for the existing QuestionnaireResponse.
Proposed solution
Add /QuestionnaireResponse/<id>/$populate-missing operation that will merge the existing QuestionnaireResponse and a new populated version of it. The existing answers have higher priority over populated. Populated answers used only for missing at the QuestionnaireResponse answers.
Alternative solution
We can treat this scenario as an edge case and force Questionnaire author to support any kind of merge on a population level. If it will be possible to specify any kind of launchContext, not just a set of restricted resource defined by https://build.fhir.org/ig/HL7/sdc/ValueSet-launchContext.html The Questionnaire author may require an existing QuestionnaireResponse to be in the launchContext. Then with fhirpath or cql expression the questionnaire author defines the logic of the merge.
- mentioned in
-
Page Loading...