Contoh Pencarian (GET) Resource Patient
Method | GET |
Target URL | {{base_url}}/Patient?identifier=https://fhir.kemkes.go.id/id/nik|3171022809990001 |
Response | 200 |
Catatan | Didalam response akan ada result set yang memunculkan Patient.id =100000030009 . Simpan Patient.id ini untuk digunakan di resource lain |
{ "id": "Example-Patient-Get-NIK", "entry": [ { "fullUrl": "https://api-satusehat-dev.dto.kemkes.go.id/fhir-r4/v1/Patient/100000030009", "resource": { "active": true, "communication": [ { "language": { "coding": [ { "code": "id", "display": "Indonesian", "system": "urn:ietf:bcp:47" } ], "text": "Indonesian" }, "preferred": true } ], "deceasedBoolean": false, "gender": "male", "id": "100000030009", "identifier": [ { "system": "https://fhir.kemkes.go.id/id/ihs-number", "use": "official", "value": "100000030009" }, { "system": "https://fhir.kemkes.go.id/id/nik", "use": "official", "value": "################" } ], "meta": { "lastUpdated": "2022-06-13T16:50:39.368307+00:00", "profile": [ "https://fhir.kemkes.go.id/r4/StructureDefinition/Patient|4.0.1", "https://fhir.kemkes.go.id/r4/StructureDefinition/Patient" ], "versionId": "MTY1NTEzOTAzOTM2ODMwNzAwMA" }, "multipleBirthBoolean": false, "name": [ { "family": "Santoso", "given": [ "Budi" ], "suffix": [ "MSc" ], "text": "Budi Santoso", "use": "official" } ], "resourceType": "Patient" }, "search": { "mode": "match" } } ], "resourceType": "Bundle", "total": 1, "type": "searchset" }
Method | GET |
Target URL | {{base_url}}/Patient?name=smith&gender=male&birthdate=1980-01 |
Response | 200 |
Catatan | Didalam response akan ada result set yang memunculkan multipel Patient.id. Simpan Patient.id yang sesuai untuk digunakan di resource lain |
{ "id": "Example-Patient-Get-Biodata", "entry": [ { "fullUrl": "https://api-satusehat-dev.dto.kemkes.go.id/fhir-r4/v1/Patient/P00346075498", "resource": { "active": true, "communication": [ { "language": { "coding": [ { "code": "id-ID", "display": "Indonesian", "system": "urn:ietf:bcp:47" } ], "text": "Indonesian" }, "preferred": true } ], "deceasedBoolean": false, "gender": "male", "id": "P00346075498", "identifier": [ { "system": "https://fhir.kemkes.go.id/id/ihs-number", "use": "official", "value": "P00346075498" }, { "system": "https://fhir.kemkes.go.id/id/paspor", "use": "official", "value": "############" } ], "meta": { "lastUpdated": "2022-04-27T17:21:52.893837+00:00", "profile": [ "https://fhir.kemkes.go.id/r4/StructureDefinition/Patient" ], "versionId": "MTY1MTA4MDExMjg5MzgzNzAwMA" }, "multipleBirthBoolean": false, "name": [ { "text": "SAMUEL RHODRI SMITH", "use": "official" } ], "resourceType": "Patient" }, "search": { "mode": "match" } }, { "fullUrl": "https://api-satusehat-dev.dto.kemkes.go.id/fhir-r4/v1/Patient/P01378362061", "resource": { "active": true, "communication": [ { "language": { "coding": [ { "code": "id-ID", "display": "Indonesian", "system": "urn:ietf:bcp:47" } ], "text": "Indonesian" }, "preferred": true } ], "deceasedBoolean": false, "gender": "male", "id": "P01378362061", "identifier": [ { "system": "https://fhir.kemkes.go.id/id/ihs-number", "use": "official", "value": "P01378362061" }, { "system": "https://fhir.kemkes.go.id/id/paspor", "use": "official", "value": "############" } ], "meta": { "lastUpdated": "2022-04-27T07:07:48.376516+00:00", "profile": [ "https://fhir.kemkes.go.id/r4/StructureDefinition/Patient" ], "versionId": "MTY1MTA0MzI2ODM3NjUxNjAwMA" }, "multipleBirthBoolean": false, "name": [ { "text": "SAMUEL RHODRI SMITH", "use": "official" } ], "resourceType": "Patient" }, "search": { "mode": "match" } } ], "resourceType": "Bundle", "total": 2, "type": "searchset" }
Method | GET |
Target URL | {{base_url}}/Patient/100000030009 |
Response | 200 |
Catatan | Didalam response akan ada result set yang memunculkan identitas Patient yang terdaftar di SATUSEHAT |
{ "_birthDate": { "extension": [ { "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/patient-birthTime", "valueDateTime": "1944-11-17T15:39:00+07:00" } ] }, "active": true, "address": [ { "city": "Jakarta", "country": "ID", "extension": [ { "extension": [ { "url": "province", "valueCode": "10" }, { "url": "city", "valueCode": "1010" }, { "url": "district", "valueCode": "1010101" }, { "url": "village", "valueCode": "1010101101" }, { "url": "rt", "valueCode": "1" }, { "url": "rw", "valueCode": "2" } ], "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/AdministrativeCode" } ], "line": [ "Gd. Prof. Dr. Sujudi Lt.5, Jl. H.R. Rasuna Said Blok X5 Kav. 4-9 Kuningan" ], "postalCode": "12950", "use": "home" } ], "birthDate": "1944-11-17", "communication": [ { "language": { "coding": [ { "code": "id", "display": "Indonesian", "system": "urn:ietf:bcp:47" } ], "text": "Indonesian" }, "preferred": true } ], "contact": [ { "name": { "family": "Smith", "given": [ "Rebecca" ], "use": "official" }, "relationship": [ { "coding": [ { "code": "C", "system": "http://terminology.hl7.org/CodeSystem/v2-0131" } ] } ], "telecom": [ { "system": "phone", "use": "mobile", "value": "0690383372" } ] } ], "deceasedBoolean": false, "extension": [ { "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/birthPlace", "valueAddress": { "city": "Jakarta", "country": "ID" } } ], "gender": "male", "id": "100000030009", "identifier": [ { "system": "https://fhir.kemkes.go.id/id/ihs-number", "use": "official", "value": "100000030009" }, { "system": "https://fhir.kemkes.go.id/id/nik", "use": "official", "value": "3171022809990001" } ], "maritalStatus": { "coding": [ { "code": "M", "display": "Married", "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" } ], "text": "Married" }, "meta": { "lastUpdated": "2022-08-20T12:14:05.526183+00:00", "profile": [ "https://fhir.kemkes.go.id/r4/StructureDefinition/Patient|4.0.1", "https://fhir.kemkes.go.id/r4/StructureDefinition/Patient" ], "versionId": "MTY2MDk5NzY0NTUyNjE4MzAwMA" }, "multipleBirthBoolean": false, "name": [ { "family": "Santoso", "given": [ "Budi" ], "suffix": [ "MSc" ], "text": "Budi Santoso", "use": "official" } ], "resourceType": "Patient", "telecom": [ { "system": "phone", "use": "mobile", "value": "08123456789" }, { "system": "email", "use": "home", "value": "budi.santoso@xyz.com" } ] }