|
|
|
@ -213,7 +213,7 @@ func (srv *HISServer) enableService(conn *model.Connection, service string, acti |
|
|
|
|
Fetch: &openkv.ServiceConfig{ |
|
|
|
|
Protocol: "https://whiteboxsystems.nl/protospecs/whitebox-fetch/http", |
|
|
|
|
Config: map[string]string{ |
|
|
|
|
"url": "http://localhost:8084/external/api", |
|
|
|
|
"url": externalAddr + "/external/api", |
|
|
|
|
}, |
|
|
|
|
Auth: &openkv.AuthConfig{ |
|
|
|
|
Method: openkv.AuthMethod_APIToken, |
|
|
|
@ -222,7 +222,30 @@ func (srv *HISServer) enableService(conn *model.Connection, service string, acti |
|
|
|
|
Push: &openkv.ServiceConfig{ |
|
|
|
|
Protocol: "https://whiteboxsystems.nl/protospecs/whitebox-push/http", |
|
|
|
|
Config: map[string]string{ |
|
|
|
|
"url": "http://localhost:8084/external/api", |
|
|
|
|
"url": externalAddr + "/external/api", |
|
|
|
|
}, |
|
|
|
|
Auth: &openkv.AuthConfig{ |
|
|
|
|
Method: openkv.AuthMethod_APIToken, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} else if m, _ := regexp.MatchString("voorbeeld:*", service); m { // Kis
|
|
|
|
|
resp, err = client.ConfigService(context.Background(), &openkv.ConfigServiceRequest{ |
|
|
|
|
Service: service, |
|
|
|
|
Enabled: active, |
|
|
|
|
Fetch: &openkv.ServiceConfig{ |
|
|
|
|
Protocol: "https://whiteboxsystems.nl/protospecs/whitebox-fetch/http", |
|
|
|
|
Config: map[string]string{ |
|
|
|
|
"url": externalAddr + "/external/api", |
|
|
|
|
}, |
|
|
|
|
Auth: &openkv.AuthConfig{ |
|
|
|
|
Method: openkv.AuthMethod_APIToken, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Push: &openkv.ServiceConfig{ |
|
|
|
|
Protocol: "https://whiteboxsystems.nl/protospecs/whitebox-push/http", |
|
|
|
|
Config: map[string]string{ |
|
|
|
|
"url": externalAddr + "/external/api", |
|
|
|
|
}, |
|
|
|
|
Auth: &openkv.AuthConfig{ |
|
|
|
|
Method: openkv.AuthMethod_APIToken, |
|
|
|
@ -236,7 +259,7 @@ func (srv *HISServer) enableService(conn *model.Connection, service string, acti |
|
|
|
|
Fetch: &openkv.ServiceConfig{ |
|
|
|
|
Protocol: "https://hl7.org/fhir", |
|
|
|
|
Config: map[string]string{ |
|
|
|
|
"url": "http://localhost:8084/external/fhir/Patient", |
|
|
|
|
"url": externalAddr + "/external/fhir/Patient", |
|
|
|
|
}, |
|
|
|
|
Auth: &openkv.AuthConfig{ |
|
|
|
|
Method: openkv.AuthMethod_APIToken, |
|
|
|
@ -245,7 +268,7 @@ func (srv *HISServer) enableService(conn *model.Connection, service string, acti |
|
|
|
|
Push: &openkv.ServiceConfig{ |
|
|
|
|
Protocol: "https://hl7.org/fhir", |
|
|
|
|
Config: map[string]string{ |
|
|
|
|
"url": "http://localhost:8084/external/fhir/Patient", |
|
|
|
|
"url": externalAddr + "/external/fhir/Patient", |
|
|
|
|
}, |
|
|
|
|
Auth: &openkv.AuthConfig{ |
|
|
|
|
Method: openkv.AuthMethod_APIToken, |
|
|
|
|