Terser.set(mshOut, 7, 0, 1, 1, CommonTS.toHl7TSFormat(now));
Terser.set(mshOut, 9, 0, 1, 1, "ACK");
Terser.set(mshOut, 9, 0, 2, 1, Terser.get(mshIn, 9, 0, 2, 1));
String v = mshOut.getMessage().getVersion();
if (v != null) {
Version version = Version.versionOf(v);
if (version != null && !Version.V25.isGreaterThan(version)) {
Terser.set(mshOut, 9, 0, 3, 1, "ACK");
}
}
Terser.set(mshOut, 10, 0, 1, 1, mshIn.getMessage().getParser().getParserConfiguration().getIdGenerator().getID());