diff --git a/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/custom/MapLocalObservationCodes.java b/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/custom/MapLocalObservationCodes.java index 52b12c272..3c9bd70e4 100644 --- a/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/custom/MapLocalObservationCodes.java +++ b/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/custom/MapLocalObservationCodes.java @@ -61,7 +61,11 @@ private void processCoding( IdentifierCode identifier = codingMap.get(originalCoding.getCode()); if (identifier == null) { - logUnmappedLocalCode(originalCoding, msh41Identifier, messageId); + logger.logWarning( + "Unmapped local code detected: '{}', from sender: '{}', message Id: '{}'", + originalCoding.getCode(), + msh41Identifier, + messageId); return; } @@ -76,15 +80,6 @@ private String validateField(String field, String fieldName) { return field; } - private void logUnmappedLocalCode(Coding coding, String msh41Identifier, String messageId) { - - logger.logWarning( - "Unmapped local code detected: '{}', from sender: '{}', message Id: '{}'", - coding.getCode(), - msh41Identifier, - messageId); - } - private Coding getMappedCoding(IdentifierCode identifierCode) { var mappedCoding = new Coding(