Message Processing Summary
2 min
this section explains the message processing that takes place for messages exchanged between a message sender and a message receiver these messages are initiated in the form of a request and an acknowledgement response message is returned the sender stays connected until the receiver sends an acknowledgment response depending on connectivity, the actual message vehicle may vary the system (surescripts) stores round trip messages until the receiver acknowledges the message or until the specified time limit has elapsed if the timeout elapses before the message is processed, surescripts will return an error message to the sender as the reply (explained below) note errors are not necessarily processed in the order as shown below the row number is there to help the reader indicate which error code they may be discussing row event process type of script message script code script description code message text 1 0 surescripts receives a message 1 1 surescripts fails to recognize the sender or the message is malformed na (http 400 bad request error is returned rather than a script message) na na bad request 1 2 sender security credentials are missing error 900 – message rejected blank missing authentication info in header \[additional message specific error specifics] 1 3 sender security credentials are invalid error 900 – message rejected blank authentication failed invalid username/password \[additional message specific error specifics] 1 4 the incoming message exceeds surescripts’ size limit of 20mb na (http 500 internal server error is returned rather than a script message) na na internal server error 1 5 any other system related error which makes it impossible for surescripts to accept the message na (http 500 internal server error is returned rather than a script message) na na internal server error 2 0 surescripts processes the message no acknowledgement is sent to the sender at this stage of processing 2 1 surescripts determines that the sending system is not certified to send this type of message error 700 – configuration error 4030 – sender not allowed to send this message type sender portal does not support this message type 2 2 surescripts determines that the receiving system is not certified to receive this type of message error 700 – configuration error 4040 – receiver does not support receiving this message type receiver portal does not support this message type 2 3 sender portal configuration error at surescripts error 700 – configuration error 4020 – intermediary system error surescripts system error sender portal configuration error 2 4 receiver portal configuration error at surescripts error 700 – configuration error 4020 – intermediary system error surescripts system error receiver portal configuration error 2 5 surescripts determines that the sender’s provider vendor spi or pbm/payer unique id was not found in the surescripts directory error 700 – configuration error 4030 – sender not allowed to send this message type sender id not in directory 2 6 surescripts determines that the receiver’s spi or pbm/payer unique identifier is not valid error 700 – configuration error 4040 – receiver does not support receiving this message type receiver id not in directory 2 7 surescripts determines that the sending provider vendor spi has not been authorized to send this type of message (the sender’s spi has not been assigned the epa service level ) error 700 – configuration error 4030 – sender not allowed to send this message type sender not allowed to send this type of message 2 8 surescripts determines that the receiving provider vendor spi or pbm/payer unique identifier does not support this type of message (the sender’s spi or pbm/payer unique identifier has not been assigned the epa service level ) error 700 – configuration error 4040 – receiver does not support receiving this message type receiver does not support this message type 2 9 surescripts fails to recognize the type of message error 900 – message rejected unable to recognize incoming data as a supported message type 2 10 based on the message type, surescripts determines that a syntax error is present error 900 – message rejected 3000 – does not follow ncpdp standard or implementation guide rules invalid syntax message fails schema validation \[additional message specific error specifics] 2 11 message fails surescripts business rule validations error 900 – message rejected 3000 – does not follow ncpdp standard or implementation guide rules message fails surescripts validations the ndc must be a valid 11 digit code and should meet the qualifications for a representative ndc namespace / version validation datatypesversion is invalid \[field that is in error] doesn't match expected value 2023011 eclversion is invalid \[field that is in error] doesn't match expected value 2023011 pa structuresversion is invalid \[field that is in error] doesn't match expected value 2023011 structuresversion is invalid \[field that is in error] doesn't match expected value 2023011 transactionversion is invalid \[field that is in error] doesn't match expected value 2023011 transportversion is invalid \[field that is in error] doesn't match expected value 2023011 transactiondomain is invalid \[field that is in error] doesn't match expected value script npi luhn check (prescriber, provider, supervisor, pharmacy, facility) identification/npi is invalid fails luhn check payerid in painitiationrequest painitiationrequests must include payerid in benefitscoordination element painitiationrequests addressed to epaini all painitiationrequests must be addressed to epaini dayssupply, padayssupply, or padosesperday medicationprescribed/dayssupply or padayssupply and padosesperday must be a whole number prescriber fax prescribers fax number is required po box in address line 1 a po box must not be sent in address line 1 for the pharmacy, prescriber, facility, supervisor, or provider elements unsolicited painitiationresponse unsolicted painitiationresponse must be addressed to epaini renewals for expiring pa renewals for expiring pa must include the expire pacaseid and expirationdate authorizationdetail or authorizationperiod in closed – cf painitiationresponse closed prior authorization with a duplicate/approved reason code require either an authorization detail or authorization period unsolicited parequest unsolicited model is not supported authorizationdetail or authorizationperiod in approved paresponse appoved pa responses require either an authorization detail or period authorizationdetail and authorizationperiod in partiallydenied paresponse partially denied pa response require both an authorization detail and period authorizationdetail or authorizationperiod in closed – cf paresponse closed prior authorization with a duplicate/approved reason code require either authorization detail or authorization period the application shall make the authorizationdetail and authorizationperiod available for display when receiving a paresponse authorizationdetail or authorizationperiod in paappealresponse appoved paappeal responses require either an authorization detail or period improper use of qs quantity code script\ medicationprescribed/structures quantity is invalid if value is >0, code list qualifier must be 38 but was 'qs' or script\ medicationprescribed/structures quantity is invalid if value is 0, code list qualifier must be qs but was '38' invalid days supply value dayssupply is invalid value is \[field that is in error], days supply must be an integer with 3 or fewer digits invalid descriptioncode in status message descriptioncode \[field that is in error] is invalid for status messages nextquestionid/default nextquestionid validation questionset/question/defaultnextquestionid is invalid for questionid \[question #] defaultnextquestionid must be a questionid or end questionset/question/questionid q# is invalid question id must be unique 2 12 surescripts experiences a system failure during processing error 900 – message rejected surescripts system error 3 0 surescripts passes the message on to the recipient 3 1 surescripts is unable to deliver the message to the receiver (e g could not establish communication session) error (for sender) 600 – communication problem – try again later 4000 – intermediary is unable to deliver message to the recipient communication problem try again later unable to deliver message to receiver 3 2 the message times out before a response is given error (for sender) 600 – communication problem – try again later 008 – request timed out before response could be received connection with receiver timed out before response was returned status of message at receiver is unknown 3 3 recipient is unable to recognize the type of message or does not have enough info to create an ncpdp error message recipient sends surescripts http 400 response and text message that indicates “message cannot be identified nor processed” http 400 (from receiver) error (for sender) 602 – receiver system error 007 – internal processing error has occurred from receiver “message cannot be identified nor processed” 4 0 recipient responds to the message 4 1 surescripts is unable to process the response from the recipient error (to the sender of the original message) for sender 600 – communication problem – try again later for sender – 4010 – intermediary is unable to process response from recipient unable to process response from receiver message delivered but status of message at receiver is unknown 4 2 the recipient returns an error message pass through error to initiating party surescripts passes error message through \[as populated by the recipient] \[as populated by the recipient] 4 3 the recipient returns a valid status message status (to initiating party) 010 or 000 (as populated by the recipient) note if the recipient is the end point and the return message is a status, the status code is 010 if the recipient is not an end point, the status code is 000