throw new HL7Exception("Can't find version ID - MSH.12 is " + fields[11], ErrorCode.REQUIRED_FIELD_MISSING); } else if (getParserConfiguration().isAllowUnknownVersions()) { return Version.highestAvailableVersionOrDefault().getVersion(); } else {
throw new HL7Exception("Can't find version ID - MSH.12 is " + fields[11], ErrorCode.REQUIRED_FIELD_MISSING); } else if (getParserConfiguration().isAllowUnknownVersions()) { return Version.highestAvailableVersionOrDefault().getVersion(); } else {
if (!getParserConfiguration().isAllowUnknownVersions()) { assertVersionExists(version);
if (!getParserConfiguration().isAllowUnknownVersions()) { assertVersionExists(version);