### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/family-member-history Examples of how to perform the GET request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/FamilyMemberHistory?patient=100000000001&relationship=72705000" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/FamilyMemberHistory?patient=100000000001&relationship=72705000' ``` -------------------------------- ### API Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/master-data/master-wilayah/rest-api-wilayah Examples of how to perform a GET request using cURL on different operating systems and Postman. ```bash curl --location ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/masterdata/v2/sub-districts?current_page" ``` ```bash curl --location \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/masterdata/v2/sub-districts?current_page' ``` ```text https://api-satusehat-stg.dto.kemkes.go.id/masterdata/v2/sub-districts?current_page ``` -------------------------------- ### cURL GET Request Example (Windows) Source: https://satusehat.kemkes.go.id/platform/docs/id/master-data/kfa/rest-api-kfa Use this cURL command to make a GET request to the API on Windows. Ensure you replace `` with your actual token and `{path-code}` with the appropriate path parameter. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Accept: application/json" ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/kfa/farmalkes-price-jkn?{path-code}" ``` -------------------------------- ### MedicationRequest cURL Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/medication-request Examples of how to perform a GET request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/MedicationRequest?subject=100000000001" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/MedicationRequest?subject=100000000001' ``` -------------------------------- ### RelatedPerson cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/related-person Examples of how to perform the GET request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/RelatedPerson?partof={qs-organization-pid}" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/RelatedPerson?partof={qs-organization-pid}' ``` -------------------------------- ### Encounter.serviceProvider Reference Example Source: https://satusehat.kemkes.go.id/platform/docs/id/fhir/resources/encounter Example of an organization reference. ```json [ { "reference": "Organization/1000004" } ] ``` -------------------------------- ### Location.availabilityExceptions Example Source: https://satusehat.kemkes.go.id/platform/docs/id/fhir/resources/location Example string for availability exceptions. ```json "Libur Nasional" ``` -------------------------------- ### Retrieve Organization via cURL Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/onboardings/apis/organization Examples for executing the GET request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Organization/38d2fd4d-1402-4e5f-8f09-618fca5ce313" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Organization/38d2fd4d-1402-4e5f-8f09-618fca5ce313' ``` -------------------------------- ### 2xx Success Response Example Source: https://satusehat.kemkes.go.id/platform/docs/id/master-data/kfa/rest-api-kfa This is an example of a successful API response, showing data for product templates. Note that example values are not real and should not be used. ```json { "total": 6, "page": 1, "limit": 10, "items": { "data": [ { "product_template_name": "Acarbose 100 mg Tablet", "kfa_code": "92000372", "document_ref": "HK.01.07/MENKES/1905/2023", "active": true, "region_name": "Regional 1", "region_code": "regional1", "start_date": "2023-08-23", "end_date": null, "price_unit": 848.0, "uom_name": "Tablet", "updated_at": "2023-08-29 04:11:02", "uom_pack": [ "Blister", "Strip" ], "province": [ { "province_code": "51", "province_name": "Bali" }, { "province_code": "36", "province_name": "Banten" }, { "province_code": "32", "province_name": "Jawa Barat" }, { "province_code": "35", "province_name": "Jawa Timur" }, { "province_code": "31", "province_name": "DKI Jakarta" }, { "province_code": "33", "province_name": "Jawa Tengah" }, { "province_code": "18", "province_name": "Lampung" }, { "province_code": "34", "province_name": "Yogyakarta" } ] }, /* lompat beberapa data */ { "product_template_name": "Acarbose 100 mg Tablet", "kfa_code": "92000372", "document_ref": "HK.01.07/MENKES/1905/2023", "active": true, "region_name": "Regional 6", "region_code": "regional6", "start_date": "2023-08-23", "end_date": null, "price_unit": 1060.0, "uom_name": "Tablet", "updated_at": "2023-08-29 04:11:02", "uom_pack": [ "Blister", "Strip" ], "province": [ { "province_code": "95", "province_name": "Papua Pegunungan" }, { "province_code": "93", "province_name": "Papua Selatan" }, { "province_code": "94", "province_name": "Papua Tengah" } ] } ] } } ``` -------------------------------- ### Observation.valuePeriod Start and End Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/fhir/resources/observation Examples of start and end timestamps for an observation period. ```text "2022-12-20T07:00:00+07:00" ``` ```text "2022-12-30T08:00:00+07:00" ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/medication-dispense Command-line examples for retrieving MedicationDispense data. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/MedicationDispense/a105b589-d571-4be6-bb0e-98b4be891e14" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/MedicationDispense/a105b589-d571-4be6-bb0e-98b4be891e14' ``` -------------------------------- ### Define Encounter Period Start Source: https://satusehat.kemkes.go.id/platform/docs/id/fhir/resources/encounter Example of the start timestamp for an encounter period. ```text "2022-06-14T07:00:00+07:00" ``` -------------------------------- ### ImagingStudy.started JSON Example Source: https://satusehat.kemkes.go.id/platform/docs/id/fhir/resources/imaging-study Example of the started field using ISO 8601 date-time format. ```json "started": "2021-06-10T11:41:46+07:00", ``` -------------------------------- ### GET Prescription Path Example Source: https://satusehat.kemkes.go.id/platform/docs/id/interoperability/kefarmasian Example URL for retrieving a specific prescription using its NRN. ```text https://api-stg.dto.kemkes.go.id/eresep/v2/prescriptions/240925-SRBBTPY ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/related-person Command line examples for updating a resource using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"RelatedPerson\", ... }" ^ --request PUT ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/RelatedPerson/6694e8c8-052a-4ea6-8072-157b6d47ca08" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "RelatedPerson", ... }' \ --request PUT \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/RelatedPerson/6694e8c8-052a-4ea6-8072-157b6d47ca08' ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/slot Integration examples for updating a Slot resource using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"Slot\", ... }" ^ --request PUT ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Slot/e2fdfc6f-28ff-46be-b68b-b73d982cdcf8" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "Slot", ... }' \ --request PUT \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Slot/e2fdfc6f-28ff-46be-b68b-b73d982cdcf8' ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/condition Command line examples for sending a POST request to the Condition endpoint on Windows and Linux environments. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"Condition\", ... }" ^ --request POST ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Condition" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "Condition", ... }' \ --request POST \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Condition' ``` -------------------------------- ### Retrieve Products via cURL Source: https://satusehat.kemkes.go.id/platform/docs/id/master-data/kfa/rest-api-kfa Examples for fetching product data using cURL on Windows and Linux environments. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Accept: application/json" ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/kfa-v2/products/all?page=1&size=100&product_type=farmasi" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Accept: application/json' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/kfa-v2/products/all?page=1&size=100&product_type=farmasi' ``` -------------------------------- ### Encounter Status History Period Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/fhir/resources/encounter Examples for start and end time values in the status history period. ```text "2022-06-14T07:00:00+07:00" ``` ```text "2022-06-14T08:00:00+07:00" ``` -------------------------------- ### AppointmentResponse Success Response Example Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/appointment-response Example of a successful search response returning a Bundle resource. ```json { "resourceType": "Bundle", "type": "searchset", "total": 1, "entry": [ { "fullUrl": "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/AppointmentResponse/1bd8d04e-c5c9-4072-90da-05b218b8d26b", "resource": { "resourceType": "AppointmentResponse", "id": "1bd8d04e-c5c9-4072-90da-05b218b8d26b", //data.terkait.resource.AppointmentResponse }, "search": { "mode": "match" } } ] } ``` -------------------------------- ### GET Prescription Response Example Source: https://satusehat.kemkes.go.id/platform/docs/id/interoperability/kefarmasian Example JSON response structure returned by the API upon a successful request. ```json { "status": 200, "error": false, "message": "Success", "data": { "sep": "0301R0011117V000009", "healthcare": { "id": "10000005", "name": "RAJAL TERPADU" }, "contacts": [ { "id": "N10000001", "type": "practitioner", "display": "No WA SPGDT RSUD Senang Gembira", "contact": "http://wa.me/6281290231280" }, { "id": "10000005", "type": "healthcare", "display": "Kontak 24/7 dr. Bronsig (tim jaga RSUD)", "contact": "http://wa.me/6281288290721" } ], "patient": { "id": "P02029542843", "full_name": "Yudi Nurwanto", "gender": "male", "birth_date": "1995-03-19", "birth_age": { "year": 29, "month": 6, "day": 8 }, "weight": { "value": 65, "unit": "kg" }, "height": { "value": 174, "unit": "cm" } }, "medicines": [ { "id": "3b258025-4565-4d68-8887-ca5eb34401f5", "code": "", "name": "", "iteration": 1, "type": "EP", "route": "O", "frequency": 3, "period": 1, "period_unit": "d", "package_unit": "CAP", "package_amount": 20, "package_remain": 20, "package_total": 40, "info": "Diminum 3x sehari selama 7 hari, sampai habis", "has_redeemed": true, "validity_start": "2024-09-25T03:50:00Z", "validity_end": "2024-11-19T03:50:00Z", "dosage_value": 1, "dosage_unit": "CAP", "dosage_code": "CAP", "authored_on": "2024-09-25T03:50:00Z", "ingredient": [ { "code": "93000515", "name": "Diazepam 5 mg Tablet (MERSIFARMA TIRMAKU MERCUSANA)", "strength": { "numerator": { "value": 15, "unit": "TAB" }, "denominator": { "value": 30, "unit": "CAP" } } }, { "code": "93000149", "name": "Methylprednisolone 8 mg Tablet (DEXA MEDICA)", "strength": { "numerator": { "value": 15, "unit": "TAB" }, "denominator": { "value": 30, "unit": "CAP" } } }, { "code": "93009103" ``` -------------------------------- ### Get FamilyMemberHistory by ID (JSON Response Example) Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/family-member-history Example of a successful response when retrieving a FamilyMemberHistory resource. This shows the structure of the returned data. ```json { "resourceType": "FamilyMemberHistory", "id": "f2a4ba3f-4f4c-4fa3-a314-debc54636fa0", //data.terkait.resource.FamilyMemberHistory } ``` -------------------------------- ### Request Body Example Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/authentication/apis/token Example of the required client credentials payload. ```text client_id: client_secret: ``` -------------------------------- ### 2xx Success Response Example Source: https://satusehat.kemkes.go.id/platform/docs/id/master-data/kfa/rest-api-kfa This is an example of a successful API response, typically returned for GET requests. It includes metadata about the pagination and a list of data items. ```json { "status": 200, "error": false, "message": "success", "meta": { "item_count": 11533, "page": { "is_cursor": false, "current": 1, "previous": 0, "next": 2, "limit": 10, "total": 10 }, "sort": null, "param": null, "data": [ { "kfa_code": "32000002", "active": true, "bmhp": true, "desc_farmalkes": "


", "desc_usage": "


", "desc_warning": "


", "farmalkes_hscode": "", "farmalkes_type": { "code": "device", "name": "device", "group": "alkes" }, "fornas": false, "jenis": { "code": "1603005", "name": "Surgical apparel " }, "kategori": { "code": "16", "name": "Peralatan Bedah Umum dan Bedah Plastik" }, "klasifikasi_izin": { "code": "NENS", "name": "Non Elektromedik Non Steril", "type": "device" }, "med_dev_kelas_risiko": "B", "name": "Masker anak 3ply earloop", "replacement": { "name": "", "reason": "", "kfa_code": "" }, "side_effect": "


", "state": "valid", "stok_wajib_yankes": false, "sub_jenis": { "code": "1603005001", "name": "Surgical Mask" }, "sub_kategori": { "code": "1603", "name": "Peralatan Bedah" }, "synonyms": "", "ucum": { "name": "internasional unit", "ci_code": "[IU]", "cs_code": "[IU]" }, "uom_name": "Units", "uom_po_name": "Units", "updated_at": "2024-10-28T07:12:12.786Z" }, /* lompat beberapa data */ { "kfa_code": "32000012", "active": true, "bmhp": false, "desc_farmalkes": "


", "desc_usage": "


", "desc_warning": "


", "farmalkes_hscode": "", "farmalkes_type": { "code": "device", "name": "device", "group": "alkes" }, "fornas": false, "jenis": { "code": "0205002", "name": "Automated differential cell counter." }, "kategori": { "code": "02", "name": "Peralatan Hematologi dan Patologi" }, "klasifikasi_izin": { "code": "ID", "name": "Invitro Diagnostik", "type": "device" }, "med_dev_kelas_risiko": "B", "name": "Hematology analyzer instrument/unit 5 diff", "replacement": { "name": "", "reason": "", "kfa_code": "" }, "side_effect": "


", "state": "valid", "stok_wajib_yankes": false, "sub_jenis": { "code": "0205002003", "name": "Hematology Analyzer" }, "sub_kategori": { "code": "0205", "name": "Peralatan Hematologi Otomatis dan Semi Otomatis" }, "synonyms": "", "ucum": { "name": "internasional unit", "ci_code": "[IU]", "cs_code": "[IU]" }, "uom_name": "Units", "uom_po_name": "Units", "updated_at": "2024-11-05T04:39:45.714Z" } ] } } ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/diagnostic-report Examples of how to perform the PUT request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"DiagnosticReport\", ... }" ^ --request PUT ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/DiagnosticReport/aaf3f318-00f7-4770-b29b-770bc5bc83a7" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "DiagnosticReport", ... }' \ --request PUT \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/DiagnosticReport/aaf3f318-00f7-4770-b29b-770bc5bc83a7' ``` -------------------------------- ### PractitionerRole cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/practitioner-role Examples of how to perform a POST request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"PractitionerRole\", ... }" ^ --request POST ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/PractitionerRole" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "PractitionerRole", ... }' \ --request POST \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/PractitionerRole' ``` -------------------------------- ### cURL GET Request Example (Linux) Source: https://satusehat.kemkes.go.id/platform/docs/id/master-data/kfa/rest-api-kfa This cURL command is for making a GET request to the API on Linux. Replace `` with your token and `{path-code}` with the relevant path parameter. ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Accept: application/json' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/kfa/farmalkes-price-jkn?{path-code}' ``` -------------------------------- ### Procedure Resource Example Source: https://satusehat.kemkes.go.id/platform/docs/id/interoperability/rme-rawat-jalan Example of a Procedure resource for fasting status. ```APIDOC ## Procedure Resource Example ### Description Example of a Procedure resource for fasting status. ### Procedure: Fasting #### Fields - `Procedure.category.coding.system`: http://snomed.info/sct - `Procedure.category.coding.code`: 103693007 - `Procedure.category.coding.display`: Diagnostic procedure - `Procedure.code.coding.system`: http://snomed.info/sct - `Procedure.code.coding.code`: 792805006 - `Procedure.code.coding.display`: Fasting - `Procedure.status`: done | not-done ### Possible Values for Fasting Status - Puasa - Tidak Puasa ``` -------------------------------- ### cURL Request for ClinicalImpression Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/clinical-impression Examples of how to perform a GET request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/ClinicalImpression/a139a557-9404-4d45-bccc-979def0c928f" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/ClinicalImpression/a139a557-9404-4d45-bccc-979def0c928f' ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/practitioner-role Examples for executing the request via cURL on Windows and Linux environments. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/PractitionerRole/7a44b421-677e-45a1-b7c0-5249264a3189" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/PractitionerRole/7a44b421-677e-45a1-b7c0-5249264a3189' ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/episode-of-care Examples for executing the POST request using cURL on Windows and Linux environments. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"EpisodeOfCare\", ... }" ^ --request POST ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/EpisodeOfCare" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "EpisodeOfCare", ... }' \ --request POST \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/EpisodeOfCare' ``` -------------------------------- ### MedicationStatement.medicationCodeableConcept Example (Known Brand) Source: https://satusehat.kemkes.go.id/platform/docs/id/interoperability/igd Use this when the patient knows the brand of the medication they consumed. The code should start with '93'. ```json { "coding": [ { "system": "http://sys-ids.kemkes.go.id/kfa", "code": "93005512", "display": "Ampicillin Trihydrate 500 mg Tablet (PHARMA LABORATORIES)" } ] } ``` -------------------------------- ### MedicationStatement.medicationCodeableConcept Example (Unknown Brand) Source: https://satusehat.kemkes.go.id/platform/docs/id/interoperability/igd Use this when the patient only knows the generic name of the medication without the brand. The code should start with '92'. ```json { "coding": [ { "system": "http://sys-ids.kemkes.go.id/kfa", "code": "92001087", "display": "Ampicillin Trihydrate 500 mg Tablet" } ] } ``` -------------------------------- ### CarePlan Creation via cURL Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/care-plan Examples for executing the POST request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"CarePlan\", ... }" ^ --request POST ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/CarePlan" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "CarePlan", ... }' \ --request POST \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/CarePlan' ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/appointment Examples for sending a POST request to the Appointment endpoint using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"Appointment\", ... }" ^ --request POST ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Appointment" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "Appointment", ... }' \ --request POST \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Appointment' ``` -------------------------------- ### Get Procedure Details (Success Response) Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/procedure Example of a successful response when retrieving procedure details. Ensure the Authorization header is correctly formatted. ```json { "resourceType": "Procedure", "id": "6c9cb16e-7775-4c80-b5b2-3d04901df1f3", //data.terkait.resource.Procedure } ``` -------------------------------- ### MedicationStatement medicationCodeableConcept Coding Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/interoperability/rme-rawat-jalan Use medicationCodeableConcept for medications not dispensed by the facility. Codes starting with '93' are for known brands, while '92' is for generic mentions. ```json { "coding": [ { "system": "http://sys-ids.kemkes.go.id/kfa", "code": "93005512", "display": "Ampicillin Trihydrate 500 mg Tablet (PHARMA LABORATORIES)" } ] } ``` ```json { "coding": [ { "system": "http://sys-ids.kemkes.go.id/kfa", "code": "92001087", "display": "Ampicillin Trihydrate 500 mg Tablet" } ] } ``` -------------------------------- ### Composition Search cURL Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/composition Examples of how to perform the search request using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Composition?subject=100000000001" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Composition?subject=100000000001' ``` -------------------------------- ### cURL Request to Get Composition Data (Linux) Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/composition Example cURL command for Linux to retrieve Composition data. Ensure you replace `` with your actual token. ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Composition/1ec67403-c6f1-4d46-8611-d20875525438' ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/encounter Examples for sending POST requests to the Encounter endpoint using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"Encounter\", ... }" ^ --request POST ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Encounter" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "Encounter", ... }' \ --request POST \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Encounter' ``` -------------------------------- ### cURL Request to Get Composition Data (Windows) Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/composition Example cURL command for Windows to retrieve Composition data. Ensure you replace `` with your actual token. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --request GET ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/Composition/1ec67403-c6f1-4d46-8611-d20875525438" ``` -------------------------------- ### Location.managingOrganization JSON Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/fhir/resources/location Examples of managingOrganization references and related organization IDs. ```json "100000004" ``` ```json { "reference": "Organization/10000004", "display": "RSUD Jati Asih" } ``` ```json "f2f269ff-0c7a-4769-9821-5c27b3fa3b9c" ``` ```json { "reference": "Organization/f2f269ff-0c7a-4769-9821-5c27b3fa3b9c", "display": "Direktorat Medik, Keperawatan, dan Penunjang RSUD Jati Asih" } ``` -------------------------------- ### cURL Request Examples Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/appointment-response Examples for sending a POST request to the AppointmentResponse endpoint using cURL on Windows and Linux. ```bash curl --insecure --location ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data-raw "{ \"resourceType\": \"AppointmentResponse\", ... }" ^ --request POST ^ "https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/AppointmentResponse" ``` ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "resourceType": "AppointmentResponse", ... }' \ --request POST \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/AppointmentResponse' ``` -------------------------------- ### cURL Request to Get AppointmentResponse (Linux) Source: https://satusehat.kemkes.go.id/platform/docs/id/api-catalogue/integrations/apis/appointment-response Example cURL command for Linux to retrieve an AppointmentResponse by ID. Requires an Authorization header with a valid Bearer token. ```bash curl --insecure --location \ --header 'Authorization: Bearer ' \ --request GET \ 'https://api-satusehat-stg.dto.kemkes.go.id/fhir-r4/v1/AppointmentResponse/1bd8d04e-c5c9-4072-90da-05b218b8d26b' ```