Class AbstractPatientIntegrationModule
- java.lang.Object
-
- be.business.connector.common.module.AbstractIntegrationModule
-
- be.business.connector.recipe.patient.AbstractPatientIntegrationModule
-
- All Implemented Interfaces:
PatientIntegrationModuleV4
- Direct Known Subclasses:
PatientIntegrationModuleDevV4Impl,PatientIntegrationModuleV4Impl
public abstract class AbstractPatientIntegrationModule extends AbstractIntegrationModule implements PatientIntegrationModuleV4
The Class AbstractPatientIntegrationModule.
-
-
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 AbstractPatientIntegrationModule()Instantiates a new abstract patient integration module. @ the integration module exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckStatus(be.fgov.ehealth.commons.protocol.v1.ResponseType response)Check status.protected voidcheckStatus(ResponseType response)Check status.protected GetPrescriptionForPatientResultcreateGetPrescriptionForPatientResult(byte[] sealedExecutorResponse)Creates the get prescription for patient result.protected SecuredContentTypecreateSecuredContentType(byte[] content)Creates the secured content type.ListPatientPrescriptionsResultdecryptListPatientPrescriptionsResult(ListPatientPrescriptionsResult listPatientPrescriptionsResult)protected byte[]getSealedData(GetVisionParam getVisionParam)Gets the sealed data.protected byte[]getSealedData(PutReservationParam putReservationParam)Gets the sealed data.protected byte[]getSealedData(PutVisionParam putVisionParam)Gets the sealed data.protected byte[]getSealedData(ListPatientPrescriptionsParam request)byte[]getSealedGetPrescriptionForPatientParam(String rid)Gets the sealed get prescription for patient param.protected byte[]getSealedRevokePrescriptionParam(String rid, String reason)Gets the sealed revoke prescription param.protected <T> byte[]marshall(T data, Class<T> type)Marshall.protected <T> byte[]sealForRecipe(T data, Class<T> type)Seal for recipe.protected GetPrescriptionForPatientResultunsealPrescription(byte[] result)Unseal prescription.-
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.patient.PatientIntegrationModuleV4
getData, getData, getData, getPrescription, listOpenPrescriptions, putData, putData, revokePrescription
-
-
-
-
Method Detail
-
unsealPrescription
protected GetPrescriptionForPatientResult unsealPrescription(byte[] result) throws IOException
Unseal prescription.- Parameters:
result- the result- Returns:
- the gets the prescription for patient result @ the integration module exception
- Throws:
IOException- Signals that an I/O exception has occurred.
-
createGetPrescriptionForPatientResult
protected GetPrescriptionForPatientResult createGetPrescriptionForPatientResult(byte[] sealedExecutorResponse)
Creates the get prescription for patient result.- Parameters:
sealedExecutorResponse- the sealed executor response- Returns:
- the gets the prescription for patient result @ the integration module exception
-
getSealedGetPrescriptionForPatientParam
public byte[] getSealedGetPrescriptionForPatientParam(String rid)
Gets the sealed get prescription for patient param.- Parameters:
rid- the rid- Returns:
- the sealed get prescription for patient param @ the integration module exception
-
sealForRecipe
protected <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
-
marshall
protected <T> byte[] marshall(T data, Class<T> type)Marshall.- Type Parameters:
T- the generic type- Parameters:
data- the datatype- the type- Returns:
- the byte[] @ the integration module exception
-
createSecuredContentType
protected SecuredContentType createSecuredContentType(byte[] content)
Creates the secured content type.- Parameters:
content- the content- Returns:
- the secured content type
-
checkStatus
protected void checkStatus(be.fgov.ehealth.commons.protocol.v1.ResponseType response)
Check status.- Parameters:
response- the response @ the integration module exception
-
checkStatus
protected void checkStatus(ResponseType response)
Check status.- Parameters:
response- the response @ the integration module exception
-
getSealedRevokePrescriptionParam
protected byte[] getSealedRevokePrescriptionParam(String rid, String reason)
Gets the sealed revoke prescription param.- Parameters:
rid- the ridreason- the reason- Returns:
- the sealed revoke prescription param @ the integration module exception
-
getSealedData
protected byte[] getSealedData(GetVisionParam getVisionParam)
Gets the sealed data.- Parameters:
getVisionParam- the request- Returns:
- the sealed data @ the integration module exception
-
getSealedData
protected byte[] getSealedData(PutReservationParam putReservationParam)
Gets the sealed data.- Parameters:
putReservationParam- the request- Returns:
- the sealed data @ the integration module exception
-
getSealedData
protected byte[] getSealedData(PutVisionParam putVisionParam)
Gets the sealed data.- Parameters:
putVisionParam- the request- Returns:
- the sealed data @ the integration module exception
-
getSealedData
protected byte[] getSealedData(ListPatientPrescriptionsParam request)
-
decryptListPatientPrescriptionsResult
public ListPatientPrescriptionsResult decryptListPatientPrescriptionsResult(ListPatientPrescriptionsResult listPatientPrescriptionsResult)
- Specified by:
decryptListPatientPrescriptionsResultin interfacePatientIntegrationModuleV4
-
-