Class AbstractPatientIntegrationModule

    • Constructor Detail

      • AbstractPatientIntegrationModule

        public AbstractPatientIntegrationModule()
        Instantiates a new abstract patient integration module. @ the integration module exception
    • 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 data
        type - 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 data
        type - 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 rid
        reason - 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