Messages Overview
11 min
message description(s) 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 , no patient match found, etc ) or system errors error response message 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) real time prescription benefit 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 asterix ( ) 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 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 an rtpbresponse message with patient specific estimated cost and benefit information and sends to surescripts 8\) surescripts forwards the rtpbresponse synchronously to the provider vendor real time prescription benefit pharmacy message flow 1\) once the patient, medication, days supply, quantity, and quantity unit of measure have been selected, the pharmacist sends surescripts, via their pharmacy system, an rtpbrequest for the patient specific estimated cost and benefit data surescripts receives the rtpbrequest message 2\) if the benefitscoordination information is present in the message, surescripts forwards the rtpbrequest to the pbm/payer 2a) if the benefitscoordination information is not present, surescripts will look up the patient to retrieve the required data once obtained, surescripts will add the necessary information to the rtpbrequest that will be sent to the pbm/payer 3\) the pbm/payer processes the request, formats an rtpbresponse message with the patient specific estimated cost and benefit information and sends it to surescripts 4\) surescripts processes the message and returns the rtpbresponse synchronously to the pharmacy system note the rtpbresponse sent to the pharmacy system will not include coverage information obtained by surescripts real time prescription benefit 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 message 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 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 error message to the provider vendor scenario 4 pbm/payer finds business errors in rtpbrequest pbm/payer returns an 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 an 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 an rtpbresponse 5a) a 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) pbm/payer sends an error message to surescripts 5c) surescripts sends an error message to the provider vendor with an error code "951" and description “surescripts unable to locate coverage for patient 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 extensibility extensibility was added to allow trading partners a consistent way to include additional information in the messages it was created to enable the integration of extra information in messages in a safe and meaningful way, it can help streamline testing of new data elements, maintain the standard's simplicity while accommodating uncommon use cases, and most importantly, paves a quicker path to introducing new features that benefit patients, providers, pharmacies, and payers surescripts will not validate data in extensions beyond the schema requirements it is recommended that partners do not reject transactions that include an extension that is not expected and instead ignore the information when using extensions, the following rules must be observed the core schema must be followed extensions must not contradict the base standard extensions must not alter content from the base standard extensions must not be used when standard fields are available external code list values cannot be modified by extensions note please work with your surescripts account manager or surescripts resource for more information