satusehat-laravel-example
satusehat-laravel-example copied to clipboard
Example of SatusehatIntegration Laravel FHIR Library to Connect with SATUSEHAT
trafficstars
SATUSEHAT Integration Library Laravel Example Project
See SATUSEHAT Integration Library for more detailed feature or direct installation
Feature Demonstration - FHIR Controller
- [x] OAuth2 (POST)
- [x] KYC SATUSEHAT Platform
- [x] Using Encounter FHIR Classes
- [x] Using Condition FHIR Classes
How to use
Option 1 : Use the library
- Install the library by running
composer require ivanwilliammd/satusehat-integration - Setup your .env based on .env.example template
- See SATUSEHAT Integration Library for more detailed feature or direct installation
Option 2 : Use this project as-is (for KYC feature only)
Installation steps (optional for new project)
- Clone this repository
git clone - Install dependencies by running
composer install - Create composer autoload by running
composer dumpauto - Setup your .env based on .env.example template
- If setting up sqlite, create database.sqlite at database folder
- If setting up mysql, create database and setup .env based on your database configuration
- If setting up postgres, create database and setup .env based on your database configuration
- Don't forget to setup your SATUSEHAT environment variable configuration at .env
- Run migration
php artisan migrate:fresh --seed - Run the project
php artisan serve - Access the main URL and kogin with first main user :
Email : [email protected]
Password : satueshatindonesia
- Change the email and password of main master user from menu
Ubah Kata Sandi
Get the most updated code and library
- Pull the latest change
git pull - Update the library
composer update
KYC Feature (SATUSEHAT Production Only)
- Ensure that you have set your
SATUSEHAT_ENVat .env file withPROD - Add new user from menu
Daftar Penggunaand create new user using validNIKandNamato be recorded as verificator SATUSEHAT Platform - Login with the user you create, and you could access the KYC menu right now
Tips for setting up in local (Windows)
- Ensure your
php.inialready enabledphp_opensslextension - Ensure you already have your
OPENSSL_CONFpointing toopenssl.cnf - XAMPP openssl.cnf path
{XAMPP_INSTALLATION_DIRECTORY}\php\extras\ssl\openssl.cnf