BINSERA EHR - ONC 170.315(g7) - Patient Selection API Documentation

1. API Overview

The Patient Selection API allows authorized users to retrieve patient information and generate a token for secure access.

2. Authentication

All requests require a valid JWT token from an authenticated provider.

3. API Endpoints & Parameters

Get All Patients

GET /api/patients

Response: Returns a list of patients.

Search Patients by Name & DOB

GET /api/patients/search?name=John&dob=1985-01-01

Parameters:

Response: Returns an array of matching patients.

Select a Patient by ID

GET /api/patients/{id}

Parameters:

Response: Returns the patient record and an access token.

4. Request Examples

Search for a Patient

    GET https://binsera.net/api/patients/search?name=John&dob=1985-01-01
    Authorization: Bearer {doctor_or_nurse_token}
    

Retrieve a Patient by ID

    GET https://binsera.net/api/patients/123
    Authorization: Bearer {doctor_or_nurse_token}
    

5. Response Examples

Search Response

    [
        {
            "PatientId": 123,
            "FirstName": "John",
            "LastName": "Doe",
            "DOB": "1985-01-01"
        }
    ]
    

Retrieve Patient Response

    {
        "PatientId": 123,
        "FirstName": "John",
        "LastName": "Doe",
        "DOB": "1985-01-01",
        "Token": "eyJhbGciOiJIUzI1NiIsInR..."
    }
    

6. Error Handling

If the patient is not found, the API returns:

    {
      "message": "Patient not found"
    }
    

7. Software Components & Configurations

To successfully interact with the API, an application must:

8. API Terms & Conditions

By accessing the API, you agree to the following terms:

For full API terms and conditions, refer to: https://binsera.com/api-terms

9. Public Access

This documentation is available at: https://binsera.com/g7-api-documentation