Class HospitalExecutorIntegrationModuleDevV4Impl
- 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.HospitalExecutorIntegrationModuleDevV4Impl
-
- All Implemented Interfaces:
ExecutorIntegrationModuleDevV4,ExecutorIntegrationModuleV4,be.recipe.api.executor.ListMandatesByMandateHolder.Command<be.recipe.api.executor.ListMandatesByMandateHolder,be.recipe.api.executor.ListMandatesByMandateHolder.Response>
public class HospitalExecutorIntegrationModuleDevV4Impl extends AbstractExecutorIntegrationModuleV4 implements ExecutorIntegrationModuleDevV4
The Class ExecutorIntegrationModuleDevV4Impl.
-
-
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 HospitalExecutorIntegrationModuleDevV4Impl()
-
Method Summary
-
Methods inherited from class be.business.connector.recipe.executor.AbstractExecutorIntegrationModuleV4
decryptListOpenPrescriptionsResult, decryptListOpenPrescriptionsResultSingleThreaded, 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
-
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.executor.ExecutorIntegrationModuleV4
decryptListOpenPrescriptionsResult, decryptListOpenPrescriptionsResultSingleThreaded, decryptListOpenPrescriptionsResultWithExceptions, decryptListReservationsResult, decryptListReservationsResultWithExceptions
-
-
-
-
Method Detail
-
getData
public ListOpenPrescriptionsResult getData(ListOpenPrescriptionsParam param)
Gets theListOpenPrescriptionsResult.- Specified by:
getDatain interfaceExecutorIntegrationModuleDevV4- Specified by:
getDatain interfaceExecutorIntegrationModuleV4- Parameters:
param- aListOpenPrescriptionsParam- Returns:
- the
ListOpenPrescriptionsResult
-
getData
public GetPrescriptionStatusResult getData(GetPrescriptionStatusParam param)
Gets theGetPrescriptionStatusResult.- Specified by:
getDatain interfaceExecutorIntegrationModuleDevV4- Specified by:
getDatain interfaceExecutorIntegrationModuleV4- Parameters:
param- theGetPrescriptionStatusParam- Returns:
- the
GetPrescriptionStatusResult
-
getData
public ListRidsHistoryResult getData(ListRidsHistoryParam param)
Gets theListRidsHistoryResult.- Specified by:
getDatain interfaceExecutorIntegrationModuleDevV4- Specified by:
getDatain interfaceExecutorIntegrationModuleV4- Parameters:
param- theListRidsHistoryParam- Returns:
- the ListPrescriptionHistoryParam
-
getPrescription
public GetPrescriptionForExecutorResult getPrescription(String rid)
Gets a prescription.- Specified by:
getPrescriptionin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the rid- Returns:
- the
GetPrescriptionForExecutorResult
-
getPrescription
public GetPrescriptionForExecutorResult getPrescription(String rid, boolean alreadyDelivered)
- Specified by:
getPrescriptionin interfaceExecutorIntegrationModuleV4
-
getPrescription
public GetPrescriptionForExecutorResult getPrescription(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
- Specified by:
getPrescriptionin interfaceExecutorIntegrationModuleV4
-
getPrescription
public GetPrescriptionForExecutorResult getPrescription(String rid, String mandateHolderId, MandateHolderType mandateHolderType, boolean alreadyDelivered)
Description copied from interface:ExecutorIntegrationModuleV4Gets a prescription.- Specified by:
getPrescriptionin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType- Returns:
- the
GetPrescriptionForExecutorResult
-
createGetPrescriptionForExecutorResult
protected GetPrescriptionForExecutorResult createGetPrescriptionForExecutorResult(byte[] securedContent)
-
decryptGetOpenPrescriptionForExecutor
public GetOpenPrescriptionForExecutor decryptGetOpenPrescriptionForExecutor(GetOpenPrescriptionForExecutor gopfe)
Decrypts aGetOpenPrescriptionForExecutor.- Specified by:
decryptGetOpenPrescriptionForExecutorin interfaceExecutorIntegrationModuleDevV4- 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.- Specified by:
markAsArchivedin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the rid
-
markAsArchived
public void markAsArchived(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
Marks a rid as archived.- Specified by:
markAsArchivedin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
markAsDelivered
public void markAsDelivered(String rid)
Marks a rid as delivered.- Specified by:
markAsDeliveredin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the rid
-
markAsDelivered
public void markAsDelivered(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
Marks a rid as delivered.- Specified by:
markAsDeliveredin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
markAsUndelivered
public void markAsUndelivered(String rid)
Marks a rid as undelivered.- Specified by:
markAsUndeliveredin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the rid
-
markAsUndelivered
public void markAsUndelivered(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
Marks a rid as undelivered.- Specified by:
markAsUndeliveredin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
revokePrescription
public void revokePrescription(String rid, String reason)
Revokes a rid.- Specified by:
revokePrescriptionin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the ridreason- the reason
-
revokePrescription
public void revokePrescription(String rid, String reason, String mandateHolderId, MandateHolderType mandateHolderType)
Description copied from interface:ExecutorIntegrationModuleV4Revokes a rid.- Specified by:
revokePrescriptionin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
listNotifications
public List<ListNotificationsItem> listNotifications(boolean readFlag)
Returns a list ofListNotificationsItem.- Specified by:
listNotificationsin interfaceExecutorIntegrationModuleV4- Parameters:
readFlag- the read flag- Returns:
- the list
-
listNotifications
public List<ListNotificationsItem> listNotifications(boolean readFlag, String mandateHolderId, MandateHolderType mandateHolderType)
Returns a list ofListNotificationsItem.- Specified by:
listNotificationsin interfaceExecutorIntegrationModuleV4- Parameters:
readFlag- the readFlagmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType- Returns:
- the list
-
createFeedback
public void createFeedback(String prescriberId, String rid, byte[] feedbackText)
Creates a feedback.- Specified by:
createFeedbackin interfaceExecutorIntegrationModuleV4- 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.- Specified by:
createFeedbackin interfaceExecutorIntegrationModuleV4- Parameters:
prescriberId- the prescriberIdrid- the ridfeedbackText- the feedbackTextmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
getData
public ListReservationsResult getData(ListReservationsParam param)
Gets theListReservationsResult.- Specified by:
getDatain interfaceExecutorIntegrationModuleDevV4- Specified by:
getDatain interfaceExecutorIntegrationModuleV4- Parameters:
param- theGetAllReservationsParam- Returns:
- the
ListReservationsResult
-
getData
public ListRidsInProcessResult getData(ListRidsInProcessParam param)
Gets theListRidsInProcessResult.- Specified by:
getDatain interfaceExecutorIntegrationModuleDevV4- Specified by:
getDatain interfaceExecutorIntegrationModuleV4- Parameters:
param- theListRidsInProcessParam- Returns:
- the
ListRidsInProcessResult
-
putData
public PutRidsInProcessResult putData(PutRidsInProcessParam param)
Puts thePutRidsInProcessResult.- Specified by:
putDatain interfaceExecutorIntegrationModuleDevV4- Specified by:
putDatain interfaceExecutorIntegrationModuleV4- Parameters:
param- thePutRidsInProcessParam- Returns:
- the
PutRidsInProcessResult
-
getAndMarkAsDelivered
public GetPrescriptionForExecutorResult getAndMarkAsDelivered(String rid)
Gets theGetPrescriptionForExecutorResultand marks it as delivered. @- Specified by:
getAndMarkAsDeliveredin interfaceExecutorIntegrationModuleDevV4- Specified by:
getAndMarkAsDeliveredin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the rid- Returns:
- the
GetPrescriptionForExecutorResult
-
getAndMarkAsDelivered
public GetPrescriptionForExecutorResult getAndMarkAsDelivered(String rid, String mandateHolderId, MandateHolderType mandateHolderType)
Description copied from interface:ExecutorIntegrationModuleV4Gets theGetPrescriptionForExecutorResultand marks it as delivered.- Specified by:
getAndMarkAsDeliveredin interfaceExecutorIntegrationModuleV4- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType- Returns:
- the
GetPrescriptionForExecutorResult
-
getAndMarkAsDelivered
public List<GetPrescriptionForExecutorResult> getAndMarkAsDelivered(List<String> rids)
- Specified by:
getAndMarkAsDeliveredin interfaceExecutorIntegrationModuleV4
-
getData
public ListRelationsResult getData(ListRelationsParam patientRelationParam)
Gets theListRelationsResult.- Specified by:
getDatain interfaceExecutorIntegrationModuleDevV4- Specified by:
getDatain interfaceExecutorIntegrationModuleV4- Parameters:
patientRelationParam- the patient relation param- Returns:
- the
ListRelationsResult
-
clearSession
public void clearSession()
Clears the session-map.- Specified by:
clearSessionin interfaceExecutorIntegrationModuleV4
-
listReservationsDecrypted
public ListReservationsResult listReservationsDecrypted(ListReservationsParam request)
Performs a getData(ListReservationsParam)- and decryptListReservationsResult-operation at once.- Specified by:
listReservationsDecryptedin interfaceExecutorIntegrationModuleV4- Parameters:
request- theListReservationsParam- Returns:
- the decrypted
ListReservationsResult
-
listOpenPrescriptionsDecrypted
public ListOpenPrescriptionsResult listOpenPrescriptionsDecrypted(ListOpenPrescriptionsParam request)
- Specified by:
listOpenPrescriptionsDecryptedin interfaceExecutorIntegrationModuleV4
-
listOpenPrescriptionsDecryptedSingleThreaded
public ListOpenPrescriptionsResult listOpenPrescriptionsDecryptedSingleThreaded(ListOpenPrescriptionsParam request)
- Specified by:
listOpenPrescriptionsDecryptedSingleThreadedin interfaceExecutorIntegrationModuleV4
-
listReservationsDecryptedWithExceptions
public ListReservationsResultWithExceptions listReservationsDecryptedWithExceptions(ListReservationsParam request)
- Specified by:
listReservationsDecryptedWithExceptionsin interfaceExecutorIntegrationModuleV4
-
listOpenPrescriptionsWithExceptionsDecrypted
public ListOpenPrescriptionsResultWithExceptions listOpenPrescriptionsWithExceptionsDecrypted(ListOpenPrescriptionsParam request)
- Specified by:
listOpenPrescriptionsWithExceptionsDecryptedin interfaceExecutorIntegrationModuleV4
-
-