---
title: Message Examples
slug: eprescribing/guide/message-examples
docTags: 
createdAt: 2026-06-11T13:26:23.698Z
---

## Examples Disclaimer

Examples provided throughout this guide are not intended to be all-inclusive. This pertains to example workflows, element-specific (field) examples, or message examples. Customers should not restrict coding to the examples used herein.

When developing, this guide should be used along with the accompanying schema file, additional documentation referenced, and applicable customary XML coding standards.

:::hint{type="info"}
**Note:&#x20;**&#x56;ersion 20230115, which is a republication of version 2023011, is used throughout this guide.
:::

## NewRx (from Prescriber) Message Example

The following example uses the Surescripts message header and the NCPDP NewRx (from Prescriber) message example.

```xml
<Message DatatypesVersion="20230115" TransportVersion="20230115" TransactionDomain="SCRIPT" TransactionVersion="20230115" StructuresVersion="20230115" ECLVersion="20230115">
    <Header>
        <To Qualifier="P">7701630</To>
        <From Qualifier="D">1999999999992</From>
        <MessageID>7f0931fa9daa419abc3e9c0a698c4bfd</MessageID>
        <SentTime>2024-04-25T03:35:23.726Z</SentTime>
        <SenderSoftware>
            <SenderSoftwareDeveloper>MDLITE</SenderSoftwareDeveloper>
            <SenderSoftwareProduct>443</SenderSoftwareProduct>
            <SenderSoftwareVersionRelease>2.2</SenderSoftwareVersionRelease>
        </SenderSoftware>
        <PrescriberOrderNumber>110089</PrescriberOrderNumber>
    </Header>
    <Body>
        <NewRx>
            <Patient>
                <HumanPatient>
                    <Names>
                        <Name>
                            <LastName>SMITH</LastName>
                            <FirstName>MARY</FirstName>
                        </Name>
                    </Names>
                    <GenderAndSex>
                        <AdministrativeGender>N</AdministrativeGender>
                    </GenderAndSex>
                    <DateOfBirth>
                        <Date>1954-12-25</Date>
                    </DateOfBirth>
                    <Address>
                        <AddressLine1>45 EAST ROAD SW</AddressLine1>
                        <City>CLANCY</City>
                        <StateProvince>WI</StateProvince>
                        <PostalCode>54999</PostalCode>
                        <CountryCode>US</CountryCode>
                    </Address>
                    <CommunicationNumbers>
                      <PrimaryTelephone>
                        <Number>6512551122</Number>
                      </PrimaryTelephone>
                </CommunicationNumbers>
                </HumanPatient>
            </Patient>
            <Pharmacy>
                <Identification>
                    <NCPDPID>7701630</NCPDPID>
                    <NPI>7878787878</NPI>
                </Identification>
                <BusinessName>MAIN STREET PHARMACY</BusinessName>
                <CommunicationNumbers>
                    <PrimaryTelephone>
                        <Number>6152205656</Number>
                    </PrimaryTelephone>
                </CommunicationNumbers>
            </Pharmacy>
            <Prescriber>
                <NonVeterinarian>
                    <Identification>
                        <NPI>1999999992</NPI>
                    </Identification>
                    <Names>
                        <Name>
                            <LastName>JONES</LastName>
                            <FirstName>MARK</FirstName>
                        </Name>
                    </Names>
                    <Address>
                        <AddressLine1>211 CENTRAL ROAD</AddressLine1>
                        <City>JONESVILLE</City>
                        <StateProvince>TN</StateProvince>
                        <PostalCode>37777</PostalCode>
                        <CountryCode>US</CountryCode>
                    </Address>
                    <CommunicationNumbers>
                        <PrimaryTelephone>
                            <Number>6152219800</Number>
                        </PrimaryTelephone>
                    </CommunicationNumbers>
                </NonVeterinarian>
            </Prescriber>
            <MedicationPrescribed>
                <DrugDescription>Calan SR 240MG oral tablet</DrugDescription>
                <Product>
                    <DrugCoded>
                        <NDC>00025189131</NDC>
                    </DrugCoded>
                </Product>
                <Quantity>
                    <Value>60</Value>
                    <CodeListQualifier>38</CodeListQualifier>
                    <QuantityUnitOfMeasure>
                        <Code>C48542</Code>
                    </QuantityUnitOfMeasure>
                </Quantity>
                <WrittenDate>
                    <Date>2024-04-29</Date>
                </WrittenDate>
                <Substitutions>
                    <Substitutions>0</Substitutions>
                </Substitutions>
                <NumberOfRefills>2</NumberOfRefills>
                <Sig>
                    <SigText>TAKE ONE TABLET TWO TIMES A DAY UNTIL GONE</SigText>
                </Sig>
            </MedicationPrescribed>
        </NewRx>
    </Body>
</Message>
```

