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

Re-write fhir services to factory #59

Open
ruscoder opened this issue Apr 21, 2023 · 0 comments
Open

Re-write fhir services to factory #59

ruscoder opened this issue Apr 21, 2023 · 0 comments

Comments

@ruscoder
Copy link
Member

Currently, we have some issues with working with base fhir services, since URL, token, and inactiveMapping are defined globally:

  • All service functions hardly tied to the single global base URL/token
  • Impossible to override inactiveMapping

The better approach is to define them in a factory function, that will return new AidboxClient class that will have all methods from services/fhir.ts (e.g. getFHIRResources, saveFHIRResource and etc).

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