be.ehealth.businessconnector.recipe.utils
Class RecipeCommonsUtil

java.lang.Object
  extended by be.ehealth.businessconnector.recipe.utils.RecipeCommonsUtil

Deprecated.

@Deprecated
public final class RecipeCommonsUtil
extends Object

Utility class containing common service implementations (session & service packages) This class is supposed to be used in service implementations only


Method Summary
static String createPrescription(BuilderFactory builders, PrescriberService service, boolean feedbackRequested, long patientId, byte[] prescription, String prescriptionType)
          Deprecated. Creates the prescription.
static GetPrescriptionForPrescriberResult getPrescription(BuilderFactory builders, PrescriberService service, String rid)
          Deprecated. Gets the prescription.
static List<ListFeedbackItem> listFeedback(BuilderFactory builders, PrescriberService service, boolean readFlag)
          Deprecated. List feedback.
static List<String> listOpenPrescription(BuilderFactory builders, PrescriberService service)
          Deprecated. List open prescription.
static void prepareCreatePrescription(long patientId, String prescriptionType)
          Deprecated. Prepare create prescription.
static void revokePrescription(BuilderFactory builders, PrescriberService service, String rid, String reason)
          Deprecated. Revoke prescription.
static void sendNotification(BuilderFactory builders, PrescriberService service, byte[] notificationText, long patientId, long executorId)
          Deprecated. Send notification.
static void updateFeedbackFlag(BuilderFactory builders, PrescriberService service, String rid, boolean feedbackAllowed)
          Deprecated. Update feedback flag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

prepareCreatePrescription

public static void prepareCreatePrescription(long patientId,
                                             String prescriptionType)
                                      throws TechnicalConnectorException,
                                             SessionManagementException,
                                             RecipeBusinessConnectorException
Deprecated. 
Prepare create prescription.

Parameters:
patientId - the patient id
prescriptionType - the prescription type
Throws:
TechnicalConnectorException
SessionManagementException
RecipeBusinessConnectorException

createPrescription

public static String createPrescription(BuilderFactory builders,
                                        PrescriberService service,
                                        boolean feedbackRequested,
                                        long patientId,
                                        byte[] prescription,
                                        String prescriptionType)
                                 throws RecipeBusinessConnectorException,
                                        TechnicalConnectorException
Deprecated. 
Creates the prescription.

Parameters:
builders - the builder factory
service - the service which will create the prescription
feedbackRequested - the feedback requested
patientId - the patient id
prescription - the prescription
prescriptionType - the prescription type
Returns:
the string prescription
Throws:
RecipeBusinessConnectorException
TechnicalConnectorException

sendNotification

public static void sendNotification(BuilderFactory builders,
                                    PrescriberService service,
                                    byte[] notificationText,
                                    long patientId,
                                    long executorId)
                             throws TechnicalConnectorException,
                                    SessionManagementException
Deprecated. 
Send notification.

Parameters:
builders - the builder factory
service - the service which will create the prescription
notificationText - the notification text
patientId - the patient id
executorId - the executor id
Throws:
TechnicalConnectorException
SessionManagementException

revokePrescription

public static void revokePrescription(BuilderFactory builders,
                                      PrescriberService service,
                                      String rid,
                                      String reason)
                               throws RecipeBusinessConnectorException,
                                      TechnicalConnectorException
Deprecated. 
Revoke prescription.

Parameters:
builders - the builder factory
service - the service which will create the prescription
rid - the rid
reason - the reason for revoking the prescription
Throws:
RecipeBusinessConnectorException
TechnicalConnectorException

getPrescription

public static GetPrescriptionForPrescriberResult getPrescription(BuilderFactory builders,
                                                                 PrescriberService service,
                                                                 String rid)
                                                          throws TechnicalConnectorException,
                                                                 SessionManagementException
Deprecated. 
Gets the prescription.

Parameters:
builders - the builder factory
service - the service which will create the prescription
rid - the rid
Returns:
the prescription
Throws:
TechnicalConnectorException
SessionManagementException

listOpenPrescription

public static List<String> listOpenPrescription(BuilderFactory builders,
                                                PrescriberService service)
                                         throws TechnicalConnectorException,
                                                SessionManagementException
Deprecated. 
List open prescription.

Parameters:
builders - the builder factory
service - the service which will create the prescription
Returns:
the prescriptions list
Throws:
TechnicalConnectorException
SessionManagementException

updateFeedbackFlag

public static void updateFeedbackFlag(BuilderFactory builders,
                                      PrescriberService service,
                                      String rid,
                                      boolean feedbackAllowed)
                               throws TechnicalConnectorException,
                                      SessionManagementException
Deprecated. 
Update feedback flag.

Parameters:
builders - the builder factory
service - the service which will create the prescription
rid - the rid
feedbackAllowed - the feedback allowed
Throws:
TechnicalConnectorException
SessionManagementException

listFeedback

public static List<ListFeedbackItem> listFeedback(BuilderFactory builders,
                                                  PrescriberService service,
                                                  boolean readFlag)
                                           throws TechnicalConnectorException,
                                                  SessionManagementException,
                                                  RecipeBusinessConnectorException
Deprecated. 
List feedback.

Parameters:
builders - the builder factory
service - the service which will create the prescription
readFlag -
Returns:
the list of feedbacks
Throws:
TechnicalConnectorException
SessionManagementException
RecipeBusinessConnectorException



Connector Packaging PERSPHYSICIAN 3.10.2 API
Copyright © {inceptionYear}-2016 eHealth. All Rights Reserved.