All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.projecthusky.communication.mpi.impl.pdq.V3PdqContinuationQuery Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
/*
 * This code is made available under the terms of the Eclipse Public License v1.0 
 * in the github project https://github.com/project-husky/husky there you also 
 * find a list of the contributors and the license information.
 * 
 * This project has been developed further and modified by the joined working group Husky 
 * on the basis of the eHealth Connector opensource project from June 28, 2021, 
 * whereas medshare GmbH is the initial and main contributor/author of the eHealth Connector.
 *
 */
package org.projecthusky.communication.mpi.impl.pdq;

import org.projecthusky.communication.utils.PixPdqV3Utils;

/**
 * @author Anthony Larocca
 *
 */
public class V3PdqContinuationQuery extends V3PdqContinuationBase {

	/**
	 * Create a Continuation Query with the provided sender, receiver, original query and number of results to return.
	 * 
	 * @param senderApplicationOID
	 *            (Sender Device ID)
	 * @param senderFacilityOID
	 *            (Sender Organization ID)
	 * @param receiverApplicationOID
	 *            (Receiver Device ID)
	 * @param receiverFacilityOID
	 *            (Receiver Organization ID)
	 * @param v3pdqresponse
	 *            (The original V3 PDQ Response)
	 * @param quantityLimit
	 *            (The maximum number of results to return in this continuation
	 */
	public V3PdqContinuationQuery(String senderApplicationOID, String senderFacilityOID, String receiverApplicationOID,
			String receiverFacilityOID, V3PdqConsumerResponse v3pdqresponse, int quantityLimit) {

		// set everything up
		super(senderApplicationOID, senderFacilityOID, receiverApplicationOID, receiverFacilityOID, v3pdqresponse);

		// set the status code
		queryContinuation.setStatusCode(PixPdqV3Utils.createCS("waitContinuedQueryResponse"));

		// set the quantity to return
		queryContinuation.setContinuationQuantity(PixPdqV3Utils.createINT1(quantityLimit));

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy