Skip to content

Commit

Permalink
Fix error returns in patient api
Browse files Browse the repository at this point in the history
  • Loading branch information
ThishaniLucas committed May 30, 2023
1 parent e262efc commit f066ad4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fhir-apis/patient-api-healthcare-accelerator/service.bal
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ isolated final map<PatientSourceConnect> profileImpl = {
new r4:FHIRReadRequestInterceptor(apiConfig),
new r4:FHIRCreateRequestInterceptor(apiConfig),
new r4:FHIRSearchRequestInterceptor(apiConfig),
new r4:FHIRResponseErrorInterceptor(),
new r4:FHIRRequestErrorInterceptor(),
new r4:FHIRResponseInterceptor(apiConfig),
new r4:FHIRResponseErrorInterceptor()
new r4:FHIRResponseInterceptor(apiConfig)
]
}
service / on new http:Listener(9090) {
Expand All @@ -63,6 +63,7 @@ service / on new http:Listener(9090) {

if process is error {
log:printError("Error in source connection processing");
return process;
}
log:printDebug("[END]FHIR interaction : search");
return {};
Expand All @@ -81,6 +82,7 @@ service / on new http:Listener(9090) {

if process is error {
log:printError("Error in source connection processing");
return process;
}
log:printDebug("[END]FHIR interaction : read");
return {};
Expand All @@ -100,6 +102,7 @@ service / on new http:Listener(9090) {

if process is error {
log:printError("Error in source connection processing");
return process;
}
log:printDebug("[END]FHIR interaction : create");
return {};
Expand Down

0 comments on commit f066ad4

Please sign in to comment.