Vermonster / fhir-kit-client

Node.js FHIR client library
MIT License
173 stars 37 forks source link

Unable to set postSearch option in angular #200

Open adaneam opened 3 months ago

adaneam commented 3 months ago

Expected Behavior

Allows setting 'params.options.postSearch' in angular apps.

Actual Behavior

Somehow when you use this library in angular, the type for options param is changed to RequestInit. This creates problem as you cannot set the postSearch option as it is not a property of RequestInit type. Following is the screenshot of code you can see when you do F12 on search method in angular client code.

image

As you can see data type for options is RequestInit.

Steps to Reproduce the Problem

  1. Use fhir-kit-client in angular app. I tried with ng18.
  2. Try to set postSearch option in search method