Class HospitalExecutorIntegrationModuleV4Impl
- java.lang.Object
-
- be.business.connector.common.module.AbstractIntegrationModule
-
- be.business.connector.recipe.executor.AbstractExecutorIntegrationModule
-
- be.business.connector.recipe.executor.AbstractExecutorIntegrationModuleV4
-
- be.business.connector.recipe.executor.HospitalExecutorIntegrationModuleV4Impl
-
- All Implemented Interfaces:
ExecutorIntegrationModuleV4,be.recipe.api.executor.ListMandatesByMandateHolder.Command<be.recipe.api.executor.ListMandatesByMandateHolder,be.recipe.api.executor.ListMandatesByMandateHolder.Response>
public class HospitalExecutorIntegrationModuleV4Impl extends AbstractExecutorIntegrationModuleV4
The Class HospitalExecutorIntegrationModuleV4Impl.
-
-
Field Summary
-
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 HospitalExecutorIntegrationModuleV4Impl()
-
Method Summary
-
Methods inherited from class be.business.connector.recipe.executor.AbstractExecutorIntegrationModuleV4
decryptListOpenPrescriptionsResult, decryptListOpenPrescriptionsResultWithExceptions, decryptListReservationsResult, decryptListReservationsResultWithExceptions, listMandates
-
Methods inherited from class be.business.connector.recipe.executor.AbstractExecutorIntegrationModule
checkResponseStatus, checkStatus, checkStatus, createGetPrescriptionForExecutorResult, createIdentifierType, createListNotificationItems, getKmehrHelper, getPrescriptionCache, getSealedCreateFeedbackParam, getSealedData, getSealedGetPrescriptionForExecutorParam, getSealedGetPrescriptionForExecutorParam, getSealedListNotificationsParam, getSealedMarkAsArchivedParam, getSealedMarkAsDeliveredParam, getSealedMarkAsUnDeliveredParam, getSealedRevokePrescriptionParam, readLastDateToDisk, sealForRecipe, writeLastDateToDisk, writeReservationsOnDisk
-
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
-
getData
public ListOpenPrescriptionsResult getData(ListOpenPrescriptionsParam param)
Gets theListOpenPrescriptionsResult.- Parameters:
param- theListOpenPrescriptionsParam- Returns:
- the
ListOpenPrescriptionsResult
-
getData
public GetPrescriptionStatusResult getData(GetPrescriptionStatusParam param)
Gets theGetPrescriptionStatusResult.- Parameters:
param- the gpsp- Returns:
- the
GetPrescriptionStatusResult
-
getData
public ListRidsHistoryResult getData(ListRidsHistoryParam param)
Gets theListRidsHistoryResult.- Parameters:
param- theListRidsHistoryParam- Returns:
- the
ListRidsHistoryResult
-
getPrescription
public GetPrescriptionForExecutorResult getPrescription(String rid)
Description copied from interface:ExecutorIntegrationModuleV4Gets a prescription.- Parameters:
rid- the rid- Returns:
- the
GetPrescriptionForExecutorResult
-
getPrescription
public GetPrescriptionForExecutorResult getPrescription(String rid, boolean skipInProcess)
-
getPrescription
public GetPrescriptionForExecutorResult getPrescription(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
-
getPrescription
public GetPrescriptionForExecutorResult getPrescription(String rid, String mandateHolderId, MandateHolderType mandateHolderType, boolean skipInProcess)
Gets the prescription.- Parameters:
rid- the ridmandateHolderId- the mandate holder idmandateHolderType- the mandate holder type- Returns:
- the prescription
-
createGetPrescriptionForExecutorResult
protected GetPrescriptionForExecutorResult createGetPrescriptionForExecutorResult(byte[] securedContent)
Creates the get prescription for executor result.- Parameters:
securedContent- the secured content- Returns:
- the be.business.connector.recipe.executor.domain. get prescription for executor result @ the integration module exception
-
decryptGetOpenPrescriptionForExecutor
public GetOpenPrescriptionForExecutor decryptGetOpenPrescriptionForExecutor(GetOpenPrescriptionForExecutor gopfe)
Decrypts aGetOpenPrescriptionForExecutor.- Specified by:
decryptGetOpenPrescriptionForExecutorin interfaceExecutorIntegrationModuleV4- Overrides:
decryptGetOpenPrescriptionForExecutorin classAbstractExecutorIntegrationModuleV4- Parameters:
gopfe- a theGetOpenPrescriptionForExecutor- Returns:
- a
GetOpenPrescriptionForExecutor
-
markAsArchived
public void markAsArchived(String rid)
Marks a rid as archived.- Parameters:
rid- the rid
-
markAsArchived
public void markAsArchived(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
Marks a rid as archived.- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
markAsDelivered
public void markAsDelivered(String rid)
Marks a rid as delivered.- Parameters:
rid- the rid
-
markAsDelivered
public void markAsDelivered(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
Marks a rid as delivered.- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
markAsUndelivered
public void markAsUndelivered(String rid)
Marks a rid as undelivered.- Parameters:
rid- the rid
-
markAsUndelivered
public void markAsUndelivered(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
Marks a rid as undelivered.- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
revokePrescription
public void revokePrescription(String rid, String reason)
Revokes a rid.- Parameters:
rid- the ridreason- the reason
-
revokePrescription
public void revokePrescription(String rid, String reason, String mandateHolderId, MandateHolderType mandateHolderType)
Revoke prescription.- Parameters:
rid- the ridreason- the reasonmandateHolderId- the mandate holder idmandateHolderType- the mandate holder type
-
listNotifications
public List<ListNotificationsItem> listNotifications(boolean readFlag)
Returns a list ofListNotificationsItem.- Parameters:
readFlag- the read flag- Returns:
- the list
-
listNotifications
public List<ListNotificationsItem> listNotifications(boolean readFlag, String mandateHolderId, MandateHolderType mandateHolderType)
Returns a list ofListNotificationsItem.- Parameters:
readFlag- the readFlagmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType- Returns:
- the list
-
createFeedback
public void createFeedback(String prescriberId, String rid, byte[] feedbackText)
Creates a feedback.- Parameters:
prescriberId- the prescriber idrid- the ridfeedbackText- the feedback text
-
createFeedback
public void createFeedback(String prescriberId, String rid, byte[] feedbackText, String mandateHolderId, MandateHolderType mandateHolderType)
Creates a feedback.- Parameters:
prescriberId- the prescriberIdrid- the ridfeedbackText- the feedbackTextmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
getData
public ListReservationsResult getData(ListReservationsParam param)
Gets theListReservationsResult.- Parameters:
param- theGetAllReservationsParam- Returns:
- the
ListReservationsResult
-
getListReservations
protected ListReservationsRequest getListReservations(ListReservationsParam param)
Gets the all reservations request.- Parameters:
param- the data- Returns:
- the all reservations request @ the integration module exception
-
getData
public ListRidsInProcessResult getData(ListRidsInProcessParam param)
Gets theListRidsInProcessResult.- Parameters:
param- theListRidsInProcessParam- Returns:
- the
ListRidsInProcessResult
-
putData
public PutRidsInProcessResult putData(PutRidsInProcessParam param)
Puts thePutRidsInProcessResult.- Parameters:
param- thePutRidsInProcessParam- Returns:
- the
PutRidsInProcessResult
-
getPutAllRidInProcess
protected PutRidsInProcessRequest getPutAllRidInProcess(PutRidsInProcessParam putRidsInProcessParam)
Put all ridsi N process request.- Parameters:
putRidsInProcessParam- the data- Returns:
- the put data @ the integration module exception
-
getAndMarkAsDelivered
public GetPrescriptionForExecutorResult getAndMarkAsDelivered(String rid)
Gets theGetPrescriptionForExecutorResultand marks it as delivered.- Parameters:
rid- the rid- Returns:
- the
GetPrescriptionForExecutorResult
-
getAndMarkAsDelivered
public GetPrescriptionForExecutorResult getAndMarkAsDelivered(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
Gets theGetPrescriptionForExecutorResultand marks it as delivered.- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType- Returns:
- the
GetPrescriptionForExecutorResult
-
getAndMarkAsDelivered
public List<GetPrescriptionForExecutorResult> getAndMarkAsDelivered(List<String> rids)
-
getData
public ListRelationsResult getData(ListRelationsParam patientRelationParam)
Gets the data.- Parameters:
patientRelationParam- the patient relation param- Returns:
- the data
-
listReservationsDecrypted
public ListReservationsResult listReservationsDecrypted(ListReservationsParam request)
Performs a getData(ListReservationsParam)- and decryptListReservationsResult-operation at once.- Parameters:
request- theListReservationsParam- Returns:
- the decrypted
ListReservationsResult
-
listReservationsDecryptedWithExceptions
public ListReservationsResultWithExceptions listReservationsDecryptedWithExceptions(ListReservationsParam request)
-
listOpenPrescriptionsDecrypted
public ListOpenPrescriptionsResult listOpenPrescriptionsDecrypted(ListOpenPrescriptionsParam request)
-
listOpenPrescriptionsWithExceptionsDecrypted
public ListOpenPrescriptionsResultWithExceptions listOpenPrescriptionsWithExceptionsDecrypted(ListOpenPrescriptionsParam request)
-
clearSession
public void clearSession()
Clears the session-map.
-
-