_include search parameter with source type not matching the domain resource type should be ignored #1267
Open
Description
Describe the bug
When including a resource type now matching the domain resource type, the include search parameter should be ignored.
To Reproduce
Steps to reproduce the behavior:
- run query: [base]/MedicationRequest?_include:MedicationDispense:patient
- You will get in return Patient resources which are referenced by MedicationDispense
Expected behavior
Search parameter should be ignored and results should be similar to running [base]/MedicationRequest?
Actual behavior
Patient resources referenced by MedicationDispense resources are returned