Skip to content
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

Connect to open server while not in a Browser environment #192

Open
EniacMlezi opened this issue Feb 28, 2025 · 0 comments
Open

Connect to open server while not in a Browser environment #192

EniacMlezi opened this issue Feb 28, 2025 · 0 comments

Comments

@EniacMlezi
Copy link

In browser environment I can do:

import FHIR from 'fhirclient';
const client = FHIR.client(fhirUrl);

To connect to an open server.

Now I'm writing a little nodejs tool and would like to retrieve some resources from an open server. Doing the above will give me a TypeError: FHIR.client is not a function. What got imported was the smart(req, res, storage) function, but my little tool is not an http server, I do not have request or response objects.

I would like to be able to start a client to an open server, the same as in a browser environment, but from a nodejs tool application.

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

No branches or pull requests

1 participant