https://github.com/ivanwilliammd/satusehat-laravel-example
Example of SatusehatIntegration Laravel FHIR Library to Connect with SATUSEHAT
https://github.com/ivanwilliammd/satusehat-laravel-example
composer laravel10 php81 satusehat satusehat-integration satusehat-kyc
Last synced: 7 months ago
JSON representation
Example of SatusehatIntegration Laravel FHIR Library to Connect with SATUSEHAT
- Host: GitHub
- URL: https://github.com/ivanwilliammd/satusehat-laravel-example
- Owner: ivanwilliammd
- License: mit
- Created: 2023-09-17T12:12:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T18:47:16.000Z (almost 2 years ago)
- Last Synced: 2025-05-05T17:32:08.712Z (9 months ago)
- Topics: composer, laravel10, php81, satusehat, satusehat-integration, satusehat-kyc
- Language: PHP
- Homepage:
- Size: 3.74 MB
- Stars: 28
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# SATUSEHAT Integration Library Laravel Example Project
See [SATUSEHAT Integration Library](https://github.com/ivanwilliammd/satusehat-integration/wiki#getting-started) for more detailed feature or direct installation
## Feature Demonstration - [FHIR Controller](app/Http/Controllers/FhirController.php)
- [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
1. Install the library by running ```composer require ivanwilliammd/satusehat-integration```
2. Setup your .env based on .env.example template
3. See [SATUSEHAT Integration Library](https://github.com/ivanwilliammd/satusehat-integration/wiki#getting-started) for more detailed feature or direct installation
## Option 2 : Use this project as-is (for KYC feature only)
### Installation steps (optional for new project)
1. Clone this repository ```git clone```
2. Install dependencies by running ```composer install```
3. Create composer autoload by running ```composer dumpauto```
4. 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
5. Run migration ```php artisan migrate:fresh --seed```
6. Run the project ```php artisan serve```
7. Access the main URL and kogin with first main user :
```
Email : admin@satusehatlaravel.com
Password : satueshatindonesia
```
8. Change the email and password of main master user from menu ```Ubah Kata Sandi```
### Get the most updated code and library
1. Pull the latest change ```git pull```
2. Update the library ```composer update```
### KYC Feature (SATUSEHAT Production Only)
1. Ensure that you have set your ```SATUSEHAT_ENV``` at .env file with ```PROD```
2. Add new user from menu ```Daftar Pengguna``` and create new user using valid ```NIK``` and ```Nama``` to be recorded as verificator SATUSEHAT Platform
3. Login with the user you create, and you could access the KYC menu right now
### Tips for setting up in local (Windows)
1. Ensure your ```php.ini``` already enabled ```php_openssl``` extension
2. Ensure you already have your ```OPENSSL_CONF``` pointing to ```openssl.cnf```
3. XAMPP openssl.cnf path ```{XAMPP_INSTALLATION_DIRECTORY}\php\extras\ssl\openssl.cnf```