HL7PRPA201306Transforms { public static PRPAIN201306UV02MFMIMT700711UV01ControlActProcess createQUQIMT021001UV01ControlActProcess( PRPAMT201301UV02Patient patient, String localDeviceId, PRPAIN201305UV02 query, String aaId, String orgId) { PRPAIN201306UV02MFMIMT700711UV01ControlActProcess controlActProcess = new PRPAIN201306UV02MFMIMT700711UV01ControlActProcess(); controlActProcess.setMoodCode(XActMoodIntentEvent.EVN); controlActProcess.setClassCode(ActClassControlAct.CACT); controlActProcess .setCode(HL7DataTransformHelper.CDFactory("PRPA_TE201306UV02", HL7Constants.INTERACTION_ID_ROOT)); if (patient != null && NullChecker.isNotNullish(patient.getId()) && patient.getId().get(0) != null && NullChecker.isNotNullish(patient.getId().get(0).getExtension()) && NullChecker.isNotNullish(patient.getId().get(0).getRoot())) { LOG.trace("Add the Subject"); controlActProcess.getSubject().add(createSubject(patient, query, patient.getId().get(0).getExtension(), patient.getId().get(0).getRoot(), orgId)); } LOG.trace("Add the Query Ack"); controlActProcess.setQueryAck(createQueryAck(query)); if (query.getControlActProcess() != null && query.getControlActProcess().getQueryByParameter() != null && query.getControlActProcess().getQueryByParameter().getValue() != null) { LOG.trace("Add Query By Parameter"); controlActProcess.setQueryByParameter(query.getControlActProcess().getQueryByParameter()); } return controlActProcess; }  static PRPAIN201306UV02 createPRPA201306(PRPAMT201301UV02Patient patient, String senderOID,
        String receiverAAID, String receiverOID, String localDeviceId, PRPAIN201305UV02 query); PRPAIN201306UV02 createPRPA201306ForPatientNotFound(PRPAIN201305UV02 oRequest); PRPAIN201306UV02 createPRPA201306ForErrors(PRPAIN201305UV02 oRequest, String sErrorCode); PRPAIN201306UV02 createPRPA201306ForErrors(PRPAIN201305UV02 oRequest, String sErrorCode, String sErrorText); static PRPAIN201306UV02MFMIMT700711UV01ControlActProcess createQUQIMT021001UV01ControlActProcess(
        PRPAMT201301UV02Patient patient, String localDeviceId, PRPAIN201305UV02 query, String aaId, String orgId); static PRPAIN201306UV02MFMIMT700711UV01ControlActProcess createQUQIMT021001UV01ControlActProcessWithNoRegistrationEvent(
        PRPAIN201305UV02 query); static MFMIMT700711UV01QueryAck createQueryAck(PRPAIN201305UV02 query); static PRPAIN201306UV02MFMIMT700711UV01Subject2 createSubject2(PRPAMT201301UV02Patient patient,
        PRPAIN201305UV02 query, String patId, String orgId);  }
@Test public void createQUQIMT021001UV01ControlActProcess() { PRPAIN201306UV02MFMIMT700711UV01ControlActProcess result; PRPAMT201301UV02Patient patient = null; String localDeviceId = "1.1"; String aaId = "1.1"; String orgId = "2.2"; PRPAIN201305UV02 query = new PRPAIN201305UV02(); HL7PRPA201306Transforms transforms = new HL7PRPA201306Transforms(); result = transforms.createQUQIMT021001UV01ControlActProcess(patient, localDeviceId, query, aaId, orgId); assertNull(result.getQueryByParameter()); assertTrue(result.getSubject().isEmpty()); }