- Added: API KFA
- Updated : OAuth parameter changed from base_url to fhir_url
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.9.7...2.9.8
- @ivanwilliammd Revert mandatory requirement of Patient.address on #60
- Add new physical location type ( Bed ) by @yudistirasd in #63
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.9.6...2.9.7
- Disable required address in Patient by @IrsyadProject in #60
- Hotfix organization by @yudistirasd ft. @ivanwilliammd in #62
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.9.5...2.9.6
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.9.3...2.9.5
Hotfix by @ivanwilliammd for kode wilayah Indonesia migration --> 2.9.x feat by @IrsyadProject)
- Update CSV data kode wilayah dari KEMENDAGRI Tahun 2023, update migration & seeder kode wilayah by @IrsyadProject in #59
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.9.2...2.9.3
- fix: bug migration kode wilayah indonesia by @IrsyadProject in #58
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.9.1...2.9.2
- fix: kode wilayah indonesia by @IrsyadProject in #57
- @IrsyadProject made their first contribution in #57
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.9.0...2.9.1
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in #54
- Fixed put function for for encounter, condition, location, observation
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.8.3...2.9.0
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.8.2...2.8.3
- Full updated dependencies for Laravel 11 (Illuminate 11)
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.7.0...2.8.0
- Add composer.json declaration to support php 8.2+ / 8.3+
- Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in #47
- Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in #48
- Fix seach patient by nik by @widialjatsiyah in #50
- @widialjatsiyah made their first contribution in #50
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.6.0...2.7.0
- Refactor Exception Handling with some fix by @yudistirasd in #44
- 43 refactoring exception handlling by @ivanwilliammd in #45
- fixed OAuthClient.php by @ivanwilliammd in #46
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.5.1...2.6.0
- hotfix multitenancy feature and strictly typed OAuthClient.php by @ivanwilliammd in #42
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.5.0...2.5.1
- Added: API KFA
- Updated : OAuth parameter changed from base_url to fhir_url
- KFA Integration by @yudistirasd in #38
- 31 api kfa by @ivanwilliammd in #39
- updated v2.5.0 by @ivanwilliammd in #40
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.4.0...2.5.0
- Update: OAuth2Client, Patient, and Organization by @SyaefulKai in #36
- Added compatibility for Patient Post with identifier
nik-ibu
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.3.3...2.4.0
- updated json function inside bundle by @ivanwilliammd in #34
- @ivanwilliammd made their contribution in #34
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.3.2...2.3.3
- improvement: Condition throw exception error by @SyaefulKai in #29
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.3.1...2.3.2
- fix: Encounter & Condition bundle by @SyaefulKai in #27
- Linkage of urn:uuid between Encounter & Condition
- Updated wiki
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.3.0...2.3.1
- feat: Encounter & Condition bundle by @SyaefulKai in #26
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.2.1...2.3.0
- Initiation of bundle support
- Minor Bug fix
- Change test to use PHPUnit 9 for support of 7.4, 8.1, 8.2, 8.3
- Added Kode Wilayah Indonesia (KodWilId) class
- Minor default parameter of
ss_parameter_override
to false in satusehat config file - Updated .env.example
- Splitted terminology model
- Added new migration database, and seeder
- Expanded Practitioner GET Model
- Updated satusehat config file to support multitenancy with overloading in Controller using
http://github.com/mpociot/teamwork
package
Example of overloaded BaseController in Laravel 8+:
<?php
namespace App\Http\Controllers\Satusehat;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
// Auth
use Illuminate\Support\Facades\Auth;
class BaseController extends Controller
{
//
public function overrideEnvironment($ss_oauth2){
$this->currentTeam= Auth::user()->currentTeam;
$ss_oauth2->satusehat_env = $this->currentTeam->ss_environment;
// Override construct parameter
if($this->currentTeam){
if($ss_oauth2->satusehat_env == 'PROD'){
$ss_oauth2->auth_url = getenv('SATUSEHAT_AUTH_PROD', 'https://api-satusehat.kemkes.go.id/oauth2/v1');
$ss_oauth2->base_url = getenv('SATUSEHAT_FHIR_PROD', 'https://api-satusehat.kemkes.go.id/fhir-r4/v1');
$ss_oauth2->client_id = $this->currentTeam->ss_prod_client_id;
$ss_oauth2->client_secret = $this->currentTeam->ss_prod_client_secret;
$ss_oauth2->organization_id = $this->currentTeam->ss_prod_organization_id;
} elseif($ss_oauth2->satusehat_env == 'STG'){
$ss_oauth2->auth_url = getenv('SATUSEHAT_AUTH_STG', 'https://api-satusehat-stg.dto.kemkes.go.id/oauth2/v1');
$ss_oauth2->base_url = getenv('SATUSEHAT_FHIR_STG', 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1');
$ss_oauth2->client_id = $this->currentTeam->ss_stg_client_id;
$ss_oauth2->client_secret = $this->currentTeam->ss_stg_client_secret;
$ss_oauth2->organization_id = $this->currentTeam->ss_stg_organization_id;
} elseif($ss_oauth2->satusehat_env == 'DEV'){
$ss_oauth2->auth_url = getenv('SATUSEHAT_AUTH_DEV', 'https://api-satusehat-dev.dto.kemkes.go.id/oauth2/v1');
$ss_oauth2->base_url = getenv('SATUSEHAT_FHIR_DEV', 'https://api-satusehat-dev.dto.kemkes.go.id/fhir-r4/v1');
$ss_oauth2->client_id = $this->currentTeam->ss_dev_client_id;
$ss_oauth2->client_secret = $this->currentTeam->ss_dev_client_secret;
$ss_oauth2->organization_id = $this->currentTeam->ss_dev_organization_id;
} else {
return redirect()->route('admin.home')->withDanger('Anda belum menambahkan settingan environment SATUSEHAT pada Database.');
}
}
return $ss_oauth2;
}
}
v1.2.x :
- Backlog Compatilibity with Laravel 8+ (PHP 7.4) / Laravel 9 (PHP 8.0+) / Laravel 10 (PHP 8.1+)
- Bug fixing
- Splitted Encounter statusHistory
- Added functionality of Patient,
- Minor adjustmnent of Organization, Location, and OAuth2Client
- Minor bug fix
v1.1 :
- Standardize json() function to result encoded one with pretty print and no escape sequence
- Major functional fix of Encounter & Condition function class. Conversion to ATOM type datetime
- Added beta functionality of Observation
- Fixing inconsistency and function in Condition
- Updated timezone format
v1.0 :
- First beta version with PHP Class and consistency update of ICD 10-column migration
- Added faster batch import using csv seeder library
v0.15 :
- Last v0 series internally tested for creating OAuth 2
- Shipped basic method for GET by NIK function
- Shipped POST / PUT on FHIR object directly at Encounter, Condition, Organization, Location
- Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in #23
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.2.0...2.2.1
- [WIP] Backward compatibility to PHP-7.4 by @YogiPristiawan in #22
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.1.0...2.2.0
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/2.0.1...2.1.0
v2.1.x :
- Added Kode Wilayah Indonesia (KodWilId) class
- Minor default parameter of
ss_parameter_override
to false in satusehat config file - Updated .env.example
v2.0.x :
- Splitted terminology model
- Added new migration database, and seeder
- Expanded Practitioner GET Model
- Updated satusehat config file to support multitenancy with overloading in Controller using
http://github.com/mpociot/teamwork
package
Example of overloaded BaseController in Laravel 8+:
<?php
namespace App\Http\Controllers\Satusehat;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
// Auth
use Illuminate\Support\Facades\Auth;
class BaseController extends Controller
{
//
public function overrideEnvironment($ss_oauth2){
$this->currentTeam= Auth::user()->currentTeam;
$ss_oauth2->satusehat_env = $this->currentTeam->ss_environment;
// Override construct parameter
if($this->currentTeam){
if($ss_oauth2->satusehat_env == 'PROD'){
$ss_oauth2->auth_url = getenv('SATUSEHAT_AUTH_PROD', 'https://api-satusehat.kemkes.go.id/oauth2/v1');
$ss_oauth2->base_url = getenv('SATUSEHAT_FHIR_PROD', 'https://api-satusehat.kemkes.go.id/fhir-r4/v1');
$ss_oauth2->client_id = $this->currentTeam->ss_prod_client_id;
$ss_oauth2->client_secret = $this->currentTeam->ss_prod_client_secret;
$ss_oauth2->organization_id = $this->currentTeam->ss_prod_organization_id;
} elseif($ss_oauth2->satusehat_env == 'STG'){
$ss_oauth2->auth_url = getenv('SATUSEHAT_AUTH_STG', 'https://api-satusehat-stg.dto.kemkes.go.id/oauth2/v1');
$ss_oauth2->base_url = getenv('SATUSEHAT_FHIR_STG', 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1');
$ss_oauth2->client_id = $this->currentTeam->ss_stg_client_id;
$ss_oauth2->client_secret = $this->currentTeam->ss_stg_client_secret;
$ss_oauth2->organization_id = $this->currentTeam->ss_stg_organization_id;
} elseif($ss_oauth2->satusehat_env == 'DEV'){
$ss_oauth2->auth_url = getenv('SATUSEHAT_AUTH_DEV', 'https://api-satusehat-dev.dto.kemkes.go.id/oauth2/v1');
$ss_oauth2->base_url = getenv('SATUSEHAT_FHIR_DEV', 'https://api-satusehat-dev.dto.kemkes.go.id/fhir-r4/v1');
$ss_oauth2->client_id = $this->currentTeam->ss_dev_client_id;
$ss_oauth2->client_secret = $this->currentTeam->ss_dev_client_secret;
$ss_oauth2->organization_id = $this->currentTeam->ss_dev_organization_id;
} else {
return redirect()->route('admin.home')->withDanger('Anda belum menambahkan settingan environment SATUSEHAT pada Database.');
}
}
return $ss_oauth2;
}
}
- @yudistirasd made their first contribution in #14
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/1.2.0...1.2.1
- Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in #6
- fix: undefined variable by @SyaefulKai in #8
- feat: patient by @SyaefulKai in #9
- fix: organization by @SyaefulKai in #10
- fix: OAuth2Client by @SyaefulKai in #11
- split encounter addStatusHistory method by @SyaefulKai in #12
- Update Encounter, Condition and Observation by @SyaefulKai in #15
- @SyaefulKai made their first contribution in #8
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/1.1...1.2.0
- Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in #6
- fix: undefined variable by @SyaefulKai in #8
- feat: patient by @SyaefulKai in #9
- fix: organization by @SyaefulKai in #10
- fix: OAuth2Client by @SyaefulKai in #11
- split encounter addStatusHistory method by @SyaefulKai in #12
- Update Encounter, Condition and Observation by @SyaefulKai in #15
- @SyaefulKai made their first contribution in #8
Full Changelog: https://github.com/ivanwilliammd/satusehat-integration/compare/1.1...1.2