Code development platform for open source projects from the European Union institutions 🔵 EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content

Wrong originalText value for SMP Push audit message

During the autumn test event, we noticed that for the audit message of the SMP Push, the originalText attribute contains an unexpected value.

Can be seen in: [https://gazelle.ehdsi.eu/evs/report.seam?oid=1.3.6.1.4.1.12559.11.30.4.2710] {code:java} <EventID codeSystemName="EHDSI-194" csd-code="SMP" displayName="SMP::Push" originalText="Query"/> {code} This is not correct, since it is not at all a Query.

When looking in the code, we find that in the default case, always "Query" is put: {code:java} EventID eventID = new EventID(); if("ITI-39".equals(getMappedEventType(eventType))) { // TODO : extract it? if (ncpSide == NcpSide.NCP_A) { eventID.setCsdCode("110106"); eventID.setOriginalText("Export"); } else { eventID.setCsdCode("110107"); eventID.setOriginalText("Import"); } } else if("ITI-41".equals(getMappedEventType(eventType))) { if(ncpSide == NcpSide.NCP_A) { eventID.setCsdCode("110107"); eventID.setOriginalText("Import"); } else { eventID.setCsdCode("110106"); eventID.setOriginalText("Export"); } } else { eventID.setCsdCode("110112"); eventID.setOriginalText("Query"); // TODO : extract it? (getMappedTransactionName(transactionName)); } {code} (AuditTrailUtils.java)

Related with this, there is also the issue where the EventTypeCode contains no originalText attribute.