Ir al contenido

Crear documento

POST
/fhir
curl --request POST \
--url https://ponspre.medicinainteligente.ai/fhir \
--header 'Content-Type: application/fhir+json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "resourceType": "Bundle", "meta": { "profile": [ "http://fhir.hcen.gub.uy/StructureDefinition/hcen-provide-document-bundle" ] }, "type": "transaction", "entry": [ { "fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000001", "resource": { "resourceType": "List", "meta": { "profile": [ "http://fhir.hcen.gub.uy/StructureDefinition/hcen-submission-set" ] }, "extension": [ { "url": "http://fhir.hcen.gub.uy/StructureDefinition/ext-home-community-id", "valueOid": "urn:oid:2.16.858.2.99999999" }, { "url": "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType", "valueCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "34108-1" } ] } }, { "url": "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId", "valueIdentifier": { "system": "urn:ietf:rfc:3986", "value": "urn:oid:2.16.858.2.99999999" } } ], "identifier": [ { "use": "official", "system": "urn:ietf:rfc:3986", "value": "urn:uuid:2.2.16.858.2.99999999.67430.20261019103000.1" }, { "use": "usual", "system": "urn:ietf:rfc:3986", "value": "urn:oid:2.16.858.2.99999999.67430.20261019103000.2" } ], "status": "current", "mode": "working", "code": { "coding": [ { "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", "code": "submissionset" } ] }, "subject": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000004" }, "date": "2026-10-19T10:31:00-03:00", "source": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000007" }, "entry": [ { "item": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000002" } } ] }, "request": { "method": "POST", "url": "List" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000002", "resource": { "resourceType": "DocumentReference", "meta": { "profile": [ "http://fhir.hcen.gub.uy/StructureDefinition/hcen-document-reference" ] }, "extension": [ { "url": "http://fhir.hcen.gub.uy/StructureDefinition/ext-home-community-id", "valueOid": "urn:oid:2.16.858.2.99999999" }, { "url": "http://fhir.hcen.gub.uy/StructureDefinition/ext-repository-id", "valueIdentifier": { "system": "urn:ietf:rfc:3986", "value": "urn:oid:2.16.858.2.99999999.1" } } ], "masterIdentifier": { "use": "usual", "system": "urn:ietf:rfc:3986", "value": "urn:oid:2.16.858.2.99999999.67430.20261019103000.1" }, "identifier": [ { "use": "official", "system": "urn:ietf:rfc:3986", "value": "urn:uuid:1.2.16.858.2.99999999.67430.20261019103000.1" } ], "status": "current", "type": { "coding": [ { "system": "http://snomed.info/sct", "code": "6821000179104", "display": "hoja de consulta no urgente centralizada - policlínica" } ] }, "category": [ { "coding": [ { "system": "http://loinc.org", "code": "34108-1", "display": "hoja de consulta no urgente" } ] } ], "subject": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000004" }, "date": "2026-10-19T10:30:00-03:00", "author": [ { "reference": "urn:uuid:00000000-0000-4000-8000-000000000007" } ], "custodian": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000005" }, "securityLabel": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality", "code": "N" } ] } ], "content": [ { "attachment": { "extension": [ { "url": "http://fhir.hcen.gub.uy/StructureDefinition/ext-binary-resource-id", "valueReference": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000008" } } ], "contentType": "application/fhir+json", "language": "es-UY", "url": "urn:uuid:00000000-0000-4000-8000-000000000003", "creation": "2026-10-19T10:30:00-03:00" }, "format": { "system": "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode", "code": "urn:ihe:iti:xds:2017:mimeTypeSufficient" } } ], "context": { "period": { "start": "2026-10-19T10:00:00-03:00", "end": "2026-10-19T10:30:00-03:00" }, "facilityType": { "coding": [ { "system": "http://snomed.info/sct", "code": "33022008", "display": "Hospital-based outpatient clinic or department" } ] }, "practiceSetting": { "coding": [ { "system": "http://snomed.info/sct", "code": "789718008", "display": "servicio de cardiología" } ] }, "sourcePatientInfo": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000004" } } }, "request": { "method": "POST", "url": "DocumentReference" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000003", "resource": { "resourceType": "Bundle", "meta": { "profile": [ "http://fhir.hcen.gub.uy/StructureDefinition/hcen-consulta-no-urgente-bundle" ] }, "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" }, "serviceProvider": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000102" }, "period": { "start": "2026-10-19T10:00:00-03:00", "end": "2026-10-19T10:30:00-03:00" } } }, { "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" } } } ] }, "request": { "method": "POST", "url": "Bundle" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000004", "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" }, "request": { "method": "POST", "url": "Patient" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000005", "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" }, "request": { "method": "POST", "url": "Organization" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000006", "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" ] } ] }, "request": { "method": "POST", "url": "Practitioner" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000007", "resource": { "resourceType": "PractitionerRole", "meta": { "profile": [ "http://fhir.hcen.gub.uy/StructureDefinition/hcen-practitioner-role" ] }, "practitioner": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000006" }, "organization": { "reference": "urn:uuid:00000000-0000-4000-8000-000000000005" } }, "request": { "method": "POST", "url": "PractitionerRole" } }, { "fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000008", "resource": { "resourceType": "Binary", "meta": { "profile": [ "http://fhir.hcen.gub.uy/StructureDefinition/hcen-cda-binary" ] }, "contentType": "text/xml", "data": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPENsaW5pY2FsRG9jdW1lbnQgeG1sbnM9InVybjpobDctb3JnOnYzIj4KICA8dHlwZUlkIHJvb3Q9IjIuMTYuODQwLjEuMTEzODgzLjEuMyIgZXh0ZW5zaW9uPSJQT0NEX0hEMDAwMDQwIi8+CiAgPGlkIHJvb3Q9IjIuMTYuODU4LjIuOTk5OTk5OTkuNjc0MzAuMjAyNjEwMTkxMDMwMDAiIGV4dGVuc2lvbj0iMSIvPgogIDxjb2RlIGNvZGU9IjM0MTA4LTEiIGNvZGVTeXN0ZW09IjIuMTYuODQwLjEuMTEzODgzLjYuMSIgZGlzcGxheU5hbWU9ImhvamEgZGUgY29uc3VsdGEgbm8gdXJnZW50ZSIvPgogIDx0aXRsZT5Ib2phIGRlIENvbnN1bHRhIE5vIFVyZ2VudGU8L3RpdGxlPgogIDxlZmZlY3RpdmVUaW1lIHZhbHVlPSIyMDI2MTAxOTEwMzAwMC0wMzAwIi8+CiAgPGNvbmZpZGVudGlhbGl0eUNvZGUgY29kZT0iTiIgY29kZVN5c3RlbT0iMi4xNi44NDAuMS4xMTM4ODMuNS4yNSIvPgogIDxyZWNvcmRUYXJnZXQ+PHBhdGllbnRSb2xlPgogICAgPGlkIHJvb3Q9IjIuMTYuODU4LjIuMTAwMDA2NzUuNjg5MDkiIGV4dGVuc2lvbj0iNzAwMDAwMTEiLz4KICAgIDxwYXRpZW50PjxuYW1lPjxnaXZlbj5MdWPDrWE8L2dpdmVuPjxmYW1pbHk+Um9kcsOtZ3VlejwvZmFtaWx5PjwvbmFtZT48L3BhdGllbnQ+CiAgPC9wYXRpZW50Um9sZT48L3JlY29yZFRhcmdldD4KICA8Y29tcG9uZW50PjxzdHJ1Y3R1cmVkQm9keT4KICAgIDxjb21wb25lbnQ+PHNlY3Rpb24+PGNvZGUgY29kZT0iMTAxNTQtMyIgY29kZVN5c3RlbT0iMi4xNi44NDAuMS4xMTM4ODMuNi4xIi8+CiAgICAgIDx0aXRsZT5Nb3Rpdm9zIGRlIGNvbnN1bHRhPC90aXRsZT48dGV4dD5DZWZhbGVhPC90ZXh0Pjwvc2VjdGlvbj48L2NvbXBvbmVudD4KICAgIDxjb21wb25lbnQ+PHNlY3Rpb24+PGNvZGUgY29kZT0iMTE0NTAtNCIgY29kZVN5c3RlbT0iMi4xNi44NDAuMS4xMTM4ODMuNi4xIi8+CiAgICAgIDx0aXRsZT5EaWFnbsOzc3RpY29zPC90aXRsZT48dGV4dD5IaXBlcnRlbnNpw7NuIGFydGVyaWFsPC90ZXh0Pjwvc2VjdGlvbj48L2NvbXBvbmVudD4KICA8L3N0cnVjdHVyZWRCb2R5PjwvY29tcG9uZW50Pgo8L0NsaW5pY2FsRG9jdW1lbnQ+Cg==" }, "request": { "method": "POST", "url": "Binary" } } ] }'

Publica uno o más documentos en la HCEN con un Bundle type: transaction: cada documento es un DocumentReference y su Bundle documental, con el CDA en un Binary. Todo o nada. Responde el transaction-response, una entrada por cada entrada del envío.

Media typeapplication/fhir+json
object

Examples

Examplecapturado

Pedido real

{
"resourceType": "Bundle",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-provide-document-bundle"
]
},
"type": "transaction",
"entry": [
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000001",
"resource": {
"resourceType": "List",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-submission-set"
]
},
"extension": [
{
"url": "http://fhir.hcen.gub.uy/StructureDefinition/ext-home-community-id",
"valueOid": "urn:oid:2.16.858.2.99999999"
},
{
"url": "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType",
"valueCodeableConcept": {
"coding": [
{
"system": "http://loinc.org",
"code": "34108-1"
}
]
}
},
{
"url": "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId",
"valueIdentifier": {
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.858.2.99999999"
}
}
],
"identifier": [
{
"use": "official",
"system": "urn:ietf:rfc:3986",
"value": "urn:uuid:2.2.16.858.2.99999999.67430.20261019103000.1"
},
{
"use": "usual",
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.858.2.99999999.67430.20261019103000.2"
}
],
"status": "current",
"mode": "working",
"code": {
"coding": [
{
"system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes",
"code": "submissionset"
}
]
},
"subject": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000004"
},
"date": "2026-10-19T10:31:00-03:00",
"source": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000007"
},
"entry": [
{
"item": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000002"
}
}
]
},
"request": {
"method": "POST",
"url": "List"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000002",
"resource": {
"resourceType": "DocumentReference",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-document-reference"
]
},
"extension": [
{
"url": "http://fhir.hcen.gub.uy/StructureDefinition/ext-home-community-id",
"valueOid": "urn:oid:2.16.858.2.99999999"
},
{
"url": "http://fhir.hcen.gub.uy/StructureDefinition/ext-repository-id",
"valueIdentifier": {
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.858.2.99999999.1"
}
}
],
"masterIdentifier": {
"use": "usual",
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.858.2.99999999.67430.20261019103000.1"
},
"identifier": [
{
"use": "official",
"system": "urn:ietf:rfc:3986",
"value": "urn:uuid:1.2.16.858.2.99999999.67430.20261019103000.1"
}
],
"status": "current",
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "6821000179104",
"display": "hoja de consulta no urgente centralizada - policlínica"
}
]
},
"category": [
{
"coding": [
{
"system": "http://loinc.org",
"code": "34108-1",
"display": "hoja de consulta no urgente"
}
]
}
],
"subject": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000004"
},
"date": "2026-10-19T10:30:00-03:00",
"author": [
{
"reference": "urn:uuid:00000000-0000-4000-8000-000000000007"
}
],
"custodian": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000005"
},
"securityLabel": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
"code": "N"
}
]
}
],
"content": [
{
"attachment": {
"extension": [
{
"url": "http://fhir.hcen.gub.uy/StructureDefinition/ext-binary-resource-id",
"valueReference": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000008"
}
}
],
"contentType": "application/fhir+json",
"language": "es-UY",
"url": "urn:uuid:00000000-0000-4000-8000-000000000003",
"creation": "2026-10-19T10:30:00-03:00"
},
"format": {
"system": "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode",
"code": "urn:ihe:iti:xds:2017:mimeTypeSufficient"
}
}
],
"context": {
"period": {
"start": "2026-10-19T10:00:00-03:00",
"end": "2026-10-19T10:30:00-03:00"
},
"facilityType": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "33022008",
"display": "Hospital-based outpatient clinic or department"
}
]
},
"practiceSetting": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "789718008",
"display": "servicio de cardiología"
}
]
},
"sourcePatientInfo": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000004"
}
}
},
"request": {
"method": "POST",
"url": "DocumentReference"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000003",
"resource": {
"resourceType": "Bundle",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-consulta-no-urgente-bundle"
]
},
"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"
},
"serviceProvider": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000102"
},
"period": {
"start": "2026-10-19T10:00:00-03:00",
"end": "2026-10-19T10:30:00-03:00"
}
}
},
{
"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"
}
}
}
]
},
"request": {
"method": "POST",
"url": "Bundle"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000004",
"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"
},
"request": {
"method": "POST",
"url": "Patient"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000005",
"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"
},
"request": {
"method": "POST",
"url": "Organization"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000006",
"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"
]
}
]
},
"request": {
"method": "POST",
"url": "Practitioner"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000007",
"resource": {
"resourceType": "PractitionerRole",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-practitioner-role"
]
},
"practitioner": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000006"
},
"organization": {
"reference": "urn:uuid:00000000-0000-4000-8000-000000000005"
}
},
"request": {
"method": "POST",
"url": "PractitionerRole"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000008",
"resource": {
"resourceType": "Binary",
"meta": {
"profile": [
"http://fhir.hcen.gub.uy/StructureDefinition/hcen-cda-binary"
]
},
"contentType": "text/xml",
"data": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPENsaW5pY2FsRG9jdW1lbnQgeG1sbnM9InVybjpobDctb3JnOnYzIj4KICA8dHlwZUlkIHJvb3Q9IjIuMTYuODQwLjEuMTEzODgzLjEuMyIgZXh0ZW5zaW9uPSJQT0NEX0hEMDAwMDQwIi8+CiAgPGlkIHJvb3Q9IjIuMTYuODU4LjIuOTk5OTk5OTkuNjc0MzAuMjAyNjEwMTkxMDMwMDAiIGV4dGVuc2lvbj0iMSIvPgogIDxjb2RlIGNvZGU9IjM0MTA4LTEiIGNvZGVTeXN0ZW09IjIuMTYuODQwLjEuMTEzODgzLjYuMSIgZGlzcGxheU5hbWU9ImhvamEgZGUgY29uc3VsdGEgbm8gdXJnZW50ZSIvPgogIDx0aXRsZT5Ib2phIGRlIENvbnN1bHRhIE5vIFVyZ2VudGU8L3RpdGxlPgogIDxlZmZlY3RpdmVUaW1lIHZhbHVlPSIyMDI2MTAxOTEwMzAwMC0wMzAwIi8+CiAgPGNvbmZpZGVudGlhbGl0eUNvZGUgY29kZT0iTiIgY29kZVN5c3RlbT0iMi4xNi44NDAuMS4xMTM4ODMuNS4yNSIvPgogIDxyZWNvcmRUYXJnZXQ+PHBhdGllbnRSb2xlPgogICAgPGlkIHJvb3Q9IjIuMTYuODU4LjIuMTAwMDA2NzUuNjg5MDkiIGV4dGVuc2lvbj0iNzAwMDAwMTEiLz4KICAgIDxwYXRpZW50PjxuYW1lPjxnaXZlbj5MdWPDrWE8L2dpdmVuPjxmYW1pbHk+Um9kcsOtZ3VlejwvZmFtaWx5PjwvbmFtZT48L3BhdGllbnQ+CiAgPC9wYXRpZW50Um9sZT48L3JlY29yZFRhcmdldD4KICA8Y29tcG9uZW50PjxzdHJ1Y3R1cmVkQm9keT4KICAgIDxjb21wb25lbnQ+PHNlY3Rpb24+PGNvZGUgY29kZT0iMTAxNTQtMyIgY29kZVN5c3RlbT0iMi4xNi44NDAuMS4xMTM4ODMuNi4xIi8+CiAgICAgIDx0aXRsZT5Nb3Rpdm9zIGRlIGNvbnN1bHRhPC90aXRsZT48dGV4dD5DZWZhbGVhPC90ZXh0Pjwvc2VjdGlvbj48L2NvbXBvbmVudD4KICAgIDxjb21wb25lbnQ+PHNlY3Rpb24+PGNvZGUgY29kZT0iMTE0NTAtNCIgY29kZVN5c3RlbT0iMi4xNi44NDAuMS4xMTM4ODMuNi4xIi8+CiAgICAgIDx0aXRsZT5EaWFnbsOzc3RpY29zPC90aXRsZT48dGV4dD5IaXBlcnRlbnNpw7NuIGFydGVyaWFsPC90ZXh0Pjwvc2VjdGlvbj48L2NvbXBvbmVudD4KICA8L3N0cnVjdHVyZWRCb2R5PjwvY29tcG9uZW50Pgo8L0NsaW5pY2FsRG9jdW1lbnQ+Cg=="
},
"request": {
"method": "POST",
"url": "Binary"
}
}
]
}

Éxito

Media typeapplication/fhir+json

Examples

Examplecapturado

Respuesta real

{
"resourceType": "Bundle",
"type": "transaction-response",
"entry": [
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000001",
"response": {
"status": "201 Created",
"location": "List/1023/_history/1"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000002",
"response": {
"status": "201 Created",
"location": "DocumentReference/1024/_history/1"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000003",
"response": {
"status": "201 Created",
"location": "Bundle/hcen-00000000-0000-4000-9000-000000000023/_history/1"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000004",
"response": {
"status": "200 OK",
"location": "Patient/1021"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000005",
"response": {
"status": "200 OK",
"location": "Organization/1025/_history/1"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000006",
"response": {
"status": "200 OK",
"location": "Practitioner/1026/_history/1"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000007",
"response": {
"status": "201 Created",
"location": "PractitionerRole/1027/_history/1"
}
},
{
"fullUrl": "urn:uuid:00000000-0000-4000-8000-000000000008",
"response": {
"status": "201 Created",
"location": "Binary/1028/_history/1"
}
}
]
}

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

Ya se publicó un documento con ese masterIdentifier: está publicado y no se reenvía.

Media typeapplication/fhir+json

Examples

Examplecapturado

Respuesta real

{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "duplicate",
"diagnostics": "el documento urn:oid:2.16.858.2.99999999.67430.20261019103000.1 ya está publicado (HCEN-PUB-004): no se registra dos veces",
"expression": [
"DocumentReference.masterIdentifier"
]
}
]
}

El envío no es válido para la HCEN. El OperationOutcome dice cada pieza que falla.

Media typeapplication/fhir+json

Examples

Examplecapturado

Respuesta real

{
"resourceType": "OperationOutcome",
"issue": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line",
"valueInteger": 1
},
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col",
"valueInteger": 47
},
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-message-id",
"valueString": "Validation_VAL_Profile_Minimum"
}
],
"severity": "error",
"code": "processing",
"details": {
"coding": [
{
"system": "http://hl7.org/fhir/java-core-messageId",
"code": "Validation_VAL_Profile_Minimum"
}
]
},
"diagnostics": "Bundle.entry: minimum required = 4, but only found 0 (from http://fhir.hcen.gub.uy/StructureDefinition/hcen-provide-document-bundle|0.1.0)",
"location": [
"Bundle",
"Line[1] Col[47]"
],
"expression": [
"Bundle"
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line",
"valueInteger": 1
},
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col",
"valueInteger": 47
},
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-message-id",
"valueString": "Validation_VAL_Profile_Minimum_SLICE"
}
],
"severity": "error",
"code": "processing",
"details": {
"coding": [
{
"system": "http://hl7.org/fhir/java-core-messageId",
"code": "Validation_VAL_Profile_Minimum_SLICE"
}
]
},
"diagnostics": "Slice 'Bundle.entry:submissionSet': a matching slice is required, but not found (from http://fhir.hcen.gub.uy/StructureDefinition/hcen-provide-document-bundle|0.1.0). Note that other slices are allowed in addition to this required slice",
"location": [
"Bundle",
"Line[1] Col[47]"
],
"expression": [
"Bundle"
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line",
"valueInteger": 1
},
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col",
"valueInteger": 47
},
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-message-id",
"valueString": "Validation_VAL_Profile_Minimum_SLICE"
}
],
"severity": "error",
"code": "processing",
"details": {
"coding": [
{
"system": "http://hl7.org/fhir/java-core-messageId",
"code": "Validation_VAL_Profile_Minimum_SLICE"
}
]
},
"diagnostics": "Slice 'Bundle.entry:documentReference': a matching slice is required, but not found (from http://fhir.hcen.gub.uy/StructureDefinition/hcen-provide-document-bundle|0.1.0). Note that other slices are allowed in addition to this required slice",
"location": [
"Bundle",
"Line[1] Col[47]"
],
"expression": [
"Bundle"
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line",
"valueInteger": 1
},
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col",
"valueInteger": 47
},
{
"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-message-id",
"valueString": "Validation_VAL_Profile_Minimum_SLICE"
}
],
"severity": "error",
"code": "processing",
"details": {
"coding": [
{
"system": "http://hl7.org/fhir/java-core-messageId",
"code": "Validation_VAL_Profile_Minimum_SLICE"
}
]
},
"diagnostics": "Slice 'Bundle.entry:documentBundle': a matching slice is required, but not found (from http://fhir.hcen.gub.uy/StructureDefinition/hcen-provide-document-bundle|0.1.0). Note that other slices are allowed in addition to this required slice",
"location": [
"Bundle",
"Line[1] Col[47]"
],
"expression": [
"Bundle"
]
}
]
}