Skip to content

Commit 484f84e

Browse files
committed
fix study export
1 parent 3348a70 commit 484f84e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/de/uzl/lied/mtbexporter/tasks/CsvExporter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ public static Befund exportDiagnosticReport(DiagnosticReport report, List<BefThe
173173
bef.setTherapie("Klinische Studie");
174174
List<String> studies = new ArrayList<>();
175175
oc.getValueCodeableConcept().getCoding()
176-
.forEach(c -> studies.add(c.getCode() == null ? c.getDisplay() : c.getCode()));
176+
.forEach(c -> {
177+
String studyId = c.getCode() == null ? c.getDisplay() : c.getCode();
178+
studyId = studyId.replace("Could not fetch trial for: ", "");
179+
studies.add(studyId);
180+
});
177181
bef.setRegistrierungsnummer(String.join(", ", studies));
178182
break;
179183
default:

0 commit comments

Comments
 (0)