Consultar una ruta de salida
GET
/c/{cliente}/{ruta}
const url = 'https://ponspre.medicinainteligente.ai/c/example/example';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://ponspre.medicinainteligente.ai/c/example/example \ --header 'X-API-Key: <X-API-Key>'Devuelve el recurso (?id=) o los recursos del paciente (?paciente=<CI>, sólo con origen fhir:) en el formato de la ruta: el JSON de la institución, FHIR R4 (Bundle collection) o CDA. Sólo se lee lo que cargó la institución.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»cliente
required
Cliente
string
ruta
required
Ruta
string
Query Parameters
Sección titulada «Query Parameters»Responses
Sección titulada «Responses»Éxito
Media typeapplication/fhir+json
Examples
Examplecapturado
Respuesta real
{ "resourceType": "Bundle", "type": "collection", "entry": [ { "fullUrl": "https://ponspre.medicinainteligente.ai/fhir/DiagnosticReport/1375", "resource": { "resourceType": "DiagnosticReport", "id": "1375", "meta": { "versionId": "1", "lastUpdated": "2026-10-20T10:00:00.000-03:00", "tag": [ { "system": "urn:pons:cliente", "code": "labdemo" } ] }, "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042" } ], "basedOn": [ { "reference": "ServiceRequest/1371" } ], "status": "final", "category": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0074", "code": "LAB", "display": "Laboratory" } ] } ], "code": { "coding": [ { "system": "http://loinc.org", "code": "11502-2", "display": "Laboratory report" } ], "text": "Informe de laboratorio" }, "subject": { "reference": "Patient/1098" }, "effectiveDateTime": "2026-07-20T07:45:00-03:00", "issued": "2026-07-20T07:45:00-03:00", "performer": [ { "reference": "Practitioner/1083" }, { "reference": "Organization/1099" } ], "specimen": [ { "reference": "Specimen/1372" } ], "result": [ { "reference": "Observation/1373" }, { "reference": "Observation/1374" } ] } }, { "fullUrl": "https://ponspre.medicinainteligente.ai/fhir/Patient/1098", "resource": { "resourceType": "Patient", "id": "1098", "meta": { "versionId": "1", "lastUpdated": "2026-10-20T10:00:00.000-03:00" }, "identifier": [ { "system": "urn:oid:2.16.858.1.858.68909", "value": "51234890" }, { "system": "urn:doctorhub:paciente", "value": "00000000-0000-4000-9000-000000000138" } ], "name": [ { "given": [ "María Elena Castro" ] } ], "gender": "female" } }, { "fullUrl": "https://ponspre.medicinainteligente.ai/fhir/Practitioner/1083", "resource": { "resourceType": "Practitioner", "id": "1083", "meta": { "versionId": "1", "lastUpdated": "2026-10-20T10:00:00.000-03:00" }, "identifier": [ { "use": "official", "system": "urn:oid:2.16.858.1.858.68909", "value": "29876543" }, { "use": "official", "system": "urn:uy:matricula-profesional", "value": "18740" } ], "name": [ { "use": "official", "family": "Ferrán", "given": [ "Estela" ] } ] } }, { "fullUrl": "https://ponspre.medicinainteligente.ai/fhir/Organization/1099", "resource": { "resourceType": "Organization", "id": "1099", "meta": { "versionId": "1", "lastUpdated": "2026-10-20T10:00:00.000-03:00" }, "identifier": [ { "system": "urn:uy:rut", "value": "210007778888" } ], "type": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/organization-type", "code": "prov", "display": "Healthcare Provider" } ] } ], "name": "Laboratorio Central" } }, { "fullUrl": "https://ponspre.medicinainteligente.ai/fhir/ServiceRequest/1371", "resource": { "resourceType": "ServiceRequest", "id": "1371", "meta": { "versionId": "1", "lastUpdated": "2026-10-20T10:00:00.000-03:00", "tag": [ { "system": "urn:pons:cliente", "code": "labdemo" } ] }, "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042#sr" } ], "status": "completed", "intent": "order", "subject": { "reference": "Patient/1098" }, "authoredOn": "2026-07-20T07:45:00-03:00" } }, { "fullUrl": "https://ponspre.medicinainteligente.ai/fhir/Specimen/1372", "resource": { "resourceType": "Specimen", "id": "1372", "meta": { "versionId": "1", "lastUpdated": "2026-10-20T10:00:00.000-03:00", "tag": [ { "system": "urn:pons:cliente", "code": "labdemo" } ] }, "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042#spec" } ], "type": { "text": "sangre venosa" }, "subject": { "reference": "Patient/1098" }, "collection": { "collectedDateTime": "2026-07-20T07:45:00-03:00" } } }, { "fullUrl": "https://ponspre.medicinainteligente.ai/fhir/Observation/1373", "resource": { "resourceType": "Observation", "id": "1373", "meta": { "versionId": "1", "lastUpdated": "2026-10-20T10:00:00.000-03:00", "tag": [ { "system": "urn:pons:cliente", "code": "labdemo" } ] }, "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042#res-1" } ], "status": "final", "category": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/observation-category", "code": "laboratory", "display": "Laboratory" } ] } ], "code": { "coding": [ { "system": "http://loinc.org", "code": "718-7" } ], "text": "Hemoglobina" }, "subject": { "reference": "Patient/1098" }, "effectiveDateTime": "2026-07-20T07:45:00-03:00", "valueQuantity": { "value": 11.8, "unit": "g/dL", "system": "http://unitsofmeasure.org", "code": "g/dL" }, "specimen": { "reference": "Specimen/1372" }, "referenceRange": [ { "text": "12.0 - 16.0 g/dL" } ] } }, { "fullUrl": "https://ponspre.medicinainteligente.ai/fhir/Observation/1374", "resource": { "resourceType": "Observation", "id": "1374", "meta": { "versionId": "1", "lastUpdated": "2026-10-20T10:00:00.000-03:00", "tag": [ { "system": "urn:pons:cliente", "code": "labdemo" } ] }, "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042#res-2" } ], "status": "final", "category": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/observation-category", "code": "laboratory", "display": "Laboratory" } ] } ], "code": { "coding": [ { "system": "http://loinc.org", "code": "2345-7" } ], "text": "Glucemia" }, "subject": { "reference": "Patient/1098" }, "effectiveDateTime": "2026-07-20T07:45:00-03:00", "valueQuantity": { "value": 126, "unit": "mg/dL", "system": "http://unitsofmeasure.org", "code": "mg/dL" }, "specimen": { "reference": "Specimen/1372" }, "referenceRange": [ { "text": "70 - 110 mg/dL" } ] } } ]}Falta la API key, no es válida o fue revocada.
Media typeapplication/json
Examples
Examplecapturado
Respuesta real
{ "detail": "Falta la API key, no es válida o fue revocada (header X-API-Key o Authorization: Bearer)"}La key no es de la institución de {cliente}, o le falta el alcance lectura.
Ruta no habilitada (detail.rutas_habilitadas); o, con un mismo cuerpo, el recurso no existe, no es de la institución, no es del origen de la ruta, o la CI no tiene nada propio o es ambigua.
Falta ?id= o ?paciente=, o el recurso no se puede armar en el formato de la ruta (detail.etapa, detail.errores)
Servicio no disponible; se reintenta (detail.reintentable: true).