GSoC’ 21 @OpenMRS- Week 6
Project: Support for Extended Operations on FHIR
Week 6 Experience:
Week 6 proved to be a little challenging. We started working on phase 2 of the project which required implementing the $everything
operation on Patients. The point which proved a little difficult for me to comprehend was how to prevent pagination since there should be no pagination done for $everything
operation unless specified using the _count
param. Moreover, the SearchQueryBundleProvider
returned response in which the count of resources from_include
and _revinclude
were not included in the bundle total, so we had to prevent that from happening as well for this operation. But with a lot of help from my mentor, we were able to figure it out. We fetched the response using getAllResources()
and packaged it SimpleBundleProvider
with the preferred page size as the total size of the list.
Tickets I worked on:
FM2–409 : Corrected the bundle type in $lastn
operations(Code review)
FM2–411: Support for instance level $everything
operation on Patients
in R4(Code review)
Plans for next week:
After the PR for FM2–411, we will add the implementation in R3 and add integration tests for R3 and R4.