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-device-sistema | Versión: 0.1.0 | ||||
| Standards status: Draft | Nombre computable: CRDeviceSistema | ||||
Sistema de información conectado al HIE de Costa Rica: el expediente electrónico de un establecimiento, un sistema de laboratorio o de radiología, el MPI Nacional o el nodo nacional de PH4H. Dice qué sistema es, de quién es, en qué versión está y qué especificaciones implementa.
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..* | Device | Sistema de información conectado al HIE Constraints: dev-1 |
![]() ![]() |
?!Σ | 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 |
![]() ![]() |
SC | 1..1 | Identifier | Código del sistema en el registro del HIE Constraints: cr-sistema-system |
![]() ![]() ![]() |
?!Σ | 0..1 | code | official (valor fijo) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . Required Pattern: official |
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/sistema/{código del establecimiento propietario} Example General: http://www.acme.com/identifiers/patient |
![]() ![]() ![]() |
SΣC | 1..1 | string | Código del sistema en la organización: minúsculas, dígitos y guiones Constraints: cr-sistema-codigo-value Example General: 123456 |
![]() ![]() |
S | 1..1 | string | Nombre con que se conoce el sistema en el HIE (EDUS) Max Length:250 |
![]() ![]() |
?!SΣ | 1..1 | code | Estado: active | inactive | entered-in-error Vinculación: FHIRDeviceStatus (required): The record status of the device. |
![]() ![]() |
S | 0..1 | string | Empresa que desarrolla el software, o la propia organización Max Length:250 |
![]() ![]() |
SC | 0..1 | BackboneElement | Nombre comercial del software, si es un producto |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
SΣ | 1..1 | string | Nombre comercial Max Length:250 |
![]() ![]() ![]() |
Σ | 1..1 | code | registered-name (valor fijo) Vinculación: DeviceNameType (required): The type of name the device is referred by. Required Pattern: registered-name |
![]() ![]() ![]() |
?!ΣC | 0..1 | boolean | The preferred device name |
![]() ![]() |
S | 1..1 | CodeableConcept | software (valor fijo) Vinculación: FHIRDeviceCategory (example): Categories of medical devices. 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://hl7.org/fhir/device-category | |
![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: software | |
![]() ![]() ![]() ![]() |
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 | CodeableConcept | Tipo de sistema: expediente, laboratorio, radiología, PACS, MPI, nodo PH4H... Vinculación: Tipos de sistema de información (extensible) |
![]() ![]() |
S | 1..1 | BackboneElement | Versión vigente del software |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 0..1 | dateTime | Cuándo se puso en uso esta versión |
![]() ![]() ![]() |
S | 1..1 | string | Número de versión, como lo publica el fabricante (4.12.0) Max Length:64 |
![]() ![]() |
S | 0..* | BackboneElement | Especificaciones que el sistema declara implementar |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | IG o CapabilityStatement que implementa Vinculación: DeviceSpecificationType (example): The type of version indicated for the device. |
![]() ![]() ![]() ![]() |
SΣ | 1..1 | Coding | La URL canónica, como código de urn:ietf:rfc:3986 |
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | urn:ietf:rfc:3986 (valor fijo) Required Pattern: urn:ietf:rfc:3986 |
![]() ![]() ![]() ![]() ![]() |
SΣC | 1..1 | code | URL canónica de la IG o del CapabilityStatement |
![]() ![]() ![]() |
S | 0..1 | string | Versión de la especificación |
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que opera el sistema y responde por él |
![]() ![]() |
SC | 0..* | ContactPoint | Contacto del soporte técnico Constraints: cr-telefono |
![]() ![]() |
SC | 0..1 | uri | URL base del servidor FHIR del sistema (https) Constraints: cr-sistema-url |
Documentación de este formato | ||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Device.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | Estándar FHIR |
| Device.status | Base | required | FHIR Device Status | 📍5.0.0 | Estándar FHIR |
| Device.name.type | Base | required | Device Name Type | 📍5.0.0 | Estándar FHIR |
| Device.category | Base | example | FHIR Device Category | 📍5.0.0 | Estándar FHIR |
| Device.type | Base | extensible | Tipos de sistema de información | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Device.conformsTo.specification | Base | example | Device Specification Type | 📍5.0.0 | Estándar FHIR |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-sistema-codigo-value | error | Device.identifier.value | El código del sistema tiene de 1 a 64 caracteres: letras minúsculas, dígitos y guiones. |
matches('^[a-z0-9-]{1,64}$')
|
| cr-sistema-system | error | Device.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/sistema/ seguido del código del establecimiento propietario (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/sistema/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-sistema-url | error | Device.url | La dirección del servicio es una URL absoluta https. |
startsWith('https://')
|
| cr-telefono | error | Device.contact | Un teléfono está en formato E.164 (+ y de 8 a 15 dígitos, sin espacios ni guiones), con una extensión interna opcional después de ;ext=. En Costa Rica (+506) tiene 8 dígitos que empiezan de 2 a 8, o es un número 800 o 900 de 10 dígitos. |
(system = 'phone' or system = 'fax' or system = 'sms') implies (value.matches('^\\+[1-9][0-9]{7,14}(;ext=[0-9]{1,6})?$') and (value.startsWith('+506') implies value.matches('^\\+506([2-8][0-9]{7}|[89]00[0-9]{7})(;ext=[0-9]{1,6})?$')))
|
| dev-1 | error | Device | only one Device.name.display SHALL be true when there is more than one Device.name |
name.where(display=true).count() <= 1
|
| dom-2 | error | Device | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Device | 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 | Device | 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 | Device | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Device | 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()
|
Esta estructura se deriva de Device .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Device | Sistema de información conectado al HIE | |
![]() ![]() |
SC | 1..1 | Identifier | Código del sistema en el registro del HIE Constraints: cr-sistema-system |
![]() ![]() ![]() |
0..1 | code | official (valor fijo) Required Pattern: official | |
![]() ![]() ![]() |
S | 1..1 | uri | https://hl7.or.cr/fhir/sid/sistema/{código del establecimiento propietario} |
![]() ![]() ![]() |
SC | 1..1 | string | Código del sistema en la organización: minúsculas, dígitos y guiones Constraints: cr-sistema-codigo-value |
![]() ![]() |
S | 1..1 | string | Nombre con que se conoce el sistema en el HIE (EDUS) Max Length:250 |
![]() ![]() |
S | 1..1 | code | Estado: active | inactive | entered-in-error |
![]() ![]() |
S | 0..1 | string | Empresa que desarrolla el software, o la propia organización Max Length:250 |
![]() ![]() |
S | 0..1 | BackboneElement | Nombre comercial del software, si es un producto |
![]() ![]() ![]() |
S | 1..1 | string | Nombre comercial Max Length:250 |
![]() ![]() ![]() |
1..1 | code | registered-name (valor fijo) Required Pattern: registered-name | |
![]() ![]() |
S | 1..1 | CodeableConcept | software (valor fijo) 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://hl7.org/fhir/device-category | |
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: software | |
![]() ![]() |
S | 1..1 | CodeableConcept | Tipo de sistema: expediente, laboratorio, radiología, PACS, MPI, nodo PH4H... Vinculación: Tipos de sistema de información (extensible) |
![]() ![]() |
S | 1..1 | BackboneElement | Versión vigente del software |
![]() ![]() ![]() |
S | 0..1 | dateTime | Cuándo se puso en uso esta versión |
![]() ![]() ![]() |
S | 1..1 | string | Número de versión, como lo publica el fabricante (4.12.0) Max Length:64 |
![]() ![]() |
S | 0..* | BackboneElement | Especificaciones que el sistema declara implementar |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | IG o CapabilityStatement que implementa |
![]() ![]() ![]() ![]() |
S | 1..1 | Coding | La URL canónica, como código de urn:ietf:rfc:3986 |
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | urn:ietf:rfc:3986 (valor fijo) Required Pattern: urn:ietf:rfc:3986 | |
![]() ![]() ![]() ![]() ![]() |
S | 1..1 | code | URL canónica de la IG o del CapabilityStatement |
![]() ![]() ![]() |
S | 0..1 | string | Versión de la especificación |
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que opera el sistema y responde por él |
![]() ![]() |
SC | 0..* | ContactPoint | Contacto del soporte técnico Constraints: cr-telefono |
![]() ![]() |
SC | 0..1 | uri | URL base del servidor FHIR del sistema (https) Constraints: cr-sistema-url |
Documentación de este formato | ||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Device.type | Base | extensible | Tipos de sistema de información | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-sistema-codigo-value | error | Device.identifier.value | El código del sistema tiene de 1 a 64 caracteres: letras minúsculas, dígitos y guiones. |
matches('^[a-z0-9-]{1,64}$')
|
| cr-sistema-system | error | Device.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/sistema/ seguido del código del establecimiento propietario (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/sistema/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-sistema-url | error | Device.url | La dirección del servicio es una URL absoluta https. |
startsWith('https://')
|
| cr-telefono | error | Device.contact | Un teléfono está en formato E.164 (+ y de 8 a 15 dígitos, sin espacios ni guiones), con una extensión interna opcional después de ;ext=. En Costa Rica (+506) tiene 8 dígitos que empiezan de 2 a 8, o es un número 800 o 900 de 10 dígitos. |
(system = 'phone' or system = 'fax' or system = 'sms') implies (value.matches('^\\+[1-9][0-9]{7,14}(;ext=[0-9]{1,6})?$') and (value.startsWith('+506') implies value.matches('^\\+506([2-8][0-9]{7}|[89]00[0-9]{7})(;ext=[0-9]{1,6})?$')))
|
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Device | Sistema de información conectado al HIE Constraints: dev-1 | ||||
![]() ![]() |
Σ | 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 | ||||
![]() ![]() |
SC | 1..1 | Identifier | Código del sistema en el registro del HIE Constraints: cr-sistema-system | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | official (valor fijo) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . Required Pattern: official | ||||
![]() ![]() ![]() |
Σ | 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. | ||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/sistema/{código del establecimiento propietario} Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Código del sistema en la organización: minúsculas, dígitos y guiones Constraints: cr-sistema-codigo-value Example General: 123456 | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() |
S | 1..1 | string | Nombre con que se conoce el sistema en el HIE (EDUS) Max Length:250 | ||||
![]() ![]() |
0..1 | CodeableReference(DeviceDefinition) | The reference to the definition for the device | |||||
![]() ![]() |
Σ | 0..* | BackboneElement | Unique Device Identifier (UDI) Barcode string | ||||
![]() ![]() ![]() |
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 | string | Mandatory fixed portion of UDI | ||||
![]() ![]() ![]() |
Σ | 1..1 | uri | UDI Issuing Organization | ||||
![]() ![]() ![]() |
0..1 | uri | Regional UDI authority | |||||
![]() ![]() ![]() |
Σ | 0..1 | base64Binary | UDI Machine Readable Barcode String | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | UDI Human Readable Barcode String | ||||
![]() ![]() ![]() |
0..1 | code | barcode | rfid | manual | card | self-reported | electronic-transmission | unknown Vinculación: UDIEntryType (required): Codes to identify how UDI data was entered. | |||||
![]() ![]() |
?!SΣ | 1..1 | code | Estado: active | inactive | entered-in-error Vinculación: FHIRDeviceStatus (required): The record status of the device. | ||||
![]() ![]() |
0..1 | CodeableConcept | lost | damaged | destroyed | available Vinculación: FHIRDeviceAvailabilityStatus (extensible): The availability status reason of the device. | |||||
![]() ![]() |
0..1 | Identifier | An identifier that supports traceability to the event during which material in this product from one or more biological entities was obtained or pooled | |||||
![]() ![]() |
S | 0..1 | string | Empresa que desarrolla el software, o la propia organización Max Length:250 | ||||
![]() ![]() |
0..1 | dateTime | Date when the device was made | |||||
![]() ![]() |
0..1 | dateTime | Date and time of expiry of this device (if applicable) | |||||
![]() ![]() |
0..1 | string | Lot number of manufacture | |||||
![]() ![]() |
0..1 | string | Serial number assigned by the manufacturer | |||||
![]() ![]() |
SC | 0..1 | BackboneElement | Nombre comercial del software, si es un producto | ||||
![]() ![]() ![]() |
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 | string | Nombre comercial Max Length:250 | ||||
![]() ![]() ![]() |
Σ | 1..1 | code | registered-name (valor fijo) Vinculación: DeviceNameType (required): The type of name the device is referred by. Required Pattern: registered-name | ||||
![]() ![]() ![]() |
?!ΣC | 0..1 | boolean | The preferred device name | ||||
![]() ![]() |
0..1 | string | The manufacturer's model number for the device | |||||
![]() ![]() |
0..1 | string | The part number or catalog number of the device | |||||
![]() ![]() |
S | 1..1 | CodeableConcept | software (valor fijo) Vinculación: FHIRDeviceCategory (example): Categories of medical devices. 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://hl7.org/fhir/device-category | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |||||
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: software | |||||
![]() ![]() ![]() ![]() |
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 | CodeableConcept | Tipo de sistema: expediente, laboratorio, radiología, PACS, MPI, nodo PH4H... Vinculación: Tipos de sistema de información (extensible) | ||||
![]() ![]() |
S | 1..1 | BackboneElement | Versión vigente del software | ||||
![]() ![]() ![]() |
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 | ||||
![]() ![]() ![]() |
0..1 | CodeableConcept | The type of the device version, e.g. manufacturer, approved, internal Vinculación: DeviceVersionType (example): The type of version indicated for the device. | |||||
![]() ![]() ![]() |
0..1 | Identifier | The hardware or software module of the device to which the version applies | |||||
![]() ![]() ![]() |
S | 0..1 | dateTime | Cuándo se puso en uso esta versión | ||||
![]() ![]() ![]() |
S | 1..1 | string | Número de versión, como lo publica el fabricante (4.12.0) Max Length:64 | ||||
![]() ![]() |
S | 0..* | BackboneElement | Especificaciones que el sistema declara implementar | ||||
![]() ![]() ![]() |
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 | ||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Describes the common type of the standard, specification, or formal guidance. communication | performance | measurement Vinculación: DeviceSpecificationCategory (example): The kind of standards used by the device. | |||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | IG o CapabilityStatement que implementa Vinculación: DeviceSpecificationType (example): The type of version indicated for the device. | ||||
![]() ![]() ![]() ![]() |
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..1 | Coding | La URL canónica, como código de urn:ietf:rfc:3986 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | urn:ietf:rfc:3986 (valor fijo) Required Pattern: urn:ietf:rfc:3986 | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
SΣC | 1..1 | code | URL canónica de la IG o del CapabilityStatement | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 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 | 0..1 | string | Versión de la especificación | ||||
![]() ![]() |
0..* | BackboneElement | Inherent, essentially fixed, characteristics of the device. e.g., time properties, size, material, etc. | |||||
![]() ![]() ![]() |
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 | CodeableConcept | Code that specifies the property being represented Vinculación: DeviceType (example): Device property type. | |||||
![]() ![]() ![]() |
1..1 | Value of the property | ||||||
![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() |
0..1 | CodeableConcept | The designated condition for performing a task Vinculación: FHIRDeviceOperationMode (example): Operational mode of a device. | |||||
![]() ![]() |
0..1 | Count | The series of occurrences that repeats during the operation of the device | |||||
![]() ![]() |
0..1 | Duration | A measurement of time during the device's operation (e.g., days, hours, mins, etc.) | |||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que opera el sistema y responde por él | ||||
![]() ![]() |
SC | 0..* | ContactPoint | Contacto del soporte técnico Constraints: cr-telefono | ||||
![]() ![]() |
0..1 | Reference(Location) | Where the device is found | |||||
![]() ![]() |
SC | 0..1 | uri | URL base del servidor FHIR del sistema (https) Constraints: cr-sistema-url | ||||
![]() ![]() |
0..* | Reference(Endpoint) | Technical endpoints providing access to electronic services provided by the device | |||||
![]() ![]() |
0..* | CodeableReference(Device) | Linked device acting as a communication/data collector, translator or controller | |||||
![]() ![]() |
0..* | Annotation | Device notes and comments | |||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Safety Characteristics of Device Vinculación: DeviceSafety (example) | ||||
![]() ![]() |
0..1 | Reference(Device) | The higher level or encompassing device that this device is a logical part of | |||||
Documentación de este formato | ||||||||
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-sistema-codigo-value | error | Device.identifier.value | El código del sistema tiene de 1 a 64 caracteres: letras minúsculas, dígitos y guiones. |
matches('^[a-z0-9-]{1,64}$')
|
| cr-sistema-system | error | Device.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/sistema/ seguido del código del establecimiento propietario (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/sistema/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-sistema-url | error | Device.url | La dirección del servicio es una URL absoluta https. |
startsWith('https://')
|
| cr-telefono | error | Device.contact | Un teléfono está en formato E.164 (+ y de 8 a 15 dígitos, sin espacios ni guiones), con una extensión interna opcional después de ;ext=. En Costa Rica (+506) tiene 8 dígitos que empiezan de 2 a 8, o es un número 800 o 900 de 10 dígitos. |
(system = 'phone' or system = 'fax' or system = 'sms') implies (value.matches('^\\+[1-9][0-9]{7,14}(;ext=[0-9]{1,6})?$') and (value.startsWith('+506') implies value.matches('^\\+506([2-8][0-9]{7}|[89]00[0-9]{7})(;ext=[0-9]{1,6})?$')))
|
| dev-1 | error | Device | only one Device.name.display SHALL be true when there is more than one Device.name |
name.where(display=true).count() <= 1
|
| dom-2 | error | Device | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Device | 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 | Device | 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 | Device | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Device | 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()
|
Esta estructura se deriva de Device .
Vista de elementos clave
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Device | Sistema de información conectado al HIE Constraints: dev-1 |
![]() ![]() |
?!Σ | 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 |
![]() ![]() |
SC | 1..1 | Identifier | Código del sistema en el registro del HIE Constraints: cr-sistema-system |
![]() ![]() ![]() |
?!Σ | 0..1 | code | official (valor fijo) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . Required Pattern: official |
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/sistema/{código del establecimiento propietario} Example General: http://www.acme.com/identifiers/patient |
![]() ![]() ![]() |
SΣC | 1..1 | string | Código del sistema en la organización: minúsculas, dígitos y guiones Constraints: cr-sistema-codigo-value Example General: 123456 |
![]() ![]() |
S | 1..1 | string | Nombre con que se conoce el sistema en el HIE (EDUS) Max Length:250 |
![]() ![]() |
?!SΣ | 1..1 | code | Estado: active | inactive | entered-in-error Vinculación: FHIRDeviceStatus (required): The record status of the device. |
![]() ![]() |
S | 0..1 | string | Empresa que desarrolla el software, o la propia organización Max Length:250 |
![]() ![]() |
SC | 0..1 | BackboneElement | Nombre comercial del software, si es un producto |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
SΣ | 1..1 | string | Nombre comercial Max Length:250 |
![]() ![]() ![]() |
Σ | 1..1 | code | registered-name (valor fijo) Vinculación: DeviceNameType (required): The type of name the device is referred by. Required Pattern: registered-name |
![]() ![]() ![]() |
?!ΣC | 0..1 | boolean | The preferred device name |
![]() ![]() |
S | 1..1 | CodeableConcept | software (valor fijo) Vinculación: FHIRDeviceCategory (example): Categories of medical devices. 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://hl7.org/fhir/device-category | |
![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: software | |
![]() ![]() ![]() ![]() |
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 | CodeableConcept | Tipo de sistema: expediente, laboratorio, radiología, PACS, MPI, nodo PH4H... Vinculación: Tipos de sistema de información (extensible) |
![]() ![]() |
S | 1..1 | BackboneElement | Versión vigente del software |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 0..1 | dateTime | Cuándo se puso en uso esta versión |
![]() ![]() ![]() |
S | 1..1 | string | Número de versión, como lo publica el fabricante (4.12.0) Max Length:64 |
![]() ![]() |
S | 0..* | BackboneElement | Especificaciones que el sistema declara implementar |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | IG o CapabilityStatement que implementa Vinculación: DeviceSpecificationType (example): The type of version indicated for the device. |
![]() ![]() ![]() ![]() |
SΣ | 1..1 | Coding | La URL canónica, como código de urn:ietf:rfc:3986 |
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | urn:ietf:rfc:3986 (valor fijo) Required Pattern: urn:ietf:rfc:3986 |
![]() ![]() ![]() ![]() ![]() |
SΣC | 1..1 | code | URL canónica de la IG o del CapabilityStatement |
![]() ![]() ![]() |
S | 0..1 | string | Versión de la especificación |
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que opera el sistema y responde por él |
![]() ![]() |
SC | 0..* | ContactPoint | Contacto del soporte técnico Constraints: cr-telefono |
![]() ![]() |
SC | 0..1 | uri | URL base del servidor FHIR del sistema (https) Constraints: cr-sistema-url |
Documentación de este formato | ||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Device.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | Estándar FHIR |
| Device.status | Base | required | FHIR Device Status | 📍5.0.0 | Estándar FHIR |
| Device.name.type | Base | required | Device Name Type | 📍5.0.0 | Estándar FHIR |
| Device.category | Base | example | FHIR Device Category | 📍5.0.0 | Estándar FHIR |
| Device.type | Base | extensible | Tipos de sistema de información | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Device.conformsTo.specification | Base | example | Device Specification Type | 📍5.0.0 | Estándar FHIR |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-sistema-codigo-value | error | Device.identifier.value | El código del sistema tiene de 1 a 64 caracteres: letras minúsculas, dígitos y guiones. |
matches('^[a-z0-9-]{1,64}$')
|
| cr-sistema-system | error | Device.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/sistema/ seguido del código del establecimiento propietario (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/sistema/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-sistema-url | error | Device.url | La dirección del servicio es una URL absoluta https. |
startsWith('https://')
|
| cr-telefono | error | Device.contact | Un teléfono está en formato E.164 (+ y de 8 a 15 dígitos, sin espacios ni guiones), con una extensión interna opcional después de ;ext=. En Costa Rica (+506) tiene 8 dígitos que empiezan de 2 a 8, o es un número 800 o 900 de 10 dígitos. |
(system = 'phone' or system = 'fax' or system = 'sms') implies (value.matches('^\\+[1-9][0-9]{7,14}(;ext=[0-9]{1,6})?$') and (value.startsWith('+506') implies value.matches('^\\+506([2-8][0-9]{7}|[89]00[0-9]{7})(;ext=[0-9]{1,6})?$')))
|
| dev-1 | error | Device | only one Device.name.display SHALL be true when there is more than one Device.name |
name.where(display=true).count() <= 1
|
| dom-2 | error | Device | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Device | 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 | Device | 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 | Device | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Device | 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()
|
Vista diferencial
Esta estructura se deriva de Device .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Device | Sistema de información conectado al HIE | |
![]() ![]() |
SC | 1..1 | Identifier | Código del sistema en el registro del HIE Constraints: cr-sistema-system |
![]() ![]() ![]() |
0..1 | code | official (valor fijo) Required Pattern: official | |
![]() ![]() ![]() |
S | 1..1 | uri | https://hl7.or.cr/fhir/sid/sistema/{código del establecimiento propietario} |
![]() ![]() ![]() |
SC | 1..1 | string | Código del sistema en la organización: minúsculas, dígitos y guiones Constraints: cr-sistema-codigo-value |
![]() ![]() |
S | 1..1 | string | Nombre con que se conoce el sistema en el HIE (EDUS) Max Length:250 |
![]() ![]() |
S | 1..1 | code | Estado: active | inactive | entered-in-error |
![]() ![]() |
S | 0..1 | string | Empresa que desarrolla el software, o la propia organización Max Length:250 |
![]() ![]() |
S | 0..1 | BackboneElement | Nombre comercial del software, si es un producto |
![]() ![]() ![]() |
S | 1..1 | string | Nombre comercial Max Length:250 |
![]() ![]() ![]() |
1..1 | code | registered-name (valor fijo) Required Pattern: registered-name | |
![]() ![]() |
S | 1..1 | CodeableConcept | software (valor fijo) 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://hl7.org/fhir/device-category | |
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: software | |
![]() ![]() |
S | 1..1 | CodeableConcept | Tipo de sistema: expediente, laboratorio, radiología, PACS, MPI, nodo PH4H... Vinculación: Tipos de sistema de información (extensible) |
![]() ![]() |
S | 1..1 | BackboneElement | Versión vigente del software |
![]() ![]() ![]() |
S | 0..1 | dateTime | Cuándo se puso en uso esta versión |
![]() ![]() ![]() |
S | 1..1 | string | Número de versión, como lo publica el fabricante (4.12.0) Max Length:64 |
![]() ![]() |
S | 0..* | BackboneElement | Especificaciones que el sistema declara implementar |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | IG o CapabilityStatement que implementa |
![]() ![]() ![]() ![]() |
S | 1..1 | Coding | La URL canónica, como código de urn:ietf:rfc:3986 |
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | urn:ietf:rfc:3986 (valor fijo) Required Pattern: urn:ietf:rfc:3986 | |
![]() ![]() ![]() ![]() ![]() |
S | 1..1 | code | URL canónica de la IG o del CapabilityStatement |
![]() ![]() ![]() |
S | 0..1 | string | Versión de la especificación |
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que opera el sistema y responde por él |
![]() ![]() |
SC | 0..* | ContactPoint | Contacto del soporte técnico Constraints: cr-telefono |
![]() ![]() |
SC | 0..1 | uri | URL base del servidor FHIR del sistema (https) Constraints: cr-sistema-url |
Documentación de este formato | ||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Device.type | Base | extensible | Tipos de sistema de información | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-sistema-codigo-value | error | Device.identifier.value | El código del sistema tiene de 1 a 64 caracteres: letras minúsculas, dígitos y guiones. |
matches('^[a-z0-9-]{1,64}$')
|
| cr-sistema-system | error | Device.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/sistema/ seguido del código del establecimiento propietario (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/sistema/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-sistema-url | error | Device.url | La dirección del servicio es una URL absoluta https. |
startsWith('https://')
|
| cr-telefono | error | Device.contact | Un teléfono está en formato E.164 (+ y de 8 a 15 dígitos, sin espacios ni guiones), con una extensión interna opcional después de ;ext=. En Costa Rica (+506) tiene 8 dígitos que empiezan de 2 a 8, o es un número 800 o 900 de 10 dígitos. |
(system = 'phone' or system = 'fax' or system = 'sms') implies (value.matches('^\\+[1-9][0-9]{7,14}(;ext=[0-9]{1,6})?$') and (value.startsWith('+506') implies value.matches('^\\+506([2-8][0-9]{7}|[89]00[0-9]{7})(;ext=[0-9]{1,6})?$')))
|
Vista instantáneaView
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Device | Sistema de información conectado al HIE Constraints: dev-1 | ||||
![]() ![]() |
Σ | 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 | ||||
![]() ![]() |
SC | 1..1 | Identifier | Código del sistema en el registro del HIE Constraints: cr-sistema-system | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | official (valor fijo) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . Required Pattern: official | ||||
![]() ![]() ![]() |
Σ | 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. | ||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/sistema/{código del establecimiento propietario} Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Código del sistema en la organización: minúsculas, dígitos y guiones Constraints: cr-sistema-codigo-value Example General: 123456 | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() |
S | 1..1 | string | Nombre con que se conoce el sistema en el HIE (EDUS) Max Length:250 | ||||
![]() ![]() |
0..1 | CodeableReference(DeviceDefinition) | The reference to the definition for the device | |||||
![]() ![]() |
Σ | 0..* | BackboneElement | Unique Device Identifier (UDI) Barcode string | ||||
![]() ![]() ![]() |
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 | string | Mandatory fixed portion of UDI | ||||
![]() ![]() ![]() |
Σ | 1..1 | uri | UDI Issuing Organization | ||||
![]() ![]() ![]() |
0..1 | uri | Regional UDI authority | |||||
![]() ![]() ![]() |
Σ | 0..1 | base64Binary | UDI Machine Readable Barcode String | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | UDI Human Readable Barcode String | ||||
![]() ![]() ![]() |
0..1 | code | barcode | rfid | manual | card | self-reported | electronic-transmission | unknown Vinculación: UDIEntryType (required): Codes to identify how UDI data was entered. | |||||
![]() ![]() |
?!SΣ | 1..1 | code | Estado: active | inactive | entered-in-error Vinculación: FHIRDeviceStatus (required): The record status of the device. | ||||
![]() ![]() |
0..1 | CodeableConcept | lost | damaged | destroyed | available Vinculación: FHIRDeviceAvailabilityStatus (extensible): The availability status reason of the device. | |||||
![]() ![]() |
0..1 | Identifier | An identifier that supports traceability to the event during which material in this product from one or more biological entities was obtained or pooled | |||||
![]() ![]() |
S | 0..1 | string | Empresa que desarrolla el software, o la propia organización Max Length:250 | ||||
![]() ![]() |
0..1 | dateTime | Date when the device was made | |||||
![]() ![]() |
0..1 | dateTime | Date and time of expiry of this device (if applicable) | |||||
![]() ![]() |
0..1 | string | Lot number of manufacture | |||||
![]() ![]() |
0..1 | string | Serial number assigned by the manufacturer | |||||
![]() ![]() |
SC | 0..1 | BackboneElement | Nombre comercial del software, si es un producto | ||||
![]() ![]() ![]() |
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 | string | Nombre comercial Max Length:250 | ||||
![]() ![]() ![]() |
Σ | 1..1 | code | registered-name (valor fijo) Vinculación: DeviceNameType (required): The type of name the device is referred by. Required Pattern: registered-name | ||||
![]() ![]() ![]() |
?!ΣC | 0..1 | boolean | The preferred device name | ||||
![]() ![]() |
0..1 | string | The manufacturer's model number for the device | |||||
![]() ![]() |
0..1 | string | The part number or catalog number of the device | |||||
![]() ![]() |
S | 1..1 | CodeableConcept | software (valor fijo) Vinculación: FHIRDeviceCategory (example): Categories of medical devices. 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://hl7.org/fhir/device-category | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |||||
![]() ![]() ![]() ![]() |
1..1 | code | Symbol in syntax defined by the system Fixed Value: software | |||||
![]() ![]() ![]() ![]() |
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 | CodeableConcept | Tipo de sistema: expediente, laboratorio, radiología, PACS, MPI, nodo PH4H... Vinculación: Tipos de sistema de información (extensible) | ||||
![]() ![]() |
S | 1..1 | BackboneElement | Versión vigente del software | ||||
![]() ![]() ![]() |
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 | ||||
![]() ![]() ![]() |
0..1 | CodeableConcept | The type of the device version, e.g. manufacturer, approved, internal Vinculación: DeviceVersionType (example): The type of version indicated for the device. | |||||
![]() ![]() ![]() |
0..1 | Identifier | The hardware or software module of the device to which the version applies | |||||
![]() ![]() ![]() |
S | 0..1 | dateTime | Cuándo se puso en uso esta versión | ||||
![]() ![]() ![]() |
S | 1..1 | string | Número de versión, como lo publica el fabricante (4.12.0) Max Length:64 | ||||
![]() ![]() |
S | 0..* | BackboneElement | Especificaciones que el sistema declara implementar | ||||
![]() ![]() ![]() |
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 | ||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Describes the common type of the standard, specification, or formal guidance. communication | performance | measurement Vinculación: DeviceSpecificationCategory (example): The kind of standards used by the device. | |||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | IG o CapabilityStatement que implementa Vinculación: DeviceSpecificationType (example): The type of version indicated for the device. | ||||
![]() ![]() ![]() ![]() |
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..1 | Coding | La URL canónica, como código de urn:ietf:rfc:3986 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | urn:ietf:rfc:3986 (valor fijo) Required Pattern: urn:ietf:rfc:3986 | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
SΣC | 1..1 | code | URL canónica de la IG o del CapabilityStatement | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 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 | 0..1 | string | Versión de la especificación | ||||
![]() ![]() |
0..* | BackboneElement | Inherent, essentially fixed, characteristics of the device. e.g., time properties, size, material, etc. | |||||
![]() ![]() ![]() |
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 | CodeableConcept | Code that specifies the property being represented Vinculación: DeviceType (example): Device property type. | |||||
![]() ![]() ![]() |
1..1 | Value of the property | ||||||
![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() |
0..1 | CodeableConcept | The designated condition for performing a task Vinculación: FHIRDeviceOperationMode (example): Operational mode of a device. | |||||
![]() ![]() |
0..1 | Count | The series of occurrences that repeats during the operation of the device | |||||
![]() ![]() |
0..1 | Duration | A measurement of time during the device's operation (e.g., days, hours, mins, etc.) | |||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que opera el sistema y responde por él | ||||
![]() ![]() |
SC | 0..* | ContactPoint | Contacto del soporte técnico Constraints: cr-telefono | ||||
![]() ![]() |
0..1 | Reference(Location) | Where the device is found | |||||
![]() ![]() |
SC | 0..1 | uri | URL base del servidor FHIR del sistema (https) Constraints: cr-sistema-url | ||||
![]() ![]() |
0..* | Reference(Endpoint) | Technical endpoints providing access to electronic services provided by the device | |||||
![]() ![]() |
0..* | CodeableReference(Device) | Linked device acting as a communication/data collector, translator or controller | |||||
![]() ![]() |
0..* | Annotation | Device notes and comments | |||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Safety Characteristics of Device Vinculación: DeviceSafety (example) | ||||
![]() ![]() |
0..1 | Reference(Device) | The higher level or encompassing device that this device is a logical part of | |||||
Documentación de este formato | ||||||||
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-sistema-codigo-value | error | Device.identifier.value | El código del sistema tiene de 1 a 64 caracteres: letras minúsculas, dígitos y guiones. |
matches('^[a-z0-9-]{1,64}$')
|
| cr-sistema-system | error | Device.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/sistema/ seguido del código del establecimiento propietario (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/sistema/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-sistema-url | error | Device.url | La dirección del servicio es una URL absoluta https. |
startsWith('https://')
|
| cr-telefono | error | Device.contact | Un teléfono está en formato E.164 (+ y de 8 a 15 dígitos, sin espacios ni guiones), con una extensión interna opcional después de ;ext=. En Costa Rica (+506) tiene 8 dígitos que empiezan de 2 a 8, o es un número 800 o 900 de 10 dígitos. |
(system = 'phone' or system = 'fax' or system = 'sms') implies (value.matches('^\\+[1-9][0-9]{7,14}(;ext=[0-9]{1,6})?$') and (value.startsWith('+506') implies value.matches('^\\+506([2-8][0-9]{7}|[89]00[0-9]{7})(;ext=[0-9]{1,6})?$')))
|
| dev-1 | error | Device | only one Device.name.display SHALL be true when there is more than one Device.name |
name.where(display=true).count() <= 1
|
| dom-2 | error | Device | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Device | 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 | Device | 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 | Device | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Device | 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()
|
Esta estructura se deriva de Device .
Otras representaciones de perfil: CSV, Excel, Schematron
Registro de establecimientos. Registro de los sistemas de información conectados al HIE.
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 · Crear · Actualizar
Leer
Forma: GET [base]/Device/{id}
Lee un sistema de información del registro de establecimientos por su id, la parte final de su URL. Se usa para resolver una referencia que otro recurso hace a un sistema de información. En el ejemplo se lee «Sistema de un laboratorio privado (S2)»; la segunda respuesta es la de un id que no existe.
Solicitud
GET [base]/Device/ejemplo-sistema-laboratorio 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": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
}
Respuesta si no existe
HTTP/1.1 404 Not Found
Content-Type: application/fhir+json
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "not-found",
"diagnostics": "No existe el recurso Device/no-existe."
}
]
}
Buscar por identificador
Forma: GET [base]/Device?identifier={sistema}|{valor}
Encuentra un sistema por su identificador en el registro de sistemas del HIE. Así se comprueba qué sistema envía o consulta datos, y se referencia en la procedencia y en la auditoría. En el ejemplo se usa el dato de «Sistema de un laboratorio privado (S2)»: identifier=https://hl7.or.cr/fhir/sid/sistema/cj-3101234567|lis-central.
Solicitud
GET [base]/Device?identifier=https://hl7.or.cr/fhir/sid/sistema/cj-3101234567|lis-central HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 1 resultado: Sistema de un laboratorio privado (S2)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Device?identifier=https://hl7.or.cr/fhir/sid/sistema/cj-3101234567|lis-central"
}
],
"entry": [
{
"fullUrl": "[base]/Device/ejemplo-sistema-laboratorio",
"resource": {
"resourceType": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por tipo
Forma: GET [base]/Device?type={sistema}|{código}
Busca sistemas por tipo; por ejemplo, todos los sistemas de laboratorio conectados. En el ejemplo se usa el dato de «Sistema de un laboratorio privado (S2)»: type=https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion|lis.
Solicitud
GET [base]/Device?type=https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion|lis HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 1 resultado: Sistema de un laboratorio privado (S2)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Device?type=https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion|lis"
}
],
"entry": [
{
"fullUrl": "[base]/Device/ejemplo-sistema-laboratorio",
"resource": {
"resourceType": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por organización propietaria
Forma: GET [base]/Device?organization=Organization/{id}
Trae los sistemas de una organización, que responde por ellos. En el ejemplo se usa el dato de «Sistema de un laboratorio privado (S2)»: organization=Organization/ejemplo-organizacion-laboratorio.
Solicitud
GET [base]/Device?organization=Organization/ejemplo-organizacion-laboratorio HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 1 resultado: Sistema de un laboratorio privado (S2)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Device?organization=Organization/ejemplo-organizacion-laboratorio"
}
],
"entry": [
{
"fullUrl": "[base]/Device/ejemplo-sistema-laboratorio",
"resource": {
"resourceType": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por estado
Forma: GET [base]/Device?status={código}
Filtra por estado: un sistema inactivo está retirado o desconectado del HIE. No se elimina, porque las procedencias y auditorías anteriores lo siguen citando. En el ejemplo se usa el dato de «Sistema de un laboratorio privado (S2)»: status=active.
Solicitud
GET [base]/Device?status=active&_count=2 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 5 resultados, de 2 en 2 con _count; la primera página trae Sistema de un laboratorio privado (S2); Expediente electrónico de un hospital privado
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 5,
"link": [
{
"relation": "self",
"url": "[base]/Device?status=active&_count=2"
},
{
"relation": "next",
"url": "[base]/Device?status=active&_count=2&_offset=2"
}
],
"entry": [
{
"fullUrl": "[base]/Device/ejemplo-sistema-laboratorio",
"resource": {
"resourceType": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "[base]/Device/ejemplo-sistema-hce-hospital",
"resource": {
"resourceType": "Device",
"id": "ejemplo-sistema-hce-hospital",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101123456",
"value": "hce"
}
],
"version": [
{
"value": "7.2.1"
}
],
"type": [
{
"coding": [
{
"code": "hce",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Expediente electrónico"
}
]
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Expediente electrónico del Hospital Privado de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-establecimiento",
"display": "Hospital Privado de Ejemplo"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por identificador, con POST
Forma: POST [base]/Device/_searchcuerpo: identifier={sistema}|{valor}
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 identificador.
Solicitud
POST [base]/Device/_search HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Content-Type: application/x-www-form-urlencoded
identifier=https://hl7.or.cr/fhir/sid/sistema/cj-3101234567|lis-central
Respuesta: 1 resultado: Sistema de un laboratorio privado (S2), igual que con GET
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Device?identifier=https://hl7.or.cr/fhir/sid/sistema/cj-3101234567|lis-central"
}
],
"entry": [
{
"fullUrl": "[base]/Device/ejemplo-sistema-laboratorio",
"resource": {
"resourceType": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
},
"search": {
"mode": "match"
}
}
]
}
Crear
Forma: POST [base]/Device
Registra un sistema de información en el registro de establecimientos. El servidor valida el recurso contra el perfil, le asigna su id y devuelve su dirección. Cada sistema conectado al HIE se registra, para poder referenciarlo en la procedencia y en la auditoría de lo que hace. En el ejemplo se registra «Sistema de un laboratorio privado (S2)»; la segunda respuesta es el rechazo de un recurso que no cumple la invariante cr-sistema-system (El system del identificador es https://hl7.or.cr/fhir/sid/sistema/ seguido del código del establecimiento propietario (cj-, cn- o dimex- y el identificador del titular)).
Solicitud
POST [base]/Device HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Content-Type: application/fhir+json
{
"resourceType": "Device",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
}
Respuesta si se crea
HTTP/1.1 201 Created
Location: [base]/Device/ejemplo-sistema-laboratorio/_history/1
ETag: W/"1"
Last-Modified: 2026-10-01T10:00:00-06:00
Content-Type: application/fhir+json
{
"resourceType": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
}
Respuesta si no cumple el perfil (invariante cr-sistema-system)
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/fhir+json
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invariant",
"diagnostics": "cr-sistema-system: El system del identificador es https://hl7.or.cr/fhir/sid/sistema/ seguido del código del establecimiento propietario (cj-, cn- o dimex- y el identificador del titular).",
"expression": [
"Device.identifier"
]
}
]
}
Actualizar
Forma: PUT [base]/Device/{id}If-Match: W/"{versión}"
Reemplaza un sistema de información con una versión nueva completa, por ejemplo para corregir un dato. If-Match lleva la versión que se leyó: si otro sistema hizo un cambio mientras tanto, el servidor rechaza este, y así nadie pisa el trabajo de otro sin darse cuenta. En el ejemplo se actualiza «Sistema de un laboratorio privado (S2)» sobre su versión 1; la segunda respuesta es el rechazo cuando otra persona ya la había cambiado.
Solicitud
PUT [base]/Device/ejemplo-sistema-laboratorio HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
If-Match: W/"1"
Content-Type: application/fhir+json
{
"resourceType": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
}
Respuesta si se actualiza
HTTP/1.1 200 OK
ETag: W/"2"
Last-Modified: 2026-10-02T08:15:00-06:00
Content-Type: application/fhir+json
{
"resourceType": "Device",
"id": "ejemplo-sistema-laboratorio",
"meta": {
"versionId": "2",
"lastUpdated": "2026-10-02T08:15:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-device-sistema"
]
},
"identifier": [
{
"system": "https://hl7.or.cr/fhir/sid/sistema/cj-3101234567",
"value": "lis-central"
}
],
"name": [
{
"type": "registered-name",
"value": "LabSys"
}
],
"version": [
{
"value": "4.12.0",
"installDate": "2026-08-15T22:00:00-06:00"
}
],
"type": [
{
"coding": [
{
"code": "lis",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-sistema-informacion",
"display": "Sistema de laboratorio"
}
]
}
],
"conformsTo": [
{
"specification": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "https://hl7.or.cr/fhir/core/ImplementationGuide/hl7.fhir.cr.core"
}
]
},
"version": "0.1.0"
}
],
"contact": [
{
"system": "email",
"value": "soporte@laboratorio-ejemplo.cr"
},
{
"system": "phone",
"value": "+50622800099"
}
],
"category": [
{
"coding": [
{
"code": "software",
"system": "http://hl7.org/fhir/device-category"
}
]
}
],
"status": "active",
"displayName": "Sistema de laboratorio del Laboratorio Clínico de Ejemplo",
"manufacturer": "Proveedor de Software de Ejemplo S.A.",
"owner": {
"reference": "Organization/ejemplo-organizacion-laboratorio",
"display": "Laboratorio Clínico de Ejemplo"
}
}
Respuesta si otra persona lo modificó antes (la versión ya no es la 1)
HTTP/1.1 412 Precondition Failed
Content-Type: application/fhir+json
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "conflict",
"diagnostics": "La versión actual de Device/ejemplo-sistema-laboratorio no es la 1: léalo de nuevo y repita el cambio."
}
]
}