RSS-252: Added all unique batch numbers to SCM report
This commit is contained in:
parent
a8267e22c0
commit
84eda88d4d
@ -145,7 +145,7 @@ public class RSSPoc2Service {
|
||||
resultMap.put(EXPERIMENTAL_STARTING_DATE, getExperimentalStartDate(redactionLog));
|
||||
resultMap.put(EXPERIMENTAL_COMPLETION_DATE, getExperimentalEndDate(redactionLog));
|
||||
resultMap.put(GLP_STUDY, getGlpStudy(redactionLog));
|
||||
resultMap.put(CERTIFICATE_OF_ANALYSIS_BATCH_IDENTIFICATION, getBatchNumber(redactionLog));
|
||||
resultMap.put(CERTIFICATE_OF_ANALYSIS_BATCH_IDENTIFICATION, getJoinedUniqueValues(redactionLog, "batch_number", ", "));
|
||||
resultMap.put(TEST_GUIDELINE_1, getTestGuideline1(redactionLog));
|
||||
var testGuideline2 = getTestGuideline2(redactionLog);
|
||||
resultMap.put(TEST_GUIDELINE_2, testGuideline2 == null ? "" : testGuideline2);
|
||||
@ -788,14 +788,6 @@ public class RSSPoc2Service {
|
||||
}
|
||||
|
||||
|
||||
private String getBatchNumber(RedactionLog redactionLog) {
|
||||
|
||||
var batchNumber = redactionLog.getRedactionLogEntry().stream().filter(r -> r.getType().equals("batch_number")).map(RedactionLogEntry::getValue).findFirst();
|
||||
|
||||
return batchNumber.orElse("");
|
||||
}
|
||||
|
||||
|
||||
private String getGlpStudy(RedactionLog redactionLog) {
|
||||
|
||||
var glpStudy = redactionLog.getRedactionLogEntry().stream().filter(r -> r.getType().equals("glp_study")).map(RedactionLogEntry::getValue).findFirst();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user