Ir al contenido

Recuperar documento: el documento FHIR

GET
/fhir/Bundle/{id}
curl --request GET \
--url https://ponspre.medicinainteligente.ai/fhir/Bundle/example \
--header 'X-API-Key: <X-API-Key>'

El documento FHIR entero (Bundle de tipo document). Su URL es el attachment.url del DocumentReference.

id
required
string

El id del recurso en PONS.

Éxito

Media typeapplication/fhir+json

Examples

Examplecapturado

Respuesta real

{
"resourceType": "Bundle",
"id": "hcen-00000000-0000-4000-9000-000000000023",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-20T10:00:00.000-03:00",
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-consulta-no-urgente-bundle"
],
"tag": [
{
"system": "urn:pons:cliente",
"code": "portal-demo"
}
]
},
"identifier": {
"use": "usual",
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.858.2.99999999.67430.20261019103000.1"
},
"type": "document",
"timestamp": "2026-10-20T10:00:00.000-03:00",
"entry": [
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000100",
"resource": {
"resourceType": "Composition",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/uy-consulta-no-urgente"
]
},
"language": "es-UY",
"identifier": {
"use": "usual",
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.858.2.99999999.67430.20261019103000.1"
},
"status": "final",
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "34108-1",
"display": "hoja de consulta no urgente"
}
]
},
"subject": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000101"
},
"encounter": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000105"
},
"date": "2026-10-19T10:30:00-03:00",
"author": [
{
"reference": "urn:uuid:00000000-0000-4000-8000-000000000104"
}
],
"title": "Hoja de Consulta No Urgente",
"confidentiality": "N",
"custodian": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000102"
},
"section": [
{
"title": "Motivos de consulta",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "10154-3",
"display": "Motivo de consulta"
}
]
},
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Cefalea</div>"
},
"entry": [
{
"reference": "urn:uuid:00000000-0000-4000-8000-000000000106"
}
]
},
{
"title": "Diagnósticos",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "11450-4",
"display": "Diagnostico"
}
]
},
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Hipertensión arterial</div>"
},
"entry": [
{
"reference": "urn:uuid:00000000-0000-4000-8000-000000000107"
}
]
}
]
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000101",
"resource": {
"resourceType": "Patient",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-patient"
]
},
"identifier": [
{
"use": "usual",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR",
"display": "Medical record number"
}
]
},
"system": "urn:oid:2.16.858.2.99999999.72768.1",
"value": "HC-000123"
},
{
"use": "official",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "NI",
"display": "National unique individual identifier"
}
]
},
"system": "urn:oid:2.16.858.2.10000675.68909",
"value": "70000011"
}
],
"name": [
{
"use": "official",
"family": "Rodríguez",
"given": [
"Lucía"
]
}
],
"gender": "female",
"birthDate": "1985-03-14"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000102",
"resource": {
"resourceType": "Organization",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-organization"
]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "XX",
"display": "Organization identifier"
}
]
},
"system": "urn:oid:2.16.858.2.99999999",
"value": "99999999"
}
],
"name": "Policlínica Ejemplo"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000103",
"resource": {
"resourceType": "Practitioner",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-practitioner"
]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "NI",
"display": "National unique individual identifier"
}
]
},
"system": "urn:oid:2.16.858.2.10000675.68909",
"value": "41112223"
}
],
"name": [
{
"family": "Gómez",
"given": [
"Ana"
]
}
]
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000104",
"resource": {
"resourceType": "PractitionerRole",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-practitioner-role"
]
},
"practitioner": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000103"
},
"organization": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000102"
}
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000105",
"resource": {
"resourceType": "Encounter",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-encounter"
]
},
"language": "es-UY",
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "AMB"
},
"subject": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000101"
},
"period": {
"start": "2026-10-19T10:00:00-03:00",
"end": "2026-10-19T10:30:00-03:00"
},
"serviceProvider": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000102"
}
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000106",
"resource": {
"resourceType": "Condition",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-motivo-consulta"
]
},
"language": "es-UY",
"category": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "7611000179107",
"display": "motivo de consulta"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "25064002",
"display": "cefalea"
}
]
},
"subject": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000101"
}
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000107",
"resource": {
"resourceType": "Condition",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-diagnostico"
]
},
"language": "es-UY",
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "active"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
"code": "confirmed"
}
]
},
"category": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "439401001",
"display": "Diagnostico"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "38823002",
"display": "hipertensión arterial"
}
]
},
"subject": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000101"
}
}
}
]
}

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"
}
]
}