Introduction
The Doceree Assist API Integration document provides instructions to our Publisher partners so that they can configure and incorporate the required integration points, in their respective setup, to communicate with Doceree AssistTM.
Overview
The solution provided by Doceree AssistTM, enables our supply partners to generate contextually relevant affordability messages (branded as well as generic coupons) that can be distributed over different EHR (Electronic Health Record) systems, to patients whereby they (patients) can gain affordability benefits by utilizing these coupons in network pharmacies.
Affordability messages (coupons) thus generated are based on the patient’s prescription as administered by the corresponding Health Care Professional (HCP) using their specific EHR setups. Moreover, these messages appear on the e-prescription page of an EHR system in response to the medication selected by the HCP depending upon the fact whether a utilizable coupon, associated with the selected medicine, is available at that point of time for distribution to the patient.
Doceree Affordability Messaging Mechanism
There are two primary distribution channels of affordability messaging (coupons) within the Doceree affordability messaging landscape, namely (A) Pharmacies and (B) Patients. Furthermore, distribution of coupons to patients can take place using the following communication mediums: (1) Portal, (2) Print, (3) E-mail, and (4) Text.
Distribution to Pharmacies
For distribution of coupons to pharmacies, the e-prescription (eRx) page or the concerned EHR system having the Doceree AssistTM API endpoint integrated on it, sends a coupon request to Doceree ExchangeTM.
The coupon request send by eRx\EHR would have the required NDC code of the drug that is prescribed by the HCP. However, for specific API integrations the coupon request send to Doceree ExchangeTM would also include the NCPDP (National Council for Prescription Drug Programs) as well.
After receiving the request, from the concerned eRx\EHR, Doceree ExchangeTM will return (1) a Branded Coupon if it is available against the corresponding NDC code or return (2) a Generic Coupon if it is available against the said NDC code and distribute it accordingly to the indicated distribution channel.
Next, a distribution signal along with the channel type for coupon distribution is also sent to Doceree ExchangeTM by the concerned eRx\EHR.
Then the pharmacy will receive the eRx and apply the said affordability message (coupon) on the bill before they hand over the prescribed medication to the concerned patient.
Coupon Distribution Option for Pharmacy
Distribution to Patients
In case of distribution of the affordability message (coupon) to patients, the e-prescription (eRx) page or the concerned EHR system having the Doceree AssistTM API endpoint integrated on it, sends a coupon request to Doceree ExchangeTM similar to the process flow for a distribution of coupons to pharmacies.
Here again the coupon request send by eRx\EHR would have the required NDC code of the drug that is prescribed by the HCP. However, for specific API integrations the coupon request send to Doceree ExchangeTM would also include the NCPDP (National Council for Prescription Drug Programs) as well.
After receiving the request, from the concerned eRx\EHR, Doceree ExchangeTM will return (1) a Branded Coupon if it is available against the corresponding NDC code or return (2) a Generic Coupon if it is available against the said NDC code and distribute it accordingly to the indicated distribution channel.
Next, a distribution signal along with the channel type for coupon distribution is also sent to Doceree ExchangeTM by the concerned eRx\EHR.
Then the patient will receive the coupon as per their preferred choice of medium (portal, print, e-mail, or text).
Coupon Distribution Options for Patient
The said patient can then present the affordability message (coupon) at the concerned pharmacy and take the benefit for the same, from the pharmacy, at the time of receiving the medication.
Here is a description of the four distinct approaches for the distribution of affordability messaging to patients:
Portal
As per the portal-based approach the said affordability message (coupon) is posted directly to the inbox or pharmacy notes (depending on the integration between the EHR and pharmacy) of the concerned patient portal once the HCP creates a prescription.
As per this approach the said affordability message (coupon) is printed out along in the HCPs office for manual delivery to the patient once the prescription is created.
Print Message
As per the e-mail-based approach an e-mail message is sent to the patient’s e-mail inbox once the HCP creates a prescription.
E-mail Message
Text
As per the text-based approach a text message is sent to the patient’s mobile phone once the prescription is created by the HCP.
Text Message
Data Flow
To begin with the Publisher integrates the Doceree Assist API at their end.
Once integrated the data flow of the Doceree Assist API works as follows:
- Coupon request call (Publisher)
- Coupon response (Doceree)
- Coupon View Tracker (Publisher to invoke Doceree coupon view URL)
- Distribution Tracker (Publisher to invoke Doceree distribution URL)
The following diagram illustrates the flow of data once the Doceree Assist API is integrated by the respective Publisher:
Data Flow Between Doceree and Publisher
Note: The coupon request call from the Publisher will certainly send the NDC (National Drug Code) code to Doceree and as per certain Publisher configurations the said coupon request call would additionally include the NCPDP ID, as well.
*The NDC code is a unique, universal product identifier for human drugs in the United States. It represents a unique 10-digit or 11-digit number comprising of three segments: the First segment establishes the name of the drug manufacturer or their labeler, the Second segment identifies the product code (specifically the form the drug dosage is in: capsule, tablet, syrup, suspension, etc.), and the Third segment represents the package code for identifying characteristics of the said package such as its size and type.
**The NCPDP ID is a unique, national identification number (an ID) that is assigned by NCPDP to every licensed pharmacy located across the United States and its territories.
Request
POST couponRequest
https://bidder.doceree.com/v1/ndc_coupon?npi=1649275884¤tUrl=dsads?npi=1649275884
PARAMS | |
Npi | 1649275884 |
currentUrl | dsads?npi=1649275884 |
BODY raw
{
"ndc":["0093-1118", "0093-1122"],
"ncpdp":["0202123","0201436"],
"placementId":"DOC_1x1mkl7sz4e4v"
}
Request Parameters
The two request query parameters included are: the NPI (National Provider Identifier) of the HCP and the page URL (Uniform Resource Locator).
The Npi parameter is a 10 digits number (string) that represents the identifier of the HCP accessing the page where the coupon is placed whereas the currentURl (string) is the URL of the page that has send the coupon request.
Request Payload
The request payload includes these parameters namely the ndc, the ncpdp, and the placementId.
The ndc (array of a string) represents the drug code, the ncpdp (array of a string) represents the ncpdp id of the pharmacy, and the placementId (string) represents the div id of the web page from where the said coupon request has come from.
Note: The ndc and the placementId parameters are mandatory whereas ncpdp is an optional parameter.
Response
Following is a sample response, from the Doceree ad server, for the coupon request that it receives from a Publisher for delivering a co-pay coupon:
{
"creativeType": "copay",
"placementID": "DOC_l5aajkbdpiz6x",
"width": "250",
"height": "250",
"platformUID": "",
"version": "v2",
"maxAge": 2592000,
"sourceHTML": "<html></html>",
"programID": "627257f37ee28f75e7993055",
"guid": "1a0aa1c7-8ecf-44aa-b59d-9c2db4a3c71c",
"couponViewUrl": "https://tracking.doceree.com/coupon_tracking/cp_view?ad=5ee4dbf75729300013e79b1d\u0026brid=1a0aa1c7-8ecf-44aa-b59d-9c2db4a3c71c\u0026ca=\u0026cr=62725e478326678b77838907\u0026data=1a0aa1c7-8ecf-44aa-b59d-9c2db4a3c71c_cp_view\u0026im=944d6808-d365-49de-a7d7-b631e22af0cf\u0026pb=5e34269f4bf9660013e4a971\u0026sb=\u0026ts=1655897107029\u0026zrurl=",
"distributionUrl": "https://tracking.doceree.com/coupon_tracking/distribution?ad=5ee4dbf75729300013e79b1d\u0026brid=1a0aa1c7-8ecf-44aa-b59d-9c2db4a3c71c\u0026ca=\u0026cr=62725e478326678b77838907\u0026data=1a0aa1c7-8ecf-44aa-b59d-9c2db4a3c71c_distribution\u0026im=944d6808-d365-49de-a7d7-b631e22af0cf\u0026pb=5e34269f4bf9660013e4a971\u0026sb=\u0026ts=1655897107029\u0026zrurl=",
"passbackTag": "",
"errMessage": "",
"newPlatformUid": "",
"debugMessage": ""
}
GET Track couponView
https://tracking.doceree.com/coupon_tracking/cp_view?ad=5ee4dbf75729300013e79b1d&brid=a6207ecb-10e9-474b-8165-5507cd5aa006&ca=&cr=62725e478326678b77838907&data=a6207ecb-10e9-474b-8165-5507cd5aa006_cp_view&im=519bc705-6328-4c9d-8876-a0c100843d5f&pb=5e34269f4bf9660013e4a971&sb=&ts=1655114590212&zrurl=
HEADERS | |
Upgrade-Insecure-Requests |
1 |
User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36 |
sec-ch-ua | ".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103" |
sec-ch-ua-mobile | ?0 |
sec-ch-ua-platform |
"macOS" |
PARAMS | |
Ad | 5ee4dbf75729300013e79b1d |
Brid | a6207ecb-10e9-474b-8165-5507cd5aa006 |
Ca | |
Cr | 62725e478326678b77838907 |
Data | a6207ecb-10e9-474b-8165-5507cd5aa006_cp_view |
Im | 519bc705-6328-4c9d-8876-a0c100843d5f |
Pb | 5e34269f4bf9660013e4a971 |
Sb | |
Ts | 1655114590212 |
Zrurl |
GET Track distribution
https://tracking.doceree.com/coupon_tracking/distribution?ad=5ee4dbf75729300013e79b1d&brid=4729746c-a4b1-479e-aac0-18171edc01fc&ca=&cr=62725e478326678b77838907&data=4729746c-a4b1-479e-aac0-18171edc01fc_distribution&im=8d057ed6-8f3b-45b2-9fc7-422e304f6512&pb=5e34269f4bf9660013e4a971&sb=&ts=1654673286149&zrurl=
HEADERS | |
Upgrade-Insecure-Requests | 1 |
User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36 |
sec-ch-ua | ".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103" |
sec-ch-ua-mobile | ?0 |
sec-ch-ua-platform | "macOS" |
PARAMS | |
Ad | 5ee4dbf75729300013e79b1d |
Brid | 4729746c-a4b1-479e-aac0-18171edc01fc |
Ca | |
Cr | 62725e478326678b77838907 |
Data | 4729746c-a4b1-479e-aac0-18171edc01fc_distribution |
Im | 8d057ed6-8f3b-45b2-9fc7-422e304f6512 |
Pb | 5e34269f4bf9660013e4a971 |
Sb | |
Ts | 1654673286149 |
Zrurl |
Comments
0 comments
Please sign in to leave a comment.