Skip to content

Commit

Permalink
update fhir context http
Browse files Browse the repository at this point in the history
  • Loading branch information
bennsimon committed Jan 12, 2024
1 parent 8cfe9a3 commit 0384ffd
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,13 @@ private Bundle postProcessModeListEntries(IBaseResource responseResource) {

requestBundle = processListEntriesGatewayModeByBundle(responseResource);
}
FhirContext ctx = FhirContext.forR4();
int fivemins = 300* 1000;
ctx.getRestfulClientFactory().setConnectTimeout(fivemins);
ctx.getRestfulClientFactory().setConnectionRequestTimeout(fivemins);
ctx.getRestfulClientFactory().setSocketTimeout(fivemins);

return fhirR4Client.transaction().withBundle(requestBundle).execute();
return ctx.newRestfulGenericClient(fhirR4Client.getServerBase()).transaction().withBundle(requestBundle).execute();
}

/* Generates a map of Code.url to multiple Code.Value which contains all the possible filters that
Expand Down

0 comments on commit 0384ffd

Please sign in to comment.