Probar un mensaje sin guardar
POST
/sandbox/c/{cliente}/{ruta}
const url = 'https://ponspre.medicinainteligente.ai/sandbox/c/example/example';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"nro_informe":"LS-2026-0042","extraccion":"20/07/2026 07:45","muestra":"sangre venosa","paciente":{"ci":"5.123.489-0","nombre":"María","apellido":"Castro","sexo":"F","nacimiento":"04/11/1968"},"valida":{"ci":"2.987.654-3","nombre":"Laura","apellido":"Silva"},"laboratorio":{"nombre":"Laboratorio LabSoft","rut":"210007778888"},"resultados":[{"examen":"Hemoglobina","loinc":"718-7","valor":"11.8","unidad":"g/dL","referencia":"12.0 - 16.0 g/dL"},{"examen":"Glucemia","loinc":"2345-7","valor":"126","unidad":"mg/dL","referencia":"70 - 110 mg/dL"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://ponspre.medicinainteligente.ai/sandbox/c/example/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "nro_informe": "LS-2026-0042", "extraccion": "20/07/2026 07:45", "muestra": "sangre venosa", "paciente": { "ci": "5.123.489-0", "nombre": "María", "apellido": "Castro", "sexo": "F", "nacimiento": "04/11/1968" }, "valida": { "ci": "2.987.654-3", "nombre": "Laura", "apellido": "Silva" }, "laboratorio": { "nombre": "Laboratorio LabSoft", "rut": "210007778888" }, "resultados": [ { "examen": "Hemoglobina", "loinc": "718-7", "valor": "11.8", "unidad": "g/dL", "referencia": "12.0 - 16.0 g/dL" }, { "examen": "Glucemia", "loinc": "2345-7", "valor": "126", "unidad": "mg/dL", "referencia": "70 - 110 mg/dL" } ] }'Corre el mensaje por el conector completo y lo valida contra el servidor FHIR, sin guardar nada. Con ?version=N se prueba una versión antes de activarla.
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»Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
Examples
Examplecapturado
Pedido real
{ "nro_informe": "LS-2026-0042", "extraccion": "20/07/2026 07:45", "muestra": "sangre venosa", "paciente": { "ci": "5.123.489-0", "nombre": "María", "apellido": "Castro", "sexo": "F", "nacimiento": "04/11/1968" }, "valida": { "ci": "2.987.654-3", "nombre": "Laura", "apellido": "Silva" }, "laboratorio": { "nombre": "Laboratorio LabSoft", "rut": "210007778888" }, "resultados": [ { "examen": "Hemoglobina", "loinc": "718-7", "valor": "11.8", "unidad": "g/dL", "referencia": "12.0 - 16.0 g/dL" }, { "examen": "Glucemia", "loinc": "2345-7", "valor": "126", "unidad": "mg/dL", "referencia": "70 - 110 mg/dL" } ]}Responses
Sección titulada «Responses»Éxito
Media typeapplication/json
Examples
Examplecapturado
Respuesta real
{ "mensaje_id": "00000000-0000-4000-9000-000000000128", "cliente": "labdemo", "ruta": "informes", "version": 1, "ok": true, "status_equivalente": 201, "etapa": null, "errores": [], "advertencias": [], "cobertura": { "campos_sin_mapear": [], "obligatorios_sin_fuente": [], "codigos_sin_tabla": [], "expresiones_sin_origen": [] }, "pivote": { "identificador": "urn:labsoft:informe|LS-2026-0042", "paciente": { "numero_documento": "51234890", "primer_nombre": "María", "primer_apellido": "Castro", "sexo": "F", "fecha_nacimiento": "1968-11-04" }, "profesional": { "numero_documento": "29876543", "primer_nombre": "Laura", "primer_apellido": "Silva" }, "organizacion": { "nombre": "Laboratorio LabSoft", "rut": "210007778888" }, "fecha_muestra": "2026-07-20T07:45:00", "tipo_muestra": "sangre venosa", "examenes": [ { "nombre": "Hemoglobina", "codigo_loinc": "718-7", "valor": "11.8", "unidad": "g/dL", "rango_referencia": "12.0 - 16.0 g/dL" }, { "nombre": "Glucemia", "codigo_loinc": "2345-7", "valor": "126", "unidad": "mg/dL", "rango_referencia": "70 - 110 mg/dL" } ] }, "bundle": { "resourceType": "Bundle", "type": "transaction", "entry": [ { "fullUrl": "urn:uuid:00000000-0000-4000-9000-000000000129", "resource": { "resourceType": "Patient", "identifier": [ { "use": "official", "system": "urn:oid:2.16.858.1.858.68909", "value": "51234890" } ], "name": [ { "use": "official", "given": [ "María" ], "family": "Castro" } ], "gender": "female", "birthDate": "1968-11-04" }, "request": { "method": "POST", "url": "Patient", "ifNoneExist": "identifier=urn:oid:2.16.858.1.858.68909|51234890&_tag:not=urn:pons:hcen|paciente-institucion" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-9000-000000000130", "resource": { "resourceType": "Practitioner", "identifier": [ { "use": "official", "system": "urn:oid:2.16.858.1.858.68909", "value": "29876543" } ], "name": [ { "use": "official", "given": [ "Laura" ], "family": "Silva" } ] }, "request": { "method": "POST", "url": "Practitioner", "ifNoneExist": "identifier=urn:oid:2.16.858.1.858.68909|29876543" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-9000-000000000131", "resource": { "resourceType": "Organization", "name": "Laboratorio LabSoft", "type": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/organization-type", "code": "prov", "display": "Healthcare Provider" } ] } ], "identifier": [ { "system": "urn:uy:rut", "value": "210007778888" } ] }, "request": { "method": "POST", "url": "Organization", "ifNoneExist": "identifier=urn:uy:rut|210007778888" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-9000-000000000132", "resource": { "resourceType": "ServiceRequest", "status": "completed", "intent": "order", "subject": { "reference": "urn:uuid:00000000-0000-4000-9000-000000000129" }, "authoredOn": "2026-07-20T07:45:00-03:00", "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042#sr" } ] }, "request": { "method": "POST", "url": "ServiceRequest", "ifNoneExist": "identifier=urn:labsoft:informe|LS-2026-0042#sr" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-9000-000000000133", "resource": { "resourceType": "Specimen", "subject": { "reference": "urn:uuid:00000000-0000-4000-9000-000000000129" }, "collection": { "collectedDateTime": "2026-07-20T07:45:00-03:00" }, "type": { "text": "sangre venosa" }, "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042#spec" } ] }, "request": { "method": "POST", "url": "Specimen", "ifNoneExist": "identifier=urn:labsoft:informe|LS-2026-0042#spec" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-9000-000000000134", "resource": { "resourceType": "Observation", "status": "final", "category": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/observation-category", "code": "laboratory", "display": "Laboratory" } ] } ], "code": { "text": "Hemoglobina", "coding": [ { "system": "http://loinc.org", "code": "718-7" } ] }, "subject": { "reference": "urn:uuid:00000000-0000-4000-9000-000000000129" }, "specimen": { "reference": "urn:uuid:00000000-0000-4000-9000-000000000133" }, "effectiveDateTime": "2026-07-20T07:45:00-03:00", "valueQuantity": { "value": 11.8, "unit": "g/dL", "system": "http://unitsofmeasure.org", "code": "g/dL" }, "referenceRange": [ { "text": "12.0 - 16.0 g/dL" } ], "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042#res-1" } ] }, "request": { "method": "POST", "url": "Observation", "ifNoneExist": "identifier=urn:labsoft:informe|LS-2026-0042#res-1" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-9000-000000000135", "resource": { "resourceType": "Observation", "status": "final", "category": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/observation-category", "code": "laboratory", "display": "Laboratory" } ] } ], "code": { "text": "Glucemia", "coding": [ { "system": "http://loinc.org", "code": "2345-7" } ] }, "subject": { "reference": "urn:uuid:00000000-0000-4000-9000-000000000129" }, "specimen": { "reference": "urn:uuid:00000000-0000-4000-9000-000000000133" }, "effectiveDateTime": "2026-07-20T07:45:00-03:00", "valueQuantity": { "value": 126, "unit": "mg/dL", "system": "http://unitsofmeasure.org", "code": "mg/dL" }, "referenceRange": [ { "text": "70 - 110 mg/dL" } ], "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042#res-2" } ] }, "request": { "method": "POST", "url": "Observation", "ifNoneExist": "identifier=urn:labsoft:informe|LS-2026-0042#res-2" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-9000-000000000136", "resource": { "resourceType": "DiagnosticReport", "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": "urn:uuid:00000000-0000-4000-9000-000000000129" }, "basedOn": [ { "reference": "urn:uuid:00000000-0000-4000-9000-000000000132" } ], "specimen": [ { "reference": "urn:uuid:00000000-0000-4000-9000-000000000133" } ], "result": [ { "reference": "urn:uuid:00000000-0000-4000-9000-000000000134" }, { "reference": "urn:uuid:00000000-0000-4000-9000-000000000135" } ], "performer": [ { "reference": "urn:uuid:00000000-0000-4000-9000-000000000130" }, { "reference": "urn:uuid:00000000-0000-4000-9000-000000000131" } ], "effectiveDateTime": "2026-07-20T07:45:00-03:00", "issued": "2026-07-20T07:45:00-03:00", "identifier": [ { "system": "urn:labsoft:informe", "value": "LS-2026-0042" } ] }, "request": { "method": "POST", "url": "DiagnosticReport", "ifNoneExist": "identifier=urn:labsoft:informe|LS-2026-0042" } } ] }}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 tiene el alcance que pide esta operación.
Media typeapplication/json
Examples
Examplecapturado
Respuesta real
{ "detail": "La API key no tiene el alcance 'entrada'"}Ruta no habilitada: detail.rutas_habilitadas lista las que hay
Identidad ambigua en el servidor FHIR, o versión no aprobada (detail.reintentable: false)
El cuerpo supera el tope (1 MB por defecto).
El mensaje no pasó una etapa: detail.etapa y detail.errores[], con la ruta en el JSON de la institución (rutas_origen).
Servicio no disponible; se reintenta (detail.reintentable: true).