SATUSEHAT is the Indonesian Ministry of Health's health-data platform, built on FHIR R4. These examples use the staging environment at https://api-satusehat-stg.dto.kemkes.go.id. Get a token first, then call the FHIR API.
Register your organization on the SATUSEHAT platform to get a client id and secret. The token call returns an access_token used as a Bearer token, written {{SATUSEHAT_TOKEN}}.
Full reference: https://satusehat.kemkes.go.id/platform/docs/
curl -X POST "https://api-satusehat-stg.dto.kemkes.go.id/oauth2/v1/accesstoken?grant_type=client_credentials" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "client_id={{SATUSEHAT_CLIENT_ID}}&client_secret={{SATUSEHAT_CLIENT_SECRET}}"
The identifier system for the national ID number, then | and the number.
curl "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Patient?identifier=https://fhir.kemkes.go.id/id/nik%7C{{NIK}}" \
-H "Authorization: Bearer {{SATUSEHAT_TOKEN}}"
curl https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Organization/{{ORGANIZATION_ID}} \
-H "Authorization: Bearer {{SATUSEHAT_TOKEN}}"