Skip to content

Re-write fhir services to factory #59

@ruscoder

Description

@ruscoder

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions