/**
 * 
 */


package gov.va.med.cds;


import gov.va.med.cds.client.ClinicalDataServiceInterface;
import gov.va.med.cds.exception.ErrorCodeEnum;
import gov.va.med.cds.request.RequestProcessingException;


/**
 * @author vhaislegberb
 *
 */
public class ClinicalDataServiceSynchronousNoOp
    implements
        ClinicalDataServiceInterface
{

    /* (non-Javadoc)
     * @see gov.va.med.cds.client.ClinicalDataServiceInterface#isAlive()
     */
    @Override
    public boolean isAlive( )
    {
        return false;
    }


    /* (non-Javadoc)
     * @see gov.va.med.cds.client.ClinicalDataServiceInterface#readClinicalData(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
     */
    @Override
    public String readClinicalData( String templateId, String filterRequest, String filterId, String requestId )
    {
        throw new RequestProcessingException( ErrorCodeEnum.CDS_2X_SERVICE_FAILURE, "CDS 2x Service failure", "CDS 2x Service failure" );
    }


    /* (non-Javadoc)
     * @see gov.va.med.cds.client.ClinicalDataServiceInterface#readClinicalData(java.lang.String, java.lang.String, java.lang.String)
     */
    @Override
    public String readClinicalData( String templateId, String filterId, String requestId )
    {
        throw new RequestProcessingException( ErrorCodeEnum.CDS_2X_SERVICE_FAILURE, "CDS 2x Service failure", "CDS 2x Service failure" );
    }


    /* (non-Javadoc)
     * @see gov.va.med.cds.client.ClinicalDataServiceInterface#createClinicalData(java.lang.String, java.lang.String, java.lang.String)
     */
    @Override
    public String createClinicalData( String createRequest, String templateId, String requestId )
    {
        throw new RequestProcessingException( ErrorCodeEnum.CDS_2X_SERVICE_FAILURE, "CDS 2x Service failure", "CDS 2x Service failure" );
    }


    @Override
    public String createClinicalData( String createRequest, String templateId, String requestId, boolean auditVhimRequest )
    {
        throw new RequestProcessingException( ErrorCodeEnum.CDS_2X_SERVICE_FAILURE, "CDS 2x Service failure", "CDS 2x Service failure" );
    }


    /* (non-Javadoc)
     * @see gov.va.med.cds.client.ClinicalDataServiceInterface#updateClinicalData(java.lang.String, java.lang.String, java.lang.String)
     */
    @Override
    public String updateClinicalData( String updateRequest, String templateId, String requestId )
    {
        throw new RequestProcessingException( ErrorCodeEnum.CDS_2X_SERVICE_FAILURE, "CDS 2x Service failure", "CDS 2x Service failure" );
    }


    /* (non-Javadoc)
     * @see gov.va.med.cds.client.ClinicalDataServiceInterface#deleteClinicalData(java.lang.String, java.lang.String, java.lang.String)
     */
    @Override
    public String deleteClinicalData( String deleteRequest, String templateId, String requestId )
    {
        throw new RequestProcessingException( ErrorCodeEnum.CDS_2X_SERVICE_FAILURE, "CDS 2x Service failure", "CDS 2x Service failure" );
    }


    /* (non-Javadoc)
     * @see gov.va.med.cds.client.ClinicalDataServiceInterface#appendClinicalData(java.lang.String, java.lang.String, java.lang.String)
     */
    @Override
    public String appendClinicalData( String appendRequest, String templateId, String requestId )
    {
        throw new RequestProcessingException( ErrorCodeEnum.CDS_2X_SERVICE_FAILURE, "CDS 2x Service failure", "CDS 2x Service failure" );
    }

}
