curl -G "https://api.medplum.konko.ai/fhir/R4/Appointment" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data-urlencode "date=ge2026-10-13T00:00:00-06:00" \
--data-urlencode "date=lt2026-10-14T00:00:00-06:00" \
--data-urlencode "status=booked" \
--data-urlencode "_include=Appointment:actor" \
--data-urlencode "_include:iterate=PractitionerRole:practitioner" \
--data-urlencode "_count=50"
import requests
resp = requests.get(
"https://api.medplum.konko.ai/fhir/R4/Appointment",
headers={"Authorization": f"Bearer {access_token}"},
params=[("date", "ge2026-10-13T00:00:00-06:00"), ("date", "lt2026-10-14T00:00:00-06:00"), ("status", "booked"), ("_include", "Appointment:actor"), ("_include:iterate", "PractitionerRole:practitioner"), ("_count", "50")],
timeout=30,
)
resp.raise_for_status()
data = resp.json()
const params = new URLSearchParams([
['date', 'ge2026-10-13T00:00:00-06:00'],
['date', 'lt2026-10-14T00:00:00-06:00'],
['status', 'booked'],
['_include', 'Appointment:actor'],
['_include:iterate', 'PractitionerRole:practitioner'],
['_count', '50'],
]);
const res = await fetch(`https://api.medplum.konko.ai/fhir/R4/Appointment?${params}`, {
headers: {
Authorization: `Bearer ${accessToken}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
const data = await res.json();
{
"resourceType": "Bundle",
"type": "searchset",
"entry": [
{
"fullUrl": "https://api.medplum.konko.ai/fhir/R4/Appointment/6b1f8e3d-2a9c-4b5e-8f7d-3e0a6c1b9d84",
"resource": {
"resourceType": "Appointment",
"id": "6b1f8e3d-2a9c-4b5e-8f7d-3e0a6c1b9d84",
"meta": {
"versionId": "a8f1c4e7-2b9d-4e6a-9c3f-5d0b8e2a7c14",
"lastUpdated": "2026-10-05T15:21:47.382Z"
},
"identifier": [
{
"system": "https://konko.ai/huli/appointment",
"value": "100"
}
],
"status": "booked",
"description": "Consulta de Ginecología — Ana Lucía Mora Vargas",
"start": "2026-10-13T08:30:00-06:00",
"end": "2026-10-13T09:00:00-06:00",
"slot": [
{
"reference": "Slot/5e8b1d4f-7a2c-4e9d-8b3f-1c6a0e9d7b26"
}
],
"comment": "full_name: Ana Lucía Mora Vargas\nphone_number: +50687654321\nservice: Consulta de Ginecología\nlocation: Sede Escazú",
"participant": [
{
"actor": {
"reference": "PractitionerRole/f7c3a9e5-1b8d-4e6f-a2c4-9d7b0e3f5a18"
},
"status": "tentative"
},
{
"actor": {
"reference": "Patient/3c9f6a1e-8d4b-4f2a-b5e7-0d9c2f8a6b13"
},
"status": "accepted"
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://api.medplum.konko.ai/fhir/R4/PractitionerRole/f7c3a9e5-1b8d-4e6f-a2c4-9d7b0e3f5a18",
"resource": {
"resourceType": "PractitionerRole",
"id": "f7c3a9e5-1b8d-4e6f-a2c4-9d7b0e3f5a18",
"meta": {
"versionId": "2c7e0a4d-9f3b-4d6a-b1e8-5f2c9a7d0e43",
"lastUpdated": "2026-09-14T17:02:17.056Z"
},
"language": "es",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/timezone",
"valueCode": "America/Costa_Rica"
}
],
"identifier": [
{
"system": "https://konko.ai/practitioner-role",
"value": "DOC001:LOC001"
}
],
"active": true,
"practitioner": {
"reference": "Practitioner/d1b5e8c3-4f7a-4d2e-9b6c-8a0f3e5d1c72"
},
"organization": {
"reference": "Organization/b2d7e4a1-5c3f-4e9b-8a1d-6f2c0e7b9d35"
},
"specialty": [
{
"text": "Ginecología"
}
],
"location": [
{
"reference": "Location/e4a9c1d7-2b6f-4a3e-9c8d-5f1b7e0a2c64"
}
],
"healthcareService": [
{
"reference": "HealthcareService/a3f6b8d2-9e1c-4b7a-8d5f-2c0e6a9b1d47"
}
]
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "https://api.medplum.konko.ai/fhir/R4/Patient/3c9f6a1e-8d4b-4f2a-b5e7-0d9c2f8a6b13",
"resource": {
"resourceType": "Patient",
"id": "3c9f6a1e-8d4b-4f2a-b5e7-0d9c2f8a6b13",
"meta": {
"versionId": "6e3b9f1d-8a5c-4d2e-b7f4-1c6a9e3d8b50",
"lastUpdated": "2026-10-05T15:21:40.964Z"
},
"identifier": [
{
"system": "https://konko.ai/huli/1/patient-file",
"value": "10"
}
],
"active": true,
"name": [
{
"use": "official",
"family": "Mora Vargas",
"given": [
"Ana Lucía"
]
}
],
"telecom": [
{
"system": "phone",
"value": "87654321"
},
{
"system": "email",
"value": "ana.mora@correo.example"
}
],
"gender": "female",
"birthDate": "1990-04-17",
"address": [
{
"text": "Santa Ana, San José"
}
]
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "https://api.medplum.konko.ai/fhir/R4/Practitioner/d1b5e8c3-4f7a-4d2e-9b6c-8a0f3e5d1c72",
"resource": {
"resourceType": "Practitioner",
"id": "d1b5e8c3-4f7a-4d2e-9b6c-8a0f3e5d1c72",
"meta": {
"versionId": "9e2b5d8f-4c1a-4b7e-8d3f-2a6c0e9b5d17",
"lastUpdated": "2026-09-20T13:44:08.771Z"
},
"identifier": [
{
"system": "https://konko.ai/huli/doctor",
"value": "1000"
},
{
"system": "https://konko.ai/huli/user",
"value": "10000"
},
{
"system": "https://konko.ai/fhir/knowledge-base-id",
"value": "DOC001"
}
],
"active": true,
"name": [
{
"use": "official",
"text": "Dra. Carolina Jiménez Soto",
"family": "Jiménez Soto",
"given": [
"Carolina"
]
}
],
"telecom": [
{
"system": "phone",
"value": "88112233"
},
{
"system": "email",
"value": "dra.jimenez@clinicahorizonte.example"
}
],
"gender": "female",
"qualification": [
{
"identifier": [
{
"system": "https://konko.ai/huli/professional-license",
"value": "MED-12345"
}
],
"code": {
"text": "Colegio de Médicos y Cirujanos"
}
},
{
"identifier": [
{
"system": "https://konko.ai/huli/specialty",
"value": "41"
}
],
"code": {
"text": "Ginecología y Obstetricia"
}
}
]
},
"search": {
"mode": "include"
}
}
],
"link": [
{
"relation": "self",
"url": "https://api.medplum.konko.ai/fhir/R4/Appointment?_count=50&_include:iterate=PractitionerRole%3Apractitioner&_include=Appointment%3Aactor&date=ge2026-10-13T00%3A00%3A00-06%3A00&date=lt2026-10-14T00%3A00%3A00-06%3A00&status=booked"
},
{
"relation": "first",
"url": "https://api.medplum.konko.ai/fhir/R4/Appointment?_count=50&_include:iterate=PractitionerRole%3Apractitioner&_include=Appointment%3Aactor&date=ge2026-10-13T00%3A00%3A00-06%3A00&date=lt2026-10-14T00%3A00%3A00-06%3A00&status=booked"
}
]
}