forked from Vitalink/evs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: backport logCommunicationType from evs (#462)
* feat: backport logCommunicationType from evs added the ability to also log encrypted incoming and outgoing communication via argument `logCommunicationType`. Possible values: WITHOUT_SECURITY, WITH_SECURITY, ALL. Default: WITHOUT_SECURITY * Create LogCommunicationTypeConverter.java * Create LogCommunicationType.java * feat: sumehr - display items with nullflavor in visualization * Update VaultExporterArguments.java * Update VaultExporterFromIde.java * Update VaultExporterRunner.java * Update UploaderArguments.java * Update UploaderFromIde.java * Update UploaderRunner.java * Create Kind.java * Update HubService.java * Update HubService.java * Update CommunicationLoggerAfterSecurity.java * Update CommunicationLoggerBeforeSecurity.java * Update MessageWriter.java * Update start EVS.cmd * Update start EVS RSW.cmd * Update start EVS RSB.cmd * Update start EVS exporter.cmd * Update start EVS.sh * Update MessageWriter.java * Update VaultExporterFromIde.java * Update Problem.java * Update SumehrMapper.java --------- Co-authored-by: Jacques Yakoub <[email protected]>
- Loading branch information
Showing
21 changed files
with
185 additions
and
57 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
builder/src/main/resources-filtered/delivery_output/exe/start EVS RSB.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../system/vault-uploader.cmd -rootDir="..\exe\interaction" -writeAsIs=false -exportAfterUpload=true -validateExportAfterUpload=false -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -startTransactonId=100 -shiftAction=no_tag_and_no_shift -hub=RSB -searchType=LOCAL -autoGenerateMSTransactionAuthor=true -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true | ||
../system/vault-uploader.cmd -rootDir="..\exe\interaction" -writeAsIs=false -exportAfterUpload=true -validateExportAfterUpload=false -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -startTransactonId=100 -shiftAction=no_tag_and_no_shift -hub=RSB -searchType=LOCAL -autoGenerateMSTransactionAuthor=true -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true -logCommunicationType=WITHOUT_SECURITY |
2 changes: 1 addition & 1 deletion
2
builder/src/main/resources-filtered/delivery_output/exe/start EVS RSW.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../system/vault-uploader.cmd -rootDir="..\exe\interaction" -writeAsIs=false -exportAfterUpload=true -validateExportAfterUpload=false -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -startTransactonId=100 -shiftAction=no_tag_and_no_shift -hub=RSW -searchType=LOCAL -autoGenerateMSTransactionAuthor=true -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true | ||
../system/vault-uploader.cmd -rootDir="..\exe\interaction" -writeAsIs=false -exportAfterUpload=true -validateExportAfterUpload=false -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -startTransactonId=100 -shiftAction=no_tag_and_no_shift -hub=RSW -searchType=LOCAL -autoGenerateMSTransactionAuthor=true -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true -logCommunicationType=WITHOUT_SECURITY |
2 changes: 1 addition & 1 deletion
2
builder/src/main/resources-filtered/delivery_output/exe/start EVS exporter.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../system/vault-exporter.cmd -transactionType=medicationscheme -patients=patient_template -actor=gp_van_Doe -exportDir="..\exe\exports" -validate=true -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -hub=VITALINK -searchType=LOCAL -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true | ||
../system/vault-exporter.cmd -transactionType=medicationscheme -patients=patient_template -actor=gp_van_Doe -exportDir="..\exe\exports" -validate=true -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -hub=VITALINK -searchType=LOCAL -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true -logCommunicationType=WITHOUT_SECURITY |
2 changes: 1 addition & 1 deletion
2
builder/src/main/resources-filtered/delivery_output/exe/start EVS.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../system/vault-uploader.cmd -rootDir="..\exe\interaction" -writeAsIs=false -exportAfterUpload=true -validateExportAfterUpload=false -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -startTransactonId=100 -shiftAction=no_tag_and_no_shift -hub=VITALINK -searchType=LOCAL -autoGenerateMSTransactionAuthor=true -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true | ||
../system/vault-uploader.cmd -rootDir="..\exe\interaction" -writeAsIs=false -exportAfterUpload=true -validateExportAfterUpload=false -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -startTransactonId=100 -shiftAction=no_tag_and_no_shift -hub=VITALINK -searchType=LOCAL -autoGenerateMSTransactionAuthor=true -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true -logCommunicationType=WITHOUT_SECURITY |
2 changes: 1 addition & 1 deletion
2
builder/src/main/resources-filtered/delivery_output/exe/start EVS.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
cd "$(dirname "$0")" | ||
../system/vault-uploader.sh -rootDir="../exe/interaction/" -writeAsIs=false -exportAfterUpload=false -validateExportAfterUpload=false -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -startTransactonId=100 -shiftAction=no_tag_and_no_shift -hub=VITALINK -searchType=LOCAL -autoGenerateMSTransactionAuthor=true -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true | ||
../system/vault-uploader.sh -rootDir="../exe/interaction/" -writeAsIs=false -exportAfterUpload=false -validateExportAfterUpload=false -generateGlobalMedicationScheme=true -generateDailyMedicationScheme=false -generateSumehrOverview=true -generateGatewayMedicationScheme=true -startTransactonId=100 -shiftAction=no_tag_and_no_shift -hub=VITALINK -searchType=LOCAL -autoGenerateMSTransactionAuthor=true -generateDiaryNoteVisualization=true -generateVaccinationVisualization=true -generateChildPreventionVisualization=true -generatePopulationBasedScreeningVisualization=true -logCommunicationType=WITHOUT_SECURITY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
core/src/main/java/org/imec/ivlab/core/jcommander/LogCommunicationTypeConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.imec.ivlab.core.jcommander; | ||
|
||
import com.beust.jcommander.IStringConverter; | ||
import org.imec.ivlab.core.model.hub.Hub; | ||
import org.imec.ivlab.core.model.hub.LogCommunicationType; | ||
|
||
|
||
public class LogCommunicationTypeConverter implements IStringConverter<LogCommunicationType> | ||
{ | ||
//@Override | ||
public LogCommunicationType convert(String logCommunicationType) { | ||
|
||
return LogCommunicationType.valueOf(logCommunicationType); | ||
|
||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
core/src/main/java/org/imec/ivlab/core/model/hub/LogCommunicationType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.imec.ivlab.core.model.hub; | ||
|
||
public enum LogCommunicationType { | ||
|
||
WITHOUT_SECURITY, WITH_SECURITY, ALL; | ||
|
||
public static LogCommunicationType fromValue(String input) { | ||
for (LogCommunicationType logCommunicationType : values()) { | ||
if (logCommunicationType.name().equalsIgnoreCase(input)) { | ||
return logCommunicationType; | ||
} | ||
} | ||
|
||
throw new IllegalArgumentException("Invalid LogCommunicationType value: " + input); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.