Script / RxTransfer Fields

📃

Note:

An empty string "" is considered a value and validation rules will apply (length/valid code/etc). Only null or missing elements will use default values.

Script Request

FieldTypeCharacter LimitRequired/OptionalDescription
scriptKeyString50RequiredUnique ID assigned by sending pharmacy to each prescription transfer request for tracking.
sendingPharmacyObjectRequiredContains information about the pharmacy transferring the prescription - see Pharmacy table.
receivingPharmacyObjectRequiredContains information about the pharmacy the prescription is being transferred to - see Pharmacy table.
patientKeyString30RequiredUnique patient ID in Client system. This key will be sent on the order status message. The patientKey must be unique and patient must exist in the system when sending Transfer Request.
prescriptionObjectRequiredContains the prescription information. See Prescription table.
transferFileTypeStringxml/pngRequiredThe file type for the transfer file. Acceptable values are xml and png.
transferFileUrlurlSafeBase642048RequiredBase 64 encoded URL where the XML or PNG transfer file can be downloaded from.
orTransferBooleantrue/falseRequiredIf this is a prescription transfer the value is true, for triage the value is false

Pharmacy

FieldTypeCharacter LimitRequired/OptionalDescription
pharmacyNameString70RequiredName of the pharmacy
pharmacyNpiString15RequiredPharmacy NPI ID
pharmacyNcPdpString15OptionalPharmacy NCPDP ID
deaNumberString15OptionalPharmacy DEA number
phoneString10RequiredPharmacy Phone number
faxString10OptionalPharmacy Fax number
pharmacistObjectRequiredObject containing information on the pharmacist. See Pharmacist table.
contactObjectRequiredObject containing contact information for the pharmacist. See Contact table.
addressObjectRequiredObject containing the pharmacy address information. See Address table.

Pharmacist

FieldTypeCharacter LimitRequired/OptionalDescription
firstNameString35RequiredFirst Name of pharmacist.
lastNameString35RequiredLast Name of pharmacist.

Contact

FieldTypeCharacter LimitRequired/OptionalDescription
contactTypeString15OptionalPatient Contact – Phone, Home Phone, Day Phone, Work Phone, Fax Number, Cellular Number, Alternate
contactAddressString10RequiredContact Details. For instance: Populate phone number if contact type is phone. Format:XXXXXXXXXX

Address

FieldTypeCharacter LimitRequired/OptionalDescription
line1String40RequiredStreet Address
line2String40OptionalStreet Address
cityString20RequiredCity
stateString2RequiredUS State Abbreviation Code
zipCodeString5RequiredFormat NNNNN

Prescription

Field Type Character Limit Required/Optional Description

prescriber

Object

Required

Object containing prescriber information. See Prescriber table.

rxNumber

String

12

Required

Rx number of the prescription as per client's system.

prescribedDrugName

String

60

Required

Name of the medication as prescribed by the prescriber.

prescribedNdc

String

11

Required

NDC prescribed by the prescriber.

dispenseNdc

String

11

Required

NDC dispensed by the pharmacy.

dispenseDrugName

String

60

Required

Name of the medication to be dispensed.

drugDosageForm

String

30

Required

Dosage form for the dispensed medication. For example: TABS,SWAB,CHEW etc.

drugStrength

String

15

Required

Medication Strength corresponding to dispensed drug as prescribed by provider.

daysSupply

Int32

Required

Number of days the medication covers as prescribed by the provider.

quantityWritten

Double

Required

Total Quantity (in Metric units) as prescribed by the provider.

firstFillDispensedQuantity

Double

Required

Quantity (in Metric units) that has been dispensed by the pharmacy in the** first fill**. Populate 0 if the transferring pharmacy has not dispensed any medication for the Rx.

quantityDispensedToDate

Double

Required

Quantity (in Metric units) that has been dispensed by the pharmacy till Date. Populate 0 if the transferring pharmacy has not dispensed any medication for the Rx.

remainingQuantity

Double

Required

Quantity (in Metric units) that is yet to be dispensed. It must be equal to quantityWritten - quantityDispensedtoDate.

labelDirections

String

200

Required

Prescription usage instructions. Also commonly referred to as the Instructions/Signature. This must be populated in English language and must not contain following characters:
| (Pipe), ^ (component separator), ~ (field repetition separator), (escape character), & (Sub-component separator)

writtenDate

Date-time

YYYY-MM-DD

Required

Written date of the prescription; Format YYYYMMDD.

expirationDate

Date-time

YYYY-MM-DD

Required

Prescription’s expiration date; Format YYYYMMDD.

dawCode

String

1

Required

DAW code as prescriber by prescriber.

refillsAuthorized

String

2

Required

Counts of refills authorized by prescriber.
If the prescriber authorized 4 refills, populate 4

lastFillDate

Date-time

YYYY-MM-DD

Optional

Date when last fill occurred. Format YYYY-MM-DD. Must populate for Transfer.
If the transfer pharmacy has not fulfilled any order yet, then populate NULL.

firstFillDate

Date-time

YYYY-MM-DD

Optional

Date when first fill occurred. Format YYYY-MM-DD.Must populate for Transfer.
If the transfer pharmacy has not fulfilled any order yet, then populate NULL.

fillsToDate

Int32

Required

Total number of fills fulfilled for the Rx till Date. If the transfer pharmacy has not fulfilled any order yet, then populate 0.
If the provider authorized 4 refills and 2 fills have been fulfilled, then populate 2

refillsLeft

Int32

Required

Total number of fills remaining. Should be equal to fillsAuthorized -fillsToDate.

refillsTransferred

Int32

Required

Number of refills being transferred to HD for fulfillment.
If the provider authorized 4 refills and 2 fills have been fulfilled, then populate 3

currentFillNumber

String

2

Required

Populate the current fill number. If there is no order fulfilled yet, populate 00.
If the provider authorized 4 refills and 2 fills have been fulfilled, then populate 02

Prescriber

FieldTypeCharacter LimitRequired/OptionalDescription
firstNameString35RequiredPrescriber (Doctor's) First Name
lastNameString35RequiredPrescriber (Doctor's) Last Name
npiString15RequiredPrescriber's NPI ID
deaString15OptionalPrescriber's DEA number
phoneNumberString10RequiredPrescriber's phone number
phoneNumberExtensionString8OptionalPrescriber's phone extension
faxNumberString10RequiredPrescriber's fax number
addressObjectRequiredPrescriber's address information. See Address table.