blueskyci/laravel-point-click-care

A laravel wrapper for Point Click Care

0.0.7 2023-12-29 13:36 UTC

This package is auto-updated.

Last update: 2024-04-29 14:23:03 UTC


README

WARNING - WIP [Paginated results not finished]

This composer package makes connecting and working with the PointClickCare API easier and more fluent within laravel.

Installation

composer require blueskyci/laravel-point-click-care

Publish the vendor files so that you can inherit configurations, migrations, and setup views.

php artisan vendor:publish --provider="Blueskyci\PointClickCare\PointClickCareServiceProvider"

Add the secrets to your .env file

POINTCLICKCARE_CLIENT_ID=
POINTCLICKCARE_CLIENT_SECRET=
POINTCLICKCARE_DEFAULT_ORG_UUID=

Usage

// Initiate a connection using client credentials
$pcc = PointClickCare::organization(); // Use the default org from .env
$pcc = PointClickCare::organization($orgUuid); // Override the org UUID

// returns a collection of facilities
$pcc->facilities()->all();

Available Resources

  • Facilities
    • Find
    • List
  • Patients
    • Find
    • List

Testing

composer test