Guía de Implementación Core de Costa Rica
0.1.0 - ci-build
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.
| URL oficial: https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento | Versión: 0.1.0 | ||||
| Standards status: Draft | Nombre computable: CRProvenanceFirmaDocumento | ||||
Firma digital de un documento clínico de Costa Rica, separada del documento (detached): la firma de quien lo valida o el sello electrónico de la organización, producida por GAUDÍ (BCCR) y referida a la versión exacta del documento. Ver Firma digital.
Usos:
También puede consultar los usos en las estadísticas de IG de FHIR
Descripción de perfiles, diferenciales, instantáneas y sus representaciones.
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Provenance | Firma digital de un documento clínico, separada del documento Constraints: cr-firma-documento-target-version, cr-firma-documento-firmante |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
SΣ | 1..1 | Reference(Documento clínico (Bundle)) | El documento firmado, en su versión exacta: Bundle/<id>/_history/<versión> |
![]() ![]() ![]() |
SΣC | 1..1 | string | Bundle/<id>/_history/<versión> |
![]() ![]() |
SΣ | 1..1 | instant | Cuándo se registró la firma |
![]() ![]() |
S | 1..1 | CodeableConcept | attest (valor fijo): atestación del documento Vinculación: ProvenanceActivityType (example): The activity that took place. Required Pattern: At least the following |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system Fixed Value: (Complex) | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |
![]() ![]() ![]() ![]() |
1..1 | uri | Identity of the terminology system Fixed Value: http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle | |
![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: attest | |
![]() ![]() ![]() ![]() |
0..1 | string | Representation defined by the system | |
![]() ![]() ![]() ![]() |
0..1 | boolean | If this coding was chosen directly by the user | |
![]() ![]() ![]() |
0..1 | string | Plain text representation of the concept | |
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente del documento (el subject de su Composition) |
![]() ![]() |
SΣC | 1..* | BackboneElement | Quien firma (attester) y el sistema que pidió la firma (assembler) Constraints: prov-1, prov-2, prov-3 |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
SΣ | 1..1 | CodeableConcept | attester (quien firma) | assembler (el sistema que pidió la firma) Vinculación: ParticipationRoleType (example): The type of participation that a provenance agent played with respect to the activity. |
![]() ![]() ![]() |
SΣC | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización | Sistema de información) | Quien firma, o el sistema que pidió la firma |
![]() ![]() ![]() |
C | 0..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient) | The agent that delegated |
![]() ![]() |
S | 1..1 | Signature | Firma JAdES de GAUDÍ sobre el documento |
![]() ![]() ![]() |
SΣ | 1..* | Coding | 1.2.840.10065.1.12.1.1 (autor) | 1.2.840.10065.1.12.1.6 (validación) | 1.2.840.10065.1.12.1.14 (sello de la organización) Vinculación: SignatureTypeCodes (preferred): An indication of the reason that an entity signed the object. |
![]() ![]() ![]() |
SΣ | 1..1 | instant | Momento de la solicitud de firma |
![]() ![]() ![]() |
SΣ | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización) | Quien firma: el responsable de la validación legal o la organización que sella |
![]() ![]() ![]() |
S | 1..1 | code | application/fhir+json (valor fijo) Vinculación: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Required Pattern: application/fhir+json |
![]() ![]() ![]() |
S | 1..1 | code | application/jose+json (valor fijo): JWS en serialización JSON Vinculación: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Required Pattern: application/jose+json |
![]() ![]() ![]() |
S | 1..1 | base64Binary | Firma JAdES B-LT de GAUDÍ sobre el Bundle de trabajo, en base64 con relleno |
Documentación de este formato | ||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Provenance.activity | Base | example | ValueSet of sample of representative activity type codes. | 📍5.0.0 | Estándar FHIR |
| Provenance.agent.type | Base | example | Participation Role Type | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.type | Base | preferred | Signature Type Codes | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.targetFormat | Base | required | Mime Types | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.sigFormat | Base | required | Mime Types | 📍5.0.0 | Estándar FHIR |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-firma-documento-firmante | error | Provenance | Quien firma es un agente de tipo attester. |
signature.who.reference.empty() or agent.where(type.coding.where(code = 'attester').exists()).who.reference contains signature.who.reference
|
| cr-firma-documento-target-version | error | Provenance | El documento se referencia en su versión exacta: Bundle/<id>/_history/<versión>. |
target.reference.matches('^(.*/)?Bundle/[A-Za-z0-9\\-\\.]{1,64}/_history/[A-Za-z0-9\\-\\.]{1,64}$')
|
| dom-2 | error | Provenance | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Provenance | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Provenance | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Provenance | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Provenance | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **TODOS** los elementos | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| prov-1 | error | Provenance.agent | Who and onBehalfOf cannot be the same |
who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
|
| prov-2 | error | Provenance.agent | If who is a PractitionerRole, onBehalfOf can't reference the same Practitioner |
who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
|
| prov-3 | error | Provenance.agent | If who is an organization, onBehalfOf can't be a PractitionerRole within that organization |
who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()
|
Esta estructura se deriva de Provenance .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Provenance | Firma digital de un documento clínico, separada del documento Constraints: cr-firma-documento-target-version, cr-firma-documento-firmante |
![]() ![]() |
S | 1..1 | Reference(Documento clínico (Bundle)) | El documento firmado, en su versión exacta: Bundle/<id>/_history/<versión> |
![]() ![]() ![]() |
S | 1..1 | string | Bundle/<id>/_history/<versión> |
![]() ![]() |
S | 1..1 | instant | Cuándo se registró la firma |
![]() ![]() |
S | 1..1 | CodeableConcept | attest (valor fijo): atestación del documento Required Pattern: At least the following |
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system Fixed Value: (Complex) | |
![]() ![]() ![]() ![]() |
1..1 | uri | Identity of the terminology system Fixed Value: http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle | |
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: attest | |
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente del documento (el subject de su Composition) |
![]() ![]() |
S | 1..* | BackboneElement | Quien firma (attester) y el sistema que pidió la firma (assembler) |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | attester (quien firma) | assembler (el sistema que pidió la firma) |
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización | Sistema de información) | Quien firma, o el sistema que pidió la firma |
![]() ![]() |
S | 1..1 | Signature | Firma JAdES de GAUDÍ sobre el documento |
![]() ![]() ![]() |
S | 1..* | Coding | 1.2.840.10065.1.12.1.1 (autor) | 1.2.840.10065.1.12.1.6 (validación) | 1.2.840.10065.1.12.1.14 (sello de la organización) |
![]() ![]() ![]() |
S | 1..1 | instant | Momento de la solicitud de firma |
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización) | Quien firma: el responsable de la validación legal o la organización que sella |
![]() ![]() ![]() |
S | 1..1 | code | application/fhir+json (valor fijo) Required Pattern: application/fhir+json |
![]() ![]() ![]() |
S | 1..1 | code | application/jose+json (valor fijo): JWS en serialización JSON Required Pattern: application/jose+json |
![]() ![]() ![]() |
S | 1..1 | base64Binary | Firma JAdES B-LT de GAUDÍ sobre el Bundle de trabajo, en base64 con relleno |
Documentación de este formato | ||||
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-firma-documento-firmante | error | Provenance | Quien firma es un agente de tipo attester. |
signature.who.reference.empty() or agent.where(type.coding.where(code = 'attester').exists()).who.reference contains signature.who.reference
|
| cr-firma-documento-target-version | error | Provenance | El documento se referencia en su versión exacta: Bundle/<id>/_history/<versión>. |
target.reference.matches('^(.*/)?Bundle/[A-Za-z0-9\\-\\.]{1,64}/_history/[A-Za-z0-9\\-\\.]{1,64}$')
|
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Provenance | Firma digital de un documento clínico, separada del documento Constraints: cr-firma-documento-target-version, cr-firma-documento-firmante | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Vinculación: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
SΣ | 1..1 | Reference(Documento clínico (Bundle)) | El documento firmado, en su versión exacta: Bundle/<id>/_history/<versión> | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Bundle/<id>/_history/<versión> | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Vinculación: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
0..1 | When the activity occurred | ||||||
![]() ![]() ![]() |
Period | |||||||
![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() |
SΣ | 1..1 | instant | Cuándo se registró la firma | ||||
![]() ![]() |
0..* | uri | Policy or plan the activity was defined by | |||||
![]() ![]() |
0..1 | Reference(Location) | Where the activity occurred, if relevant | |||||
![]() ![]() |
0..* | CodeableReference() | Authorization (purposeOfUse) related to the event Vinculación: PurposeOfUse (example): The authorized purposeOfUse for the activity. | |||||
![]() ![]() |
S | 1..1 | CodeableConcept | attest (valor fijo): atestación del documento Vinculación: ProvenanceActivityType (example): The activity that took place. Required Pattern: At least the following | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system Fixed Value: (Complex) | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | Identity of the terminology system Fixed Value: http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |||||
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: attest | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Representation defined by the system | |||||
![]() ![]() ![]() ![]() |
0..1 | boolean | If this coding was chosen directly by the user | |||||
![]() ![]() ![]() |
0..1 | string | Plain text representation of the concept | |||||
![]() ![]() |
0..* | Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest | Task) | Workflow authorization within which this event occurred | |||||
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente del documento (el subject de su Composition) | ||||
![]() ![]() |
0..1 | Reference(Encounter) | Encounter within which this event occurred or which the event is tightly associated | |||||
![]() ![]() |
SΣC | 1..* | BackboneElement | Quien firma (attester) y el sistema que pidió la firma (assembler) Constraints: prov-1, prov-2, prov-3 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
SΣ | 1..1 | CodeableConcept | attester (quien firma) | assembler (el sistema que pidió la firma) Vinculación: ParticipationRoleType (example): The type of participation that a provenance agent played with respect to the activity. | ||||
![]() ![]() ![]() |
0..* | CodeableConcept | What the agents role was Vinculación: SecurityRoleType (example): The role that a provenance agent played with respect to the activity. | |||||
![]() ![]() ![]() |
SΣC | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización | Sistema de información) | Quien firma, o el sistema que pidió la firma | ||||
![]() ![]() ![]() |
C | 0..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient) | The agent that delegated | ||||
![]() ![]() |
Σ | 0..* | BackboneElement | An entity used in this activity | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
Σ | 1..1 | code | revision | quotation | source | instantiates | removal Vinculación: ProvenanceEntityRole (required): How an entity was used in an activity. | ||||
![]() ![]() ![]() |
Σ | 1..1 | Reference(Resource) | Identity of entity | ||||
![]() ![]() ![]() |
0..* | Vea agent (Provenance) | Entity is attributed to this agent | |||||
![]() ![]() |
S | 1..1 | Signature | Firma JAdES de GAUDÍ sobre el documento | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() |
SΣ | 1..* | Coding | 1.2.840.10065.1.12.1.1 (autor) | 1.2.840.10065.1.12.1.6 (validación) | 1.2.840.10065.1.12.1.14 (sello de la organización) Vinculación: SignatureTypeCodes (preferred): An indication of the reason that an entity signed the object. | ||||
![]() ![]() ![]() |
SΣ | 1..1 | instant | Momento de la solicitud de firma | ||||
![]() ![]() ![]() |
SΣ | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización) | Quien firma: el responsable de la validación legal o la organización que sella | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) | The party represented | ||||
![]() ![]() ![]() |
S | 1..1 | code | application/fhir+json (valor fijo) Vinculación: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Required Pattern: application/fhir+json | ||||
![]() ![]() ![]() |
S | 1..1 | code | application/jose+json (valor fijo): JWS en serialización JSON Vinculación: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Required Pattern: application/jose+json | ||||
![]() ![]() ![]() |
S | 1..1 | base64Binary | Firma JAdES B-LT de GAUDÍ sobre el Bundle de trabajo, en base64 con relleno | ||||
Documentación de este formato | ||||||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Provenance.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
| Provenance.target.type | Base | extensible | Resource Types | 📍5.0.0 | Estándar FHIR |
| Provenance.authorization | Base | example | PurposeOfUse | 📦3.1.0 | THO v7.4 |
| Provenance.activity | Base | example | ValueSet of sample of representative activity type codes. | 📍5.0.0 | Estándar FHIR |
| Provenance.agent.type | Base | example | Participation Role Type | 📍5.0.0 | Estándar FHIR |
| Provenance.agent.role | Base | example | Security Role Type | 📍5.0.0 | Estándar FHIR |
| Provenance.entity.role | Base | required | Provenance Entity Role | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.type | Base | preferred | Signature Type Codes | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.targetFormat | Base | required | Mime Types | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.sigFormat | Base | required | Mime Types | 📍5.0.0 | Estándar FHIR |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-firma-documento-firmante | error | Provenance | Quien firma es un agente de tipo attester. |
signature.who.reference.empty() or agent.where(type.coding.where(code = 'attester').exists()).who.reference contains signature.who.reference
|
| cr-firma-documento-target-version | error | Provenance | El documento se referencia en su versión exacta: Bundle/<id>/_history/<versión>. |
target.reference.matches('^(.*/)?Bundle/[A-Za-z0-9\\-\\.]{1,64}/_history/[A-Za-z0-9\\-\\.]{1,64}$')
|
| dom-2 | error | Provenance | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Provenance | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Provenance | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Provenance | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Provenance | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **TODOS** los elementos | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| prov-1 | error | Provenance.agent | Who and onBehalfOf cannot be the same |
who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
|
| prov-2 | error | Provenance.agent | If who is a PractitionerRole, onBehalfOf can't reference the same Practitioner |
who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
|
| prov-3 | error | Provenance.agent | If who is an organization, onBehalfOf can't be a PractitionerRole within that organization |
who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()
|
Esta estructura se deriva de Provenance .
Resumen
Obligatorios: 12 elementos
Must-Support: 15 elementos
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Vista de elementos clave
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Provenance | Firma digital de un documento clínico, separada del documento Constraints: cr-firma-documento-target-version, cr-firma-documento-firmante |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
SΣ | 1..1 | Reference(Documento clínico (Bundle)) | El documento firmado, en su versión exacta: Bundle/<id>/_history/<versión> |
![]() ![]() ![]() |
SΣC | 1..1 | string | Bundle/<id>/_history/<versión> |
![]() ![]() |
SΣ | 1..1 | instant | Cuándo se registró la firma |
![]() ![]() |
S | 1..1 | CodeableConcept | attest (valor fijo): atestación del documento Vinculación: ProvenanceActivityType (example): The activity that took place. Required Pattern: At least the following |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system Fixed Value: (Complex) | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |
![]() ![]() ![]() ![]() |
1..1 | uri | Identity of the terminology system Fixed Value: http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle | |
![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: attest | |
![]() ![]() ![]() ![]() |
0..1 | string | Representation defined by the system | |
![]() ![]() ![]() ![]() |
0..1 | boolean | If this coding was chosen directly by the user | |
![]() ![]() ![]() |
0..1 | string | Plain text representation of the concept | |
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente del documento (el subject de su Composition) |
![]() ![]() |
SΣC | 1..* | BackboneElement | Quien firma (attester) y el sistema que pidió la firma (assembler) Constraints: prov-1, prov-2, prov-3 |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
SΣ | 1..1 | CodeableConcept | attester (quien firma) | assembler (el sistema que pidió la firma) Vinculación: ParticipationRoleType (example): The type of participation that a provenance agent played with respect to the activity. |
![]() ![]() ![]() |
SΣC | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización | Sistema de información) | Quien firma, o el sistema que pidió la firma |
![]() ![]() ![]() |
C | 0..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient) | The agent that delegated |
![]() ![]() |
S | 1..1 | Signature | Firma JAdES de GAUDÍ sobre el documento |
![]() ![]() ![]() |
SΣ | 1..* | Coding | 1.2.840.10065.1.12.1.1 (autor) | 1.2.840.10065.1.12.1.6 (validación) | 1.2.840.10065.1.12.1.14 (sello de la organización) Vinculación: SignatureTypeCodes (preferred): An indication of the reason that an entity signed the object. |
![]() ![]() ![]() |
SΣ | 1..1 | instant | Momento de la solicitud de firma |
![]() ![]() ![]() |
SΣ | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización) | Quien firma: el responsable de la validación legal o la organización que sella |
![]() ![]() ![]() |
S | 1..1 | code | application/fhir+json (valor fijo) Vinculación: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Required Pattern: application/fhir+json |
![]() ![]() ![]() |
S | 1..1 | code | application/jose+json (valor fijo): JWS en serialización JSON Vinculación: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Required Pattern: application/jose+json |
![]() ![]() ![]() |
S | 1..1 | base64Binary | Firma JAdES B-LT de GAUDÍ sobre el Bundle de trabajo, en base64 con relleno |
Documentación de este formato | ||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Provenance.activity | Base | example | ValueSet of sample of representative activity type codes. | 📍5.0.0 | Estándar FHIR |
| Provenance.agent.type | Base | example | Participation Role Type | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.type | Base | preferred | Signature Type Codes | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.targetFormat | Base | required | Mime Types | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.sigFormat | Base | required | Mime Types | 📍5.0.0 | Estándar FHIR |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-firma-documento-firmante | error | Provenance | Quien firma es un agente de tipo attester. |
signature.who.reference.empty() or agent.where(type.coding.where(code = 'attester').exists()).who.reference contains signature.who.reference
|
| cr-firma-documento-target-version | error | Provenance | El documento se referencia en su versión exacta: Bundle/<id>/_history/<versión>. |
target.reference.matches('^(.*/)?Bundle/[A-Za-z0-9\\-\\.]{1,64}/_history/[A-Za-z0-9\\-\\.]{1,64}$')
|
| dom-2 | error | Provenance | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Provenance | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Provenance | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Provenance | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Provenance | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **TODOS** los elementos | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| prov-1 | error | Provenance.agent | Who and onBehalfOf cannot be the same |
who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
|
| prov-2 | error | Provenance.agent | If who is a PractitionerRole, onBehalfOf can't reference the same Practitioner |
who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
|
| prov-3 | error | Provenance.agent | If who is an organization, onBehalfOf can't be a PractitionerRole within that organization |
who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()
|
Vista diferencial
Esta estructura se deriva de Provenance .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Provenance | Firma digital de un documento clínico, separada del documento Constraints: cr-firma-documento-target-version, cr-firma-documento-firmante |
![]() ![]() |
S | 1..1 | Reference(Documento clínico (Bundle)) | El documento firmado, en su versión exacta: Bundle/<id>/_history/<versión> |
![]() ![]() ![]() |
S | 1..1 | string | Bundle/<id>/_history/<versión> |
![]() ![]() |
S | 1..1 | instant | Cuándo se registró la firma |
![]() ![]() |
S | 1..1 | CodeableConcept | attest (valor fijo): atestación del documento Required Pattern: At least the following |
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system Fixed Value: (Complex) | |
![]() ![]() ![]() ![]() |
1..1 | uri | Identity of the terminology system Fixed Value: http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle | |
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: attest | |
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente del documento (el subject de su Composition) |
![]() ![]() |
S | 1..* | BackboneElement | Quien firma (attester) y el sistema que pidió la firma (assembler) |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | attester (quien firma) | assembler (el sistema que pidió la firma) |
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización | Sistema de información) | Quien firma, o el sistema que pidió la firma |
![]() ![]() |
S | 1..1 | Signature | Firma JAdES de GAUDÍ sobre el documento |
![]() ![]() ![]() |
S | 1..* | Coding | 1.2.840.10065.1.12.1.1 (autor) | 1.2.840.10065.1.12.1.6 (validación) | 1.2.840.10065.1.12.1.14 (sello de la organización) |
![]() ![]() ![]() |
S | 1..1 | instant | Momento de la solicitud de firma |
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización) | Quien firma: el responsable de la validación legal o la organización que sella |
![]() ![]() ![]() |
S | 1..1 | code | application/fhir+json (valor fijo) Required Pattern: application/fhir+json |
![]() ![]() ![]() |
S | 1..1 | code | application/jose+json (valor fijo): JWS en serialización JSON Required Pattern: application/jose+json |
![]() ![]() ![]() |
S | 1..1 | base64Binary | Firma JAdES B-LT de GAUDÍ sobre el Bundle de trabajo, en base64 con relleno |
Documentación de este formato | ||||
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-firma-documento-firmante | error | Provenance | Quien firma es un agente de tipo attester. |
signature.who.reference.empty() or agent.where(type.coding.where(code = 'attester').exists()).who.reference contains signature.who.reference
|
| cr-firma-documento-target-version | error | Provenance | El documento se referencia en su versión exacta: Bundle/<id>/_history/<versión>. |
target.reference.matches('^(.*/)?Bundle/[A-Za-z0-9\\-\\.]{1,64}/_history/[A-Za-z0-9\\-\\.]{1,64}$')
|
Vista instantáneaView
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Provenance | Firma digital de un documento clínico, separada del documento Constraints: cr-firma-documento-target-version, cr-firma-documento-firmante | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Vinculación: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
SΣ | 1..1 | Reference(Documento clínico (Bundle)) | El documento firmado, en su versión exacta: Bundle/<id>/_history/<versión> | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Bundle/<id>/_history/<versión> | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Vinculación: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
0..1 | When the activity occurred | ||||||
![]() ![]() ![]() |
Period | |||||||
![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() |
SΣ | 1..1 | instant | Cuándo se registró la firma | ||||
![]() ![]() |
0..* | uri | Policy or plan the activity was defined by | |||||
![]() ![]() |
0..1 | Reference(Location) | Where the activity occurred, if relevant | |||||
![]() ![]() |
0..* | CodeableReference() | Authorization (purposeOfUse) related to the event Vinculación: PurposeOfUse (example): The authorized purposeOfUse for the activity. | |||||
![]() ![]() |
S | 1..1 | CodeableConcept | attest (valor fijo): atestación del documento Vinculación: ProvenanceActivityType (example): The activity that took place. Required Pattern: At least the following | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system Fixed Value: (Complex) | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | Identity of the terminology system Fixed Value: http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |||||
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: attest | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Representation defined by the system | |||||
![]() ![]() ![]() ![]() |
0..1 | boolean | If this coding was chosen directly by the user | |||||
![]() ![]() ![]() |
0..1 | string | Plain text representation of the concept | |||||
![]() ![]() |
0..* | Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest | Task) | Workflow authorization within which this event occurred | |||||
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente del documento (el subject de su Composition) | ||||
![]() ![]() |
0..1 | Reference(Encounter) | Encounter within which this event occurred or which the event is tightly associated | |||||
![]() ![]() |
SΣC | 1..* | BackboneElement | Quien firma (attester) y el sistema que pidió la firma (assembler) Constraints: prov-1, prov-2, prov-3 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
SΣ | 1..1 | CodeableConcept | attester (quien firma) | assembler (el sistema que pidió la firma) Vinculación: ParticipationRoleType (example): The type of participation that a provenance agent played with respect to the activity. | ||||
![]() ![]() ![]() |
0..* | CodeableConcept | What the agents role was Vinculación: SecurityRoleType (example): The role that a provenance agent played with respect to the activity. | |||||
![]() ![]() ![]() |
SΣC | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización | Sistema de información) | Quien firma, o el sistema que pidió la firma | ||||
![]() ![]() ![]() |
C | 0..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient) | The agent that delegated | ||||
![]() ![]() |
Σ | 0..* | BackboneElement | An entity used in this activity | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
Σ | 1..1 | code | revision | quotation | source | instantiates | removal Vinculación: ProvenanceEntityRole (required): How an entity was used in an activity. | ||||
![]() ![]() ![]() |
Σ | 1..1 | Reference(Resource) | Identity of entity | ||||
![]() ![]() ![]() |
0..* | Vea agent (Provenance) | Entity is attributed to this agent | |||||
![]() ![]() |
S | 1..1 | Signature | Firma JAdES de GAUDÍ sobre el documento | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() |
SΣ | 1..* | Coding | 1.2.840.10065.1.12.1.1 (autor) | 1.2.840.10065.1.12.1.6 (validación) | 1.2.840.10065.1.12.1.14 (sello de la organización) Vinculación: SignatureTypeCodes (preferred): An indication of the reason that an entity signed the object. | ||||
![]() ![]() ![]() |
SΣ | 1..1 | instant | Momento de la solicitud de firma | ||||
![]() ![]() ![]() |
SΣ | 1..1 | Reference(Rol del profesional | Profesional de salud | Organización) | Quien firma: el responsable de la validación legal o la organización que sella | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) | The party represented | ||||
![]() ![]() ![]() |
S | 1..1 | code | application/fhir+json (valor fijo) Vinculación: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Required Pattern: application/fhir+json | ||||
![]() ![]() ![]() |
S | 1..1 | code | application/jose+json (valor fijo): JWS en serialización JSON Vinculación: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Required Pattern: application/jose+json | ||||
![]() ![]() ![]() |
S | 1..1 | base64Binary | Firma JAdES B-LT de GAUDÍ sobre el Bundle de trabajo, en base64 con relleno | ||||
Documentación de este formato | ||||||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Provenance.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
| Provenance.target.type | Base | extensible | Resource Types | 📍5.0.0 | Estándar FHIR |
| Provenance.authorization | Base | example | PurposeOfUse | 📦3.1.0 | THO v7.4 |
| Provenance.activity | Base | example | ValueSet of sample of representative activity type codes. | 📍5.0.0 | Estándar FHIR |
| Provenance.agent.type | Base | example | Participation Role Type | 📍5.0.0 | Estándar FHIR |
| Provenance.agent.role | Base | example | Security Role Type | 📍5.0.0 | Estándar FHIR |
| Provenance.entity.role | Base | required | Provenance Entity Role | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.type | Base | preferred | Signature Type Codes | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.targetFormat | Base | required | Mime Types | 📍5.0.0 | Estándar FHIR |
| Provenance.signature.sigFormat | Base | required | Mime Types | 📍5.0.0 | Estándar FHIR |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-firma-documento-firmante | error | Provenance | Quien firma es un agente de tipo attester. |
signature.who.reference.empty() or agent.where(type.coding.where(code = 'attester').exists()).who.reference contains signature.who.reference
|
| cr-firma-documento-target-version | error | Provenance | El documento se referencia en su versión exacta: Bundle/<id>/_history/<versión>. |
target.reference.matches('^(.*/)?Bundle/[A-Za-z0-9\\-\\.]{1,64}/_history/[A-Za-z0-9\\-\\.]{1,64}$')
|
| dom-2 | error | Provenance | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Provenance | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Provenance | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Provenance | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Provenance | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **TODOS** los elementos | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| prov-1 | error | Provenance.agent | Who and onBehalfOf cannot be the same |
who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
|
| prov-2 | error | Provenance.agent | If who is a PractitionerRole, onBehalfOf can't reference the same Practitioner |
who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
|
| prov-3 | error | Provenance.agent | If who is an organization, onBehalfOf can't be a PractitionerRole within that organization |
who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()
|
Esta estructura se deriva de Provenance .
Resumen
Obligatorios: 12 elementos
Must-Support: 15 elementos
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Otras representaciones de perfil: CSV, Excel, Schematron
Repositorio de documentos. Firmas de los documentos clínicos FHIR (detached): llegan en la transacción de envío, junto con el documento. El repositorio las verifica con el validador de GAUDÍ antes de aceptar el envío, no las modifica, y conserva la versión de Provenance.target. Las firmas de un documento se buscan por target.
Ver también Servicios del HIE.
Lo que el servidor debe responder para este perfil. En la forma, [base] es la URL base del servidor del servicio y lo que va entre llaves se reemplaza por un valor. Cada solicitud usa valores reales de los ejemplos de esta guía, y la respuesta trae los que coinciden; los cuerpos JSON se expanden al hacer clic. Todas las solicitudes llevan el token de acceso al HIE (Authorization: Bearer [token]). Las búsquedas de texto encuentran los valores que empiezan con el texto, sin distinguir mayúsculas ni tildes; las de fecha admiten los prefijos ge, gt, le y lt. En la URL los valores van codificados (| como %7C, + como %2B, un espacio como %20); aquí se muestran sin codificar para que se lean mejor.
Ir a: Leer · Buscar · Enviar documentos
Leer
Forma: GET [base]/Provenance/{id}
Lee una firma de un documento del repositorio de documentos por su id, la parte final de su URL. Se usa para resolver una referencia que otro recurso hace a una firma de un documento. En el ejemplo se lee «Firma del radiólogo sobre el informe de imágenes (D1)»; la segunda respuesta es la de un id que no existe.
Solicitud
GET [base]/Provenance/ejemplo-firma-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": "Provenance",
"id": "ejemplo-firma-documento-imagenes",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.1",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Author's Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:26:30-06:00",
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6IlpXcGxiWEJzYncifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:05-06:00"
}
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 Provenance/no-existe."
}
]
}
Buscar por target
Forma: GET [base]/Provenance?target=Bundle/{id}
Trae las firmas de un documento clínico: la firma de quien lo valida y el sello de la organización. Con Bundle/<id> trae las de todas sus versiones; con Bundle/<id>/_history/<versión>, las de esa versión. En el ejemplo se usa el dato de «Firma del radiólogo sobre el informe de imágenes (D1)»: target=Bundle/ejemplo-bundle-documento-imagenes.
Solicitud
GET [base]/Provenance?target=Bundle/ejemplo-bundle-documento-imagenes HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 2 resultados: Firma del radiólogo sobre el informe de imágenes (D1); Sello del hospital sobre el informe de imágenes (D1)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "[base]/Provenance?target=Bundle/ejemplo-bundle-documento-imagenes"
}
],
"entry": [
{
"fullUrl": "[base]/Provenance/ejemplo-firma-documento-imagenes",
"resource": {
"resourceType": "Provenance",
"id": "ejemplo-firma-documento-imagenes",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.1",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Author's Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:26:30-06:00",
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6IlpXcGxiWEJzYncifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:05-06:00"
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "[base]/Provenance/ejemplo-sello-documento-imagenes",
"resource": {
"resourceType": "Provenance",
"id": "ejemplo-sello-documento-imagenes",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.14",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Source Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:27:00-06:00",
"who": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6ImMyVnNiRzgifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:10-06:00"
},
"search": {
"mode": "match"
}
}
]
}
Buscar por paciente
Forma: GET [base]/Provenance?patient=Patient/{id}
Trae las firmas de los documentos de un paciente. En el ejemplo se usa el dato de «Firma del radiólogo sobre el informe de imágenes (D1)»: patient=Patient/ejemplo-paciente-dimex.
Solicitud
GET [base]/Provenance?patient=Patient/ejemplo-paciente-dimex HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 2 resultados: Firma del radiólogo sobre el informe de imágenes (D1); Sello del hospital sobre el informe de imágenes (D1)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "[base]/Provenance?patient=Patient/ejemplo-paciente-dimex"
}
],
"entry": [
{
"fullUrl": "[base]/Provenance/ejemplo-firma-documento-imagenes",
"resource": {
"resourceType": "Provenance",
"id": "ejemplo-firma-documento-imagenes",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.1",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Author's Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:26:30-06:00",
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6IlpXcGxiWEJzYncifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:05-06:00"
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "[base]/Provenance/ejemplo-sello-documento-imagenes",
"resource": {
"resourceType": "Provenance",
"id": "ejemplo-sello-documento-imagenes",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.14",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Source Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:27:00-06:00",
"who": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6ImMyVnNiRzgifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:10-06:00"
},
"search": {
"mode": "match"
}
}
]
}
Buscar por target, con POST
Forma: POST [base]/Provenance/_searchcuerpo: target=Bundle/{id}
Hace cualquier búsqueda con POST: los parámetros van en el cuerpo, como un formulario, en lugar de la URL. Se usa cuando los valores son datos personales, como una cédula, para que no queden en los registros de los servidores ni en el historial; la respuesta es la misma que con GET. En el ejemplo se repite la búsqueda por target.
Solicitud
POST [base]/Provenance/_search HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Content-Type: application/x-www-form-urlencoded
target=Bundle/ejemplo-bundle-documento-imagenes
Respuesta: 2 resultados: Firma del radiólogo sobre el informe de imágenes (D1); Sello del hospital sobre el informe de imágenes (D1), igual que con GET
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "[base]/Provenance?target=Bundle/ejemplo-bundle-documento-imagenes"
}
],
"entry": [
{
"fullUrl": "[base]/Provenance/ejemplo-firma-documento-imagenes",
"resource": {
"resourceType": "Provenance",
"id": "ejemplo-firma-documento-imagenes",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.1",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Author's Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:26:30-06:00",
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6IlpXcGxiWEJzYncifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:05-06:00"
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "[base]/Provenance/ejemplo-sello-documento-imagenes",
"resource": {
"resourceType": "Provenance",
"id": "ejemplo-sello-documento-imagenes",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.14",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Source Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:27:00-06:00",
"who": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6ImMyVnNiRzgifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:10-06:00"
},
"search": {
"mode": "match"
}
}
]
}
Enviar documentos (IHE MHD ITI-65)
Forma: POST [base]cuerpo: Bundle de tipo transaction
Envía al repositorio uno o varios documentos en una sola transacción: el lote de envío, la referencia de cada documento, el documento y sus firmas (IHE MHD ITI-65). El servidor guarda todo o nada: si una entrada no cumple su perfil, no se guarda ninguna. En el ejemplo se envía «Envío de un informe al HIE»: un informe de imágenes con su referencia, su lote, la firma del radiólogo y el sello del hospital; la segunda respuesta es el rechazo de toda la transacción porque una entrada no cumple su perfil.
Solicitud
POST [base] HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"id": "ejemplo-envio-informe-imagenes",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-bundle-envio-documentos"
]
},
"entry": [
{
"request": {
"method": "POST",
"url": "List"
},
"fullUrl": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d",
"resource": {
"resourceType": "List",
"id": "ejemplo-envio-lote",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-list-lote-envio"
]
},
"identifier": [
{
"system": "urn:ietf:rfc:3986",
"value": "urn:uuid:8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
}
],
"subject": [
{
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
}
],
"entry": [
{
"item": {
"reference": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
}
}
],
"status": "current",
"mode": "working",
"code": {
"coding": [
{
"code": "submissionset",
"system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"
}
]
},
"date": "2026-09-30T10:31:00-06:00",
"source": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
}
}
},
{
"request": {
"method": "POST",
"url": "DocumentReference"
},
"fullUrl": "urn:uuid:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"resource": {
"resourceType": "DocumentReference",
"id": "ejemplo-envio-referencia",
"meta": {
"security": [
{
"code": "N",
"system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
"display": "normal"
}
],
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-documentreference"
]
},
"identifier": [
{
"system": "urn:ietf:rfc:3986",
"value": "urn:uuid:3f6b1c2a-9d4e-4b7a-8c1f-2e5d6a7b8c90"
},
{
"system": "https://hl7.or.cr/fhir/sid/documento/cj-3101123456",
"value": "INF-IMG-2026-000871"
}
],
"type": {
"coding": [
{
"code": "18748-4",
"system": "http://loinc.org"
}
],
"text": "Informe de imágenes médicas"
},
"category": [
{
"coding": [
{
"code": "LP173421-1",
"system": "http://loinc.org"
}
],
"text": "Informe"
}
],
"context": [
{
"reference": "Encounter/ejemplo-atencion-resonancia",
"display": "Resonancia magnética"
}
],
"period": {
"start": "2026-09-30T08:15:00-06:00",
"end": "2026-09-30T08:55:00-06:00"
},
"author": [
{
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
],
"attester": [
{
"mode": {
"coding": [
{
"code": "legal",
"system": "http://hl7.org/fhir/composition-attestation-mode",
"display": "Legal"
}
]
},
"time": "2026-09-30T10:25:00-06:00",
"party": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
}
],
"modality": [
{
"coding": [
{
"code": "MR",
"system": "http://dicom.nema.org/resources/ontology/DCM",
"display": "Magnetic Resonance"
}
]
}
],
"securityLabel": [
{
"coding": [
{
"code": "N",
"system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
"display": "normal"
}
]
}
],
"content": [
{
"attachment": {
"language": "es",
"creation": "2026-09-30T10:20:00-06:00",
"contentType": "application/fhir+json",
"url": "https://hie.example.cr/fhir/Bundle/ejemplo-bundle-documento-imagenes"
},
"profile": [
{
"valueCanonical": "https://hl7.or.cr/fhir/core/StructureDefinition/cr-bundle-documento"
}
]
}
],
"version": "1",
"status": "current",
"subject": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"date": "2026-09-30T10:30:00-06:00",
"custodian": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
}
}
},
{
"request": {
"method": "PUT",
"url": "Bundle/ejemplo-bundle-documento-imagenes"
},
"fullUrl": "https://hie.example.cr/fhir/Bundle/ejemplo-bundle-documento-imagenes",
"resource": {
"resourceType": "Bundle",
"id": "ejemplo-bundle-documento-imagenes",
"meta": {
"security": [
{
"code": "N",
"system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
"display": "normal"
}
],
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-bundle-documento"
]
},
"identifier": {
"system": "urn:ietf:rfc:3986",
"value": "urn:uuid:3f6b1c2a-9d4e-4b7a-8c1f-2e5d6a7b8c90"
},
"entry": [
{
"fullUrl": "https://hl7.or.cr/fhir/core/Composition/ejemplo-documento-imagenes",
"resource": {
"resourceType": "Composition",
"id": "ejemplo-documento-imagenes",
"meta": {
"security": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
"code": "N",
"display": "normal"
}
],
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-composition"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/documento/cj-3101123456",
"value": "INF-IMG-2026-000871"
}
],
"type": {
"coding": [
{
"code": "18748-4",
"system": "http://loinc.org"
}
],
"text": "Informe de imágenes médicas"
},
"subject": [
{
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
}
],
"author": [
{
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
],
"attester": [
{
"mode": {
"coding": [
{
"code": "legal",
"system": "http://hl7.org/fhir/composition-attestation-mode",
"display": "Legal"
}
]
},
"time": "2026-09-30T10:25:00-06:00",
"party": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
}
],
"section": [
{
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Ruptura parcial del ligamento cruzado anterior. Menisco medial sin alteraciones.</div>"
},
"title": "Hallazgos",
"code": {
"coding": [
{
"code": "59776-5",
"system": "http://loinc.org"
}
]
}
},
{
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Ruptura parcial del ligamento cruzado anterior.</div>"
},
"title": "Conclusión",
"code": {
"coding": [
{
"code": "19005-8",
"system": "http://loinc.org"
}
]
}
}
],
"encounter": {
"reference": "Encounter/ejemplo-atencion-resonancia",
"display": "Resonancia magnética"
},
"title": "Informe de resonancia magnética de rodilla derecha",
"custodian": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
},
"version": "1",
"status": "final",
"date": "2026-09-30T10:20:00-06:00"
}
},
{
"fullUrl": "https://hl7.or.cr/fhir/core/Patient/ejemplo-paciente-dimex",
"resource": {
"resourceType": "Patient",
"id": "ejemplo-paciente-dimex",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient"
]
},
"identifier": [
{
"type": {
"coding": [
{
"code": "dimex",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion",
"display": "DIMEX"
},
{
"code": "PRC",
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"display": "Permanent Resident Card Number"
}
]
},
"use": "official",
"system": "https://hl7.or.cr/fhir/sid/dimex",
"value": "155812345678"
},
{
"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"
}
},
{
"request": {
"method": "POST",
"url": "Provenance"
},
"fullUrl": "urn:uuid:7c1e2d3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
"resource": {
"resourceType": "Provenance",
"id": "ejemplo-firma-documento-imagenes",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.1",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Author's Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:26:30-06:00",
"who": {
"reference": "PractitionerRole/ejemplo-rol-radiologia",
"display": "Carlos Jiménez Solano"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6IlpXcGxiWEJzYncifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:05-06:00"
}
},
{
"request": {
"method": "POST",
"url": "Provenance"
},
"fullUrl": "urn:uuid:8d2f3e4a-5b6c-4d7e-9f8a-0b1c2d3e4f5a",
"resource": {
"resourceType": "Provenance",
"id": "ejemplo-sello-documento-imagenes",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-provenance-firma-documento"
]
},
"target": [
{
"reference": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"display": "Documento completo del informe de imágenes médicas (D1), versión 1"
}
],
"agent": [
{
"type": {
"coding": [
{
"code": "assembler",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Assembler"
}
]
},
"who": {
"reference": "Device/ejemplo-sistema-hce-hospital",
"display": "Expediente electrónico del hospital"
}
},
{
"type": {
"coding": [
{
"code": "attester",
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"display": "Attester"
}
]
},
"who": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
}
}
],
"signature": [
{
"type": [
{
"code": "1.2.840.10065.1.12.1.14",
"system": "urn:iso-astm:E1762-95:2013",
"display": "Source Signature"
}
],
"targetFormat": "application/fhir+json",
"sigFormat": "application/jose+json",
"when": "2026-09-30T10:27:00-06:00",
"who": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
},
"data": "eyJzaWduYXR1cmVzIjpbeyJwcm90ZWN0ZWQiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltTjBlU0k2SW1wemIyNGlMQ0owZVhBaU9pSnFiM05sSzJwemIyNGlmUSIsInNpZ25hdHVyZSI6ImMyVnNiRzgifV19"
}
],
"activity": {
"coding": [
{
"code": "attest",
"system": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
}
]
},
"patient": {
"reference": "Patient/ejemplo-paciente-dimex",
"display": "José Mendoza"
},
"recorded": "2026-09-30T10:27:10-06:00"
}
}
],
"type": "transaction"
}
Respuesta si se guarda todo
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "transaction-response",
"entry": [
{
"response": {
"status": "201 Created",
"location": "List/ejemplo-envio-lote/_history/1",
"etag": "W/\"1\"",
"lastModified": "2026-10-01T10:00:00-06:00"
}
},
{
"response": {
"status": "201 Created",
"location": "DocumentReference/ejemplo-envio-referencia/_history/1",
"etag": "W/\"1\"",
"lastModified": "2026-10-01T10:00:00-06:00"
}
},
{
"response": {
"status": "201 Created",
"location": "Bundle/ejemplo-bundle-documento-imagenes/_history/1",
"etag": "W/\"1\"",
"lastModified": "2026-10-01T10:00:00-06:00"
}
},
{
"response": {
"status": "201 Created",
"location": "Provenance/ejemplo-firma-documento-imagenes/_history/1",
"etag": "W/\"1\"",
"lastModified": "2026-10-01T10:00:00-06:00"
}
},
{
"response": {
"status": "201 Created",
"location": "Provenance/ejemplo-sello-documento-imagenes/_history/1",
"etag": "W/\"1\"",
"lastModified": "2026-10-01T10:00:00-06:00"
}
}
]
}
Respuesta si una entrada no cumple su perfil: no se guarda nada
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/fhir+json
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invariant",
"diagnostics": "La transacción se rechazó entera: ninguna entrada se guardó. Entrada 2 (DocumentReference): no cumple el perfil cr-documentreference.",
"expression": [
"Bundle.entry[1].resource"
]
}
]
}