This page is for programmers integrating with the MDScripts dispensing system. The page provides information and sample links for your testing purposes. In order to use this page, you will need a site id (5 digits), username and password. These 3 fields identify the site/user for the interface and are the same used on the login screen to access the system. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Link Example #1: Take user to inventory screen https://www.mdscripts.com/dis/servlet/dis.Main?n=RemoteLogin&siteId=00000&username=username&password=password&target=ShowInventory Parameters:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Button Example: Use button or image instead of link For any of the link examples on this page, you can elect to use an link image or button instead of a text link. Which one you use will depend on which blends in better in your application's user interface. Using a button has a few advantages like easier for the user to locate/click, and you don't have to URL Encode the parameters since the browser form does it when the HTTP POST is transmitted. To use a button instead of link, Example Link #1 would appear like this: Sample HTML Code: <form method="POST" action="https://www.mdscripts.com/dis/servlet/dis.Main" target="newWindow"> <input type="hidden" name="n" value="RemoteLogin"> <input type="hidden" name="siteId" value="00000"> <input type="hidden" name="username" value="username"> <input type="hidden" name="password" value="password"> <input type="hidden" name="target" value="ShowInventory"> <input type="submit" name="submit" value="eDispense"> </form> This Sample HTML generates the HTML button: You can change the button text to whatever you like and apply any HTML style to this button. If you need more assistance on constructing HTTP POSTS using HTML forms, please let us know. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Link Example #2: Get inventory in CSV format https://www.mdscripts.com/dis/servlet/dis.Main?n=RemoteLogin&siteId=00000&username=username&password=password&target=ShowExportInventory Parameters:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Link Example #3: Dispense to blank patient https://www.mdscripts.com/dis/servlet/dis.Main?n=RemoteLogin&siteId=00000&username=username&password=password&target=ShowCart Parameters:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Link Example #4: Dispense to patient with patient data only (no prescription information) https://www.mdscripts.com/dis/servlet/dis.Main?n=RemoteLogin&siteId=00000&username=username&password=password&target=ShowCart&externalId=P100&store=1&firstName=Mary+Ann&lastName=Wellby Parameters:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Link Example #5: Dispense to patient with patient AND prescription information https://www.mdscripts.com/dis/servlet/dis.Main?n=RemoteLogin&siteId=00000&username=username&password=password&target=ShowCart&externalId=P100&store=1&firstName=Mary+Ann&lastName=Wellby &ndc1=55885020030&qty1=30&refills1=5&sig1=Take+1+a+day&icd101=M06.372&daysSupply1=30 Parameters:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The prescription information below is sent in addition to the patient information shown in the previous example. Multiple prescriptions are sent through the one call therefore the parameters below are enumerated 1..N . For example, ndc1,ndc2,ndc3 would be sent for the NDC numbers of the 1st, 2nd and 3rd prescriptions.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Link Example #6: Dispense to patient with patient AND insurance information (NCPDP) https://www.mdscripts.com/dis/servlet/dis.Main?n=RemoteLogin&siteId=00000&username=username&password=password&target=ShowCart&externalId=P100&store=1&firstName=Mary+Ann&lastName=Wellby &bin1=610029&pcn1=CRK&cardholderId1=123456&groupId1=GRPA&personCode1=2&relationshipCode1=2&primaryFirstName1=John&primaryLastName1=Smith Parameters:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The insurance information below is sent in addition to the patient information shown in the previous example. Multiple multiple insurance information is sent through the one call therefore the parameters below are enumerated 1..4 . For example, bin1,bin2,bin3 would be sent for the BIN numbers of the 1st, 2nd and 3rd insurance cards.
|
n: | Should always be "RemoteLogin" to access this api |
siteId: | Five digit site id number |
username: | username |
password: | password |
target: | ShowSearchPharmacies is the name of the screen to search for pharmacies that support the receiving of e-prescriptions |
search | Name of pharmacy (requires at least 3 characters) |
city | City of pharmacy |
state | State or state code of pharmacy |
zip | Zip of pharmacy |
type | Type of pharmacy (retail, mailOrder, inHouseDispensing) |
afterName | Get pharmacies sorted afterName (More ... option) |
accept | Data type returned (default=csv, xml, json) |