Skip to content

Conversation

@IsaacMilarky
Copy link
Contributor

@IsaacMilarky IsaacMilarky commented Dec 17, 2025

[NDH-539] Add Missing Long/Lat Filter and Parameters Missing in FHIREndpointViewSet

Jira Ticket #NDH-539

Problem

We are aiming to have a set of search entry points/filters in the FHIR api views. We do not currently have all of the ones outlined in the FHIR API Endpoint Search document.

Solution

Add many of the missing searches and filters to the practitioner role and endpoint filter set file.

Result

Summary:

  • Add filter for organization_id in the FHIREndpointViewSet filterset
  • Add filter for the organization name in the FHIREndpointViewSet filterset
  • Add geopy as a dependency to get distance between two points on sphere earth geodesic
  • Add lattitude, longitude, distance and unit parameters to PractitionerRole filterset
  • Add check to make sure that lattitude, longitude, and distance are called together if called
  • Add filterset to filter results by distance from a provided point
  • Add tests to test lat/long filter
  • Add tests to test organization filters for the endpoint viewset

Test Plan

make test

@IsaacMilarky IsaacMilarky marked this pull request as ready for review December 17, 2025 20:10
Signed-off-by: Isaac Milarsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants