HL7® Iniciativa Costa Rica

Guía de Implementación Core de Costa Rica
0.1.0 - ci-build Costa Rica bandera

Guía de Implementación Core de Costa Rica - Compilación local de desarrollo (v0.1.0), generada con las herramientas de compilación de FHIR (HL7® FHIR® Standard). Vea el directorio de versiones publicadas

Perfil de los recursos: Lista de documentos enviados

URL oficial: https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio Versión: 0.1.0
Standards status: Draft Nivel de madurez: 0 Nombre computable: CRListLoteEnvio

Lista de los documentos de un paciente que una organización envió juntos al HIE de Costa Rica: cuáles son, quién los envió y cuándo. Al consultar el HIE, muestra qué documentos llegaron en un mismo envío. Adaptada del SubmissionSet de IHE MHD.

Usos:

También puede consultar los usos en las estadísticas de IG de FHIR

Vistas formales del contenido del perfil

Descripción de perfiles, diferenciales, instantáneas y sus representaciones.

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. List C 0..* List Lista de documentos enviados: los que una organización envió juntos al HIE
Constraints: lst-1
... id Σ 0..1 id Identificador lógico del recurso
... meta Σ 0..1 Meta Metadatos del recurso
... implicitRules ?!Σ 0..1 uri Reglas que rigen la interpretación del contenido del recurso
... text 0..1 Narrative Resumen narrativo del recurso para su interpretación humana
Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos
... contained 0..* Resource Recursos contenidos en línea
... extension 0..* Extension Contenido adicional definido por las implementaciones
... modifierExtension ?!Σ 0..* Extension Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan
... identifier S 1..1 Identifier Identificador único de la lista (urn:uuid)
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... system SΣ 1..1 uri urn:ietf:rfc:3986 (valor fijo)
Patrón requerido: urn:ietf:rfc:3986
.... value SΣC 1..1 string urn:uuid: seguido de un UUID
Ejemplo General: 123456
... status ?!Σ 1..1 code current (valor fijo)
Vinculación: ListStatus (required): The current state of the list.
Patrón requerido: current
... mode ?!Σ 1..1 code working (valor fijo)
Vinculación: ListMode (required): The processing mode that applies to this list.
Patrón requerido: working
... code SΣ 1..1 CodeableConcept submissionset de IHE MHD (valor fijo)
Vinculación: ExampleUseCodesForList (example): What the purpose of a list is.
Patrón requerido: Al menos lo siguiente:
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Valor fijo: (Extensión compleja)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Valor fijo: https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Valor fijo: submissionset
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... subject SΣ 1..1 Reference(Paciente) Paciente de los documentos
... date SΣ 1..1 dateTime Momento del envío
... source SΣ 1..1 Reference(Organización) Organización que envió los documentos
... entry SC 1..* BackboneElement Las referencias de los documentos enviados
Orden de repetición de este elemento: Order has no meaning unless specifically asserted by List.orderedBy, in which case the List SHALL be interpreted as being ordered as specified by List.orderedBy.
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... deleted ?! 0..1 boolean If this item is actually marked as deleted
.... item S 1..1 Reference(Referencia a documento) Referencia a documento

doco Documentación de este formato

Vinculaciones terminológicas

Ruta Estado Uso Conjunto de valores Versión Fuente
List.language Base required All Languages 📍5.0.0 Estándar FHIR
List.identifier.use Base required IdentifierUse 📍5.0.0 Estándar FHIR
List.status Base required List Status 📍5.0.0 Estándar FHIR
List.mode Base required List Mode 📍5.0.0 Estándar FHIR
List.code Base example Example Use Codes for List 📍5.0.0 Estándar FHIR

Restricciones

Id Nivel Ruta(s) Descripción Expresión
dom-2 error List If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error List If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error List If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error List If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 buena práctica List A resource should have narrative for robust management text.`div`.exists()
ele-1 error **TODOS** los elementos All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **TODAS** las extensiones Must have either extensions or value[x], not both extension.exists() != value.exists()
lst-1 error List A list can only have an emptyReason if it is empty emptyReason.empty() or entry.empty()

Esta estructura se deriva de List .

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. List 0..* List Lista de documentos enviados: los que una organización envió juntos al HIE
... id 0..1 id Identificador lógico del recurso
... meta 0..1 Meta Metadatos del recurso
... implicitRules 0..1 uri Reglas que rigen la interpretación del contenido del recurso
... text 0..1 Narrative Resumen narrativo del recurso para su interpretación humana
... contained 0..* Resource Recursos contenidos en línea
... extension 0..* Extension Contenido adicional definido por las implementaciones
... modifierExtension 0..* Extension Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan
... identifier S 1..1 Identifier Identificador único de la lista (urn:uuid)
.... system S 1..1 uri urn:ietf:rfc:3986 (valor fijo)
Patrón requerido: urn:ietf:rfc:3986
.... value S 1..1 string urn:uuid: seguido de un UUID
... status 1..1 code current (valor fijo)
Patrón requerido: current
... mode 1..1 code working (valor fijo)
Patrón requerido: working
... code S 1..1 CodeableConcept submissionset de IHE MHD (valor fijo)
Patrón requerido: Al menos lo siguiente:
.... coding 1..* Coding Code defined by a terminology system
Valor fijo: (Extensión compleja)
..... system 1..1 uri Identity of the terminology system
Valor fijo: https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes
..... code 1..1 code Symbol in syntax defined by the system
Valor fijo: submissionset
... subject S 1..1 Reference(Paciente) Paciente de los documentos
... date S 1..1 dateTime Momento del envío
... source S 1..1 Reference(Organización) Organización que envió los documentos
... entry S 1..* BackboneElement Las referencias de los documentos enviados
.... item S 1..1 Reference(Referencia a documento) Referencia a documento

doco Documentación de este formato

Vinculaciones terminológicas (diferencial)

Ruta Estado Uso Conjunto de valores Versión Fuente
List.language Base required All Languages 📍5.0.0 Estándar FHIR
NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. List C 0..* List Lista de documentos enviados: los que una organización envió juntos al HIE
Constraints: lst-1
... id Σ 0..1 id Identificador lógico del recurso
... meta Σ 0..1 Meta Metadatos del recurso
... implicitRules ?!Σ 0..1 uri Reglas que rigen la interpretación del contenido del recurso
... text 0..1 Narrative Resumen narrativo del recurso para su interpretación humana
Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos
... contained 0..* Resource Recursos contenidos en línea
... extension 0..* Extension Contenido adicional definido por las implementaciones
... modifierExtension ?!Σ 0..* Extension Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan
... identifier S 1..1 Identifier Identificador único de la lista (urn:uuid)
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Sin orden, Abierto by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type Σ 0..1 CodeableConcept Description of identifier
Vinculación: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 1..1 uri urn:ietf:rfc:3986 (valor fijo)
Patrón requerido: urn:ietf:rfc:3986
.... value SΣC 1..1 string urn:uuid: seguido de un UUID
Ejemplo General: 123456
.... period Σ 0..1 Period Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
... status ?!Σ 1..1 code current (valor fijo)
Vinculación: ListStatus (required): The current state of the list.
Patrón requerido: current
... mode ?!Σ 1..1 code working (valor fijo)
Vinculación: ListMode (required): The processing mode that applies to this list.
Patrón requerido: working
... title Σ 0..1 string Descriptive name for the list
Ejemplo General: Dr. Jane's Patients
... code SΣ 1..1 CodeableConcept submissionset de IHE MHD (valor fijo)
Vinculación: ExampleUseCodesForList (example): What the purpose of a list is.
Patrón requerido: Al menos lo siguiente:
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Valor fijo: (Extensión compleja)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Valor fijo: https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Valor fijo: submissionset
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... subject SΣ 1..1 Reference(Paciente) Paciente de los documentos
... encounter 0..1 Reference(Encounter) Context in which list created
... date SΣ 1..1 dateTime Momento del envío
... source SΣ 1..1 Reference(Organización) Organización que envió los documentos
... orderedBy 0..1 CodeableConcept What order the list has
Vinculación: ListOrderCodes (preferred): What order applies to the items in a list.
... note 0..* Annotation Comments about the list
... entry SC 1..* BackboneElement Las referencias de los documentos enviados
Orden de repetición de este elemento: Order has no meaning unless specifically asserted by List.orderedBy, in which case the List SHALL be interpreted as being ordered as specified by List.orderedBy.
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... flag 0..1 CodeableConcept Status/Workflow information about this item
Vinculación: PatientMedicineChangeTypes (example): Codes that provide further information about the reason and meaning of the item in the list.
.... deleted ?! 0..1 boolean If this item is actually marked as deleted
.... date 0..1 dateTime When item added to list
.... item S 1..1 Reference(Referencia a documento) Referencia a documento
... emptyReason C 0..1 CodeableConcept Why list is empty
Vinculación: ListEmptyReasons (preferred): If a list is empty, why it is empty.

doco Documentación de este formato

Vinculaciones terminológicas

Ruta Estado Uso Conjunto de valores Versión Fuente
List.language Base required All Languages 📍5.0.0 Estándar FHIR
List.identifier.use Base required IdentifierUse 📍5.0.0 Estándar FHIR
List.identifier.type Base extensible Identifier Type Codes 📍5.0.0 Estándar FHIR
List.status Base required List Status 📍5.0.0 Estándar FHIR
List.mode Base required List Mode 📍5.0.0 Estándar FHIR
List.code Base example Example Use Codes for List 📍5.0.0 Estándar FHIR
List.orderedBy Base preferred List Order Codes 📍5.0.0 Estándar FHIR
List.entry.flag Base example Patient Medicine Change Types 📍5.0.0 Estándar FHIR
List.emptyReason Base preferred List Empty Reasons 📍5.0.0 Estándar FHIR

Restricciones

Id Nivel Ruta(s) Descripción Expresión
dom-2 error List If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error List If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error List If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error List If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 buena práctica List A resource should have narrative for robust management text.`div`.exists()
ele-1 error **TODOS** los elementos All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **TODAS** las extensiones Must have either extensions or value[x], not both extension.exists() != value.exists()
lst-1 error List A list can only have an emptyReason if it is empty emptyReason.empty() or entry.empty()

Esta estructura se deriva de List .

Vista de elementos clave

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. List C 0..* List Lista de documentos enviados: los que una organización envió juntos al HIE
Constraints: lst-1
... id Σ 0..1 id Identificador lógico del recurso
... meta Σ 0..1 Meta Metadatos del recurso
... implicitRules ?!Σ 0..1 uri Reglas que rigen la interpretación del contenido del recurso
... text 0..1 Narrative Resumen narrativo del recurso para su interpretación humana
Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos
... contained 0..* Resource Recursos contenidos en línea
... extension 0..* Extension Contenido adicional definido por las implementaciones
... modifierExtension ?!Σ 0..* Extension Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan
... identifier S 1..1 Identifier Identificador único de la lista (urn:uuid)
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... system SΣ 1..1 uri urn:ietf:rfc:3986 (valor fijo)
Patrón requerido: urn:ietf:rfc:3986
.... value SΣC 1..1 string urn:uuid: seguido de un UUID
Ejemplo General: 123456
... status ?!Σ 1..1 code current (valor fijo)
Vinculación: ListStatus (required): The current state of the list.
Patrón requerido: current
... mode ?!Σ 1..1 code working (valor fijo)
Vinculación: ListMode (required): The processing mode that applies to this list.
Patrón requerido: working
... code SΣ 1..1 CodeableConcept submissionset de IHE MHD (valor fijo)
Vinculación: ExampleUseCodesForList (example): What the purpose of a list is.
Patrón requerido: Al menos lo siguiente:
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Valor fijo: (Extensión compleja)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Valor fijo: https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Valor fijo: submissionset
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... subject SΣ 1..1 Reference(Paciente) Paciente de los documentos
... date SΣ 1..1 dateTime Momento del envío
... source SΣ 1..1 Reference(Organización) Organización que envió los documentos
... entry SC 1..* BackboneElement Las referencias de los documentos enviados
Orden de repetición de este elemento: Order has no meaning unless specifically asserted by List.orderedBy, in which case the List SHALL be interpreted as being ordered as specified by List.orderedBy.
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... deleted ?! 0..1 boolean If this item is actually marked as deleted
.... item S 1..1 Reference(Referencia a documento) Referencia a documento

doco Documentación de este formato

Vinculaciones terminológicas

Ruta Estado Uso Conjunto de valores Versión Fuente
List.language Base required All Languages 📍5.0.0 Estándar FHIR
List.identifier.use Base required IdentifierUse 📍5.0.0 Estándar FHIR
List.status Base required List Status 📍5.0.0 Estándar FHIR
List.mode Base required List Mode 📍5.0.0 Estándar FHIR
List.code Base example Example Use Codes for List 📍5.0.0 Estándar FHIR

Restricciones

Id Nivel Ruta(s) Descripción Expresión
dom-2 error List If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error List If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error List If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error List If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 buena práctica List A resource should have narrative for robust management text.`div`.exists()
ele-1 error **TODOS** los elementos All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **TODAS** las extensiones Must have either extensions or value[x], not both extension.exists() != value.exists()
lst-1 error List A list can only have an emptyReason if it is empty emptyReason.empty() or entry.empty()

Vista diferencial

Esta estructura se deriva de List .

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. List 0..* List Lista de documentos enviados: los que una organización envió juntos al HIE
... id 0..1 id Identificador lógico del recurso
... meta 0..1 Meta Metadatos del recurso
... implicitRules 0..1 uri Reglas que rigen la interpretación del contenido del recurso
... text 0..1 Narrative Resumen narrativo del recurso para su interpretación humana
... contained 0..* Resource Recursos contenidos en línea
... extension 0..* Extension Contenido adicional definido por las implementaciones
... modifierExtension 0..* Extension Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan
... identifier S 1..1 Identifier Identificador único de la lista (urn:uuid)
.... system S 1..1 uri urn:ietf:rfc:3986 (valor fijo)
Patrón requerido: urn:ietf:rfc:3986
.... value S 1..1 string urn:uuid: seguido de un UUID
... status 1..1 code current (valor fijo)
Patrón requerido: current
... mode 1..1 code working (valor fijo)
Patrón requerido: working
... code S 1..1 CodeableConcept submissionset de IHE MHD (valor fijo)
Patrón requerido: Al menos lo siguiente:
.... coding 1..* Coding Code defined by a terminology system
Valor fijo: (Extensión compleja)
..... system 1..1 uri Identity of the terminology system
Valor fijo: https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes
..... code 1..1 code Symbol in syntax defined by the system
Valor fijo: submissionset
... subject S 1..1 Reference(Paciente) Paciente de los documentos
... date S 1..1 dateTime Momento del envío
... source S 1..1 Reference(Organización) Organización que envió los documentos
... entry S 1..* BackboneElement Las referencias de los documentos enviados
.... item S 1..1 Reference(Referencia a documento) Referencia a documento

doco Documentación de este formato

Vinculaciones terminológicas (diferencial)

Ruta Estado Uso Conjunto de valores Versión Fuente
List.language Base required All Languages 📍5.0.0 Estándar FHIR

Vista instantáneaView

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. List C 0..* List Lista de documentos enviados: los que una organización envió juntos al HIE
Constraints: lst-1
... id Σ 0..1 id Identificador lógico del recurso
... meta Σ 0..1 Meta Metadatos del recurso
... implicitRules ?!Σ 0..1 uri Reglas que rigen la interpretación del contenido del recurso
... text 0..1 Narrative Resumen narrativo del recurso para su interpretación humana
Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos
... contained 0..* Resource Recursos contenidos en línea
... extension 0..* Extension Contenido adicional definido por las implementaciones
... modifierExtension ?!Σ 0..* Extension Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan
... identifier S 1..1 Identifier Identificador único de la lista (urn:uuid)
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Sin orden, Abierto by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type Σ 0..1 CodeableConcept Description of identifier
Vinculación: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 1..1 uri urn:ietf:rfc:3986 (valor fijo)
Patrón requerido: urn:ietf:rfc:3986
.... value SΣC 1..1 string urn:uuid: seguido de un UUID
Ejemplo General: 123456
.... period Σ 0..1 Period Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
... status ?!Σ 1..1 code current (valor fijo)
Vinculación: ListStatus (required): The current state of the list.
Patrón requerido: current
... mode ?!Σ 1..1 code working (valor fijo)
Vinculación: ListMode (required): The processing mode that applies to this list.
Patrón requerido: working
... title Σ 0..1 string Descriptive name for the list
Ejemplo General: Dr. Jane's Patients
... code SΣ 1..1 CodeableConcept submissionset de IHE MHD (valor fijo)
Vinculación: ExampleUseCodesForList (example): What the purpose of a list is.
Patrón requerido: Al menos lo siguiente:
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Valor fijo: (Extensión compleja)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Valor fijo: https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Valor fijo: submissionset
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
... subject SΣ 1..1 Reference(Paciente) Paciente de los documentos
... encounter 0..1 Reference(Encounter) Context in which list created
... date SΣ 1..1 dateTime Momento del envío
... source SΣ 1..1 Reference(Organización) Organización que envió los documentos
... orderedBy 0..1 CodeableConcept What order the list has
Vinculación: ListOrderCodes (preferred): What order applies to the items in a list.
... note 0..* Annotation Comments about the list
... entry SC 1..* BackboneElement Las referencias de los documentos enviados
Orden de repetición de este elemento: Order has no meaning unless specifically asserted by List.orderedBy, in which case the List SHALL be interpreted as being ordered as specified by List.orderedBy.
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... flag 0..1 CodeableConcept Status/Workflow information about this item
Vinculación: PatientMedicineChangeTypes (example): Codes that provide further information about the reason and meaning of the item in the list.
.... deleted ?! 0..1 boolean If this item is actually marked as deleted
.... date 0..1 dateTime When item added to list
.... item S 1..1 Reference(Referencia a documento) Referencia a documento
... emptyReason C 0..1 CodeableConcept Why list is empty
Vinculación: ListEmptyReasons (preferred): If a list is empty, why it is empty.

doco Documentación de este formato

Vinculaciones terminológicas

Ruta Estado Uso Conjunto de valores Versión Fuente
List.language Base required All Languages 📍5.0.0 Estándar FHIR
List.identifier.use Base required IdentifierUse 📍5.0.0 Estándar FHIR
List.identifier.type Base extensible Identifier Type Codes 📍5.0.0 Estándar FHIR
List.status Base required List Status 📍5.0.0 Estándar FHIR
List.mode Base required List Mode 📍5.0.0 Estándar FHIR
List.code Base example Example Use Codes for List 📍5.0.0 Estándar FHIR
List.orderedBy Base preferred List Order Codes 📍5.0.0 Estándar FHIR
List.entry.flag Base example Patient Medicine Change Types 📍5.0.0 Estándar FHIR
List.emptyReason Base preferred List Empty Reasons 📍5.0.0 Estándar FHIR

Restricciones

Id Nivel Ruta(s) Descripción Expresión
dom-2 error List If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error List If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error List If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error List If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 buena práctica List A resource should have narrative for robust management text.`div`.exists()
ele-1 error **TODOS** los elementos All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **TODAS** las extensiones Must have either extensions or value[x], not both extension.exists() != value.exists()
lst-1 error List A list can only have an emptyReason if it is empty emptyReason.empty() or entry.empty()

Esta estructura se deriva de List .

 

Otras representaciones de perfil: CSV, Excel, Schematron

Notas:

Uso en el HIE

Repositorio de documentos. Listas de documentos enviados (SubmissionSet de IHE MHD): qué documentos de un paciente llegaron juntos en un mismo envío, quién los envió y cuándo.

Ver también Servicios del HIE.

Consultas

Lo que el servidor debe responder para este perfil. En la forma, [base] es la URL base del servidor del servicio y lo que va entre llaves se reemplaza por un valor. Cada solicitud usa valores reales de los ejemplos de esta guía, y la respuesta trae los que coinciden; los cuerpos JSON se expanden al hacer clic. Todas las solicitudes llevan el token de acceso al HIE (Authorization: Bearer [token]). Las búsquedas de texto encuentran los valores que empiezan con el texto, sin distinguir mayúsculas ni tildes; las de fecha admiten los prefijos ge, gt, le y lt. En la URL los valores van codificados (| como %7C, + como %2B, un espacio como %20); aquí se muestran sin codificar para que se lean mejor.

Ir a: Leer · Buscar · Enviar documentos

Leer

Leer
Forma: GET [base]/List/{id}

Lee una lista de documentos enviados del repositorio de documentos por su id, la parte final de su URL. Se usa para resolver una referencia que otro recurso hace a una lista de documentos enviados. En el ejemplo se lee «Documentos enviados con un informe»; la segunda respuesta es la de un id que no existe.

Solicitud

GET [base]/List/ejemplo-envio-lote HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]

Respuesta si el recurso existe

HTTP/1.1 200 OK
ETag: W/"1"
Last-Modified: 2026-10-01T10:00:00-06:00
Content-Type: application/fhir+json
{
  "resourceType": "List",
  "id": "ejemplo-envio-lote",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-10-01T10:00:00-06:00",
    "profile": [
      "https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
    ]
  },
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
    }
  ],
  "subject": [
    {
      "reference": "Patient/ejemplo-paciente-dimex",
      "display": "José Mendoza"
    }
  ],
  "entry": [
    {
      "item": {
        "reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
      }
    }
  ],
  "status": "current",
  "mode": "working",
  "code": {
    "coding": [
      {
        "code": "submissionset",
        "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
      }
    ]
  },
  "date": "2026-09-30T10:31:00-06:00",
  "source": {
    "reference": "Organization/ejemplo-establecimiento",
    "display": "Hospital Privado de Ejemplo"
  }
}

Respuesta si no existe

HTTP/1.1 404 Not Found
Content-Type: application/fhir+json
{
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "error",
      "code": "not-found",
      "diagnostics": "No existe el recurso List/no-existe."
    }
  ]
}
Buscar

Buscar por tipo de lista (documentos enviados)
Forma: GET [base]/List?code={sistema}|{código}

Trae las listas de documentos enviados (submissionset), que muestran lo que un sistema envió en una transacción (IHE MHD ITI-66). En el ejemplo se usa el dato de «Documentos enviados con un informe»: code=https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes|submissionset.

Solicitud

GET [base]/List?code=https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes|submissionset HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]

Respuesta: 1 resultado: Documentos enviados con un informe

HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 1,
  "link": [
    {
      "relation": "self",
      "url": "[base]/List?code=https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes|submissionset"
    }
  ],
  "entry": [
    {
      "fullUrl": "[base]/List/ejemplo-envio-lote",
      "resource": {
        "resourceType": "List",
        "id": "ejemplo-envio-lote",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-10-01T10:00:00-06:00",
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
          ]
        },
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
          }
        ],
        "subject": [
          {
            "reference": "Patient/ejemplo-paciente-dimex",
            "display": "José Mendoza"
          }
        ],
        "entry": [
          {
            "item": {
              "reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
            }
          }
        ],
        "status": "current",
        "mode": "working",
        "code": {
          "coding": [
            {
              "code": "submissionset",
              "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
            }
          ]
        },
        "date": "2026-09-30T10:31:00-06:00",
        "source": {
          "reference": "Organization/ejemplo-establecimiento",
          "display": "Hospital Privado de Ejemplo"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

Buscar por paciente
Forma: GET [base]/List?patient=Patient/{id}

Trae las listas de documentos enviados de un paciente: qué documentos llegaron juntos en cada envío. En el ejemplo se usa el dato de «Documentos enviados con un informe»: patient=Patient/ejemplo-paciente-dimex.

Solicitud

GET [base]/List?patient=Patient/ejemplo-paciente-dimex HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]

Respuesta: 1 resultado: Documentos enviados con un informe

HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 1,
  "link": [
    {
      "relation": "self",
      "url": "[base]/List?patient=Patient/ejemplo-paciente-dimex"
    }
  ],
  "entry": [
    {
      "fullUrl": "[base]/List/ejemplo-envio-lote",
      "resource": {
        "resourceType": "List",
        "id": "ejemplo-envio-lote",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-10-01T10:00:00-06:00",
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
          ]
        },
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
          }
        ],
        "subject": [
          {
            "reference": "Patient/ejemplo-paciente-dimex",
            "display": "José Mendoza"
          }
        ],
        "entry": [
          {
            "item": {
              "reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
            }
          }
        ],
        "status": "current",
        "mode": "working",
        "code": {
          "coding": [
            {
              "code": "submissionset",
              "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
            }
          ]
        },
        "date": "2026-09-30T10:31:00-06:00",
        "source": {
          "reference": "Organization/ejemplo-establecimiento",
          "display": "Hospital Privado de Ejemplo"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

Buscar por identificador
Forma: GET [base]/List?identifier={sistema}|{valor}

Encuentra una lista de documentos enviados por su identificador. En el ejemplo se usa el dato de «Documentos enviados con un informe»: identifier=urn:ietf:rfc:3986|urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d.

Solicitud

GET [base]/List?identifier=urn:ietf:rfc:3986|urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]

Respuesta: 1 resultado: Documentos enviados con un informe

HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 1,
  "link": [
    {
      "relation": "self",
      "url": "[base]/List?identifier=urn:ietf:rfc:3986|urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
    }
  ],
  "entry": [
    {
      "fullUrl": "[base]/List/ejemplo-envio-lote",
      "resource": {
        "resourceType": "List",
        "id": "ejemplo-envio-lote",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-10-01T10:00:00-06:00",
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
          ]
        },
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
          }
        ],
        "subject": [
          {
            "reference": "Patient/ejemplo-paciente-dimex",
            "display": "José Mendoza"
          }
        ],
        "entry": [
          {
            "item": {
              "reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
            }
          }
        ],
        "status": "current",
        "mode": "working",
        "code": {
          "coding": [
            {
              "code": "submissionset",
              "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
            }
          ]
        },
        "date": "2026-09-30T10:31:00-06:00",
        "source": {
          "reference": "Organization/ejemplo-establecimiento",
          "display": "Hospital Privado de Ejemplo"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

Buscar por fecha
Forma: GET [base]/List?date={fecha}

Busca los envíos de una fecha. En el ejemplo se usa el dato de «Documentos enviados con un informe»: date=2026-09-30.

Solicitud

GET [base]/List?date=2026-09-30 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]

Respuesta: 1 resultado: Documentos enviados con un informe

HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 1,
  "link": [
    {
      "relation": "self",
      "url": "[base]/List?date=2026-09-30"
    }
  ],
  "entry": [
    {
      "fullUrl": "[base]/List/ejemplo-envio-lote",
      "resource": {
        "resourceType": "List",
        "id": "ejemplo-envio-lote",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-10-01T10:00:00-06:00",
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
          ]
        },
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
          }
        ],
        "subject": [
          {
            "reference": "Patient/ejemplo-paciente-dimex",
            "display": "José Mendoza"
          }
        ],
        "entry": [
          {
            "item": {
              "reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
            }
          }
        ],
        "status": "current",
        "mode": "working",
        "code": {
          "coding": [
            {
              "code": "submissionset",
              "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
            }
          ]
        },
        "date": "2026-09-30T10:31:00-06:00",
        "source": {
          "reference": "Organization/ejemplo-establecimiento",
          "display": "Hospital Privado de Ejemplo"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

Buscar por fuente
Forma: GET [base]/List?source=Organization/{id}

Trae los envíos de una organización. En el ejemplo se usa el dato de «Documentos enviados con un informe»: source=Organization/ejemplo-establecimiento.

Solicitud

GET [base]/List?source=Organization/ejemplo-establecimiento HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]

Respuesta: 1 resultado: Documentos enviados con un informe

HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 1,
  "link": [
    {
      "relation": "self",
      "url": "[base]/List?source=Organization/ejemplo-establecimiento"
    }
  ],
  "entry": [
    {
      "fullUrl": "[base]/List/ejemplo-envio-lote",
      "resource": {
        "resourceType": "List",
        "id": "ejemplo-envio-lote",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-10-01T10:00:00-06:00",
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
          ]
        },
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
          }
        ],
        "subject": [
          {
            "reference": "Patient/ejemplo-paciente-dimex",
            "display": "José Mendoza"
          }
        ],
        "entry": [
          {
            "item": {
              "reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
            }
          }
        ],
        "status": "current",
        "mode": "working",
        "code": {
          "coding": [
            {
              "code": "submissionset",
              "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
            }
          ]
        },
        "date": "2026-09-30T10:31:00-06:00",
        "source": {
          "reference": "Organization/ejemplo-establecimiento",
          "display": "Hospital Privado de Ejemplo"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

Buscar por tipo de lista (documentos enviados), con POST
Forma: POST [base]/List/_search
cuerpo: code={sistema}|{código}

Hace cualquier búsqueda con POST: los parámetros van en el cuerpo, como un formulario, en lugar de la URL. Se usa cuando los valores son datos personales, como una cédula, para que no queden en los registros de los servidores ni en el historial; la respuesta es la misma que con GET. En el ejemplo se repite la búsqueda por tipo de lista (documentos enviados).

Solicitud

POST [base]/List/_search HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Content-Type: application/x-www-form-urlencoded

code=https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes|submissionset

Respuesta: 1 resultado: Documentos enviados con un informe, igual que con GET

HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 1,
  "link": [
    {
      "relation": "self",
      "url": "[base]/List?code=https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes|submissionset"
    }
  ],
  "entry": [
    {
      "fullUrl": "[base]/List/ejemplo-envio-lote",
      "resource": {
        "resourceType": "List",
        "id": "ejemplo-envio-lote",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-10-01T10:00:00-06:00",
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
          ]
        },
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
          }
        ],
        "subject": [
          {
            "reference": "Patient/ejemplo-paciente-dimex",
            "display": "José Mendoza"
          }
        ],
        "entry": [
          {
            "item": {
              "reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
            }
          }
        ],
        "status": "current",
        "mode": "working",
        "code": {
          "coding": [
            {
              "code": "submissionset",
              "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
            }
          ]
        },
        "date": "2026-09-30T10:31:00-06:00",
        "source": {
          "reference": "Organization/ejemplo-establecimiento",
          "display": "Hospital Privado de Ejemplo"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}
Enviar documentos

Enviar documentos (IHE MHD ITI-65)
Forma: POST [base]
cuerpo: Bundle de tipo transaction

Envía al repositorio uno o varios documentos en una sola transacción: la lista de documentos enviados, la referencia de cada documento, el documento y sus firmas (IHE MHD ITI-65). El servidor guarda todo o nada: si una entrada no cumple su perfil, no se guarda ninguna. En el ejemplo se envía «Envío de un informe al HIE»: un informe de imágenes con su referencia, la lista de documentos enviados, la firma del radiólogo y el sello del hospital; la segunda respuesta es el rechazo de toda la transacción porque una entrada no cumple su perfil.

Solicitud

POST [base] HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "id": "ejemplo-envio-informe-imagenes",
  "meta": {
    "profile": [
      "https://hl7.or.cr/fhir/core/StructureDefinition/cr-bundle-envio-documentos"
    ]
  },
  "entry": [
    {
      "request": {
        "method": "POST",
        "url": "List"
      },
      "fullUrl": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d",
      "resource": {
        "resourceType": "List",
        "id": "ejemplo-envio-lote",
        "meta": {
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
          ]
        },
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
          }
        ],
        "subject": [
          {
            "reference": "Patient/ejemplo-paciente-dimex",
            "display": "José Mendoza"
          }
        ],
        "entry": [
          {
            "item": {
              "reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
            }
          }
        ],
        "status": "current",
        "mode": "working",
        "code": {
          "coding": [
            {
              "code": "submissionset",
              "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
            }
          ]
        },
        "date": "2026-09-30T10:31:00-06:00",
        "source": {
          "reference": "Organization/ejemplo-establecimiento",
          "display": "Hospital Privado de Ejemplo"
        }
      }
    },
    {
      "request": {
        "method": "POST",
        "url": "DocumentReference"
      },
      "fullUrl": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
      "resource": {
        "resourceType": "DocumentReference",
        "id": "ejemplo-envio-referencia",
        "meta": {
          "security": [
            {
              "code": "N",
              "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
              "display": "normal"
            }
          ],
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-documentreference"
          ]
        },
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:3f6b1c2a-9d4e-4b7a-8c1f-2e5d6a7b8c90"
          },
          {
            "system": "https://hl7.or.cr/fhir/sid/documento/cj-3101123456",
            "value": "INF-IMG-2026-000871"
          }
        ],
        "type": {
          "coding": [
            {
              "code": "18748-4",
              "system": "http://loinc.org"
            }
          ],
          "text": "Informe de imágenes médicas"
        },
        "category": [
          {
            "coding": [
              {
                "code": "LP173421-1",
                "system": "http://loinc.org"
              }
            ],
            "text": "Informe"
          }
        ],
        "context": [
          {
            "reference": "Encounter/ejemplo-atencion-resonancia",
            "display": "Resonancia magnética"
          }
        ],
        "period": {
          "start": "2026-09-30T08:15:00-06:00",
          "end": "2026-09-30T08:55:00-06:00"
        },
        "author": [
          {
            "reference": "PractitionerRole/ejemplo-rol-radiologia",
            "display": "Carlos Jiménez Solano"
          }
        ],
        "attester": [
          {
            "mode": {
              "coding": [
                {
                  "code": "legal",
                  "system": "http://hl7.org/fhir/composition-attestation-mode",
                  "display": "Legal"
                }
              ]
            },
            "time": "2026-09-30T10:25:00-06:00",
            "party": {
              "reference": "PractitionerRole/ejemplo-rol-radiologia",
              "display": "Carlos Jiménez Solano"
            }
          }
        ],
        "modality": [
          {
            "coding": [
              {
                "code": "MR",
                "system": "http://dicom.nema.org/resources/ontology/DCM",
                "display": "Magnetic Resonance"
              }
            ]
          }
        ],
        "securityLabel": [
          {
            "coding": [
              {
                "code": "N",
                "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
                "display": "normal"
              }
            ]
          }
        ],
        "content": [
          {
            "attachment": {
              "language": "es",
              "creation": "2026-09-30T10:20:00-06:00",
              "contentType": "application/fhir+json",
              "url": "https://hie.example.cr/fhir/Bundle/ejemplo-bundle-documento-imagenes"
            },
            "profile": [
              {
                "valueCanonical": "https://hl7.or.cr/fhir/core/StructureDefinition/cr-bundle-documento"
              }
            ]
          }
        ],
        "version": "1",
        "status": "current",
        "subject": {
          "reference": "Patient/ejemplo-paciente-dimex",
          "display": "José Mendoza"
        },
        "date": "2026-09-30T10:30:00-06:00",
        "custodian": {
          "reference": "Organization/ejemplo-establecimiento",
          "display": "Hospital Privado de Ejemplo"
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "Bundle/ejemplo-bundle-documento-imagenes"
      },
      "fullUrl": "https://hie.example.cr/fhir/Bundle/ejemplo-bundle-documento-imagenes",
      "resource": {
        "resourceType": "Bundle",
        "id": "ejemplo-bundle-documento-imagenes",
        "meta": {
          "security": [
            {
              "code": "N",
              "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
              "display": "normal"
            }
          ],
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-bundle-documento"
          ]
        },
        "identifier": {
          "system": "urn:ietf:rfc:3986",
          "value": "urn:uuid:3f6b1c2a-9d4e-4b7a-8c1f-2e5d6a7b8c90"
        },
        "entry": [
          {
            "fullUrl": "https://hl7.or.cr/fhir/core/Composition/ejemplo-documento-imagenes",
            "resource": {
              "resourceType": "Composition",
              "id": "ejemplo-documento-imagenes",
              "meta": {
                "security": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
                    "code": "N",
                    "display": "normal"
                  }
                ],
                "profile": [
                  "https://hl7.or.cr/fhir/core/StructureDefinition/cr-composition"
                ]
              },
              "identifier": [
                {
                  "system": "https://hl7.or.cr/fhir/sid/documento/cj-3101123456",
                  "value": "INF-IMG-2026-000871"
                }
              ],
              "type": {
                "coding": [
                  {
                    "code": "18748-4",
                    "system": "http://loinc.org"
                  }
                ],
                "text": "Informe de imágenes médicas"
              },
              "subject": [
                {
                  "reference": "Patient/ejemplo-paciente-dimex",
                  "display": "José Mendoza"
                }
              ],
              "author": [
                {
                  "reference": "PractitionerRole/ejemplo-rol-radiologia",
                  "display": "Carlos Jiménez Solano"
                }
              ],
              "attester": [
                {
                  "mode": {
                    "coding": [
                      {
                        "code": "legal",
                        "system": "http://hl7.org/fhir/composition-attestation-mode",
                        "display": "Legal"
                      }
                    ]
                  },
                  "time": "2026-09-30T10:25:00-06:00",
                  "party": {
                    "reference": "PractitionerRole/ejemplo-rol-radiologia",
                    "display": "Carlos Jiménez Solano"
                  }
                }
              ],
              "section": [
                {
                  "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Ruptura parcial del ligamento cruzado anterior. Menisco medial sin alteraciones.</div>"
                  },
                  "title": "Hallazgos",
                  "code": {
                    "coding": [
                      {
                        "code": "59776-5",
                        "system": "http://loinc.org"
                      }
                    ]
                  }
                },
                {
                  "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Ruptura parcial del ligamento cruzado anterior.</div>"
                  },
                  "title": "Conclusión",
                  "code": {
                    "coding": [
                      {
                        "code": "19005-8",
                        "system": "http://loinc.org"
                      }
                    ]
                  }
                }
              ],
              "encounter": {
                "reference": "Encounter/ejemplo-atencion-resonancia",
                "display": "Resonancia magnética"
              },
              "title": "Informe de resonancia magnética de rodilla derecha",
              "custodian": {
                "reference": "Organization/ejemplo-establecimiento",
                "display": "Hospital Privado de Ejemplo"
              },
              "version": "1",
              "status": "final",
              "date": "2026-09-30T10:20:00-06:00"
            }
          },
          {
            "fullUrl": "https://hl7.or.cr/fhir/core/Patient/ejemplo-paciente-dimex",
            "resource": {
              "resourceType": "Patient",
              "id": "ejemplo-paciente-dimex",
              "meta": {
                "profile": [
                  "https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient"
                ]
              },
              "identifier": [
                {
                  "type": {
                    "coding": [
                      {
                        "code": "dimex",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion",
                        "display": "DIMEX"
                      },
                      {
                        "code": "PRC",
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                        "display": "Permanent Resident Card Number"
                      }
                    ]
                  },
                  "use": "official",
                  "system": "https://hl7.or.cr/fhir/sid/dimex",
                  "value": "155812345678"
                },
                {
                  "type": {
                    "coding": [
                      {
                        "code": "pasaporte",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion",
                        "display": "Número de Pasaporte"
                      },
                      {
                        "code": "PPN",
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                        "display": "Passport number"
                      }
                    ]
                  },
                  "assigner": {
                    "display": "Nicaragua"
                  },
                  "use": "official",
                  "system": "https://hl7.or.cr/fhir/sid/pasaporte/NIC",
                  "value": "C01234567"
                }
              ],
              "name": [
                {
                  "given": [
                    "José"
                  ],
                  "use": "official",
                  "family": "Mendoza",
                  "_family": {
                    "extension": [
                      {
                        "extension": [
                          {
                            "url": "valor",
                            "valueString": "Mendoza"
                          },
                          {
                            "url": "origen",
                            "valueCoding": {
                              "code": "FTH",
                              "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                              "display": "father"
                            }
                          }
                        ],
                        "url": "https://hl7.or.cr/fhir/core/StructureDefinition/cr-primer-apellido"
                      }
                    ]
                  }
                }
              ],
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "code": "76689-9",
                            "system": "http://loinc.org"
                          }
                        ]
                      }
                    },
                    {
                      "url": "value",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "code": "male",
                            "system": "http://hl7.org/fhir/administrative-gender"
                          }
                        ]
                      }
                    }
                  ],
                  "url": "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
                },
                {
                  "extension": [
                    {
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "code": "NIC",
                            "system": "urn:iso:std:iso:3166"
                          }
                        ],
                        "text": "Nicaragua"
                      },
                      "url": "code"
                    }
                  ],
                  "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality"
                }
              ],
              "telecom": [
                {
                  "system": "phone",
                  "value": "+50670001122"
                }
              ],
              "address": [
                {
                  "line": [
                    "Calle 3, 100 metros al este de la rotonda, apartamento 4"
                  ],
                  "use": "home",
                  "country": "CRI",
                  "state": "1",
                  "city": "115",
                  "district": "11501",
                  "text": "Calle 3, 100 metros al este de la rotonda, apartamento 4, San Pedro, Montes de Oca, San José"
                }
              ],
              "active": true,
              "birthDate": "1984-11-02"
            }
          },
          {
            "fullUrl": "https://hl7.or.cr/fhir/core/Encounter/ejemplo-atencion-resonancia",
            "resource": {
              "resourceType": "Encounter",
              "id": "ejemplo-atencion-resonancia",
              "meta": {
                "profile": [
                  "https://hl7.or.cr/fhir/core/StructureDefinition/cr-encounter"
                ]
              },
              "identifier": [
                {
                  "system": "https://hl7.or.cr/fhir/sid/atencion/cj-3101123456",
                  "value": "IMG-2026-000871"
                }
              ],
              "class": [
                {
                  "coding": [
                    {
                      "code": "AMB",
                      "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                      "display": "ambulatory"
                    }
                  ],
                  "text": "Ambulatoria"
                }
              ],
              "subject": {
                "identifier": {
                  "system": "https://hl7.or.cr/fhir/sid/dimex",
                  "value": "155812345678"
                },
                "display": "José Mendoza"
              },
              "serviceType": [
                {
                  "concept": {
                    "coding": [
                      {
                        "code": "imagenes-medicas",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-servicio-salud",
                        "display": "Imágenes médicas"
                      }
                    ]
                  },
                  "reference": {
                    "reference": "HealthcareService/ejemplo-servicio-resonancia",
                    "display": "Resonancia magnética"
                  }
                }
              ],
              "actualPeriod": {
                "start": "2026-09-30T08:15:00-06:00",
                "end": "2026-09-30T08:55:00-06:00"
              },
              "participant": [
                {
                  "type": [
                    {
                      "coding": [
                        {
                          "code": "ATND",
                          "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                          "display": "attender"
                        }
                      ],
                      "text": "Responsable de la atención"
                    }
                  ],
                  "actor": {
                    "reference": "PractitionerRole/ejemplo-rol-radiologia",
                    "display": "Carlos Jiménez Solano"
                  }
                }
              ],
              "location": [
                {
                  "location": {
                    "reference": "Location/ejemplo-ubicacion-radiologia",
                    "display": "Servicio de Radiología"
                  }
                }
              ],
              "status": "completed",
              "serviceProvider": {
                "reference": "Organization/ejemplo-establecimiento",
                "display": "Hospital Privado de Ejemplo"
              }
            }
          },
          {
            "fullUrl": "https://hl7.or.cr/fhir/core/PractitionerRole/ejemplo-rol-radiologia",
            "resource": {
              "resourceType": "PractitionerRole",
              "id": "ejemplo-rol-radiologia",
              "meta": {
                "profile": [
                  "https://hl7.or.cr/fhir/core/StructureDefinition/cr-practitioner-role"
                ]
              },
              "identifier": [
                {
                  "system": "https://hl7.or.cr/fhir/sid/rol/cj-3101123456",
                  "value": "MED-0345"
                }
              ],
              "period": {
                "start": "2024-02-01"
              },
              "location": [
                {
                  "reference": "Location/ejemplo-ubicacion-radiologia",
                  "display": "Servicio de Radiología"
                }
              ],
              "code": [
                {
                  "coding": [
                    {
                      "code": "medicina",
                      "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-profesion-salud",
                      "display": "Medicina"
                    }
                  ]
                }
              ],
              "specialty": [
                {
                  "coding": [
                    {
                      "code": "06.05.01",
                      "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-especialidad-salud",
                      "display": "Medicina con especialidad en Radiología e Imágenes Médicas"
                    }
                  ]
                }
              ],
              "communication": [
                {
                  "coding": [
                    {
                      "code": "es",
                      "system": "urn:ietf:bcp:47",
                      "display": "español"
                    }
                  ]
                },
                {
                  "coding": [
                    {
                      "code": "en",
                      "system": "urn:ietf:bcp:47",
                      "display": "inglés"
                    }
                  ]
                }
              ],
              "contact": [
                {
                  "telecom": [
                    {
                      "system": "phone",
                      "value": "+50622220000;ext=2110"
                    },
                    {
                      "system": "email",
                      "value": "radiologia@hospital-ejemplo.cr"
                    }
                  ]
                }
              ],
              "active": true,
              "practitioner": {
                "reference": "Practitioner/ejemplo-profesional-radiologia",
                "display": "Carlos Jiménez Solano"
              },
              "organization": {
                "reference": "Organization/ejemplo-establecimiento",
                "display": "Hospital Privado de Ejemplo"
              }
            }
          },
          {
            "fullUrl": "https://hl7.or.cr/fhir/core/Practitioner/ejemplo-profesional-radiologia",
            "resource": {
              "resourceType": "Practitioner",
              "id": "ejemplo-profesional-radiologia",
              "meta": {
                "profile": [
                  "https://hl7.or.cr/fhir/core/StructureDefinition/cr-practitioner"
                ]
              },
              "identifier": [
                {
                  "type": {
                    "coding": [
                      {
                        "code": "cedula-nacional",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion",
                        "display": "Cédula Nacional"
                      },
                      {
                        "code": "NI",
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                        "display": "National unique individual identifier"
                      }
                    ]
                  },
                  "use": "official",
                  "system": "https://hl7.or.cr/fhir/sid/cedula-nacional",
                  "value": "204560789"
                },
                {
                  "type": {
                    "coding": [
                      {
                        "code": "codigo-colegiado",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion",
                        "display": "Código de colegiado"
                      },
                      {
                        "code": "LN",
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                        "display": "License number"
                      }
                    ]
                  },
                  "use": "official",
                  "system": "https://hl7.or.cr/fhir/sid/colegiado/cmc",
                  "value": "23456"
                }
              ],
              "name": [
                {
                  "given": [
                    "Carlos"
                  ],
                  "use": "official",
                  "family": "Jiménez Solano",
                  "_family": {
                    "extension": [
                      {
                        "extension": [
                          {
                            "url": "valor",
                            "valueString": "Jiménez"
                          }
                        ],
                        "url": "https://hl7.or.cr/fhir/core/StructureDefinition/cr-primer-apellido"
                      },
                      {
                        "extension": [
                          {
                            "url": "valor",
                            "valueString": "Solano"
                          }
                        ],
                        "url": "https://hl7.or.cr/fhir/core/StructureDefinition/cr-segundo-apellido"
                      }
                    ]
                  }
                }
              ],
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "code": "76689-9",
                            "system": "http://loinc.org"
                          }
                        ]
                      }
                    },
                    {
                      "url": "value",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "code": "male",
                            "system": "http://hl7.org/fhir/administrative-gender"
                          }
                        ]
                      }
                    }
                  ],
                  "url": "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
                }
              ],
              "qualification": [
                {
                  "identifier": [
                    {
                      "system": "https://hl7.or.cr/fhir/sid/colegiado/cmc",
                      "value": "23456"
                    }
                  ],
                  "period": {
                    "start": "2008-02-20"
                  },
                  "code": {
                    "coding": [
                      {
                        "code": "medicina",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-profesion-salud",
                        "display": "Medicina"
                      }
                    ]
                  },
                  "issuer": {
                    "reference": "Organization/ejemplo-organizacion-cmc",
                    "display": "Colegio de Médicos y Cirujanos de Costa Rica"
                  }
                },
                {
                  "identifier": [
                    {
                      "system": "https://hl7.or.cr/fhir/sid/especialidad/cmc",
                      "value": "ESP-0345"
                    }
                  ],
                  "period": {
                    "start": "2014-07-01"
                  },
                  "code": {
                    "coding": [
                      {
                        "code": "06.05.01",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-especialidad-salud",
                        "display": "Medicina con especialidad en Radiología e Imágenes Médicas"
                      }
                    ]
                  },
                  "issuer": {
                    "reference": "Organization/ejemplo-organizacion-cmc",
                    "display": "Colegio de Médicos y Cirujanos de Costa Rica"
                  }
                }
              ],
              "active": true
            }
          },
          {
            "fullUrl": "https://hl7.or.cr/fhir/core/Organization/ejemplo-establecimiento",
            "resource": {
              "resourceType": "Organization",
              "id": "ejemplo-establecimiento",
              "meta": {
                "profile": [
                  "https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
                ]
              },
              "identifier": [
                {
                  "type": {
                    "coding": [
                      {
                        "code": "cedula-juridica",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion-organizacion",
                        "display": "Cédula Jurídica"
                      },
                      {
                        "code": "XX",
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                        "display": "Organization identifier"
                      }
                    ]
                  },
                  "use": "official",
                  "system": "https://hl7.or.cr/fhir/sid/cedula-juridica",
                  "value": "3101123456"
                },
                {
                  "type": {
                    "coding": [
                      {
                        "code": "codigo-establecimiento",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion-organizacion",
                        "display": "Código de establecimiento"
                      },
                      {
                        "code": "FI",
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                        "display": "Facility ID"
                      }
                    ]
                  },
                  "use": "official",
                  "system": "https://hl7.or.cr/fhir/sid/establecimiento",
                  "value": "cj-3101123456"
                }
              ],
              "type": [
                {
                  "coding": [
                    {
                      "code": "prov",
                      "system": "http://terminology.hl7.org/CodeSystem/organization-type",
                      "display": "Healthcare Provider"
                    }
                  ],
                  "text": "Prestador de servicios de salud"
                },
                {
                  "coding": [
                    {
                      "code": "hospital-nacional-privado",
                      "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud"
                    }
                  ]
                },
                {
                  "coding": [
                    {
                      "code": "facility",
                      "system": "https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types",
                      "display": "Facility"
                    }
                  ]
                }
              ],
              "alias": [
                "Hospital Privado de Ejemplo"
              ],
              "contact": [
                {
                  "telecom": [
                    {
                      "system": "phone",
                      "value": "+50622220000"
                    },
                    {
                      "system": "email",
                      "value": "info@hospital-ejemplo.cr"
                    },
                    {
                      "system": "url",
                      "value": "https://www.hospital-ejemplo.cr"
                    }
                  ],
                  "address": {
                    "line": [
                      "Avenida 2, entre calles 5 y 7"
                    ],
                    "country": "CRI",
                    "state": "1",
                    "city": "101",
                    "district": "10101",
                    "text": "Avenida 2, entre calles 5 y 7, Carmen, San José, San José"
                  }
                }
              ],
              "qualification": [
                {
                  "identifier": [
                    {
                      "value": "PF-2026-000123"
                    }
                  ],
                  "period": {
                    "start": "2026-01-15",
                    "end": "2031-01-14"
                  },
                  "code": {
                    "coding": [
                      {
                        "code": "permiso-funcionamiento-salud",
                        "system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-autorizacion-salud",
                        "display": "Permiso de Funcionamiento de Salud"
                      }
                    ]
                  },
                  "issuer": {
                    "reference": "Organization/ejemplo-organizacion-ministerio-salud",
                    "display": "Ministerio de Salud"
                  }
                }
              ],
              "active": true,
              "name": "Hospital Privado de Ejemplo Sociedad Anónima"
            }
          }
        ],
        "type": "document",
        "timestamp": "2026-09-30T10:26:00-06:00"
      }
    },
    {
      "request": {
        "method": "POST",
        "url": "Provenance"
      },
      "fullUrl": "urn:uuid:7c1e2d3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
      "resource": {
        "resourceType": "Provenance",
        "id": "ejemplo-firma-documento-imagenes",
        "meta": {
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
          ]
        },
        "target": [
          {
            "reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
            "display": "Documento completo del informe de imágenes médicas (D1), versión 1"
          }
        ],
        "agent": [
          {
            "type": {
              "coding": [
                {
                  "code": "assembler",
                  "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                  "display": "Assembler"
                }
              ]
            },
            "who": {
              "reference": "Device/ejemplo-sistema-hce-hospital",
              "display": "Expediente electrónico del hospital"
            }
          },
          {
            "type": {
              "coding": [
                {
                  "code": "attester",
                  "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                  "display": "Attester"
                }
              ]
            },
            "who": {
              "reference": "PractitionerRole/ejemplo-rol-radiologia",
              "display": "Carlos Jiménez Solano"
            }
          }
        ],
        "signature": [
          {
            "type": [
              {
                "code": "1.2.840.10065.1.12.1.1",
                "system": "urn:iso-astm:E1762-95:2013",
                "display": "Author's Signature"
              }
            ],
            "targetFormat": "application/fhir+json",
            "sigFormat": "application/jose+json",
            "when": "2026-09-30T10:26:30-06:00",
            "who": {
              "reference": "PractitionerRole/ejemplo-rol-radiologia",
              "display": "Carlos Jiménez Solano"
            },
            "data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6IlpXcGxiWEJzYncifV19"
          }
        ],
        "activity": {
          "coding": [
            {
              "code": "attest",
              "system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
            }
          ]
        },
        "patient": {
          "reference": "Patient/ejemplo-paciente-dimex",
          "display": "José Mendoza"
        },
        "recorded": "2026-09-30T10:27:05-06:00"
      }
    },
    {
      "request": {
        "method": "POST",
        "url": "Provenance"
      },
      "fullUrl": "urn:uuid:8d2f3e4a-5b6c-4d7e-9f8a-0b1c2d3e4f5a",
      "resource": {
        "resourceType": "Provenance",
        "id": "ejemplo-sello-documento-imagenes",
        "meta": {
          "profile": [
            "https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
          ]
        },
        "target": [
          {
            "reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
            "display": "Documento completo del informe de imágenes médicas (D1), versión 1"
          }
        ],
        "agent": [
          {
            "type": {
              "coding": [
                {
                  "code": "assembler",
                  "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                  "display": "Assembler"
                }
              ]
            },
            "who": {
              "reference": "Device/ejemplo-sistema-hce-hospital",
              "display": "Expediente electrónico del hospital"
            }
          },
          {
            "type": {
              "coding": [
                {
                  "code": "attester",
                  "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                  "display": "Attester"
                }
              ]
            },
            "who": {
              "reference": "Organization/ejemplo-establecimiento",
              "display": "Hospital Privado de Ejemplo"
            }
          }
        ],
        "signature": [
          {
            "type": [
              {
                "code": "1.2.840.10065.1.12.1.14",
                "system": "urn:iso-astm:E1762-95:2013",
                "display": "Source Signature"
              }
            ],
            "targetFormat": "application/fhir+json",
            "sigFormat": "application/jose+json",
            "when": "2026-09-30T10:27:00-06:00",
            "who": {
              "reference": "Organization/ejemplo-establecimiento",
              "display": "Hospital Privado de Ejemplo"
            },
            "data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6ImMyVnNiRzgifV19"
          }
        ],
        "activity": {
          "coding": [
            {
              "code": "attest",
              "system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
            }
          ]
        },
        "patient": {
          "reference": "Patient/ejemplo-paciente-dimex",
          "display": "José Mendoza"
        },
        "recorded": "2026-09-30T10:27:10-06:00"
      }
    }
  ],
  "type": "transaction"
}

Respuesta si se guarda todo

HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "type": "transaction-response",
  "entry": [
    {
      "response": {
        "status": "201 Created",
        "location": "List/ejemplo-envio-lote/_history/1",
        "etag": "W/\"1\"",
        "lastModified": "2026-10-01T10:00:00-06:00"
      }
    },
    {
      "response": {
        "status": "201 Created",
        "location": "DocumentReference/ejemplo-envio-referencia/_history/1",
        "etag": "W/\"1\"",
        "lastModified": "2026-10-01T10:00:00-06:00"
      }
    },
    {
      "response": {
        "status": "201 Created",
        "location": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
        "etag": "W/\"1\"",
        "lastModified": "2026-10-01T10:00:00-06:00"
      }
    },
    {
      "response": {
        "status": "201 Created",
        "location": "Provenance/ejemplo-firma-documento-imagenes/_history/1",
        "etag": "W/\"1\"",
        "lastModified": "2026-10-01T10:00:00-06:00"
      }
    },
    {
      "response": {
        "status": "201 Created",
        "location": "Provenance/ejemplo-sello-documento-imagenes/_history/1",
        "etag": "W/\"1\"",
        "lastModified": "2026-10-01T10:00:00-06:00"
      }
    }
  ]
}

Respuesta si una entrada no cumple su perfil: no se guarda nada

HTTP/1.1 422 Unprocessable Entity
Content-Type: application/fhir+json
{
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "error",
      "code": "invariant",
      "diagnostics": "La transacción se rechazó entera: ninguna entrada se guardó. Entrada 2 (DocumentReference): no cumple el perfil cr-documentreference.",
      "expression": [
        "Bundle.entry[1].resource"
      ]
    }
  ]
}