XPN patientNameX = pid.getPatientName(0); if (patientNameX == null) { throw new HL7Exception("Missing patient name in the PID segment");
XPN patientNameX = pid.getPatientName(0); if (patientNameX == null) { throw new HL7Exception("Missing patient name in the PID segment");