Script / RxTransfer Data Object (Schemas)

📃

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.
sendingPharmacyObject sendingPharmacyRequiredContains information about the pharmacy transferring the prescription.
receivingPharmacyObject receivingPharmacyRequiredContains information about the pharmacy the prescription is being transferred to.
patientKeyString50RequiredUnique 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.
prescriptionObject prescriptionRequiredContains the prescription information.
transferFileTypeString3RequiredThe file type for the transfer file. Acceptable values are xml, png, and pdf.
transferFileUrlString2048RequiredBase 64 encoded URL where the XML or PNG transfer file can be downloaded from.
orTransferBooleanRequiredIf 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
pharmacistObject pharmacistRequiredObject containing information on the pharmacist.
contactObject contactRequiredObject containing contact information for the pharmacist.
addressObject addressRequiredObject containing the pharmacy address information.

Pharmacist

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

Contact

FieldTypeCharacter LimitRequired/OptionalDescription
firstNameString35OptionalFirst name of pharmacy or IT personnel to contact for details of the transferred prescription
lastNameString35OptionalLast name of pharmacy or IT personnel to contact for details of the transferred prescription
phoneString10OptionalPhone number of contact. Format:XXXXXXXXXX
faxString10OptionalFax number of contact Format:XXXXXXXXXX

Address

FieldTypeCharacter LimitRequired/OptionalDescription
line1String40RequiredStreet Address
line2String40OptionalStreet Address
cityString35RequiredCity
stateString2RequiredUS State Abbreviation Code
zipCodeString10RequiredFormat NNNNN or NNNNN-NNNN

Prescription

FieldTypeCharacter LimitRequired/OptionalDescription
rxNumberString12RequiredRx number of the prescription as per client's system.
prescribedDrugNameString105RequiredName of the medication as prescribed by the prescriber.
prescribedNdcString11RequiredNDC prescribed by the prescriber.
dispenseNdcString11OptionalField is required if orTransfer is True. NDC dispensed by the pharmacy.
dispenseDrugNameString105OptionalField is required if orTransfer is True. Name of the medication to be dispensed
drugDosageFormString30RequiredDosage form for the dispensed medication. For example: TABS, SWAB, CHEW, etc.
drugStrengthString10RequiredDrug strength (e.g., 125mcg).
daysSupplyIntegerRequiredNumber of days the medication is intended to last.
quantityDispensedToDateDecimalOptionalTotal quantity dispensed so far.
remainingQuantityDecimalOptionalRemaining quantity left to dispense.
labelDirectionsString255RequiredDirections for taking the medication.
writtenDateString10RequiredDate the prescription was written.
expirationDateString10OptionalDate the prescription expires.
dawCodeString1RequiredDispense As Written code.
lastFillDateString10OptionalDate of the last fill, if any.
firstFillDateString10OptionalDate of the first fill.
fillsToDateIntegerOptionalNumber of fills already made.
refillsAuthorizedIntegerRequiredTotal refills authorized by the prescriber.
refillsLeftIntegerOptionalRefills remaining.
refillsTransferredIntegerOptionalNumber of refills transferred to another pharmacy.
inactiveIndicatorBooleanRequiredIndicates if the prescription is inactive.
quantityWrittenDecimalRequiredQuantity prescribed.
firstFillDispensedQuantityDecimalOptionalQuantity dispensed on the first fill.
currentFillNumberIntegerOptionalFill number of the current dispense action.
prescriberObject prescriberRequiredObject containing prescriber information.

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
addressObject addressRequiredPrescriber's address information.

Prescriber Address

FieldTypeCharacter LimitRequired/OptionalDescription
line1String40RequiredStreet Address
line2String40OptionalStreet Address
cityString35RequiredCity
stateString2RequiredUS State Abbreviation Code
zipCodeString10RequiredFormat NNNNN or NNNNN-NNNN

GET Script Request

Query Parameter

FieldTypeCharacter LimitRequired/OptionalDescription
scriptKeyString50Required

Response Object

FieldTypeCharacter LimitRequired/OptionalDescription
scriptKeyString50Required
prescriptionObject prescriptionRequiredSee Prescription Response Detail table.

Prescription Response Detail

FieldTypeCharacter LimitDescription
rxNumberString20Rx number of the prescription
rxStatusString20Name of the medication as prescribed by the prescriber.
medicationPrescribedObject medicationPrescribedObject containing medication prescribed information.
medicationDispenseObject medicationDispensedObject containing medication dispensed information.
lastFillDateString10Date of the most recent fill.
patientKeyString10Identifier associated with the patient.
fillsRemainingString2Number of refills still available.
quantityRemainingString4Remaining quantity allowed to be filled.
metricQuantityString10Quantity in metric units, if available.
nextFillDateString10Next eligible fill date.
providerObject providerInformation about the prescribing provider. Object containing provider information.
supervisorObject supervisorOptional supervisor information. Object containing supervisor information.

Medication Prescribed

FieldTypeCharacter LimitDescription
writtenDrugNameString100Name of the drug as written by the provider.
writtenDrugNdcString11NDC of the written medication.
writtenGPIString20Generic Product Identifier code.
quantityWrittenIntegerQuantity prescribed.
writtenDateString10Date when the prescription was written.
expirationDateString10Date the prescription expires.
strengthString10Strength of the medication.
strengthUOMString10Unit of measurement for strength.
dosageFormString50Form of the medication (e.g., Tablet, Capsule).

Medication Dispensed

FieldTypeCharacter LimitDescription
drugNdcString11NDC of the dispensed drug.
drugGPIString20Generic Product Identifier for the dispensed drug.
drugNameString100Name of the dispensed drug.
daysSupplyString3Number of days the dispensed medication is intended to last.
strengthString10Strength of the dispensed drug.
strengthUOMString10Unit of measurement for strength.
dosageFOrmString50Form of the dispensed medication.
sigInstructionsString255Instructions for use (SIG).
dawString1Dispense As Written code.
refillsAuthorizedString2Number of refills authorized.

Provider

FieldTypeCharacter LimitDescription
nameString100Provider’s name.
npiString10National Provider Identifier.
stateLicenseNumberString20State license number.
deaString20DEA number of the provider.

Supervisor

FieldTypeCharacter LimitDescription
lastNameString50Supervisor's last name.
firstNameString50Supervisor's first name.
npiString10Supervisor’s NPI number.
deaString20DEA number of the provider.
stateLicenseNumberString20Supervisor’s state license number.

GET Patient Scripts/Prescriptions Request

Query Parameter

FieldTypeCharacter LimitRequired/OptionalDescription
patientKeyString50RequiredUnique patient ID in Client system.

Response Object

FieldTypeDescription
scriptKeysArrayList of Unique IDs assigned by client to each prescription transfer request for tracking.