Class PrescriberIntegrationModuleV4Mock
- java.lang.Object
-
- be.business.connector.common.module.AbstractIntegrationModule
-
- be.business.connector.recipe.prescriber.AbstractPrescriberIntegrationModule
-
- be.business.connector.recipe.prescriber.PrescriberIntegrationModuleDevV4Impl
-
- be.business.connector.recipe.prescriber.mock.PrescriberIntegrationModuleV4Mock
-
- All Implemented Interfaces:
PrescriberIntegrationModuleDevV4,PrescriberIntegrationModuleV4,be.recipe.api.prescriber.GetPrescription.Command<be.recipe.api.prescriber.GetPrescription,be.recipe.api.Prescription.PlainText>,be.recipe.api.prescriber.ListPrescriptions.Command<be.recipe.api.prescriber.ListPrescriptions,be.recipe.api.prescriber.ListPrescriptions.Response.PlainText>,be.recipe.api.prescriber.PutVisionOtherPrescribers.Command<be.recipe.api.prescriber.PutVisionOtherPrescribers>
public class PrescriberIntegrationModuleV4Mock extends PrescriberIntegrationModuleDevV4Impl implements PrescriberIntegrationModuleDevV4
The Class SealedPrescriberServicesClient.
-
-
Field Summary
-
Fields inherited from class be.business.connector.recipe.prescriber.AbstractPrescriberIntegrationModule
keyCache, kgssService, prescriptionContentFactory, target
-
Fields inherited from class be.business.connector.common.module.AbstractIntegrationModule
dataUnsealer, EHEALTH_SUCCESS_CODE_100, EHEALTH_SUCCESS_CODE_200, EHEALTH_SUCCESS_CODE_300, EHEALTH_SUCCESS_CODE_400, EHEALTH_SUCCESS_CODE_500
-
-
Constructor Summary
Constructors Constructor Description PrescriberIntegrationModuleV4Mock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreatePrescription(boolean feedbackRequested, String patientId, byte[] prescription, String prescriptionType)GetPrescriptionStatusResultgetData(GetPrescriptionStatusParam request)Gets the prescription status.ListRidsHistoryResultgetData(ListRidsHistoryParam request)Lists the prescription history.GetPrescriptionForPrescriberResultgetPrescription(String rid)Gets the prescription.protected voidinit()List<ListFeedbackItem>listFeedback(boolean readFlag)voidprepareCreatePrescription(String patientId)Prepare create prescription.PutVisionResultputData(PutVisionParam request)Put the vision.voidrevokePrescription(String rid, String reason)Cancel prescription.voidsendNotification(byte[] notificationText, String patientId, String executorId)voidsetPersonalPassword(String personalPassword)Sets the personal password.voidupdateFeedbackFlag(String rid, boolean feedbackAllowed)Update feedback flag.-
Methods inherited from class be.business.connector.recipe.prescriber.PrescriberIntegrationModuleDevV4Impl
createPrescription, createPrescription, createPrescriptions, getData, getData, getGetPrescriptionStatus, getListOpenRids, getValidationProperties, putVisionRequest, sendNotification, storePropertiesVersionToDisk
-
Methods inherited from class be.business.connector.recipe.prescriber.AbstractPrescriberIntegrationModule
checkStatus, checkStatus, createIdentifierType, createSecuredContentType, get, getKmehrHelper, getNewKey, getNewKeyFromKgss, getSealedData, getSealedData, getSealedData, getSealedData, getSealedData, list, sealNotification, sealPrescriptionForUnknown, unsealFeedback, update, validateCreatePrescriptionDTOs, validateKmehr
-
Methods inherited from class be.business.connector.common.module.AbstractIntegrationModule
buildDefaultPage, extractExpirationDateFromKmehr, extractReferenceSourceVersionFromKmehr, getArchivedFilePath, getArchivedPrescription, getCurrentXMLGregorianCalendar, getEncryptionUtils, getEtkHelper, getId, getJaxContextCentralizer, getKeyFromKgss, getKeyFromKgss, getOldDataSealer, getOldDataUnsealer, getPropertyHandler, getSymmKey, initEncryption, sealRequest, setDataUnsealer, setOldDataSealer, setOldDataUnsealer, unsealForUnknown, unsealNotif, unsealNotiffeed, unsealNotifOld, unsealPrescriptionForUnknown, unsealRequest, unsealWithSymKey, unsealWithSymKey
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface be.business.connector.recipe.prescriber.PrescriberIntegrationModuleDevV4
createPrescription, getData, getData
-
Methods inherited from interface be.business.connector.recipe.prescriber.PrescriberIntegrationModuleV4
createPrescription, createPrescriptions, sendNotification
-
-
-
-
Method Detail
-
init
protected void init()
- Overrides:
initin classAbstractIntegrationModule
-
createPrescription
public String createPrescription(boolean feedbackRequested, String patientId, byte[] prescription, String prescriptionType)
- Specified by:
createPrescriptionin interfacePrescriberIntegrationModuleV4- Overrides:
createPrescriptionin classPrescriberIntegrationModuleDevV4Impl- Parameters:
feedbackRequested- the feedbackRequestedpatientId- the patientIdprescription- the prescriptionprescriptionType- the prescriptionType- Returns:
- the prescription
-
getPrescription
public GetPrescriptionForPrescriberResult getPrescription(String rid)
Gets the prescription.- Specified by:
getPrescriptionin interfacePrescriberIntegrationModuleV4- Overrides:
getPrescriptionin classPrescriberIntegrationModuleDevV4Impl- Parameters:
rid- the rid- Returns:
- the prescription @ the integration module exception
-
listFeedback
public List<ListFeedbackItem> listFeedback(boolean readFlag)
- Specified by:
listFeedbackin interfacePrescriberIntegrationModuleV4- Overrides:
listFeedbackin classPrescriberIntegrationModuleDevV4Impl- Parameters:
readFlag- the readFlag- Returns:
- the feedback items
-
prepareCreatePrescription
public void prepareCreatePrescription(String patientId)
Prepare create prescription.- Specified by:
prepareCreatePrescriptionin interfacePrescriberIntegrationModuleV4- Overrides:
prepareCreatePrescriptionin classPrescriberIntegrationModuleDevV4Impl- Parameters:
patientId- the patient id
-
revokePrescription
public void revokePrescription(String rid, String reason)
Cancel prescription.- Specified by:
revokePrescriptionin interfacePrescriberIntegrationModuleV4- Overrides:
revokePrescriptionin classPrescriberIntegrationModuleDevV4Impl- Parameters:
rid- the ridreason- the reason @ the integration module exception
-
sendNotification
public void sendNotification(byte[] notificationText, String patientId, String executorId)- Specified by:
sendNotificationin interfacePrescriberIntegrationModuleV4- Overrides:
sendNotificationin classPrescriberIntegrationModuleDevV4Impl
-
updateFeedbackFlag
public void updateFeedbackFlag(String rid, boolean feedbackAllowed)
Update feedback flag.- Specified by:
updateFeedbackFlagin interfacePrescriberIntegrationModuleV4- Overrides:
updateFeedbackFlagin classPrescriberIntegrationModuleDevV4Impl- Parameters:
rid- the ridfeedbackAllowed- the feedback allowed @ the integration module exception
-
setPersonalPassword
public void setPersonalPassword(String personalPassword)
Sets the personal password.- Overrides:
setPersonalPasswordin classAbstractPrescriberIntegrationModule- Parameters:
personalPassword- the new personal password @ the integration module exception
-
getData
public GetPrescriptionStatusResult getData(GetPrescriptionStatusParam request)
Gets the prescription status.- Specified by:
getDatain interfacePrescriberIntegrationModuleDevV4- Specified by:
getDatain interfacePrescriberIntegrationModuleV4- Overrides:
getDatain classPrescriberIntegrationModuleDevV4Impl- Parameters:
request- theGetPrescriptionStatusParam- Returns:
- the
GetPrescriptionStatusResult@ the integration module exception
-
getData
public ListRidsHistoryResult getData(ListRidsHistoryParam request)
Lists the prescription history.- Specified by:
getDatain interfacePrescriberIntegrationModuleDevV4- Specified by:
getDatain interfacePrescriberIntegrationModuleV4- Overrides:
getDatain classPrescriberIntegrationModuleDevV4Impl- Parameters:
request- theListPrescriptionHistoryParam- Returns:
- the
ListPrescriptionHistoryResult@ the integration module exception
-
putData
public PutVisionResult putData(PutVisionParam request)
Put the vision.- Specified by:
putDatain interfacePrescriberIntegrationModuleDevV4- Specified by:
putDatain interfacePrescriberIntegrationModuleV4- Overrides:
putDatain classPrescriberIntegrationModuleDevV4Impl- Parameters:
request- PutVisionForPrescriberParam- Returns:
- the PutVisionForPrescriberResult
-
-