Messages Overview
7 min
message descriptions rtpbrequest the rtpbrequest message is used to request patient specific estimated cost and benefit information rtpbresponse the rtpbresponse message returns patient specific estimated cost and benefit information, or the response may return business errors (e g , patientnotfound, drugnotfound, etc ) or system errors error response message error this ncpdp script message indicates that an error has occurred and the rtpbrequest has been terminated an error can be generated when there is a communication problem or when the message had an error (e g , a formatting problem) message flow 1) the eligibility request (270) is sent by the provider vendor system to surescripts to obtain eligibility information 2) surescripts validates the request, locates the patient based on demographic information, and sends the eligibility request (270) to the applicable pbm/payer 3) the pbm/payer verifies the patient and responds to surescripts with an eligibility response (271) indicating the patient’s eligibility status 4) surescripts validates the format of the incoming eligibility response (271), consolidates all 271 responses, and sends the information back to the requester note the information noted with an asterisk ( ) above is related to the eligibility process for more information on the eligibility process, please see the surescripts eligibility companion guide 5\) once the medication, days' supply, quantity, quantity unit of measure and pharmacy have been selected, the provider vendor sends a rtpbrequest for patient specific estimated cost and benefit data 6\) surescripts receives the rtpbrequest message and then requests the patient benefit information from the pbm/payer 7\) the pbm/payer processes the request, formats a rtpbresponse message with patient specific estimated cost and benefit information and sends it to surescripts 8\) surescripts forwards the rtpbresponse synchronously to the provider vendor error message scenarios the following diagram depicts various scenarios where error messages or error messages with business errors are sent in response to a rtpbrequest scenario 1 surescripts cannot recognize the message surescripts returns an error message 1a) a provider vendor sends a rtpbrequest to surescripts 1b) surescripts cannot recognize the message (e g , improperly formed xml) and sends an error back to the provider scenario 2 surescripts finds message errors in rtpbrequest surescripts returns an error message 2a) a provider vendor sends a rtpbrequest to surescripts 2b) surescripts recognizes the format but finds errors (e g , schema validation error) in the message surescripts returns an ncpdp error message scenario 3 pbm/payer finds message errors in rtpbrequest pbm/payer returns an error message 3a) a provider vendor sends a rtpbrequest message to surescripts 3b) surescripts forwards the rtpbrequest to the pbm/payer 3c) during validation, the pbm/payer finds message errors and sends an error message to surescripts 3d) surescripts forwards the ncpdp error message to the provider vendor scenario 4 pbm/payer finds business errors in rtpbrequest pbm/payer returns a rtpbresponse message with business errors 4a) a provider vendor sends a rtpbrequest to surescripts 4b) surescripts forwards the rtpbrequest to the pbm/payer 4c) during business processing, the pbm/payer finds business errors (e g , patient not found, drug not found, no benefit information available, etc ) and returns a rtpbresponse message to surescripts 4d) surescripts forwards the rtpbresponse to the provider vendor scenario 5 patient does not have coverage with a participating pbm the patient demographics match a single patient in the surescripts coverage lookup, but the patient’s pbm/payer is not available to return a rtpbresponse 5a) a pharmacy system sends a rtpbrequest to surescripts that does not contain the pbmmemberid and the payerid 5b) surescripts performs a coverage lookup for the patient the patient does not have active coverage for prescription benefit coverage, or the patient’s pbm/payer is not contracted with surescripts to obtain data, or the pbm/payer did not provide coverage for the patient 5c) surescripts passes an error message back with an error code "900" and description “error message no benefit data available” message validation surescripts will ensure that customers are in compliance with the message specifications outlined in this guide during testing and will continue to enforce once in production at a minimum, surescripts validations include xml schema validation the sender identification and authentication the recipient identification syntax of the message, including field lengths, data types, and code values surescripts business rules note surescripts acrs are not enforced as part of validations, but instead through the certification process