Instructions
-
Create a patient and note the patientId [e.g.
pat_123
] and set the Patient’s preferred pharmacy via web app (app.neutron.health). A preferred pharmacy can also be set via the Clinical API sandbox: https://app.neutron.health/playgroundmutation SetPatientPrefPharmacy($patientId:ID!, $pharmacies: [ID]) { updatePatient(id: $patientId, preferredPharmacies: $pharmacies) { id preferredPharmacies { id } } }
{ "patientId": "pat_123", "pharmacies": ["phr_01GA9HPV354YPQATCPCCE8D9N3"] }
-
Create the Benefit via Patient Benefit API sandbox: https://clinical-api.neutron.health/graphql
mutation CreateBenefit($input: BenefitInput!) { createBenefit(input: $input) { id bin groupId memberId pcn } }
{ "input": { "bin": "020321", "groupId": null, "memberId": "PCMSMEM001", "pcn": null, "patientId": "pat_123" } }
-
Run your embed app in the staging environment with attribute
enable-coverage-check="true"
andpatient-id="pat_123"
. See https://docs.photon.health/docs/elements for more information. -
Add a prescription for the medication with the parameters specified in the test case.
-
Check the Pending Order section, and RTBC results should load.
Test Case 1: PA Required, 1 Alternative
Only 1 benefit should be assigned to each patient during testing, because only the most recently added benefit will be utilized for benefits check.
Benefit
{
"bin": "020321",
"groupId": null,
"memberId": "PCMSMEM001",
"pcn": null,
"patientId": "pat_123"
}
Patient Preferred Pharmacy
Pharmacy ID: any should work [e.g. Walgreens phr_01GA9HPV354YPQATCPCCE8D9N3
]
Medication
Victoza Subcutaneous Solution Pen-injector 18 MG/3ML
days supply | quantity | unit | dispense as written |
---|---|---|---|
30 | 6 | Each | false |
Expected Result

Test Case 2: Covered
Benefit
{
"bin": "610014",
"groupId": null,
"memberId": "",
"pcn": null,
"patientId": "pat_456"
}
Patient Preferred Pharmacy
Pharmacy ID: any should work [e.g. Walgreens phr_01GA9HPXP2NQQFPTXZHHJ5QTR6
]
Medication
Any should work. [e.g. Amoxicillin Oral Tablet 500 MG]
days supply | quantity | unit | dispense as written |
---|---|---|---|
30 | 30 | Each | false |
Expected Result
