What happened?
In versions before 4.0, the $extract operation set the subject of the QuestionnaireResponse to the target resource of the extraction. It seems that in this changeset the functionality got lost: 1ee5749#diff-f62ac1e1fc8af9b0f72236f82c93365fdd2874b5222c76a9f816997afec3c8a5
Specifically the ProcessDefinitionItem.java (old) line 139 was removed.
Note: it still works for Observation extraction.
What did you expect to happen?
The subject is still extracted, also for definition-based extraction.
How can we reproduce it?
With any Questionnaire + QuestionnaireResponse that has a Patient reference set in the subject and is designed to use Definition-Based extraction.
Environment
- Version / commit: 4.2.0
- OS / runtime: Hapifhir starter docker deployment, version 8.6.5
What happened?
In versions before 4.0, the $extract operation set the subject of the QuestionnaireResponse to the target resource of the extraction. It seems that in this changeset the functionality got lost: 1ee5749#diff-f62ac1e1fc8af9b0f72236f82c93365fdd2874b5222c76a9f816997afec3c8a5
Specifically the ProcessDefinitionItem.java (old) line 139 was removed.
Note: it still works for Observation extraction.
What did you expect to happen?
The subject is still extracted, also for definition-based extraction.
How can we reproduce it?
With any Questionnaire + QuestionnaireResponse that has a Patient reference set in the subject and is designed to use Definition-Based extraction.
Environment