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 - Versión en desarrollo (v0.1.0): borrador de trabajo de la Iniciativa HL7® Costa Rica, que puede cambiar sin aviso.

Perfil de los recursos: Documento clínico (Bundle)

URL oficial: https://hl7.or.cr/fhir/core/StructureDefinition/cr-bundle-documento Versión: 0.1.0
Standards status: Draft Nombre computable: CRBundleDocumento

Documento clínico completo de Costa Rica: un Bundle de tipo document con el encabezado (Documento clínico) y todos los recursos que este referencia. Se guarda sin firma: su firma digital va aparte, en la firma del documento, producida por GAUDÍ (ver Firma digital).

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
.. Bundle C 0..* Bundle Documento clínico completo: el encabezado y los recursos que referencia
Constraints: bdl-1, bdl-2, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, bdl-13, bdl-14, bdl-15, bdl-16, bdl-17, bdl-18, bdl-3a, bdl-3b, bdl-3c, bdl-3d, cr-bundle-documento-etiquetas
... id SΣ 1..1 id Id del documento en el repositorio, asignado por el emisor (UUID)
... meta SΣ 0..1 Meta Metadatos: las etiquetas de seguridad
.... security SΣ 0..* Coding Las mismas etiquetas de seguridad de la Composition
Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
.... 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)
Required Pattern: urn:ietf:rfc:3986
.... value SΣC 1..1 string urn:uuid: seguido de un UUID, distinto en cada versión del documento
Example General: 123456
... type ΣC 1..1 code document (valor fijo)
Vinculación: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Required Pattern: document
... timestamp SΣC 1..1 instant Cuándo se ensambló el Bundle
... Slices for entry SΣC 1..* BackboneElement El encabezado y los recursos que referencia
Slice: Sin orden, Abierto by type:resource
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... fullUrl SΣC 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource SΣC 1..1 Resource Recurso
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
...... method ΣC 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Vinculación: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
...... status Σ 1..1 string Status response code (text optional)
.... entry:composicion SΣC 1..1 BackboneElement Encabezado del documento: la primera entrada
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... fullUrl SΣC 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource S 1..1 CRComposition El encabezado (Documento clínico)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
...... method ΣC 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Vinculación: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
...... status Σ 1..1 string Status response code (text optional)
... issues ΣC 0..1 OperationOutcome(5.0.0) Issues with the Bundle

doco Documentación de este formato

Vinculaciones terminológicas

Ruta Estado Uso ValueSet Versión Fuente
Bundle.meta.security Base extensible All Security Labels 📍5.0.0 Estándar FHIR
Bundle.identifier.use Base required IdentifierUse 📍5.0.0 Estándar FHIR
Bundle.type Base required Bundle Type 📍5.0.0 Estándar FHIR
Bundle.entry.request.​method Base required H T T P Verb 📍5.0.0 Estándar FHIR
Bundle.entry:composicion.​request.method Base required H T T P Verb 📍5.0.0 Estándar FHIR

Restricciones

Id Nivel Ruta(s) Descripción Expression
bdl-1 error Bundle total only when a search or history total.empty() or (type = 'searchset') or (type = 'history')
bdl-2 error Bundle entry.search only when a search (type = 'searchset') or entry.search.empty()
bdl-5 error Bundle.entry, Bundle.entry:composicion must be a resource unless there's a request or response resource.exists() or request.exists() or response.exists()
bdl-7 error Bundle FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles) (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&iif(resource.meta.versionId.exists(), resource.meta.versionId, '')).isDistinct()
bdl-8 error Bundle.entry, Bundle.entry:composicion fullUrl cannot be a version specific reference fullUrl.exists() implies fullUrl.contains('/_history/').not()
bdl-9 error Bundle A document must have an identifier with a system and a value type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10 error Bundle A document must have a date type = 'document' implies (timestamp.hasValue())
bdl-11 error Bundle A document must have a Composition as the first resource type = 'document' implies entry.first().resource.is(Composition)
bdl-12 error Bundle A message must have a MessageHeader as the first resource type = 'message' implies entry.first().resource.is(MessageHeader)
bdl-13 error Bundle A subscription-notification must have a SubscriptionStatus as the first resource type = 'subscription-notification' implies entry.first().resource.is(SubscriptionStatus)
bdl-14 error Bundle entry.request.method PATCH not allowed for history type = 'history' implies entry.request.method != 'PATCH'
bdl-15 error Bundle Bundle resources where type is not transaction, transaction-response, batch, or batch-response or when the request is a POST SHALL have Bundle.entry.fullUrl populated type='transaction' or type='transaction-response' or type='batch' or type='batch-response' or entry.all(fullUrl.exists() or request.method='POST')
bdl-16 error Bundle Issue.severity for all issues within the OperationOutcome must be either 'information' or 'warning'. issues.exists() implies (issues.issue.severity = 'information' or issues.issue.severity = 'warning')
bdl-17 error Bundle Use and meaning of issues for documents has not been validated because the content will not be rendered in the document. type = 'document' implies issues.empty()
bdl-18 error Bundle Self link is required for searchsets. type = 'searchset' implies link.where(relation = 'self' and url.exists()).exists()
bdl-3a error Bundle For collections of type document, message, searchset or collection, all entries must contain resources, and not have request or response elements type in ('document' | 'message' | 'searchset' | 'collection') implies entry.all(resource.exists() and request.empty() and response.empty())
bdl-3b error Bundle For collections of type history, all entries must contain request or response elements, and resources if the method is POST, PUT or PATCH type = 'history' implies entry.all(request.exists() and response.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
bdl-3c error Bundle For collections of type transaction or batch, all entries must contain request elements, and resources if the method is POST, PUT or PATCH type in ('transaction' | 'batch') implies entry.all(request.method.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
bdl-3d error Bundle For collections of type transaction-response or batch-response, all entries must contain response elements type in ('transaction-response' | 'batch-response') implies entry.all(response.exists())
cr-bundle-documento-etiquetas error Bundle El Bundle lleva en meta.security las mismas etiquetas de seguridad de la Composition. entry.first().resource.meta.security.all((system & '|' & code) in %resource.meta.security.select(system & '|' & code))
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()

Esta estructura se deriva de Bundle .

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. Bundle C 0..* Bundle Documento clínico completo: el encabezado y los recursos que referencia
Constraints: cr-bundle-documento-etiquetas
... id S 1..1 id Id del documento en el repositorio, asignado por el emisor (UUID)
... meta S 0..1 Meta Metadatos: las etiquetas de seguridad
.... security S 0..* Coding Las mismas etiquetas de seguridad de la Composition
... identifier S 1..1 Identifier Identificador de esta versión del documento (UUID)
.... system S 1..1 uri urn:ietf:rfc:3986 (valor fijo)
Required Pattern: urn:ietf:rfc:3986
.... value S 1..1 string urn:uuid: seguido de un UUID, distinto en cada versión del documento
... timestamp S 1..1 instant Cuándo se ensambló el Bundle
... Slices for entry S 1..* BackboneElement El encabezado y los recursos que referencia
Slice: Sin orden, Abierto by type:resource
.... entry:All Slices Content/Rules for all slices
..... fullUrl S 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource S 1..1 Resource Recurso
.... entry:composicion S 1..1 BackboneElement Encabezado del documento: la primera entrada
..... resource 1..1 CRComposition El encabezado (Documento clínico)
... signature 0..0 No se usa: la firma va en la procedencia (cr-provenance-firma-documento)

doco Documentación de este formato

Restricciones

Id Nivel Ruta(s) Descripción Expression
cr-bundle-documento-etiquetas error Bundle El Bundle lleva en meta.security las mismas etiquetas de seguridad de la Composition. entry.first().resource.meta.security.all((system & '|' & code) in %resource.meta.security.select(system & '|' & code))
NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. Bundle C 0..* Bundle Documento clínico completo: el encabezado y los recursos que referencia
Constraints: bdl-1, bdl-2, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, bdl-13, bdl-14, bdl-15, bdl-16, bdl-17, bdl-18, bdl-3a, bdl-3b, bdl-3c, bdl-3d, cr-bundle-documento-etiquetas
... id SΣ 1..1 id Id del documento en el repositorio, asignado por el emisor (UUID)
... meta SΣ 0..1 Meta Metadatos: las etiquetas de seguridad
.... 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
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... profile Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
.... security SΣ 0..* Coding Las mismas etiquetas de seguridad de la Composition
Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... tag Σ 0..* Coding Tags applied to this resource
Vinculación: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... identifier SΣC 1..1 Identifier Identificador de esta versión del documento (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)
Required Pattern: urn:ietf:rfc:3986
.... value SΣC 1..1 string urn:uuid: seguido de un UUID, distinto en cada versión del documento
Example 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)
... type ΣC 1..1 code document (valor fijo)
Vinculación: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Required Pattern: document
... timestamp SΣC 1..1 instant Cuándo se ensambló el Bundle
... total ΣC 0..1 unsignedInt If search, the total number of matches
... link ΣC 0..* BackboneElement Links related to this Bundle
.... 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
.... relation ΣC 1..1 code See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1
Vinculación: LinkRelationTypes (required)
.... url ΣC 1..1 uri Reference details for the link
... Slices for entry SΣC 1..* BackboneElement El encabezado y los recursos que referencia
Slice: Sin orden, Abierto by type:resource
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... 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
..... link Σ 0..* Vea link (Bundle) Links related to this entry
..... fullUrl SΣC 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource SΣC 1..1 Resource Recurso
..... search ΣC 0..1 BackboneElement Search related information
...... 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
...... mode Σ 0..1 code match | include - why this is in the result set
Vinculación: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... 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
...... method ΣC 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Vinculación: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache validation
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... 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
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:composicion SΣC 1..1 BackboneElement Encabezado del documento: la primera entrada
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... 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
..... link Σ 0..* Vea link (Bundle) Links related to this entry
..... fullUrl SΣC 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource S 1..1 CRComposition El encabezado (Documento clínico)
..... search ΣC 0..1 BackboneElement Search related information
...... 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
...... mode Σ 0..1 code match | include - why this is in the result set
Vinculación: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... 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
...... method ΣC 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Vinculación: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache validation
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... 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
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
... issues ΣC 0..1 OperationOutcome(5.0.0) Issues with the Bundle

doco Documentación de este formato

Vinculaciones terminológicas

Ruta Estado Uso ValueSet Versión Fuente
Bundle.meta.security Base extensible All Security Labels 📍5.0.0 Estándar FHIR
Bundle.meta.tag Base example Common Tags 📍5.0.0 Estándar FHIR
Bundle.language Base required All Languages 📍5.0.0 Estándar FHIR
Bundle.identifier.use Base required IdentifierUse 📍5.0.0 Estándar FHIR
Bundle.identifier.type Base extensible Identifier Type Codes 📍5.0.0 Estándar FHIR
Bundle.type Base required Bundle Type 📍5.0.0 Estándar FHIR
Bundle.link.relation Base required Link Relation Types 📍5.0.0 Estándar FHIR
Bundle.entry.search.​mode Base required Search Entry Mode 📍5.0.0 Estándar FHIR
Bundle.entry.request.​method Base required H T T P Verb 📍5.0.0 Estándar FHIR
Bundle.entry:composicion.​search.mode Base required Search Entry Mode 📍5.0.0 Estándar FHIR
Bundle.entry:composicion.​request.method Base required H T T P Verb 📍5.0.0 Estándar FHIR

Restricciones

Id Nivel Ruta(s) Descripción Expression
bdl-1 error Bundle total only when a search or history total.empty() or (type = 'searchset') or (type = 'history')
bdl-2 error Bundle entry.search only when a search (type = 'searchset') or entry.search.empty()
bdl-5 error Bundle.entry, Bundle.entry:composicion must be a resource unless there's a request or response resource.exists() or request.exists() or response.exists()
bdl-7 error Bundle FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles) (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&iif(resource.meta.versionId.exists(), resource.meta.versionId, '')).isDistinct()
bdl-8 error Bundle.entry, Bundle.entry:composicion fullUrl cannot be a version specific reference fullUrl.exists() implies fullUrl.contains('/_history/').not()
bdl-9 error Bundle A document must have an identifier with a system and a value type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10 error Bundle A document must have a date type = 'document' implies (timestamp.hasValue())
bdl-11 error Bundle A document must have a Composition as the first resource type = 'document' implies entry.first().resource.is(Composition)
bdl-12 error Bundle A message must have a MessageHeader as the first resource type = 'message' implies entry.first().resource.is(MessageHeader)
bdl-13 error Bundle A subscription-notification must have a SubscriptionStatus as the first resource type = 'subscription-notification' implies entry.first().resource.is(SubscriptionStatus)
bdl-14 error Bundle entry.request.method PATCH not allowed for history type = 'history' implies entry.request.method != 'PATCH'
bdl-15 error Bundle Bundle resources where type is not transaction, transaction-response, batch, or batch-response or when the request is a POST SHALL have Bundle.entry.fullUrl populated type='transaction' or type='transaction-response' or type='batch' or type='batch-response' or entry.all(fullUrl.exists() or request.method='POST')
bdl-16 error Bundle Issue.severity for all issues within the OperationOutcome must be either 'information' or 'warning'. issues.exists() implies (issues.issue.severity = 'information' or issues.issue.severity = 'warning')
bdl-17 error Bundle Use and meaning of issues for documents has not been validated because the content will not be rendered in the document. type = 'document' implies issues.empty()
bdl-18 error Bundle Self link is required for searchsets. type = 'searchset' implies link.where(relation = 'self' and url.exists()).exists()
bdl-3a error Bundle For collections of type document, message, searchset or collection, all entries must contain resources, and not have request or response elements type in ('document' | 'message' | 'searchset' | 'collection') implies entry.all(resource.exists() and request.empty() and response.empty())
bdl-3b error Bundle For collections of type history, all entries must contain request or response elements, and resources if the method is POST, PUT or PATCH type = 'history' implies entry.all(request.exists() and response.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
bdl-3c error Bundle For collections of type transaction or batch, all entries must contain request elements, and resources if the method is POST, PUT or PATCH type in ('transaction' | 'batch') implies entry.all(request.method.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
bdl-3d error Bundle For collections of type transaction-response or batch-response, all entries must contain response elements type in ('transaction-response' | 'batch-response') implies entry.all(response.exists())
cr-bundle-documento-etiquetas error Bundle El Bundle lleva en meta.security las mismas etiquetas de seguridad de la Composition. entry.first().resource.meta.security.all((system & '|' & code) in %resource.meta.security.select(system & '|' & code))
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()

Esta estructura se deriva de Bundle .

Resumen

Obligatorios: 9 elementos
Must-Support: 11 elementos
Prohibited: 1 elemento

Estructuras

Esta estructura hace referencia a estas otras estructuras:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Bundle.entry

Vista de elementos clave

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. Bundle C 0..* Bundle Documento clínico completo: el encabezado y los recursos que referencia
Constraints: bdl-1, bdl-2, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, bdl-13, bdl-14, bdl-15, bdl-16, bdl-17, bdl-18, bdl-3a, bdl-3b, bdl-3c, bdl-3d, cr-bundle-documento-etiquetas
... id SΣ 1..1 id Id del documento en el repositorio, asignado por el emisor (UUID)
... meta SΣ 0..1 Meta Metadatos: las etiquetas de seguridad
.... security SΣ 0..* Coding Las mismas etiquetas de seguridad de la Composition
Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
.... 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)
Required Pattern: urn:ietf:rfc:3986
.... value SΣC 1..1 string urn:uuid: seguido de un UUID, distinto en cada versión del documento
Example General: 123456
... type ΣC 1..1 code document (valor fijo)
Vinculación: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Required Pattern: document
... timestamp SΣC 1..1 instant Cuándo se ensambló el Bundle
... Slices for entry SΣC 1..* BackboneElement El encabezado y los recursos que referencia
Slice: Sin orden, Abierto by type:resource
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... fullUrl SΣC 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource SΣC 1..1 Resource Recurso
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
...... method ΣC 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Vinculación: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
...... status Σ 1..1 string Status response code (text optional)
.... entry:composicion SΣC 1..1 BackboneElement Encabezado del documento: la primera entrada
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... fullUrl SΣC 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource S 1..1 CRComposition El encabezado (Documento clínico)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
...... method ΣC 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Vinculación: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
...... status Σ 1..1 string Status response code (text optional)
... issues ΣC 0..1 OperationOutcome(5.0.0) Issues with the Bundle

doco Documentación de este formato

Vinculaciones terminológicas

Ruta Estado Uso ValueSet Versión Fuente
Bundle.meta.security Base extensible All Security Labels 📍5.0.0 Estándar FHIR
Bundle.identifier.use Base required IdentifierUse 📍5.0.0 Estándar FHIR
Bundle.type Base required Bundle Type 📍5.0.0 Estándar FHIR
Bundle.entry.request.​method Base required H T T P Verb 📍5.0.0 Estándar FHIR
Bundle.entry:composicion.​request.method Base required H T T P Verb 📍5.0.0 Estándar FHIR

Restricciones

Id Nivel Ruta(s) Descripción Expression
bdl-1 error Bundle total only when a search or history total.empty() or (type = 'searchset') or (type = 'history')
bdl-2 error Bundle entry.search only when a search (type = 'searchset') or entry.search.empty()
bdl-5 error Bundle.entry, Bundle.entry:composicion must be a resource unless there's a request or response resource.exists() or request.exists() or response.exists()
bdl-7 error Bundle FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles) (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&iif(resource.meta.versionId.exists(), resource.meta.versionId, '')).isDistinct()
bdl-8 error Bundle.entry, Bundle.entry:composicion fullUrl cannot be a version specific reference fullUrl.exists() implies fullUrl.contains('/_history/').not()
bdl-9 error Bundle A document must have an identifier with a system and a value type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10 error Bundle A document must have a date type = 'document' implies (timestamp.hasValue())
bdl-11 error Bundle A document must have a Composition as the first resource type = 'document' implies entry.first().resource.is(Composition)
bdl-12 error Bundle A message must have a MessageHeader as the first resource type = 'message' implies entry.first().resource.is(MessageHeader)
bdl-13 error Bundle A subscription-notification must have a SubscriptionStatus as the first resource type = 'subscription-notification' implies entry.first().resource.is(SubscriptionStatus)
bdl-14 error Bundle entry.request.method PATCH not allowed for history type = 'history' implies entry.request.method != 'PATCH'
bdl-15 error Bundle Bundle resources where type is not transaction, transaction-response, batch, or batch-response or when the request is a POST SHALL have Bundle.entry.fullUrl populated type='transaction' or type='transaction-response' or type='batch' or type='batch-response' or entry.all(fullUrl.exists() or request.method='POST')
bdl-16 error Bundle Issue.severity for all issues within the OperationOutcome must be either 'information' or 'warning'. issues.exists() implies (issues.issue.severity = 'information' or issues.issue.severity = 'warning')
bdl-17 error Bundle Use and meaning of issues for documents has not been validated because the content will not be rendered in the document. type = 'document' implies issues.empty()
bdl-18 error Bundle Self link is required for searchsets. type = 'searchset' implies link.where(relation = 'self' and url.exists()).exists()
bdl-3a error Bundle For collections of type document, message, searchset or collection, all entries must contain resources, and not have request or response elements type in ('document' | 'message' | 'searchset' | 'collection') implies entry.all(resource.exists() and request.empty() and response.empty())
bdl-3b error Bundle For collections of type history, all entries must contain request or response elements, and resources if the method is POST, PUT or PATCH type = 'history' implies entry.all(request.exists() and response.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
bdl-3c error Bundle For collections of type transaction or batch, all entries must contain request elements, and resources if the method is POST, PUT or PATCH type in ('transaction' | 'batch') implies entry.all(request.method.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
bdl-3d error Bundle For collections of type transaction-response or batch-response, all entries must contain response elements type in ('transaction-response' | 'batch-response') implies entry.all(response.exists())
cr-bundle-documento-etiquetas error Bundle El Bundle lleva en meta.security las mismas etiquetas de seguridad de la Composition. entry.first().resource.meta.security.all((system & '|' & code) in %resource.meta.security.select(system & '|' & code))
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()

Vista diferencial

Esta estructura se deriva de Bundle .

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. Bundle C 0..* Bundle Documento clínico completo: el encabezado y los recursos que referencia
Constraints: cr-bundle-documento-etiquetas
... id S 1..1 id Id del documento en el repositorio, asignado por el emisor (UUID)
... meta S 0..1 Meta Metadatos: las etiquetas de seguridad
.... security S 0..* Coding Las mismas etiquetas de seguridad de la Composition
... identifier S 1..1 Identifier Identificador de esta versión del documento (UUID)
.... system S 1..1 uri urn:ietf:rfc:3986 (valor fijo)
Required Pattern: urn:ietf:rfc:3986
.... value S 1..1 string urn:uuid: seguido de un UUID, distinto en cada versión del documento
... timestamp S 1..1 instant Cuándo se ensambló el Bundle
... Slices for entry S 1..* BackboneElement El encabezado y los recursos que referencia
Slice: Sin orden, Abierto by type:resource
.... entry:All Slices Content/Rules for all slices
..... fullUrl S 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource S 1..1 Resource Recurso
.... entry:composicion S 1..1 BackboneElement Encabezado del documento: la primera entrada
..... resource 1..1 CRComposition El encabezado (Documento clínico)
... signature 0..0 No se usa: la firma va en la procedencia (cr-provenance-firma-documento)

doco Documentación de este formato

Restricciones

Id Nivel Ruta(s) Descripción Expression
cr-bundle-documento-etiquetas error Bundle El Bundle lleva en meta.security las mismas etiquetas de seguridad de la Composition. entry.first().resource.meta.security.all((system & '|' & code) in %resource.meta.security.select(system & '|' & code))

Vista instantáneaView

NombreMarcasCard.TipoDescripción y restricciones    Filter: Filtersdoco
.. Bundle C 0..* Bundle Documento clínico completo: el encabezado y los recursos que referencia
Constraints: bdl-1, bdl-2, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, bdl-13, bdl-14, bdl-15, bdl-16, bdl-17, bdl-18, bdl-3a, bdl-3b, bdl-3c, bdl-3d, cr-bundle-documento-etiquetas
... id SΣ 1..1 id Id del documento en el repositorio, asignado por el emisor (UUID)
... meta SΣ 0..1 Meta Metadatos: las etiquetas de seguridad
.... 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
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... profile Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
.... security SΣ 0..* Coding Las mismas etiquetas de seguridad de la Composition
Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... tag Σ 0..* Coding Tags applied to this resource
Vinculación: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... identifier SΣC 1..1 Identifier Identificador de esta versión del documento (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)
Required Pattern: urn:ietf:rfc:3986
.... value SΣC 1..1 string urn:uuid: seguido de un UUID, distinto en cada versión del documento
Example 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)
... type ΣC 1..1 code document (valor fijo)
Vinculación: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Required Pattern: document
... timestamp SΣC 1..1 instant Cuándo se ensambló el Bundle
... total ΣC 0..1 unsignedInt If search, the total number of matches
... link ΣC 0..* BackboneElement Links related to this Bundle
.... 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
.... relation ΣC 1..1 code See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1
Vinculación: LinkRelationTypes (required)
.... url ΣC 1..1 uri Reference details for the link
... Slices for entry SΣC 1..* BackboneElement El encabezado y los recursos que referencia
Slice: Sin orden, Abierto by type:resource
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... 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
..... link Σ 0..* Vea link (Bundle) Links related to this entry
..... fullUrl SΣC 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource SΣC 1..1 Resource Recurso
..... search ΣC 0..1 BackboneElement Search related information
...... 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
...... mode Σ 0..1 code match | include - why this is in the result set
Vinculación: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... 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
...... method ΣC 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Vinculación: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache validation
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... 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
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:composicion SΣC 1..1 BackboneElement Encabezado del documento: la primera entrada
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... 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
..... link Σ 0..* Vea link (Bundle) Links related to this entry
..... fullUrl SΣC 1..1 uri URL completa del recurso (urn:uuid: o URL absoluta)
..... resource S 1..1 CRComposition El encabezado (Documento clínico)
..... search ΣC 0..1 BackboneElement Search related information
...... 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
...... mode Σ 0..1 code match | include - why this is in the result set
Vinculación: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... 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
...... method ΣC 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Vinculación: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache validation
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... 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
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
... issues ΣC 0..1 OperationOutcome(5.0.0) Issues with the Bundle

doco Documentación de este formato

Vinculaciones terminológicas

Ruta Estado Uso ValueSet Versión Fuente
Bundle.meta.security Base extensible All Security Labels 📍5.0.0 Estándar FHIR
Bundle.meta.tag Base example Common Tags 📍5.0.0 Estándar FHIR
Bundle.language Base required All Languages 📍5.0.0 Estándar FHIR
Bundle.identifier.use Base required IdentifierUse 📍5.0.0 Estándar FHIR
Bundle.identifier.type Base extensible Identifier Type Codes 📍5.0.0 Estándar FHIR
Bundle.type Base required Bundle Type 📍5.0.0 Estándar FHIR
Bundle.link.relation Base required Link Relation Types 📍5.0.0 Estándar FHIR
Bundle.entry.search.​mode Base required Search Entry Mode 📍5.0.0 Estándar FHIR
Bundle.entry.request.​method Base required H T T P Verb 📍5.0.0 Estándar FHIR
Bundle.entry:composicion.​search.mode Base required Search Entry Mode 📍5.0.0 Estándar FHIR
Bundle.entry:composicion.​request.method Base required H T T P Verb 📍5.0.0 Estándar FHIR

Restricciones

Id Nivel Ruta(s) Descripción Expression
bdl-1 error Bundle total only when a search or history total.empty() or (type = 'searchset') or (type = 'history')
bdl-2 error Bundle entry.search only when a search (type = 'searchset') or entry.search.empty()
bdl-5 error Bundle.entry, Bundle.entry:composicion must be a resource unless there's a request or response resource.exists() or request.exists() or response.exists()
bdl-7 error Bundle FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles) (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&iif(resource.meta.versionId.exists(), resource.meta.versionId, '')).isDistinct()
bdl-8 error Bundle.entry, Bundle.entry:composicion fullUrl cannot be a version specific reference fullUrl.exists() implies fullUrl.contains('/_history/').not()
bdl-9 error Bundle A document must have an identifier with a system and a value type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10 error Bundle A document must have a date type = 'document' implies (timestamp.hasValue())
bdl-11 error Bundle A document must have a Composition as the first resource type = 'document' implies entry.first().resource.is(Composition)
bdl-12 error Bundle A message must have a MessageHeader as the first resource type = 'message' implies entry.first().resource.is(MessageHeader)
bdl-13 error Bundle A subscription-notification must have a SubscriptionStatus as the first resource type = 'subscription-notification' implies entry.first().resource.is(SubscriptionStatus)
bdl-14 error Bundle entry.request.method PATCH not allowed for history type = 'history' implies entry.request.method != 'PATCH'
bdl-15 error Bundle Bundle resources where type is not transaction, transaction-response, batch, or batch-response or when the request is a POST SHALL have Bundle.entry.fullUrl populated type='transaction' or type='transaction-response' or type='batch' or type='batch-response' or entry.all(fullUrl.exists() or request.method='POST')
bdl-16 error Bundle Issue.severity for all issues within the OperationOutcome must be either 'information' or 'warning'. issues.exists() implies (issues.issue.severity = 'information' or issues.issue.severity = 'warning')
bdl-17 error Bundle Use and meaning of issues for documents has not been validated because the content will not be rendered in the document. type = 'document' implies issues.empty()
bdl-18 error Bundle Self link is required for searchsets. type = 'searchset' implies link.where(relation = 'self' and url.exists()).exists()
bdl-3a error Bundle For collections of type document, message, searchset or collection, all entries must contain resources, and not have request or response elements type in ('document' | 'message' | 'searchset' | 'collection') implies entry.all(resource.exists() and request.empty() and response.empty())
bdl-3b error Bundle For collections of type history, all entries must contain request or response elements, and resources if the method is POST, PUT or PATCH type = 'history' implies entry.all(request.exists() and response.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
bdl-3c error Bundle For collections of type transaction or batch, all entries must contain request elements, and resources if the method is POST, PUT or PATCH type in ('transaction' | 'batch') implies entry.all(request.method.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
bdl-3d error Bundle For collections of type transaction-response or batch-response, all entries must contain response elements type in ('transaction-response' | 'batch-response') implies entry.all(response.exists())
cr-bundle-documento-etiquetas error Bundle El Bundle lleva en meta.security las mismas etiquetas de seguridad de la Composition. entry.first().resource.meta.security.all((system & '|' & code) in %resource.meta.security.select(system & '|' & code))
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()

Esta estructura se deriva de Bundle .

Resumen

Obligatorios: 9 elementos
Must-Support: 11 elementos
Prohibited: 1 elemento

Estructuras

Esta estructura hace referencia a estas otras estructuras:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Bundle.entry

 

Otras representaciones de perfil: CSV, Excel, Schematron

Notas:

Uso en el HIE

Repositorio de documentos. Documentos clínicos FHIR (Bundle de tipo document). Se guardan sin firma y no se actualizan: su firma va en una procedencia (cr-provenance-firma-documento) que apunta a su versión. Se obtienen con la URL de la referencia; la lectura de la versión (vread) es la que hace el verificador de la firma.

Se envía al repositorio dentro de la transacción de envío (IHE MHD ITI-65), con PUT a Bundle/<id> y sus firmas, y se obtiene con un GET a la URL de su referencia a documento (ITI-68). Sus firmas se buscan con GET [base]/Provenance?target=Bundle/<id> (ver Firma digital).

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

Leer

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

Lee un documento clínico del repositorio de documentos por su id, la parte final de su URL. Se usa para resolver una referencia que otro recurso hace a un documento clínico. En el ejemplo se lee «Documento completo del informe de imágenes médicas (D1)»; la segunda respuesta es la de un id que no existe.

Solicitud

GET [base]/Bundle/ejemplo-bundle-documento-imagenes 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": "Bundle",
  "id": "ejemplo-bundle-documento-imagenes",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-10-01T10:00:00-06:00",
    "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"
          },
          {
            "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"
                }
              ]
            }
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "+50670001122"
          }
        ],
        "extension": [
          {
            "extension": [
              {
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "code": "NIC",
                      "system": "urn:iso:std:iso:3166"
                    }
                  ],
                  "text": "Nicaragua"
                },
                "url": "code"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality"
          }
        ],
        "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,
        "gender": "male",
        "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"
              }
            ]
          }
        ],
        "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"
                }
              ]
            }
          }
        ],
        "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"
            }
          }
        ],
        "communication": [
          {
            "language": {
              "coding": [
                {
                  "code": "es",
                  "system": "urn:ietf:bcp:47",
                  "display": "español"
                }
              ]
            },
            "preferred": true
          },
          {
            "language": {
              "coding": [
                {
                  "code": "en",
                  "system": "urn:ietf:bcp:47",
                  "display": "inglés"
                }
              ]
            }
          }
        ],
        "active": true,
        "gender": "male"
      }
    },
    {
      "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"
}

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 Bundle/no-existe."
    }
  ]
}

Leer una versión
Forma: GET [base]/Bundle/{id}/_history/{versión}

Lee una versión anterior de un documento clínico. Sirve para ver los datos tal como estaban cuando otro recurso los citó; por ejemplo, cuando se firmó un documento. En el ejemplo se lee la versión 1 de «Documento completo del informe de imágenes médicas (D1)».

Solicitud

GET [base]/Bundle/ejemplo-bundle-documento-imagenes/_history/1 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]

Respuesta: la versión 1

HTTP/1.1 200 OK
ETag: W/"1"
Content-Type: application/fhir+json
{
  "resourceType": "Bundle",
  "id": "ejemplo-bundle-documento-imagenes",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-10-01T10:00:00-06:00",
    "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"
          },
          {
            "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"
                }
              ]
            }
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "+50670001122"
          }
        ],
        "extension": [
          {
            "extension": [
              {
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "code": "NIC",
                      "system": "urn:iso:std:iso:3166"
                    }
                  ],
                  "text": "Nicaragua"
                },
                "url": "code"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality"
          }
        ],
        "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,
        "gender": "male",
        "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"
              }
            ]
          }
        ],
        "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"
                }
              ]
            }
          }
        ],
        "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"
            }
          }
        ],
        "communication": [
          {
            "language": {
              "coding": [
                {
                  "code": "es",
                  "system": "urn:ietf:bcp:47",
                  "display": "español"
                }
              ]
            },
            "preferred": true
          },
          {
            "language": {
              "coding": [
                {
                  "code": "en",
                  "system": "urn:ietf:bcp:47",
                  "display": "inglés"
                }
              ]
            }
          }
        ],
        "active": true,
        "gender": "male"
      }
    },
    {
      "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"
}