---
title: Element Details
slug: rtpb-pharmacy/guide/element-details
docTags: 
createdAt: 2026-06-11T13:22:06.897Z
---

## Requirement Designation

**Element Attributes**

| **Code**       | **Description**                                                                                                                  |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| mandatory      | The element must be used per the specification (e.g., XML schema validation).                                                    |
| business rule  | If sent, the element must be used per the Surescripts business rule.<br />**Note**: Not all business rules reside in this table. |
| conditional    | The element is to be used per the conditions specified.                                                                          |
| recommended    | Surescripts recommends sending the element as a best practice.                                                                   |

:::hint{type="info"}
**Note:&#x20;**&#x54;his guide only includes data elements where Surescripts has specific requirements or further explains the field usage. Refer to the RTPB XML Schema listed in Document References for a complete list of fields.
:::

## Message Header Elements

| **Element**                   | **Code**              | **Comment**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| To/Primary                    | **mandatory**         | Patient’s IIN. It is recommended to use the IIN from the NewRx or any other data stored in the pharmacy system that is less than 72 hours old.<br />If the patient’s IIN is not available, this should be the Surescripts ID (S00000000000005).                                                                                                                                                                                                                                                                                                                                                                                  |
|   To/@Qualifier               | **mandatory&#xA0;**   | **Values:**<br />IIN = IIN Number<br />PY = Payer/Processor<br />**Note:&#x20;**&#x49;f the Surescripts ID (S00000000000005) is sent in the To/Primary field, PY will be the qualifier.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| To/Secondary                  | **conditional**       | Patient’s PCN. It is recommended to use the PCN from the NewRx or any other data stored in the pharmacy system that is less than 72 hours old.<br />**Note:&#x20;**&#x54;his can be found in the 271 Eligibility Response from the PBM/payer in loop 2100A NM109.                                                                                                                                                                                                                                                                                                                                                                |
|   To/@Qualifier               | **mandatory&#xA0;**   | **Value**:<br />PCN = Processor Control Number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| To/Tertiary                   | **conditional&#xA0;** | PayerIdentification (Surescripts-assigned Participant ID of the PBM/payer).<br />It is recommended to use the PayerIdentification from the NewRx or any other data stored in the pharmacy system that is less than 72 hours old.<br />**Note:&#x20;**&#x54;his can be found in the 271 Eligibility Response from the PBM/payer in loop 2100A NM109.                                                                                                                                                                                                                                                                              |
| To/@Qualifier                 | **mandatory**         | **Value**:<br />PY = Payer/Processor                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| From/Primary                  | **mandatory**         | The identification of the sender of the message. This is the NCPDPID of the pharmacy sending the request.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|   From/@Qualifier             | **mandatory&#xA0;**   | **Value**:<br />P = Pharmacy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| MessageID                     | **mandatory&#xA0;**   | A minimum set of standards/algorithms should be used when generating message IDs to ensure uniqueness. If possible, customers should utilize Global Unique Identifiers (GUIDs).<br />**Note:&#x20;**&#x54;he MessageID in the RTPBResponse will be populated in the RelatesToMessageID field of the NewRx.<br />See [MessageID Linkage](docId\:FKJJhxGyYHkH2_k1bFlyi) for more details.<br />**S.205:** The sender shall ensure the combination of the From and MessageID elements, for all messages including Error, is unique for at least 18 months. Surescripts recommends an unformatted Globally Unique Identifier (GUID). |
| RelatesToMessageID            | **conditional&#xA0;** | This element is case sensitive.<br />Populate with the MessageID contained in the NewRx for the prescription being queried.<br />See [MessageID Linkage](docId\:FKJJhxGyYHkH2_k1bFlyi) for more details.<br />**S.210:** Customers shall support the scenarios in the Message Linkage section of this guide.                                                                                                                                                                                                                                                                                                                     |
| SentTime                      | **mandatory&#xA0;**   | Date/time of initiation.<br />Refer to UTC Time Format for information on how to properly format the date/time data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| SenderSoftwareCertificationID | **conditional&#xA0;** | business rule <br />SenderSoftwareCertificationID has a max length of 10 characters. Surescripts requires sending this field.<br />Identifies the entity responsible for the software that generated the message. The developer may be a software vendor or, if the software was developed “in-house”, the developer is the entity sending the message (e.g., a chain). The value transmitted is determined by the Sender Software Developer.                                                                                                                                                                                    |

### MessageID Linkage Diagram

![](https://api.archbee.com/api/optimize/fNEeV2bO-J-V0NK1eH_VR/RvZ-uBbI0rPda-TR-rNYF_messagelinkagediagram.png)

### MessageID Linkage

**S.210:** Customers shall support the scenarios in the Message Linkage section of this guide.

The table below illustrates how the MessageIDs and RelatesToMessageIDs in the NewRx, RTPBRequest and RTPBResponse, and RxChange messages are linked in pharmacy.

![](https://api.archbee.com/api/optimize/fNEeV2bO-J-V0NK1eH_VR/9XuXY8c53U0TOco7JYQh4_messagelinkagetable.png)

## RTPBRequest Elements

:::hint{type="info"}
**Notes:**

- This guide only includes data elements where Surescripts has specific requirements or further explains the field usage. Refer to the Real-Time Prescription Benefit Standard v13 schema listed in Document References for a complete list of fields.
- Per ACR S.201, customers shall ensure all messages are syntactically correct before transmission to Surescripts.
:::

| **Element**                             | **Code**              | **Comment**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| --------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Patient                                 | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|   Name/LastName                         | **mandatory&#xA0;**   | Patient last name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|   Name/FirstName                        | **mandatory&#xA0;**   | Patient first name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| SexAndGender/<br />AdministrativeGender | **mandatory&#xA0;**   | Patient gender.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|   DateOfBirth                           | **mandatory&#xA0;**   | Date of birth of patient.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|   StateProvince                         | **mandatory&#xA0;**   | Patient’s state or province.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|   PostalCode                            | **mandatory&#xA0;**   | Patient’s address postal code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|   City Extension                        | **mandatory&#xA0;**   | Patient’s city. Customers should use the following URL: \<Extension name="City" url="http\://surescripts.com/extensions/RTPBRequest/Patient/City”>                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| BenefitsCoordination                    | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|   CardholderID                          | **conditional&#xA0;** | Insurance ID assigned to the cardholder or identification number used by the plan.<br />Providing CardholderID can help with patient matching.<br />**Note:&#x20;**&#x54;his can be found in the 271 Eligibility Response from the PBM/payer in loop 2100C and is indicated when the REF01 segment is "HJ" and the REF02 is not blank.                                                                                                                                                                                                                                                                        |
|   PBMMemberID                           | **conditional&#xA0;** | Unique PBMMemberID for the Patient.<br />Providing PBMMemberID can help with patient matching. Unique PBMMemberID for the Patient.<br />**Note:&#x20;**&#x54;he PBMMemberID can be found in the 271 Eligibility Response from the PBM/payer in loop 2100C NM109.                                                                                                                                                                                                                                                                                                                                              |
| RequestedProduct                        | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|   Product                               | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|     DrugCoded/NDC                       | **mandatory&#xA0;**   | NDC of the requested medication.<br />**Note:&#x20;**&#x49;f Surescripts identifies a more representative NDC, Surescripts may replace the NDC that was sent with the more representative NDC to ensure a successful RTPBResponse.<br />NDC must be an 11-digit numeric in the 5-4-2 format. Dashes shall not be used and leading zeros shall not be suppressed.<br />NDC should be representative. Do not send repackaged, obsolete, private label or unit dose NDC unless it is the only NDC available to identify the medication concept.                                                                  |
|   Quantity                              | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|     Value                               | **mandatory&#xA0;**   | Quantity for the requested medication.<br />To ensure successful message processing, DaysSupply and Quantity should be a numeric value and greater than zero (0).                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|     CodeListQualifier                   | **mandatory&#xA0;**   | Quantity CodeListQualifier for the requested medication.<br />**Value**:<br />38 = Original Quantity                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| QuantityUnitOf<br />Measure/Code        | **mandatory&#xA0;**   | The QuantityUnitCode should reflect the NCit code.If the NCit code is not sent, the provider vendor may not be able to translate the QuantityUnitCode and the response may result in an error.<br />Example Value: C48542 = Tablet<br />For a list of NCit codes, go to: [http://evs.nci.nih.gov/ftp1/NCPDP/About.html](http://evs.nci.nih.gov/ftp1/NCPDP/About.html). This list should be updated monthly. Use the NCPDP QuantityUnitOfMeasure Terminology rows from the downloaded data.<br />**PM.200**: QuantityUnitOfMeasure Code Qualifiers shall be correctly associated with medication descriptions. |
|   DaysSupply                            | **mandatory&#xA0;**   | business rule <br />DaysSupply must be sent for accurate pricing.<br />DaysSupply is the estimated number of days the prescription will last excluding refills, based upon the prescribed quantity and directions. It is the prescribed quantity divided by the daily doses. While this is typically system calculated, the prescriber retains responsibility for the value.<br />DaysSupply and Quantity must be a numeric value and greater than zero (0).                                                                                                                                                  |
|   Diagnosis                             | **conditional&#xA0;** | Include ICD-10 diagnosis if populated on NewRx.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|     Code                                | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|     @Qualifier                          | **mandatory&#xA0;**   | **Value**:<br />ABF = ICD10                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Prescriber                              | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|   Identification/NPI                    | **mandatory&#xA0;**   | NPI for the pharmacy. NPI will be validated against the check digit routine.<br />business rule <br />NPI in the Prescriber segment must match the NPI in the Pharmacy segment.                                                                                                                                                                                                                                                                                                                                                                                                                               |
|   LastName                              | **mandatory&#xA0;**   | **Value**:<br />Unknown                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Pharmacy                                | **mandatory&#xA0;**   | business rule <br />Pharmacy must be sent for accurate pricing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|   Identification/NCPDPID                | **conditional&#xA0;** | business rule <br />The NCPDPID for the pharmacy must be sent in the RTPBRequest.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|     Identification/NPI                  | **conditional&#xA0;** | business rule <br />The NPI (National Provider ID) for pharmacy must be sent in the RTPBRequest. NPI will be validated against the check digit routine. For specific information see:<br />[https://www.cms.gov/Regulations-and-Guidance/Administrative-Simplification/NationalProvIdentStand/Downloads/NPIcheckdigit.pdf](https://www.cms.gov/Regulations-and-Guidance/Administrative-Simplification/NationalProvIdentStand/Downloads/NPIcheckdigit.pdf)                                                                                                                                                     |
|   BusinessName                          | **mandatory&#xA0;**   | Store name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|   PrimaryTelephoneNumber                | **mandatory&#xA0;**   | Store phone number.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

## RTPBResponse Elements

:::hint{type="info"}
**Notes:**

- This guide only includes data elements where Surescripts has specific requirements or further explains the field usage. Refer to the NCPDP RTPB XML Schema listed in Document References for a complete list of fields.
- Per ACR S.200, customers shall be able to receive syntactically valid maximum and minimum populated messages. Optional data elements (and values therein) shall not cause message failure.
:::

| **Element**                                                              | **Code**              | **Comment**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------------------------------------------ | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Response                                                                 | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|   Processed                                                              | **mandatory&#xA0;**   | Processed should only be sent in instances where benefit information is provided. Please reach out to your Surescripts representative for additional information.                                                                                                                                                                                                                                                                                                                              |
|     Note                                                                 | **conditional&#xA0;** | Recommended to send if needed to aid in message processing.                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|   NotProcessed                                                           | **mandatory&#xA0;**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|     Note                                                                 | **conditional&#xA0;** | Additional free text information about the RejectCode.<br />Strongly recommended to send to further explain why message was rejected.                                                                                                                                                                                                                                                                                                                                                          |
| ResponseProduct                                                          | **conditional&#xA0;** |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|   Product                                                                | **mandatory&#xA0;**   | Contains the information on the requested medication.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|   DrugDescription                                                        | **mandatory&#xA0;**   | The drug name, strength, and form associated with the NDC.                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|   PricingAndCoverages                                                    | **mandatory&#xA0;**   | There may be up to 6 PricingAndCoverages returned per ResponseProduct and ResponseAlternativeProduct.<br />**PM.204**: Coverage restrictions for all \<PricingAndCoverages> elements for medication combinations returned (including alternatives).This concession is allowed: An indicator that coverage restriction(s) apply to a specific combination. User action on this indicator presents all coverage restrictions in their entirety.                                                  |
| EstimatedCombined<br />PlanAndPatientSavings                             | **conditional&#xA0;** | Provides additional patient and/or health plan savings information that may assist with medication selection.                                                                                                                                                                                                                                                                                                                                                                                  |
|      EstimatedNetPlanCost                                                | **conditional&#xA0;** | Provides additional health plan cost information that may assist with medication selection.                                                                                                                                                                                                                                                                                                                                                                                                    |
| ResponseAlternative<br />Product                                         | **conditional&#xA0;** | Clinically appropriate alternatives are provided here. This would include information for an alternative medication (if provided) similar to what is supplied in the ResponseProduct element.<br />**PM.205**: All available appropriate alternatives displayed together. If all alternatives cannot be shown together, this concession is allowed: An indicator that alternative medications are available. User interaction on this indicator presents all alternative medications together. |
| PricingAndCoverages/<br />PricingAndCoverage/<br />CoverageStatusMessage | **conditional&#xA0;** | Additional free text information about the coverage status. May be used to communicate non-benefit coverage types as well as coverage restrictions.                                                                                                                                                                                                                                                                                                                                            |
| PricingAndCoverages/<br />PricingAndCoverage/<br />DrugStatus Extension  | **conditional&#xA0;** | Additional free text information about the drug. May be used to communicate drug and pricing specifics.                                                                                                                                                                                                                                                                                                                                                                                        |

