PRPAIN201305UV02Parser { public static String getQueryId(PRPAIN201305UV02 request) { String oid = null; if (request != null && request.getControlActProcess() != null && request.getControlActProcess().getQueryByParameter() != null && request.getControlActProcess().getQueryByParameter().getValue() != null && request.getControlActProcess().getQueryByParameter().getValue().getQueryId() != null) { oid = request.getControlActProcess().getQueryByParameter().getValue().getQueryId().getExtension(); } return oid; }  static II getPatientId(PRPAIN201305UV02 request); static String getQueryId(PRPAIN201305UV02 request);  }
@Test public void testParticipantObjectId() { assertEquals("QueryId mismatch", "abd3453dcd24wkkks545", PRPAIN201305UV02Parser.getQueryId( TestPatientDiscoveryMessageHelper.createPRPAIN201305UV02Request("Gallow", "Younger", "M", "01-12-2967", "1.1", "D12345", "2.2", "abd3453dcd24wkkks545"))); }