From 6099bf79f8e80e85f7a4b0d5ad4a0a7481668f4d Mon Sep 17 00:00:00 2001 From: Hunter Achieng Date: Thu, 31 Oct 2024 15:06:51 +0300 Subject: [PATCH] add post example in docs Signed-off-by: Hunter Achieng --- adaptors/satusehat.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/adaptors/satusehat.md b/adaptors/satusehat.md index bf3de57e83ba..e45330f799f1 100644 --- a/adaptors/satusehat.md +++ b/adaptors/satusehat.md @@ -21,7 +21,10 @@ FHIR (Fast Healthcare Interoperability Resources) is a global (international) st Here is an example of how a POST HTTP request for creating an `Encounter` resource looks like in Satusehat with the FHIR format: -```json +``` + +// The data below is an example as stated in the postman collection +post('Encounter', { "resourceType": "Encounter", "status": "arrived", @@ -73,16 +76,20 @@ Here is an example of how a POST HTTP request for creating an `Encounter` resour } ], "serviceProvider": { - "reference": "Organization/{{Org_id}}" + "reference": "Organization/aewertyur34rg343t4v34r" }, "identifier": [ { - "system": "http://sys-ids.kemkes.go.id/encounter/{{Org_id}}", + "system": "http://sys-ids.kemkes.go.id/encounter/aewertyur34rg343t4v34r", "value": "P20240001" } ] } + ) + + + ``` Checkout Satusehat's [Postman Collection](https://satusehat.kemkes.go.id/platform/docs/id/postman-workshop/) for more examples and resources.