Class PrescriberIntegrationModuleDevV4Impl
- java.lang.Object
-
- be.business.connector.common.module.AbstractIntegrationModule
-
- be.business.connector.recipe.prescriber.AbstractPrescriberIntegrationModule
-
- be.business.connector.recipe.prescriber.PrescriberIntegrationModuleDevV4Impl
-
- 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>
- Direct Known Subclasses:
PrescriberIntegrationModuleV4Mock
public class PrescriberIntegrationModuleDevV4Impl extends AbstractPrescriberIntegrationModule implements PrescriberIntegrationModuleDevV4
The Class PrescriberIntegrationModuleDevV4Impl.
-
-
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 PrescriberIntegrationModuleDevV4Impl()Instantiates a new prescriber integration module V 4 impl. @ the integration module exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreatePrescription(boolean feedbackRequested, String patientId, byte[] prescription, String prescriptionType)StringcreatePrescription(boolean feedbackRequested, String patientId, byte[] prescription, String prescriptionType, String visi, be.recipe.api.prescriber.VisionOtherPrescribers visionOtherPrescribers, String expirationDate)StringcreatePrescription(boolean feedbackRequested, String patientId, byte[] prescription, String prescriptionType, String visi, String expirationDate)Creates the prescription.List<CreatePrescriptionDTO>createPrescriptions(List<CreatePrescriptionDTO> dtos)GetPrescriptionStatusResultgetData(GetPrescriptionStatusParam param)Gets the prescription status.ListOpenRidsResultgetData(ListOpenRidsParam param)Gets the open prescription list.ListRidsHistoryResultgetData(ListRidsHistoryParam param)Lists the prescription history.ValidationPropertiesResultgetData(ValidationPropertiesParam param)Gets the validation properties.protected GetPrescriptionStatusgetGetPrescriptionStatus(GetPrescriptionStatusParam param)Gets the gets the prescription status request.protected ListOpenRidsgetListOpenRids(ListOpenRidsParam param)Gets the list open prescriptions request.GetPrescriptionForPrescriberResultgetPrescription(String rid)Gets the prescription.protected ValidationPropertiesgetValidationProperties(ValidationPropertiesParam param)Gets the validation properties request.List<ListFeedbackItem>listFeedback(boolean readFlag)voidprepareCreatePrescription(String patientId)Prepare create prescription.PutVisionResultputData(PutVisionParam param)Put the vision.protected PutVisionputVisionRequest(PutVisionParam putVisionParam)Put vision request.voidrevokePrescription(String rid, String reason)Cancel prescription.voidsendNotification(byte[] notificationText, String patientId, String executorId)voidsendNotification(byte[] notificationText, String patientId, String executorId, String hospitalId)Address prescription.protected voidstorePropertiesVersionToDisk(String serverPropertiesVersion)voidupdateFeedbackFlag(String rid, boolean feedbackAllowed)Update feedback flag.-
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, setPersonalPassword, 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, init, initEncryption, sealRequest, setDataUnsealer, setOldDataSealer, setOldDataUnsealer, unsealForUnknown, unsealNotif, unsealNotiffeed, unsealNotifOld, unsealPrescriptionForUnknown, unsealRequest, unsealWithSymKey, unsealWithSymKey
-
-
-
-
Method Detail
-
createPrescription
public String createPrescription(boolean feedbackRequested, String patientId, byte[] prescription, String prescriptionType)
- Specified by:
createPrescriptionin interfacePrescriberIntegrationModuleV4- Parameters:
feedbackRequested- the feedbackRequestedpatientId- the patientIdprescription- the prescriptionprescriptionType- the prescriptionType- Returns:
- the prescription
-
createPrescription
public String createPrescription(boolean feedbackRequested, String patientId, byte[] prescription, String prescriptionType, String visi, String expirationDate)
Description copied from interface:PrescriberIntegrationModuleDevV4Creates the prescription.- Specified by:
createPrescriptionin interfacePrescriberIntegrationModuleDevV4- Specified by:
createPrescriptionin interfacePrescriberIntegrationModuleV4- Parameters:
feedbackRequested- the feedback requestedpatientId- the patient idprescription- the prescriptionprescriptionType- the prescription typevisi- the visibilityexpirationDate- the expiration date- Returns:
- the rid @ the integration module exception
-
createPrescription
public String createPrescription(boolean feedbackRequested, String patientId, byte[] prescription, String prescriptionType, String visi, be.recipe.api.prescriber.VisionOtherPrescribers visionOtherPrescribers, String expirationDate)
- Specified by:
createPrescriptionin interfacePrescriberIntegrationModuleV4
-
prepareCreatePrescription
public void prepareCreatePrescription(String patientId)
Prepare create prescription.- Specified by:
prepareCreatePrescriptionin interfacePrescriberIntegrationModuleV4- Parameters:
patientId- the patient id
-
getPrescription
public GetPrescriptionForPrescriberResult getPrescription(String rid)
Gets the prescription.- Specified by:
getPrescriptionin interfacePrescriberIntegrationModuleV4- Parameters:
rid- the rid- Returns:
- the prescription @ the integration module exception
-
revokePrescription
public void revokePrescription(String rid, String reason)
Cancel prescription.- Specified by:
revokePrescriptionin interfacePrescriberIntegrationModuleV4- Parameters:
rid- the ridreason- the reason @ the integration module exception
-
sendNotification
public void sendNotification(byte[] notificationText, String patientId, String executorId)- Specified by:
sendNotificationin interfacePrescriberIntegrationModuleV4
-
sendNotification
public void sendNotification(byte[] notificationText, String patientId, String executorId, String hospitalId)Address prescription.- Specified by:
sendNotificationin interfacePrescriberIntegrationModuleV4- Parameters:
notificationText- the notification textpatientId- the patient idexecutorId- the executor id @ the integration module exception
-
updateFeedbackFlag
public void updateFeedbackFlag(String rid, boolean feedbackAllowed)
Update feedback flag.- Specified by:
updateFeedbackFlagin interfacePrescriberIntegrationModuleV4- Parameters:
rid- the ridfeedbackAllowed- the feedback allowed @ the integration module exception
-
listFeedback
public List<ListFeedbackItem> listFeedback(boolean readFlag)
- Specified by:
listFeedbackin interfacePrescriberIntegrationModuleV4- Parameters:
readFlag- the readFlag- Returns:
- the feedback items
-
getData
public ValidationPropertiesResult getData(ValidationPropertiesParam param)
Gets the validation properties.- Specified by:
getDatain interfacePrescriberIntegrationModuleDevV4- Specified by:
getDatain interfacePrescriberIntegrationModuleV4- Parameters:
param- theValidationPropertiesParam- Returns:
- the
ValidationPropertiesResult@ the integration module exception
-
getValidationProperties
protected ValidationProperties getValidationProperties(ValidationPropertiesParam param)
Gets the validation properties request.- Parameters:
param- the data- Returns:
- the validation properties request @ the integration module exception
-
storePropertiesVersionToDisk
protected void storePropertiesVersionToDisk(String serverPropertiesVersion)
-
getData
public GetPrescriptionStatusResult getData(GetPrescriptionStatusParam param)
Gets the prescription status.- Specified by:
getDatain interfacePrescriberIntegrationModuleDevV4- Specified by:
getDatain interfacePrescriberIntegrationModuleV4- Parameters:
param- theGetPrescriptionStatusParam- Returns:
- the
GetPrescriptionStatusResult@ the integration module exception
-
getGetPrescriptionStatus
protected GetPrescriptionStatus getGetPrescriptionStatus(GetPrescriptionStatusParam param)
Gets the gets the prescription status request.- Parameters:
param- the data- Returns:
- the gets the prescription status request @ the integration module exception
-
getData
public ListRidsHistoryResult getData(ListRidsHistoryParam param)
Lists the prescription history.- Specified by:
getDatain interfacePrescriberIntegrationModuleDevV4- Specified by:
getDatain interfacePrescriberIntegrationModuleV4- Parameters:
param- theListPrescriptionHistoryParam- Returns:
- the
ListPrescriptionHistoryResult@ the integration module exception
-
putData
public PutVisionResult putData(PutVisionParam param)
Put the vision.- Specified by:
putDatain interfacePrescriberIntegrationModuleDevV4- Specified by:
putDatain interfacePrescriberIntegrationModuleV4- Parameters:
param- PutVisionForPrescriberParam- Returns:
- the PutVisionForPrescriberResult
-
putVisionRequest
protected PutVision putVisionRequest(PutVisionParam putVisionParam)
Put vision request.- Parameters:
putVisionParam- the put vision param- Returns:
- the put data @ the integration module exception
-
getData
public ListOpenRidsResult getData(ListOpenRidsParam param)
Gets the open prescription list.- Specified by:
getDatain interfacePrescriberIntegrationModuleDevV4- Specified by:
getDatain interfacePrescriberIntegrationModuleV4- Parameters:
param- theListOpenRidsParam- Returns:
- the
ListOpenRidsResult@ the integration module exception
-
getListOpenRids
protected ListOpenRids getListOpenRids(ListOpenRidsParam param)
Gets the list open prescriptions request.- Parameters:
param- the data- Returns:
- the list open prescriptions request @ the integration module exception
-
createPrescriptions
public List<CreatePrescriptionDTO> createPrescriptions(List<CreatePrescriptionDTO> dtos)
- Specified by:
createPrescriptionsin interfacePrescriberIntegrationModuleV4- Parameters:
dtos- the create prescripion dto's- Returns:
- the create prescription dto's
-
-