AVSSession
public protocol AVSSession
Interface to the eRpApp
-
Redeem a prescription encoded into a
AVSMessage
by (encrypting it for (multiple) recipients and) sending it to a given endpoint.Declaration
Swift
func redeem(message: AVSMessage, endpoint: AVSEndpoint, recipients: [X509]) -> AnyPublisher<AVSSessionResponse, AVSError>
Parameters
message
contains the information for redeeming of a prescription
endpoint
(wrapped)
URL
to send the request torecipients
the message will potentially be prepared (encrypted) for them
Return Value
AnyPublisher
that emits the sentAVSMessage
if successful, elseAVSError