Skip to content

Commit

Permalink
Merge pull request #14 from medizininformatik-initiative/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
juliangruendner authored Sep 29, 2023
2 parents a142099 + 095aa64 commit 09167a4
Show file tree
Hide file tree
Showing 8 changed files with 340 additions and 82 deletions.
1 change: 1 addition & 0 deletions docker/aktin-client/.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ LOG_LEVEL_FEASIBILITY=FINE
HARD_RATE_LIMIT_NREQUESTS=2
HARD_RATE_LIMIT_RESET_MINUTES=1
OBFUSCATOR_EPSILON=0.28
CQL_SOCKET_TIMEOUT_MS=60000
1 change: 1 addition & 0 deletions docker/aktin-client/sysproc.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ process.args=${PROCESS_ARGS}
plugin.feasibility.cql.fhirbaseurl=${CQL_FHIR_BASE_URL}
plugin.feasibility.cql.fhiruser=${CQL_FHIR_USER}
plugin.feasibility.cql.fhirpw=${CQL_FHIR_PW}
plugin.feasibility.cql.sockettimeout=${CQL_SOCKET_TIMEOUT_MS}
plugin.feasibility.flare.url=${FLARE_URL}
plugin.feasibility.flare.user=${FLARE_USER}
plugin.feasibility.flare.pw=${FLARE_PW}
Expand Down
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@
<version>2.14.1</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>2.14.1</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.1.2-jre</version>
</dependency>

</dependencies>

<build>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/feasibility/FeasibilityExecutionPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ protected void loadConfig(Properties properties) throws IOException{

String fhirUserCql = properties.getProperty("plugin.feasibility.cql.fhiruser");
String fhirPwCql = properties.getProperty("plugin.feasibility.cql.fhirpw");
int socketTimeout = Integer.valueOf(properties.getProperty("plugin.feasibility.cql.sockettimeout"));

if(! fhirUserCql.equals("") && ! fhirPwCql.equals("")) {
IClientInterceptor authInterceptor = new BasicAuthInterceptor(fhirUserCql, fhirPwCql);
genFhirClient.registerInterceptor(authInterceptor);
}

fhirContext.getRestfulClientFactory().setSocketTimeout(socketTimeout);

this.cqlExecutor = new CqlExecutor(
new FhirConnector(fhirContext.newRestfulGenericClient(fhirBaseUrl)),
new FhirHelper(fhirContext)
Expand Down
1 change: 0 additions & 1 deletion src/main/java/feasibilityValidator/SqValidator.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package feasibilityValidator;

import feasibility.CqlExecutor;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Constructor;
Expand Down
Loading

0 comments on commit 09167a4

Please sign in to comment.