Benefits Test Data

Instructions

  1. 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/playground

    mutation SetPatientPrefPharmacy($patientId:ID!, $pharmacies: [ID]) {
      updatePatient(id: $patientId, preferredPharmacies: $pharmacies) {
        id
        preferredPharmacies {
          id
        }
      }
    }
    
    {
      "patientId": "pat_123",
      "pharmacies": ["phr_01GA9HPV354YPQATCPCCE8D9N3"]
    }
    
  2. 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"
      }
    }
    

  3. Run your embed app in the staging environment with attribute enable-coverage-check="true" and patient-id="pat_123" . See https://docs.photon.health/docs/elements for more information.

  4. Add a prescription for the medication with the parameters specified in the test case.

  5. 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 supplyquantityunitdispense as written
306Eachfalse

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 supplyquantityunitdispense as written
3030Eachfalse

Expected Result