String gender = pid.getAdministrativeSex().getValue(); if (gender == null) { throw new HL7Exception("Missing gender in the PID segment");
String gender = pid.getAdministrativeSex().getValue(); if (gender == null) { throw new HL7Exception("Missing gender in the PID segment");