-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openmrs
add fhir.get()
function
#765
Conversation
Probably there is a better way of handling auto pagination when fetching encounters from |
Notes for Joewhy
why
Query param mapping. Eg 🫱
|
Ah this is weird 😬 First, a quick note, your "notes for joe" should really be part of the main PR body. That's important and explains why you're doing this work. When I bug you about doing your github admin or adding detail to PRs, this comment is exactly the kind of thing I'm looking for. Do we have time to think about this more? I'd much rather do a major version bump and add a fhir "mode" to the existing get functions (or maybe, for now, just to get) It's a bummer about the documentation. Does this help? https://openmrs.atlassian.net/wiki/spaces/projects/pages/26935963/FHIR+Swagger+Documentation You should find JSON there which describes the supported query parameters. |
Well noted @josephjclark on |
Hiya @josephjclark unfortunately the documentation was not help full because it only show 3 parameters for |
@josephjclark i have cleaned up the implementation a bit and add unit test. I am happy to start with this implementation and modify later when we have a better design. For the time being this will unblock our implementation in msf - OpenFn/openfn-lime-pilot#34 |
I'm really not happy about this 😐️ Since you say it's urgent, and I can't do anything about it until next week, I'll do a quick review and release now. What we're doing here is adding more tech debt to an incredibly long (and serious) list. It's making tomorrow harder, which is really the opposite of why we work. It's also been expensive because there's a lot of documentation, and a test, which is going to end up being wasted effort. Actually I don't think we should be duplicating FHIR documentation like this either. It's a really unsustainable way of developing and we should not be adding short term functions like this. |
71655c1
to
42b8375
Compare
Summary
Add
fhir.get()
functionDetails
Using OpenMRS FHIR Module I have added another function (
fhir.get()
) which can be used to fetch data from OpenMRS FHIR endpoints. This implementation does not interfere with the current implementation of OpenMRS adaptor which uses OpenMRS Rest API.Since OpenMRS FHIR Module is the implementation of FHIR, I have tried to compile a list of query params that are most relevant when making a get request with search params and include links to the original documentation.
Important Consideration
Encounter
andPractitioner
and both work as expected in auto-paging.AI Usage
Please disclose how you've used AI in this work (it's cool, we just want to know!):
You can read more details in our Responsible AI Policy
Review Checklist
Before merging, the reviewer should check the following items:
dev only changes don't need a changeset.