Class ExecutorIntegrationModuleV4Impl
- 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.ExecutorIntegrationModuleV4Impl
-
- All Implemented Interfaces:
ExecutorIntegrationModuleV4,be.recipe.api.executor.ListMandatesByMandateHolder.Command<be.recipe.api.executor.ListMandatesByMandateHolder,be.recipe.api.executor.ListMandatesByMandateHolder.Response>
public class ExecutorIntegrationModuleV4Impl extends AbstractExecutorIntegrationModuleV4
-
-
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 ExecutorIntegrationModuleV4Impl()Instantiates a new executor integration module V 4 impl. @ the integration module exception
-
Method Summary
-
Methods inherited from class be.business.connector.recipe.executor.AbstractExecutorIntegrationModuleV4
decryptGetOpenPrescriptionForExecutor, 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)
Description copied from interface:ExecutorIntegrationModuleV4Gets theListOpenPrescriptionsResult.- Parameters:
param- aListOpenPrescriptionsParam- Returns:
- the
ListOpenPrescriptionsResult
-
unsealGetDataResponse
public ListOpenPrescriptionsResult unsealGetDataResponse(ListOpenPrescriptionsResponse response)
Unseal get data response.- Parameters:
response- the get data response- Returns:
- the gets the open prescription list response @ the integration module exception
-
getSealedData
public byte[] getSealedData(ListOpenPrescriptionsParam listOpenPrescriptionsParam)
Gets the sealed data.- Parameters:
listOpenPrescriptionsParam- the request- Returns:
- the sealed data @ the integration module exception
-
createSecuredContentType
public SecuredContentType createSecuredContentType(byte[] content)
Creates the secured content type.- Parameters:
content- the content- Returns:
- the secured content type
-
getData
public GetPrescriptionStatusResult getData(GetPrescriptionStatusParam param)
Gets theGetPrescriptionStatusResult.- Parameters:
param- the gpsp- Returns:
- the
GetPrescriptionStatusResult
-
unsealGetPrescriptionStatusResponse
public GetPrescriptionStatusResult unsealGetPrescriptionStatusResponse(GetPrescriptionStatusResponse response)
Unseal get prescription status response.- Parameters:
response- the get data response- Returns:
- the gets the prescription status response @ the integration module exception
-
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)
Description copied from interface:ExecutorIntegrationModuleV4Gets a prescription.- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType- Returns:
- the
GetPrescriptionForExecutorResult
-
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
-
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)
Description copied from interface:ExecutorIntegrationModuleV4Revokes a rid.- Parameters:
rid- the ridmandateHolderId- the mandateHolderIdmandateHolderType- the mandateHolderType
-
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
public 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
@Deprecated public ListRelationsResult getData(ListRelationsParam patientRelationParam)
Deprecated.This method uses transport specific components (JAXB). UseAbstractExecutorIntegrationModuleV4.listMandates(ListMandatesByMandateHolder)instead for a portable alternative.Description copied from interface:ExecutorIntegrationModuleV4Gets theListRelationsResult.- Parameters:
patientRelationParam- the patient relation param- Returns:
- the
ListRelationsResult
-
clearSession
public void clearSession()
Clears the session-map.
-
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)
-
-