gtuk/diga-api-service

Using the service for two DiGAs

Closed this issue · 2 comments

Hi!
First of all thanks for this project, it helped us a lot.

We would like to use the service to validate the codes for two DiGAs in the future. As far as I see this might not be possible with the current implementation. I see two possible ways at this point:

  1. Run a separate instance of this service with a different configuration.
  2. Add two additional endpoints (e.g. validate_diga2 and bill_diga2) for the second DiGA and implement some way to switch between the configurations.

Am I going in the right direction or am I missing something?
Thanks!

I think youre going in the right direction :) at least the https://github.com/alex-therapeutics/diga-api-client does not support any kind of switching right now. If you have this working for one diga, I would suggest the simplest is running another instance of the service for the other diga

Ok, thanks a lot for the quick answer.