Comments (4)
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.
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.
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.
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)
- Typo in wiki page, Undefined method 'get'. HOT 3
- Wiki Documentation 1.2 HOT 8
- Backward Compatibility ke php 7.4 HOT 6
- Encounter - wrong Wrong organization ID provided by system URL HOT 3
- Help : Praktik Penggunaan Pada Controller HOT 2
- ResourceType : Bundle HOT 9
- Undefined array key "code" ketika $bundle->addCondition($conditionFh); HOT 11
- SATUSEHAT Consent
- API KFA Integration HOT 5
- Future Feature : Fase 2 Rawat Jalan - Data Object Class HOT 2
- Future Feature : Terminology (LOINC - Vital sign, Physical Examination, Education) HOT 5
- Wiki Documentation 2.4.0 HOT 1
- [Bug]: v2.5.0 - not complying with backward compatibility of PHP 7.4 and multitenancy
- Refactoring - Exception Handlling HOT 2
- OAuth2Token Create Token ERROR HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from satusehat-integration.