Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
0.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
holger-stenzhorn committed Dec 2, 2022
1 parent 012fdcc commit f3a0460
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Enable HTTP(S) proxy by adding the environment to `**ENVIRONMENTS**`:
```

#### Export Chunking
The ODM export from REDCap is by default divided into exports for data of single patients to avoid connection issues and timeouts but can be changed by adding the argument:
By default, the ODM export from REDCap is divided into exports for data of single patients to avoid connection issues and timeouts. This can be changed by adding the argument:
```sh
--odm.redcap.api.patientspercall=**PATIENTS_PER_CALL**
```
Expand All @@ -80,6 +80,11 @@ By default, all subjects within an ODM are processed. To process only subjects w
```
(Note: To reset the filtering, empty the folder `**CACHE_FOLDER**`.)

To filter subjects using REDCap's filter logic add the argument with `**FILTER_LOGIC**` holding a valid filter logic string:
```sh
--odm.redcap.api.filterlogic=**FILTER_LOGIC**
```

### DIS
```sh
--odm.dis.rest.url=**ODM_DIS_REST_URL**
Expand Down
7 changes: 6 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Enable HTTP(S) proxy by adding the environment to `**ENVIRONMENTS**`:
```

#### Export Chunking
The ODM export from REDCap is by default divided into exports for data of single patients to avoid connection issues and timeouts but can be changed by adding the argument:
By default, the ODM export from REDCap is divided into exports for data of single patients to avoid connection issues and timeouts. This can be changed by adding the argument:
```sh
--odm.redcap.api.patientspercall=**PATIENTS_PER_CALL**
```
Expand All @@ -80,6 +80,11 @@ By default, all subjects within an ODM are processed. To process only subjects w
```
(Note: To reset the filtering, empty the folder `**CACHE_FOLDER**`.)

To filter subjects using REDCap's filter logic add the argument with `**FILTER_LOGIC**` holding a valid filter logic string:
```sh
--odm.redcap.api.filterlogic=**FILTER_LOGIC**
```

### DIS
```sh
--odm.dis.rest.url=**ODM_DIS_REST_URL**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public class REDCapODMProcessor extends ODMProcessor {
@Value("${odm.redcap.api.patientspercall:1}")
private int patientspercall;

@Value("${odm.redcap.api.filterlogic:}")
private String filterlogic;

public Stream<InputStream> read() throws Exception {
log.info("Reading ODM via REDCap API at '{}'", url);

Expand Down Expand Up @@ -98,6 +101,7 @@ private Stream<String> readPatientIDs() throws Exception {
.addParameter("format", "csv")
.addParameter("fields", "record_id")
.addParameter("events", "basisdaten_arm_1,1_fall_arm_1,2_fall_arm_1,3_fall_arm_1")
.addParameter("filterLogic", filterlogic)
.build();

return readLines(HTTP_CLIENT_BUILDER.build().execute(httpPost).getEntity().getContent(), UTF_8)
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ odm:
# url: http://redcap/api/
# token: 12345ABCDE67890ABCDE12345ABCDEF0
# patientspercall: 1
# filterlogic: "[record_id] <> 0"
# key:
# file.path: /some/path/client_certificate.p12
# password: change-password
Expand Down

0 comments on commit f3a0460

Please sign in to comment.