Skip to content

Commit

Permalink
fix: add more examples
Browse files Browse the repository at this point in the history
Signed-off-by: Hunter Achieng <[email protected]>
  • Loading branch information
hunterachieng committed Oct 31, 2024
1 parent 6099bf7 commit 327431c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions adaptors/satusehat.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ post('Encounter',

Checkout Satusehat's [Postman Collection](https://satusehat.kemkes.go.id/platform/docs/id/postman-workshop/) for more examples and resources.

The Satusehat functions also support the use of HTTP helpers. The HTTP helpers take a path to a FHIR resource, relative to the baseURL in the configuration file, and a list of query parameters. Some helpers also take a FHIR resource as a JSON object.

So if we wanted to make a request to /Encounter to search for something, like [THIS POSTMAN EXAMPLE](https://warped-resonance-634630.postman.co/workspace/New-Team-Workspace~b16d6cb8-2e46-4ec6-badf-96904909f286/request/34069873-57222e41-9ddb-41ee-a12d-4515ba9e11c5?action=share&creator=34069873&ctx=documentation), we would pass the path as the first argument, and the query parameters as the second. Like this:

```
get('Encounter', {subject: 100000030009})
```

## Integration Options

1. **[REST APIs](https://satusehat.kemkes.go.id/platform/docs/id/postman-workshop/)**
Expand Down

0 comments on commit 327431c

Please sign in to comment.