Giter Site home page Giter Site logo

Comments (4)

ivanwilliammd avatar ivanwilliammd commented on May 20, 2024

Salah UUID, yang digunakan harusnya UUID4
Kalau misalnya tidak bisa dengan library bawaan silakan https://github.com/ramsey/uuid

Selain itu best practicenya jangan lakukan $organization->json() dan coba lgsg $organization->post()

from satusehat-integration.

fattakbar avatar fattakbar commented on May 20, 2024

setelah mengganti UUID4, pesan errornya tetap sama dok. Btw apakah ini running di php 8.3.4 dok?
try {
$uuid = Uuid::uuid4()->toString();
$t = 'Nama Rumah Sakit';

        $organization = new Organization;
        $organization->addIdentifier($uuid); // unique string free text (increments / UUID / inisial)
        $organization->setName($t); // string free text
    
        [$statusCode, $response] = $organization->post();
    
        echo '<pre>' . var_export($response, true) . '</pre>';
    } catch (FHIRException $e) {
        echo "FHIRException: " . $e->getMessage();
    } catch (\Exception $e) {
        echo "Exception: " . $e->getMessage();
    }

from satusehat-integration.

ivanwilliammd avatar ivanwilliammd commented on May 20, 2024

Sudah composer update dengan query yg paling baru?
Jadi tadi saya sdh explore, tergantung dari project dan cara calling-nya, library guzzle ini ada yg minta JSON object ada juga yg minta textual. Kalau saya merujuk pada dokumentasi baru akan mengirimkan json object, dan tested tdk ada masalah....

https://docs.guzzlephp.org/en/stable/quickstart.html#post-form-requests

from satusehat-integration.

ivanwilliammd avatar ivanwilliammd commented on May 20, 2024

image

Coba cek ke contoh implemementasinya agar seragam, di saya aman2 saja, dan terlampir SS dari github ini
https://github.com/ivanwilliammd/satusehat-laravel-example

from satusehat-integration.

Related Issues (16)

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.