Giter Site home page Giter Site logo

ivanwilliammd / satusehat-integration Goto Github PK

View Code? Open in Web Editor NEW
35.0 3.0 30.0 1.23 MB

SATUSEHAT Integration Library

Home Page: https://packagist.org/packages/ivanwilliammd/satusehat-integration

License: MIT License

PHP 100.00%
fhir-client health-informatics healthcare integration kyc laravel-package php74 php80 php81 php82 php83 satusehat-kyc satusehat-mobile

satusehat-integration's Introduction

Build SATUSEHAT FHIR Object in Easy Way

Latest Version on Packagist Tests Total Downloads

This unofficial SATUSEHAT FHIR PHP Library to help generate FHIR resources JSON and sent it via SATUSEHAT API.

Example Laravel 10 Project with SATUSEHAT Integration

See satusehat-integration library in action here

Want to contribute?

See how to contribute at this page.

Quick Installation

See Quick Installation Instructions here
Feel your first time using this library at Onboarding page here

Features

See the feature Wiki page here

Full usage guide

Fully documented usage guide could be found on the Usage Wiki section here

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

  1. dr. Ivan William Harsono, MTI
  2. Syaeful
  3. Yogi Pristiawan
  4. Yudistira

License

The MIT License (MIT). Please see License File for more information.

satusehat-integration's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

satusehat-integration's Issues

Post Organization Gagal

saya mencoba seperti pada dokumentasi untuk melakukan POST Organization dengan code seperti ini
image

Tetapi ketika saya vardump dan melihat log yang ada di database menunjukkan error 400 seperti ini
image

ketika saya vardump result dari json nya dan saya masukin melalui postman itu 201 created, tetapi ketika di project saya muncul error seperti itu. Apakah code implementasi saya yang kurang tepat? Mohon bantuannya

Encounter - wrong Wrong organization ID provided by system URL

halooo
mohon bantuan untuk pengiriman data ke encounter

saya mendapatkan respon
{ "resourceType": "OperationOutcome", "text": { "status": "generated" }, "issue": [ { "severity": "error", "code": "value", "details": { "text": "Wrong organization ID provided by system URL: http://sys-ids.kemkes.go.id/encounter/100025753 (RuleNumber: 10117)" }, "expression": [ "Encounter.identifier[0].system" ] } ] }

saya sudah menggunakan organization id dari master sarana
playload :
{ "resourceType": "Encounter", "identifier": [ { "system": "http://sys-ids.kemkes.go.id/encounter/100025753", "value": "20240221000060" } ], "status": "arrived", "period": { "start": "2024-03-18T04:54:02+00:00" }, "statusHistory": [ { "status": "arrived", "period": { "start": "2024-03-18T04:54:02+00:00" } } ], "class": { "code": "AMB", "display": "ambulatory", "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" }, "subject": { "reference": "Patient/P01934888239", "display": "LUSIA LERO" }, "participant": [ { "individual": { "reference": "Practitioner/1000687602", "display": "dr. ADE SINYO ARISTANTRISNA, Sp.B" }, "type": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", "code": "ATND", "display": "attender" } ] } ] } ], "location": [ { "location": { "reference": "Location/7910d7a1-0383-4858-92c9-64471a32c587", "display": "Klinik Bedah" } } ], "serviceProvider": { "reference": "Organization/100025753" } }

apakah ada yang salah dengan data yang saya kirim
mohon bantuannya

Wiki Documentation 1.2

To contributor v1.2 : @SyaefulKai

Untuk feat yang sudah dibuat, bisa dibuatkan contoh example penggunaannya kah untuk saya tambahkan ke Wiki?

Terimakasih

Refactoring - Exception Handlling

Based on suggestion di thread ini
#31 (comment)

ada usulan untuk buat new Folder untuk handling exception baru dan melakukan refactoring.

Note:

  1. Code perlu dipastikan backward compatible dari 7.4, 8.0, 8.1, 8.2, 8.3
  2. Jangan melakukan strictly typing berlebihan khususnya untuk ternary based variable

Future Feature : Terminology (LOINC - Vital sign, Physical Examination, Education)

Is your feature request related to a problem? Please describe.
Requirement terminology Rawat Jalan Fase 2, Fase 5 :

  • LOINC

Describe the solution you'd like
Data source will be provided - DM me if you want to pick up this feature

Describe alternatives you've considered
Create a new 1 class Model object for LOINC will be created

Additional context
Required in SATUSEHAT in general, focused use subset instead of full dictionary data.
Enumerator / array list is not recommended due to the volatility

CC: @YogiPristiawan

Help : Praktik Penggunaan Pada Controller

Saya membuat PatientController

public function create(){

    $client = new OAuth2Client;
    $token = $client->token(); // OAuth2Token anda akan muncul

    return view('pages.patients.create', compact('token'));
}

saya bermaksud ingin echo $token pada view,
muncul error berikut :
Typed property Satusehat\Integration\OAuth2Client::$organization_id must not be accessed before initialization

Apakah ada kesalahan penggunaan di saya ?
Screenshot 2024-03-22 234957

[Bug]: v2.5.0 - not complying with backward compatibility of PHP 7.4 and multitenancy

What happened?

OAuthClient not complying with backward compatibility of v7.4 and multitenancy ($this->override)

How to reproduce the bug

Strictly typed base_url inconsistent with type null, $base_url declared not clean enough (sometimes $base_url, supposedly $this->base_url

Package Version

2.5.0

PHP Version

7.4.0

Which operating systems does with happen with?

No response

Notes

No response

Future Feature : Fase 2 Rawat Jalan - Data Object Class

Is your feature request related to a problem? Please describe.
Future future Rawat Jalan Fase 2 :

  • Observation tanda-tanda vital based on LOINC
  • Procedure based on ICD 9 CM
  • Composition (education) based on LOINC

Describe the solution you'd like
Membuat FHIR class resource Observation, Procedure, Composition

Describe alternatives you've considered
Updating 3 class baru tersebut pada src/FHIR

Additional context
https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/procedure/
https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/composition/
https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/observation/

Undefined array key "code" ketika $bundle->addCondition($conditionFh);

Ketika proses post bundle, saya mendapatkan error Undefined array key "code" yang kalau dilihat errornya berasal dari library Encounter->addCondition

WhatsApp Image 2024-04-01 at 21 33 45_3b2b06e2

terus ketika saya debug dari library Encounter->addCondition dengan perintah var_dump($condition) muncul result seperti ini dan ada notice bahwa “Unauthorized. Token not found”

WhatsApp Image 2024-04-01 at 21 34 21_01a7e045

Undefined array key "code" berasar dari code ini
WhatsApp Image 2024-04-01 at 21 34 52_dc325cf4

ini penggunaan library bundle pada controller saya

WhatsApp Image 2024-04-01 at 22 23 44_d7ab9d1d

kira-kira salahnya ada di codingan penerapan bundle atau gimana ya dok?

OAuth2Token Create Token ERROR

Describe the bug
Attempt to read property "issue" on null
} catch (ClientException $e) {
$res = json_decode($e->getResponse()->getBody()->getContents());
$issue_information = $res->issue[0]->details->text; // NULL
$this->log($issue_information, 'POST Token', $url, null, (array) $res);
return false;
}

ResourceType : Bundle

Selamat malam dok, apakah untuk encounter dan condition tidak ada Resourcetype Bundle?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.