Class PrescriberIntegrationModuleV4Impl
- java.lang.Object
-
- be.business.connector.common.module.AbstractIntegrationModule
-
- be.business.connector.recipe.prescriber.AbstractPrescriberIntegrationModule
-
- be.business.connector.recipe.prescriber.PrescriberIntegrationModuleV4Impl
-
- All Implemented Interfaces:
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 PrescriberIntegrationModuleV4Impl extends AbstractPrescriberIntegrationModule implements PrescriberIntegrationModuleV4
The Class PrescriberIntegrationModuleV4Impl.
-
-
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 PrescriberIntegrationModuleV4Impl()Instantiates a newPrescriberIntegrationModuleV4Impl. @ the IntegrationModuleException
-
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.GetPrescriptionStatusRequestgetGetPrescriptionStatus(GetPrescriptionStatusParam param)Gets the gets the prescription status request.ListOpenRidsRequestgetListOpenRids(ListOpenRidsParam param)Gets the list open prescriptions request.GetPrescriptionForPrescriberResultgetPrescription(String rid)Gets a prescription.protected byte[]getSealedData(ValidationPropertiesParam data)Gets the sealed data.protected GetValidationPropertiesRequestgetValidationProperties(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 PutVisionForPrescriberRequestputVisionRequest(PutVisionParam param)Put vision request.voidrevokePrescription(String rid, String reason)Cancels a prescription.<T> byte[]sealForRecipe(T data, Class<T> type)Seal for recipe.voidsendNotification(byte[] notificationText, String patientId, String executorId)voidsendNotification(byte[] notificationText, String patientId, String executorId, String hospitalId)Address prescription.protected voidstorePropertiesVersionToDisk(String serverPropertiesVersion)GetPrescriptionStatusResultunsealGetPrescriptionStatusResponse(GetPrescriptionStatusResponse response)Unseal get prescription status response.ListOpenRidsResultunsealListOpenRidsResponse(ListOpenRidsResponse response)Unseal list open prescriptions response.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, 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
-
-
-
-
Constructor Detail
-
PrescriberIntegrationModuleV4Impl
public PrescriberIntegrationModuleV4Impl()
Instantiates a newPrescriberIntegrationModuleV4Impl. @ the IntegrationModuleException
-
-
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)
Creates the prescription.- 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
-
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
-
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 a prescription.- Specified by:
getPrescriptionin interfacePrescriberIntegrationModuleV4- Parameters:
rid- the rid- Returns:
- the prescription @ the integration module exception
-
revokePrescription
public void revokePrescription(String rid, String reason)
Cancels a 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 interfacePrescriberIntegrationModuleV4- Parameters:
param- theValidationPropertiesParam- Returns:
- the
ValidationPropertiesResult@ the integration module exception
-
getValidationProperties
protected GetValidationPropertiesRequest getValidationProperties(ValidationPropertiesParam param)
Gets the validation properties request.- Parameters:
param- the data- Returns:
- the validation properties request @ the integration module exception
-
getSealedData
protected byte[] getSealedData(ValidationPropertiesParam data)
Gets the sealed data.- Overrides:
getSealedDatain classAbstractPrescriberIntegrationModule- Parameters:
data- the data- Returns:
- the sealed data @ the integration module exception
-
sealForRecipe
public <T> byte[] sealForRecipe(T data, Class<T> type)Seal for recipe.- Type Parameters:
T- the generic type- Parameters:
data- the datatype- the type- Returns:
- the byte[] @ the integration module exception
-
storePropertiesVersionToDisk
protected void storePropertiesVersionToDisk(String serverPropertiesVersion)
-
getData
public GetPrescriptionStatusResult getData(GetPrescriptionStatusParam param)
Gets the prescription status.- Specified by:
getDatain interfacePrescriberIntegrationModuleV4- Parameters:
param- theGetPrescriptionStatusParam- Returns:
- the
GetPrescriptionStatusResult@ the integration module exception
-
getGetPrescriptionStatus
public GetPrescriptionStatusRequest 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
-
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)
Lists the prescription history.- 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 interfacePrescriberIntegrationModuleV4- Parameters:
param- thePutVisionParam- Returns:
- the
PutVisionResult@ the integration module exception
-
putVisionRequest
protected PutVisionForPrescriberRequest putVisionRequest(PutVisionParam param)
Put vision request.- Parameters:
param- 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 interfacePrescriberIntegrationModuleV4- Parameters:
param- theListOpenRidsParam- Returns:
- the
ListOpenRidsResult@ the integration module exception
-
getListOpenRids
public ListOpenRidsRequest getListOpenRids(ListOpenRidsParam param)
Gets the list open prescriptions request.- Parameters:
param- the data- Returns:
- the list open prescriptions request @ the integration module exception
-
unsealListOpenRidsResponse
public ListOpenRidsResult unsealListOpenRidsResponse(ListOpenRidsResponse response)
Unseal list open prescriptions response.- Parameters:
response- the get data response- Returns:
- the list open prescriptions result @ the integration module exception
-
-