Request for clearer examples and improved types for FHIR search in @googleapis/healthcare library #3616
mohsinht
announced in
Announcements
Replies: 2 comments
-
There's unanswered thread here as well: #2555 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @mohsinht! Mostly this library is autogenerated so a request for better examples would probably be better in the issue tracker itself. In the meantime, we have some examples as comments in the code. Here is the official documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
I’m trying to search the FHIR store using the @googleapis/healthcare library, specifically the
projects.locations.datasets.fhirStores.fhir.search
method, but I have encountered several issues:Observation?combo-code=mysite.com|bmi&subject=Patient/some-id
, does not seem to fit easily within the current structure of the @googleapis/healthcare search method.Describe the solution you'd like
I would like clearer examples and documentation for using the search method, specifically with both
GET
andPOST
requests. It would be helpful to show how to handle FHIR query strings such asObservation?combo-code=mysite.com|bmi&subject=Patient/some-id
in the@googleapis/healthcare
library. Additionally, proper TypeScript typings for these search parameters would greatly improve the developer experience.Describe alternatives you've considered
I have considered bypassing the library and making direct HTTP requests with the Google Auth library, but that adds complexity and seems like an unnecessary workaround.
Additional context
The StackOverflow community also has threads discussing the vague types and lack of clarity around using the search method. More detailed samples and clearer type definitions would go a long way in making the library more accessible and easier to use.
Beta Was this translation helpful? Give feedback.
All reactions