Ir al contenido

CDA de un informe

GET
/export/cda/informe/{diagnostic_report_id}
curl --request GET \
--url 'https://ponspre.medicinainteligente.ai/export/cda/informe/example?firmado=false' \
--header 'X-API-Key: <X-API-Key>'

El CDA de un informe (laboratorio o imagenología), por DiagnosticReport. N1: texto embebido; N2: sección de resultados; N3: además, entries codificadas. Sin nivel sale N2, o el posible, informado en X-CDA-Nivel; un nivel explícito que no se puede cumplir da 422. Con ?firmado=true sale en un sobre SignedClinicalDocument firmado (XMLDSig).

diagnostic_report_id
required
Diagnostic Report Id
string
nivel
Any of:
string
Allowed values: 1 2 3
firmado
Firmado
boolean

Éxito

Media typeapplication/cda+xml

Examples

Examplecapturado

Respuesta real

<?xml version='1.0' encoding='UTF-8'?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/>
<id root="2.16.858.0.999999.99999.1106"/>
<code code="11502-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="informe de laboratorio"/>
<title>informe de laboratorio</title>
<effectiveTime value="20260720143000-0300"/>
<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
<languageCode code="es-UY"/>
<recordTarget>
<patientRole>
<id extension="51234890" root="2.16.858.1.858.68909"/>
<patient>
<name>
<given>María Elena Castro</given>
</name>
<administrativeGenderCode code="2" codeSystem="2.16.858.2.10000675.69600" displayName="Femenino"/>
</patient>
</patientRole>
</recordTarget>
<author>
<time value="20260720074500-0300"/>
<assignedAuthor>
<id extension="18740" root="2.16.858.2.10000675.69586"/>
<assignedPerson>
<name>
<given>Estela</given>
<family>Ferrán</family>
</name>
</assignedPerson>
<representedOrganization>
<id root="2.16.858.0.999999.99999"/>
<name>Laboratorio Central</name>
</representedOrganization>
</assignedAuthor>
</author>
<author>
<time value="20260720074500-0300"/>
<assignedAuthor>
<id root="2.16.858.0.999999.99999"/>
<assignedAuthoringDevice>
<softwareName>Ingesta FHIR UY</softwareName>
</assignedAuthoringDevice>
<representedOrganization>
<id root="2.16.858.0.999999.99999"/>
<name>Laboratorio Central</name>
</representedOrganization>
</assignedAuthor>
</author>
<custodian>
<assignedCustodian>
<representedCustodianOrganization>
<id root="2.16.858.0.999999.99999"/>
<name>Laboratorio Central</name>
</representedCustodianOrganization>
</assignedCustodian>
</custodian>
<componentOf>
<encompassingEncounter classCode="ENC">
<code code="4241000179101" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="informe de laboratorio"/>
<effectiveTime xsi:type="IVL_TS">
<low value="20260720074500-0300"/>
</effectiveTime>
<location typeCode="LOC">
<healthCareFacility classCode="SDLOC">
<code code="3881000179105" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="servicio de laboratorio"/>
</healthCareFacility>
</location>
</encompassingEncounter>
</componentOf>
<component>
<structuredBody>
<component>
<section>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests/laboratory data Narrative"/>
<title>Resultados</title>
<text>
<table>
<thead>
<tr>
<th>Examen</th>
<th>Resultado</th>
<th>Unidad</th>
<th>Rango de referencia</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hemoglobina</td>
<td>11.8</td>
<td>g/dL</td>
<td>12.0 - 16.0 g/dL</td>
</tr>
<tr>
<td>Hematocrito</td>
<td>35</td>
<td>%</td>
<td>37 - 47 %</td>
</tr>
<tr>
<td>Glucemia</td>
<td>126</td>
<td>mg/dL</td>
<td>70 - 110 mg/dL</td>
</tr>
</tbody>
</table>
<paragraph>Glucemia: Muestra obtenida en ayunas de 10 horas</paragraph>
</text>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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 lectura.

Error de validación

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}