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-organization | Versión: 0.1.0 | ||||
| Standards status: Draft | Nombre computable: CROrganization | ||||
Organización que participa en la atención de salud en Costa Rica: establecimientos de salud públicos y privados, aseguradoras, instituciones del Estado y otras organizaciones. Implementa el modelo lógico de la organización.
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..* | Organization | Organización: prestador de servicios de salud, institución, colegio u otra organización Constraints: org-1, cr-org-identificacion, cr-org-tipo-establecimiento, cr-org-facility, cr-org-nivel-atencion-red-publica, cr-org-nivel-atencion-tipo, cr-org-establecimiento-direccion |
![]() ![]() |
?!Σ | 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ΣC | 0..* | Identifier | Cédula jurídica o código de establecimiento Constraints: cr-cedula-juridica-value, cr-codigo-establecimiento-value |
![]() ![]() ![]() |
?!SΣ | 1..1 | code | official si está vigente; old si se conserva solo como histórico Vinculación: IdentifierUse (required) |
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Tipo de identificador (opcional: el system ya lo indica) Vinculación: Tipos de identificación de la organización (required) |
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/cedula-juridica | https://hl7.or.cr/fhir/sid/establecimiento Example General: http://www.acme.com/identifiers/patient |
![]() ![]() ![]() |
SΣC | 1..1 | string | Número sin guiones; el código de establecimiento con su prefijo (cj-, cn-, dimex-) Example General: 123456 |
![]() ![]() |
?!SΣ | 1..1 | boolean | Si la organización está activa |
![]() ![]() |
SΣ | 0..* | CodeableConcept | Categoría, tipo de establecimiento, nivel de atención y marca de establecimiento Slice: Sin orden, Abierto by value:coding.system Vinculación: OrganizationType (example): Used to categorize the organization. |
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Categoría: prov | govt | ins | bus Vinculación: Categoría de organización (extensible) |
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Tipo de establecimiento de salud (Ministerio de Salud) Vinculación: Tipos de establecimiento de salud (required) |
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Nivel de atención: primer-nivel | segundo-nivel | tercer-nivel Vinculación: Niveles de atención (required) |
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Marca de establecimiento de IHE mCSD (facility) Vinculación: OrganizationType (example): Used to categorize the organization. |
![]() ![]() |
SΣC | 1..1 | string | Nombre oficial de la organización Max Length:250 |
![]() ![]() |
S | 0..* | string | Nombre corto o sigla (CCSS, INS) |
![]() ![]() |
SC | 0..* | ExtendedContactDetail | Contacto general de la organización (sin purpose) o de un departamento Constraints: org-3, org-4 |
![]() ![]() ![]() |
SΣC | 0..* | ContactPoint | Teléfono (+506 y 8 dígitos), correo o sitio web Constraints: cr-telefono |
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | work (valor fijo) Vinculación: ContactPointUse (required): Use of contact point. Required Pattern: work |
![]() ![]() ![]() |
SΣ | 0..1 | CRAddress | Dirección de la sede |
![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | (Complex) | Barrio (zona urbana) o poblado (zona rural) URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Sin orden, Abierto by value:url | ||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Nombre del barrio o del poblado Max Length:100 | |
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | work (valor fijo) Vinculación: AddressUse (required): The use of an address (home / work / etc.). Required Pattern: work |
![]() ![]() ![]() ![]() |
Σ | 0..1 | code | physical (valor fijo) Vinculación: AddressType (required): The type of an address (physical / postal). Required Pattern: physical |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Dirección completa, con los nombres (no los códigos) de provincia, cantón y distrito Example General: 137 Nowhere Street, Erewhon 9132 Max Length:250 |
![]() ![]() ![]() ![]() |
SΣ | 0..* | string | Señas (Costa Rica) o calle y número (otro país) This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street Max Length:250 |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Cantón (código de la DTA en Costa Rica) o ciudad Vinculación: Cantones de Costa Rica (preferred): En Costa Rica (CRI), el código de cantón de la DTA es obligatorio y pertenece a la provincia (invariantes cr-direccion-dta y cr-direccion-concordancia). En otro país, texto libre. Example General: Erewhon |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Distrito (código de la DTA en Costa Rica) Vinculación: Distritos de Costa Rica (preferred): En Costa Rica (CRI), el código de distrito de la DTA es obligatorio y pertenece al cantón (invariantes cr-direccion-dta y cr-direccion-concordancia). Example General: Madison |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Provincia (código de la DTA en Costa Rica) o estado, región o departamento Vinculación: Provincias de Costa Rica (preferred): En Costa Rica (CRI), el código de provincia de la DTA es obligatorio (invariantes cr-direccion-dta y cr-direccion-concordancia). En otro país, texto libre. |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Código postal Example General: 9132 |
![]() ![]() ![]() ![]() |
SΣ | 1..1 | string | País, con código ISO 3166-1 alfa-3 (CRI para Costa Rica) Vinculación: Iso316613 (required) |
![]() ![]() |
SΣ | 0..1 | Reference(Organización) | Organización superior (el área de salud de un EBAIS, la CCSS de un hospital) |
![]() ![]() |
S | 0..* | BackboneElement | Permiso o habilitación del Ministerio de Salud |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 1..1 | Identifier | Número de la autorización |
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
![]() ![]() ![]() ![]() |
SΣC | 1..1 | string | Número de la autorización, tal como lo emite la autoridad Example General: 123456 |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | Tipo de autorización (permiso de funcionamiento, habilitación) Vinculación: Tipos de autorización de salud (extensible) |
![]() ![]() ![]() |
S | 0..1 | Period | Vigencia de la autorización |
![]() ![]() ![]() |
S | 1..1 | Reference(Organización) | Institución que emite la autorización (Ministerio de Salud) |
Documentación de este formato | ||||
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-cedula-juridica-value | error | Organization.identifier | Una cédula jurídica (system https://hl7.or.cr/fhir/sid/cedula-juridica) tiene 10 dígitos, sin guiones ni cero inicial. |
system = 'https://hl7.or.cr/fhir/sid/cedula-juridica' implies value.matches('^[1-9][0-9]{9}$')
|
| cr-codigo-establecimiento-value | error | Organization.identifier | Un código de establecimiento (system https://hl7.or.cr/fhir/sid/establecimiento) es cj-, cn- o dimex- seguido del identificador del titular. |
system = 'https://hl7.or.cr/fhir/sid/establecimiento' implies value.matches('^(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-org-establecimiento-direccion | error | Organization | Un establecimiento de salud tiene la dirección de su sede en el contacto general. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() implies contact.where(purpose.empty()).address.exists()
|
| cr-org-facility | error | Organization | Lleva la marca de establecimiento de IHE mCSD (facility) toda organización con tipo de establecimiento, y solo ellas. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() = type.coding.where(system = 'https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types' and code = 'facility').exists()
|
| cr-org-identificacion | error | Organization | Una organización costarricense tiene al menos un identificador vigente, salvo una unidad con organización superior o una organización con dirección fuera de Costa Rica. |
identifier.where(use != 'old').exists() or partOf.exists() or contact.address.where(country != 'CRI').exists()
|
| cr-org-nivel-atencion-red-publica | error | Organization | Un establecimiento de la red pública indica su nivel de atención. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('ebais' | 'sede-ebais' | 'sede-area-salud' | 'pvp' | 'clinica-t1' | 'clinica-t2' | 'clinica-t3' | 'clinica-t4' | 'hospital-nacional-general' | 'hospital-nacional-especializado' | 'hospital-regional' | 'hospital-periferico')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion').exists()
|
| cr-org-nivel-atencion-tipo | error | Organization | El nivel de atención es coherente con el tipo de establecimiento: consultorios, EBAIS y puestos de visita periódica son de primer nivel; las clínicas privadas y las clínicas tipo 4, de segundo o tercer nivel. |
(type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('consultorio-medico' | 'ebais' | 'sede-ebais' | 'pvp')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code != 'primer-nivel').empty()) and (type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('clinica-privada' | 'clinica-t4')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code = 'primer-nivel').empty())
|
| cr-org-tipo-establecimiento | error | Organization | Un prestador de servicios de salud que forma parte de otra organización o que no es institución del Estado indica su tipo de establecimiento. |
(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'prov').exists() and (partOf.exists() or type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'govt').empty())) implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists()
|
| cr-telefono | error | Organization.contact.telecom | 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})?$')))
|
| dom-2 | error | Organization | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Organization | 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 | Organization | 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 | Organization | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Organization | 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()
|
| org-1 | error | Organization | The organization SHALL at least have a name or an identifier, and possibly more than one |
(identifier.count() + name.count()) > 0
|
| org-3 | error | Organization.contact | The telecom of an organization can never be of use 'home' |
telecom.where(use = 'home').empty()
|
| org-4 | error | Organization.contact | The address of an organization can never be of use 'home' |
address.where(use = 'home').empty()
|
Esta estructura se deriva de Organization .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Organization | Organización: prestador de servicios de salud, institución, colegio u otra organización Constraints: cr-org-identificacion, cr-org-tipo-establecimiento, cr-org-facility, cr-org-nivel-atencion-red-publica, cr-org-nivel-atencion-tipo, cr-org-establecimiento-direccion |
![]() ![]() |
SC | 0..* | Identifier | Cédula jurídica o código de establecimiento Constraints: cr-cedula-juridica-value, cr-codigo-establecimiento-value |
![]() ![]() ![]() |
S | 1..1 | code | official si está vigente; old si se conserva solo como histórico Vinculación: IdentifierUse (required) |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Tipo de identificador (opcional: el system ya lo indica) Vinculación: Tipos de identificación de la organización (required) |
![]() ![]() ![]() |
S | 1..1 | uri | https://hl7.or.cr/fhir/sid/cedula-juridica | https://hl7.or.cr/fhir/sid/establecimiento |
![]() ![]() ![]() |
S | 1..1 | string | Número sin guiones; el código de establecimiento con su prefijo (cj-, cn-, dimex-) |
![]() ![]() |
S | 1..1 | boolean | Si la organización está activa |
![]() ![]() |
S | 0..* | CodeableConcept | Categoría, tipo de establecimiento, nivel de atención y marca de establecimiento Slice: Sin orden, Abierto by value:coding.system |
![]() ![]() ![]() |
S | 0..* | CodeableConcept | Categoría: prov | govt | ins | bus Vinculación: Categoría de organización (extensible) |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Required Pattern: http://terminology.hl7.org/CodeSystem/organization-type | |
![]() ![]() ![]() |
S | 0..* | CodeableConcept | Tipo de establecimiento de salud (Ministerio de Salud) Vinculación: Tipos de establecimiento de salud (required) |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Required Pattern: https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud | |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Nivel de atención: primer-nivel | segundo-nivel | tercer-nivel Vinculación: Niveles de atención (required) |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Required Pattern: https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion | |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Marca de establecimiento de IHE mCSD (facility) |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Required Pattern: https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types | |
![]() ![]() ![]() ![]() ![]() |
0..1 | code | facility (valor fijo) Required Pattern: facility | |
![]() ![]() |
S | 1..1 | string | Nombre oficial de la organización Max Length:250 |
![]() ![]() |
S | 0..* | string | Nombre corto o sigla (CCSS, INS) |
![]() ![]() |
S | 0..* | ExtendedContactDetail | Contacto general de la organización (sin purpose) o de un departamento |
![]() ![]() ![]() |
SC | 0..* | ContactPoint | Teléfono (+506 y 8 dígitos), correo o sitio web Constraints: cr-telefono |
![]() ![]() ![]() ![]() |
0..1 | code | work (valor fijo) Required Pattern: work | |
![]() ![]() ![]() |
S | 0..1 | CRAddress | Dirección de la sede |
![]() ![]() ![]() ![]() |
0..1 | code | work (valor fijo) Required Pattern: work | |
![]() ![]() ![]() ![]() |
0..1 | code | physical (valor fijo) Required Pattern: physical | |
![]() ![]() |
S | 0..1 | Reference(Organización) | Organización superior (el área de salud de un EBAIS, la CCSS de un hospital) |
![]() ![]() |
S | 0..* | BackboneElement | Permiso o habilitación del Ministerio de Salud |
![]() ![]() ![]() |
S | 1..1 | Identifier | Número de la autorización |
![]() ![]() ![]() ![]() |
S | 1..1 | string | Número de la autorización, tal como lo emite la autoridad |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | Tipo de autorización (permiso de funcionamiento, habilitación) Vinculación: Tipos de autorización de salud (extensible) |
![]() ![]() ![]() |
S | 0..1 | Period | Vigencia de la autorización |
![]() ![]() ![]() |
S | 1..1 | Reference(Organización) | Institución que emite la autorización (Ministerio de Salud) |
Documentación de este formato | ||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Organization.identifier.use | Base | required | IdentifierUse | 📦5.0.0 | Estándar FHIR |
| Organization.identifier.type | Base | required | Tipos de identificación de la organización | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Organization.type:categoria | Base | extensible | Categoría de organización | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Organization.type:tipoEstablecimiento | Base | required | Tipos de establecimiento de salud | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Organization.type:nivelAtencion | Base | required | Niveles de atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Organization.qualification.code | Base | extensible | Tipos de autorización de salud | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-cedula-juridica-value | error | Organization.identifier | Una cédula jurídica (system https://hl7.or.cr/fhir/sid/cedula-juridica) tiene 10 dígitos, sin guiones ni cero inicial. |
system = 'https://hl7.or.cr/fhir/sid/cedula-juridica' implies value.matches('^[1-9][0-9]{9}$')
|
| cr-codigo-establecimiento-value | error | Organization.identifier | Un código de establecimiento (system https://hl7.or.cr/fhir/sid/establecimiento) es cj-, cn- o dimex- seguido del identificador del titular. |
system = 'https://hl7.or.cr/fhir/sid/establecimiento' implies value.matches('^(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-org-establecimiento-direccion | error | Organization | Un establecimiento de salud tiene la dirección de su sede en el contacto general. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() implies contact.where(purpose.empty()).address.exists()
|
| cr-org-facility | error | Organization | Lleva la marca de establecimiento de IHE mCSD (facility) toda organización con tipo de establecimiento, y solo ellas. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() = type.coding.where(system = 'https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types' and code = 'facility').exists()
|
| cr-org-identificacion | error | Organization | Una organización costarricense tiene al menos un identificador vigente, salvo una unidad con organización superior o una organización con dirección fuera de Costa Rica. |
identifier.where(use != 'old').exists() or partOf.exists() or contact.address.where(country != 'CRI').exists()
|
| cr-org-nivel-atencion-red-publica | error | Organization | Un establecimiento de la red pública indica su nivel de atención. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('ebais' | 'sede-ebais' | 'sede-area-salud' | 'pvp' | 'clinica-t1' | 'clinica-t2' | 'clinica-t3' | 'clinica-t4' | 'hospital-nacional-general' | 'hospital-nacional-especializado' | 'hospital-regional' | 'hospital-periferico')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion').exists()
|
| cr-org-nivel-atencion-tipo | error | Organization | El nivel de atención es coherente con el tipo de establecimiento: consultorios, EBAIS y puestos de visita periódica son de primer nivel; las clínicas privadas y las clínicas tipo 4, de segundo o tercer nivel. |
(type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('consultorio-medico' | 'ebais' | 'sede-ebais' | 'pvp')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code != 'primer-nivel').empty()) and (type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('clinica-privada' | 'clinica-t4')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code = 'primer-nivel').empty())
|
| cr-org-tipo-establecimiento | error | Organization | Un prestador de servicios de salud que forma parte de otra organización o que no es institución del Estado indica su tipo de establecimiento. |
(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'prov').exists() and (partOf.exists() or type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'govt').empty())) implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists()
|
| cr-telefono | error | Organization.contact.telecom | 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..* | Organization | Organización: prestador de servicios de salud, institución, colegio u otra organización Constraints: org-1, cr-org-identificacion, cr-org-tipo-establecimiento, cr-org-facility, cr-org-nivel-atencion-red-publica, cr-org-nivel-atencion-tipo, cr-org-establecimiento-direccion | ||||
![]() ![]() |
Σ | 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ΣC | 0..* | Identifier | Cédula jurídica o código de establecimiento Constraints: cr-cedula-juridica-value, cr-codigo-establecimiento-value | ||||
![]() ![]() ![]() |
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 | code | official si está vigente; old si se conserva solo como histórico Vinculación: IdentifierUse (required) | ||||
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Tipo de identificador (opcional: el system ya lo indica) Vinculación: Tipos de identificación de la organización (required) | ||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/cedula-juridica | https://hl7.or.cr/fhir/sid/establecimiento Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número sin guiones; el código de establecimiento con su prefijo (cj-, cn-, dimex-) 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 | boolean | Si la organización está activa | ||||
![]() ![]() |
SΣ | 0..* | CodeableConcept | Categoría, tipo de establecimiento, nivel de atención y marca de establecimiento Slice: Sin orden, Abierto by value:coding.system Vinculación: OrganizationType (example): Used to categorize the organization. | ||||
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Categoría: prov | govt | ins | bus Vinculación: Categoría de organización (extensible) | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Sistema de códigos del slice (valor fijo) Required Pattern: http://terminology.hl7.org/CodeSystem/organization-type | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||
![]() ![]() ![]() ![]() ![]() |
Σ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..* | CodeableConcept | Tipo de establecimiento de salud (Ministerio de Salud) Vinculación: Tipos de establecimiento de salud (required) | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Sistema de códigos del slice (valor fijo) Required Pattern: https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||
![]() ![]() ![]() ![]() ![]() |
Σ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 | CodeableConcept | Nivel de atención: primer-nivel | segundo-nivel | tercer-nivel Vinculación: Niveles de atención (required) | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Sistema de códigos del slice (valor fijo) Required Pattern: https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||
![]() ![]() ![]() ![]() ![]() |
Σ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 | CodeableConcept | Marca de establecimiento de IHE mCSD (facility) Vinculación: OrganizationType (example): Used to categorize the organization. | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Sistema de códigos del slice (valor fijo) Required Pattern: https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | facility (valor fijo) Required Pattern: facility | ||||
![]() ![]() ![]() ![]() ![]() |
Σ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ΣC | 1..1 | string | Nombre oficial de la organización Max Length:250 | ||||
![]() ![]() |
S | 0..* | string | Nombre corto o sigla (CCSS, INS) | ||||
![]() ![]() |
Σ | 0..1 | markdown | Additional details about the Organization that could be displayed as further information to identify the Organization beyond its name | ||||
![]() ![]() |
SC | 0..* | ExtendedContactDetail | Contacto general de la organización (sin purpose) o de un departamento Constraints: org-3, org-4 | ||||
![]() ![]() ![]() |
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 | CodeableConcept | The type of contact Vinculación: Contact entity type (preferred): The purpose for which an extended contact detail should be used. | ||||
![]() ![]() ![]() |
Σ | 0..* | HumanName | Name of an individual to contact | ||||
![]() ![]() ![]() |
SΣC | 0..* | ContactPoint | Teléfono (+506 y 8 dígitos), correo o sitio web Constraints: cr-telefono | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | phone | fax | email | pager | url | sms | other Vinculación: ContactPointSystem (required): Telecommunications form for contact point. | ||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | The actual contact point details | ||||
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | work (valor fijo) Vinculación: ContactPointUse (required): Use of contact point. Required Pattern: work | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when the contact point was/is in use | ||||
![]() ![]() ![]() |
SΣ | 0..1 | CRAddress | Dirección de la sede | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | (Complex) | Barrio (zona urbana) o poblado (zona rural) URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct | ||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Sin orden, Abierto by value:url | ||||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct" | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Nombre del barrio o del poblado Max Length:100 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | work (valor fijo) Vinculación: AddressUse (required): The use of an address (home / work / etc.). Required Pattern: work | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | code | physical (valor fijo) Vinculación: AddressType (required): The type of an address (physical / postal). Required Pattern: physical | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Dirección completa, con los nombres (no los códigos) de provincia, cantón y distrito Example General: 137 Nowhere Street, Erewhon 9132 Max Length:250 | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..* | string | Señas (Costa Rica) o calle y número (otro país) This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street Max Length:250 | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Cantón (código de la DTA en Costa Rica) o ciudad Vinculación: Cantones de Costa Rica (preferred): En Costa Rica (CRI), el código de cantón de la DTA es obligatorio y pertenece a la provincia (invariantes cr-direccion-dta y cr-direccion-concordancia). En otro país, texto libre. Example General: Erewhon | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Distrito (código de la DTA en Costa Rica) Vinculación: Distritos de Costa Rica (preferred): En Costa Rica (CRI), el código de distrito de la DTA es obligatorio y pertenece al cantón (invariantes cr-direccion-dta y cr-direccion-concordancia). Example General: Madison | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Provincia (código de la DTA en Costa Rica) o estado, región o departamento Vinculación: Provincias de Costa Rica (preferred): En Costa Rica (CRI), el código de provincia de la DTA es obligatorio (invariantes cr-direccion-dta y cr-direccion-concordancia). En otro país, texto libre. | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Código postal Example General: 9132 | ||||
![]() ![]() ![]() ![]() |
SΣ | 1..1 | string | País, con código ISO 3166-1 alfa-3 (CRI para Costa Rica) Vinculación: Iso316613 (required) | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when address was/is in use Example General: {"start":"2010-03-23","end":"2010-07-01"} | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | This contact detail is handled/monitored by a specific organization | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Period that this contact was valid for usage | ||||
![]() ![]() |
SΣ | 0..1 | Reference(Organización) | Organización superior (el área de salud de un EBAIS, la CCSS de un hospital) | ||||
![]() ![]() |
0..* | Reference(Endpoint) | Technical endpoints providing access to services operated for the organization | |||||
![]() ![]() |
S | 0..* | BackboneElement | Permiso o habilitación del Ministerio de Salud | ||||
![]() ![]() ![]() |
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 | Identifier | Número de la autorización | ||||
![]() ![]() ![]() ![]() |
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 | usual | official | temp | secondary | old (If known) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
![]() ![]() ![]() ![]() |
Σ | 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. | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() ![]() |
SΣC | 1..1 | string | Número de la autorización, tal como lo emite la autoridad 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 | CodeableConcept | Tipo de autorización (permiso de funcionamiento, habilitación) Vinculación: Tipos de autorización de salud (extensible) | ||||
![]() ![]() ![]() |
S | 0..1 | Period | Vigencia de la autorización | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Organización) | Institución que emite la autorización (Ministerio de Salud) | ||||
Documentación de este formato | ||||||||
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-cedula-juridica-value | error | Organization.identifier | Una cédula jurídica (system https://hl7.or.cr/fhir/sid/cedula-juridica) tiene 10 dígitos, sin guiones ni cero inicial. |
system = 'https://hl7.or.cr/fhir/sid/cedula-juridica' implies value.matches('^[1-9][0-9]{9}$')
|
| cr-codigo-establecimiento-value | error | Organization.identifier | Un código de establecimiento (system https://hl7.or.cr/fhir/sid/establecimiento) es cj-, cn- o dimex- seguido del identificador del titular. |
system = 'https://hl7.or.cr/fhir/sid/establecimiento' implies value.matches('^(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-org-establecimiento-direccion | error | Organization | Un establecimiento de salud tiene la dirección de su sede en el contacto general. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() implies contact.where(purpose.empty()).address.exists()
|
| cr-org-facility | error | Organization | Lleva la marca de establecimiento de IHE mCSD (facility) toda organización con tipo de establecimiento, y solo ellas. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() = type.coding.where(system = 'https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types' and code = 'facility').exists()
|
| cr-org-identificacion | error | Organization | Una organización costarricense tiene al menos un identificador vigente, salvo una unidad con organización superior o una organización con dirección fuera de Costa Rica. |
identifier.where(use != 'old').exists() or partOf.exists() or contact.address.where(country != 'CRI').exists()
|
| cr-org-nivel-atencion-red-publica | error | Organization | Un establecimiento de la red pública indica su nivel de atención. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('ebais' | 'sede-ebais' | 'sede-area-salud' | 'pvp' | 'clinica-t1' | 'clinica-t2' | 'clinica-t3' | 'clinica-t4' | 'hospital-nacional-general' | 'hospital-nacional-especializado' | 'hospital-regional' | 'hospital-periferico')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion').exists()
|
| cr-org-nivel-atencion-tipo | error | Organization | El nivel de atención es coherente con el tipo de establecimiento: consultorios, EBAIS y puestos de visita periódica son de primer nivel; las clínicas privadas y las clínicas tipo 4, de segundo o tercer nivel. |
(type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('consultorio-medico' | 'ebais' | 'sede-ebais' | 'pvp')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code != 'primer-nivel').empty()) and (type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('clinica-privada' | 'clinica-t4')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code = 'primer-nivel').empty())
|
| cr-org-tipo-establecimiento | error | Organization | Un prestador de servicios de salud que forma parte de otra organización o que no es institución del Estado indica su tipo de establecimiento. |
(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'prov').exists() and (partOf.exists() or type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'govt').empty())) implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists()
|
| cr-telefono | error | Organization.contact.telecom | 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})?$')))
|
| dom-2 | error | Organization | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Organization | 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 | Organization | 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 | Organization | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Organization | 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()
|
| org-1 | error | Organization | The organization SHALL at least have a name or an identifier, and possibly more than one |
(identifier.count() + name.count()) > 0
|
| org-3 | error | Organization.contact | The telecom of an organization can never be of use 'home' |
telecom.where(use = 'home').empty()
|
| org-4 | error | Organization.contact | The address of an organization can never be of use 'home' |
address.where(use = 'home').empty()
|
Esta estructura se deriva de Organization .
Resumen
Obligatorios: 2 elementos(10 nested mandatory elementos)
Must-Support: 23 elementos
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Slices
This structure defines the following Slices:
Vista de elementos clave
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Organization | Organización: prestador de servicios de salud, institución, colegio u otra organización Constraints: org-1, cr-org-identificacion, cr-org-tipo-establecimiento, cr-org-facility, cr-org-nivel-atencion-red-publica, cr-org-nivel-atencion-tipo, cr-org-establecimiento-direccion |
![]() ![]() |
?!Σ | 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ΣC | 0..* | Identifier | Cédula jurídica o código de establecimiento Constraints: cr-cedula-juridica-value, cr-codigo-establecimiento-value |
![]() ![]() ![]() |
?!SΣ | 1..1 | code | official si está vigente; old si se conserva solo como histórico Vinculación: IdentifierUse (required) |
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Tipo de identificador (opcional: el system ya lo indica) Vinculación: Tipos de identificación de la organización (required) |
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/cedula-juridica | https://hl7.or.cr/fhir/sid/establecimiento Example General: http://www.acme.com/identifiers/patient |
![]() ![]() ![]() |
SΣC | 1..1 | string | Número sin guiones; el código de establecimiento con su prefijo (cj-, cn-, dimex-) Example General: 123456 |
![]() ![]() |
?!SΣ | 1..1 | boolean | Si la organización está activa |
![]() ![]() |
SΣ | 0..* | CodeableConcept | Categoría, tipo de establecimiento, nivel de atención y marca de establecimiento Slice: Sin orden, Abierto by value:coding.system Vinculación: OrganizationType (example): Used to categorize the organization. |
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Categoría: prov | govt | ins | bus Vinculación: Categoría de organización (extensible) |
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Tipo de establecimiento de salud (Ministerio de Salud) Vinculación: Tipos de establecimiento de salud (required) |
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Nivel de atención: primer-nivel | segundo-nivel | tercer-nivel Vinculación: Niveles de atención (required) |
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Marca de establecimiento de IHE mCSD (facility) Vinculación: OrganizationType (example): Used to categorize the organization. |
![]() ![]() |
SΣC | 1..1 | string | Nombre oficial de la organización Max Length:250 |
![]() ![]() |
S | 0..* | string | Nombre corto o sigla (CCSS, INS) |
![]() ![]() |
SC | 0..* | ExtendedContactDetail | Contacto general de la organización (sin purpose) o de un departamento Constraints: org-3, org-4 |
![]() ![]() ![]() |
SΣC | 0..* | ContactPoint | Teléfono (+506 y 8 dígitos), correo o sitio web Constraints: cr-telefono |
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | work (valor fijo) Vinculación: ContactPointUse (required): Use of contact point. Required Pattern: work |
![]() ![]() ![]() |
SΣ | 0..1 | CRAddress | Dirección de la sede |
![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | (Complex) | Barrio (zona urbana) o poblado (zona rural) URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Sin orden, Abierto by value:url | ||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Nombre del barrio o del poblado Max Length:100 | |
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | work (valor fijo) Vinculación: AddressUse (required): The use of an address (home / work / etc.). Required Pattern: work |
![]() ![]() ![]() ![]() |
Σ | 0..1 | code | physical (valor fijo) Vinculación: AddressType (required): The type of an address (physical / postal). Required Pattern: physical |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Dirección completa, con los nombres (no los códigos) de provincia, cantón y distrito Example General: 137 Nowhere Street, Erewhon 9132 Max Length:250 |
![]() ![]() ![]() ![]() |
SΣ | 0..* | string | Señas (Costa Rica) o calle y número (otro país) This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street Max Length:250 |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Cantón (código de la DTA en Costa Rica) o ciudad Vinculación: Cantones de Costa Rica (preferred): En Costa Rica (CRI), el código de cantón de la DTA es obligatorio y pertenece a la provincia (invariantes cr-direccion-dta y cr-direccion-concordancia). En otro país, texto libre. Example General: Erewhon |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Distrito (código de la DTA en Costa Rica) Vinculación: Distritos de Costa Rica (preferred): En Costa Rica (CRI), el código de distrito de la DTA es obligatorio y pertenece al cantón (invariantes cr-direccion-dta y cr-direccion-concordancia). Example General: Madison |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Provincia (código de la DTA en Costa Rica) o estado, región o departamento Vinculación: Provincias de Costa Rica (preferred): En Costa Rica (CRI), el código de provincia de la DTA es obligatorio (invariantes cr-direccion-dta y cr-direccion-concordancia). En otro país, texto libre. |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Código postal Example General: 9132 |
![]() ![]() ![]() ![]() |
SΣ | 1..1 | string | País, con código ISO 3166-1 alfa-3 (CRI para Costa Rica) Vinculación: Iso316613 (required) |
![]() ![]() |
SΣ | 0..1 | Reference(Organización) | Organización superior (el área de salud de un EBAIS, la CCSS de un hospital) |
![]() ![]() |
S | 0..* | BackboneElement | Permiso o habilitación del Ministerio de Salud |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 1..1 | Identifier | Número de la autorización |
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
![]() ![]() ![]() ![]() |
SΣC | 1..1 | string | Número de la autorización, tal como lo emite la autoridad Example General: 123456 |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | Tipo de autorización (permiso de funcionamiento, habilitación) Vinculación: Tipos de autorización de salud (extensible) |
![]() ![]() ![]() |
S | 0..1 | Period | Vigencia de la autorización |
![]() ![]() ![]() |
S | 1..1 | Reference(Organización) | Institución que emite la autorización (Ministerio de Salud) |
Documentación de este formato | ||||
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-cedula-juridica-value | error | Organization.identifier | Una cédula jurídica (system https://hl7.or.cr/fhir/sid/cedula-juridica) tiene 10 dígitos, sin guiones ni cero inicial. |
system = 'https://hl7.or.cr/fhir/sid/cedula-juridica' implies value.matches('^[1-9][0-9]{9}$')
|
| cr-codigo-establecimiento-value | error | Organization.identifier | Un código de establecimiento (system https://hl7.or.cr/fhir/sid/establecimiento) es cj-, cn- o dimex- seguido del identificador del titular. |
system = 'https://hl7.or.cr/fhir/sid/establecimiento' implies value.matches('^(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-org-establecimiento-direccion | error | Organization | Un establecimiento de salud tiene la dirección de su sede en el contacto general. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() implies contact.where(purpose.empty()).address.exists()
|
| cr-org-facility | error | Organization | Lleva la marca de establecimiento de IHE mCSD (facility) toda organización con tipo de establecimiento, y solo ellas. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() = type.coding.where(system = 'https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types' and code = 'facility').exists()
|
| cr-org-identificacion | error | Organization | Una organización costarricense tiene al menos un identificador vigente, salvo una unidad con organización superior o una organización con dirección fuera de Costa Rica. |
identifier.where(use != 'old').exists() or partOf.exists() or contact.address.where(country != 'CRI').exists()
|
| cr-org-nivel-atencion-red-publica | error | Organization | Un establecimiento de la red pública indica su nivel de atención. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('ebais' | 'sede-ebais' | 'sede-area-salud' | 'pvp' | 'clinica-t1' | 'clinica-t2' | 'clinica-t3' | 'clinica-t4' | 'hospital-nacional-general' | 'hospital-nacional-especializado' | 'hospital-regional' | 'hospital-periferico')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion').exists()
|
| cr-org-nivel-atencion-tipo | error | Organization | El nivel de atención es coherente con el tipo de establecimiento: consultorios, EBAIS y puestos de visita periódica son de primer nivel; las clínicas privadas y las clínicas tipo 4, de segundo o tercer nivel. |
(type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('consultorio-medico' | 'ebais' | 'sede-ebais' | 'pvp')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code != 'primer-nivel').empty()) and (type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('clinica-privada' | 'clinica-t4')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code = 'primer-nivel').empty())
|
| cr-org-tipo-establecimiento | error | Organization | Un prestador de servicios de salud que forma parte de otra organización o que no es institución del Estado indica su tipo de establecimiento. |
(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'prov').exists() and (partOf.exists() or type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'govt').empty())) implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists()
|
| cr-telefono | error | Organization.contact.telecom | 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})?$')))
|
| dom-2 | error | Organization | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Organization | 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 | Organization | 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 | Organization | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Organization | 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()
|
| org-1 | error | Organization | The organization SHALL at least have a name or an identifier, and possibly more than one |
(identifier.count() + name.count()) > 0
|
| org-3 | error | Organization.contact | The telecom of an organization can never be of use 'home' |
telecom.where(use = 'home').empty()
|
| org-4 | error | Organization.contact | The address of an organization can never be of use 'home' |
address.where(use = 'home').empty()
|
Vista diferencial
Esta estructura se deriva de Organization .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Organization | Organización: prestador de servicios de salud, institución, colegio u otra organización Constraints: cr-org-identificacion, cr-org-tipo-establecimiento, cr-org-facility, cr-org-nivel-atencion-red-publica, cr-org-nivel-atencion-tipo, cr-org-establecimiento-direccion |
![]() ![]() |
SC | 0..* | Identifier | Cédula jurídica o código de establecimiento Constraints: cr-cedula-juridica-value, cr-codigo-establecimiento-value |
![]() ![]() ![]() |
S | 1..1 | code | official si está vigente; old si se conserva solo como histórico Vinculación: IdentifierUse (required) |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Tipo de identificador (opcional: el system ya lo indica) Vinculación: Tipos de identificación de la organización (required) |
![]() ![]() ![]() |
S | 1..1 | uri | https://hl7.or.cr/fhir/sid/cedula-juridica | https://hl7.or.cr/fhir/sid/establecimiento |
![]() ![]() ![]() |
S | 1..1 | string | Número sin guiones; el código de establecimiento con su prefijo (cj-, cn-, dimex-) |
![]() ![]() |
S | 1..1 | boolean | Si la organización está activa |
![]() ![]() |
S | 0..* | CodeableConcept | Categoría, tipo de establecimiento, nivel de atención y marca de establecimiento Slice: Sin orden, Abierto by value:coding.system |
![]() ![]() ![]() |
S | 0..* | CodeableConcept | Categoría: prov | govt | ins | bus Vinculación: Categoría de organización (extensible) |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Required Pattern: http://terminology.hl7.org/CodeSystem/organization-type | |
![]() ![]() ![]() |
S | 0..* | CodeableConcept | Tipo de establecimiento de salud (Ministerio de Salud) Vinculación: Tipos de establecimiento de salud (required) |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Required Pattern: https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud | |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Nivel de atención: primer-nivel | segundo-nivel | tercer-nivel Vinculación: Niveles de atención (required) |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Required Pattern: https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion | |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Marca de establecimiento de IHE mCSD (facility) |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Required Pattern: https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types | |
![]() ![]() ![]() ![]() ![]() |
0..1 | code | facility (valor fijo) Required Pattern: facility | |
![]() ![]() |
S | 1..1 | string | Nombre oficial de la organización Max Length:250 |
![]() ![]() |
S | 0..* | string | Nombre corto o sigla (CCSS, INS) |
![]() ![]() |
S | 0..* | ExtendedContactDetail | Contacto general de la organización (sin purpose) o de un departamento |
![]() ![]() ![]() |
SC | 0..* | ContactPoint | Teléfono (+506 y 8 dígitos), correo o sitio web Constraints: cr-telefono |
![]() ![]() ![]() ![]() |
0..1 | code | work (valor fijo) Required Pattern: work | |
![]() ![]() ![]() |
S | 0..1 | CRAddress | Dirección de la sede |
![]() ![]() ![]() ![]() |
0..1 | code | work (valor fijo) Required Pattern: work | |
![]() ![]() ![]() ![]() |
0..1 | code | physical (valor fijo) Required Pattern: physical | |
![]() ![]() |
S | 0..1 | Reference(Organización) | Organización superior (el área de salud de un EBAIS, la CCSS de un hospital) |
![]() ![]() |
S | 0..* | BackboneElement | Permiso o habilitación del Ministerio de Salud |
![]() ![]() ![]() |
S | 1..1 | Identifier | Número de la autorización |
![]() ![]() ![]() ![]() |
S | 1..1 | string | Número de la autorización, tal como lo emite la autoridad |
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | Tipo de autorización (permiso de funcionamiento, habilitación) Vinculación: Tipos de autorización de salud (extensible) |
![]() ![]() ![]() |
S | 0..1 | Period | Vigencia de la autorización |
![]() ![]() ![]() |
S | 1..1 | Reference(Organización) | Institución que emite la autorización (Ministerio de Salud) |
Documentación de este formato | ||||
| Ruta | Estado | Uso | ValueSet | Versión | Fuente |
| Organization.identifier.use | Base | required | IdentifierUse | 📦5.0.0 | Estándar FHIR |
| Organization.identifier.type | Base | required | Tipos de identificación de la organización | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Organization.type:categoria | Base | extensible | Categoría de organización | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Organization.type:tipoEstablecimiento | Base | required | Tipos de establecimiento de salud | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Organization.type:nivelAtencion | Base | required | Niveles de atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Organization.qualification.code | Base | extensible | Tipos de autorización de salud | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-cedula-juridica-value | error | Organization.identifier | Una cédula jurídica (system https://hl7.or.cr/fhir/sid/cedula-juridica) tiene 10 dígitos, sin guiones ni cero inicial. |
system = 'https://hl7.or.cr/fhir/sid/cedula-juridica' implies value.matches('^[1-9][0-9]{9}$')
|
| cr-codigo-establecimiento-value | error | Organization.identifier | Un código de establecimiento (system https://hl7.or.cr/fhir/sid/establecimiento) es cj-, cn- o dimex- seguido del identificador del titular. |
system = 'https://hl7.or.cr/fhir/sid/establecimiento' implies value.matches('^(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-org-establecimiento-direccion | error | Organization | Un establecimiento de salud tiene la dirección de su sede en el contacto general. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() implies contact.where(purpose.empty()).address.exists()
|
| cr-org-facility | error | Organization | Lleva la marca de establecimiento de IHE mCSD (facility) toda organización con tipo de establecimiento, y solo ellas. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() = type.coding.where(system = 'https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types' and code = 'facility').exists()
|
| cr-org-identificacion | error | Organization | Una organización costarricense tiene al menos un identificador vigente, salvo una unidad con organización superior o una organización con dirección fuera de Costa Rica. |
identifier.where(use != 'old').exists() or partOf.exists() or contact.address.where(country != 'CRI').exists()
|
| cr-org-nivel-atencion-red-publica | error | Organization | Un establecimiento de la red pública indica su nivel de atención. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('ebais' | 'sede-ebais' | 'sede-area-salud' | 'pvp' | 'clinica-t1' | 'clinica-t2' | 'clinica-t3' | 'clinica-t4' | 'hospital-nacional-general' | 'hospital-nacional-especializado' | 'hospital-regional' | 'hospital-periferico')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion').exists()
|
| cr-org-nivel-atencion-tipo | error | Organization | El nivel de atención es coherente con el tipo de establecimiento: consultorios, EBAIS y puestos de visita periódica son de primer nivel; las clínicas privadas y las clínicas tipo 4, de segundo o tercer nivel. |
(type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('consultorio-medico' | 'ebais' | 'sede-ebais' | 'pvp')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code != 'primer-nivel').empty()) and (type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('clinica-privada' | 'clinica-t4')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code = 'primer-nivel').empty())
|
| cr-org-tipo-establecimiento | error | Organization | Un prestador de servicios de salud que forma parte de otra organización o que no es institución del Estado indica su tipo de establecimiento. |
(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'prov').exists() and (partOf.exists() or type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'govt').empty())) implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists()
|
| cr-telefono | error | Organization.contact.telecom | 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..* | Organization | Organización: prestador de servicios de salud, institución, colegio u otra organización Constraints: org-1, cr-org-identificacion, cr-org-tipo-establecimiento, cr-org-facility, cr-org-nivel-atencion-red-publica, cr-org-nivel-atencion-tipo, cr-org-establecimiento-direccion | ||||
![]() ![]() |
Σ | 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ΣC | 0..* | Identifier | Cédula jurídica o código de establecimiento Constraints: cr-cedula-juridica-value, cr-codigo-establecimiento-value | ||||
![]() ![]() ![]() |
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 | code | official si está vigente; old si se conserva solo como histórico Vinculación: IdentifierUse (required) | ||||
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Tipo de identificador (opcional: el system ya lo indica) Vinculación: Tipos de identificación de la organización (required) | ||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/cedula-juridica | https://hl7.or.cr/fhir/sid/establecimiento Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número sin guiones; el código de establecimiento con su prefijo (cj-, cn-, dimex-) 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 | boolean | Si la organización está activa | ||||
![]() ![]() |
SΣ | 0..* | CodeableConcept | Categoría, tipo de establecimiento, nivel de atención y marca de establecimiento Slice: Sin orden, Abierto by value:coding.system Vinculación: OrganizationType (example): Used to categorize the organization. | ||||
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Categoría: prov | govt | ins | bus Vinculación: Categoría de organización (extensible) | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Sistema de códigos del slice (valor fijo) Required Pattern: http://terminology.hl7.org/CodeSystem/organization-type | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||
![]() ![]() ![]() ![]() ![]() |
Σ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..* | CodeableConcept | Tipo de establecimiento de salud (Ministerio de Salud) Vinculación: Tipos de establecimiento de salud (required) | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Sistema de códigos del slice (valor fijo) Required Pattern: https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||
![]() ![]() ![]() ![]() ![]() |
Σ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 | CodeableConcept | Nivel de atención: primer-nivel | segundo-nivel | tercer-nivel Vinculación: Niveles de atención (required) | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Sistema de códigos del slice (valor fijo) Required Pattern: https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||
![]() ![]() ![]() ![]() ![]() |
Σ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 | CodeableConcept | Marca de establecimiento de IHE mCSD (facility) Vinculación: OrganizationType (example): Used to categorize the organization. | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Sistema de códigos del slice (valor fijo) Required Pattern: https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | facility (valor fijo) Required Pattern: facility | ||||
![]() ![]() ![]() ![]() ![]() |
Σ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ΣC | 1..1 | string | Nombre oficial de la organización Max Length:250 | ||||
![]() ![]() |
S | 0..* | string | Nombre corto o sigla (CCSS, INS) | ||||
![]() ![]() |
Σ | 0..1 | markdown | Additional details about the Organization that could be displayed as further information to identify the Organization beyond its name | ||||
![]() ![]() |
SC | 0..* | ExtendedContactDetail | Contacto general de la organización (sin purpose) o de un departamento Constraints: org-3, org-4 | ||||
![]() ![]() ![]() |
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 | CodeableConcept | The type of contact Vinculación: Contact entity type (preferred): The purpose for which an extended contact detail should be used. | ||||
![]() ![]() ![]() |
Σ | 0..* | HumanName | Name of an individual to contact | ||||
![]() ![]() ![]() |
SΣC | 0..* | ContactPoint | Teléfono (+506 y 8 dígitos), correo o sitio web Constraints: cr-telefono | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | phone | fax | email | pager | url | sms | other Vinculación: ContactPointSystem (required): Telecommunications form for contact point. | ||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | The actual contact point details | ||||
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | work (valor fijo) Vinculación: ContactPointUse (required): Use of contact point. Required Pattern: work | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when the contact point was/is in use | ||||
![]() ![]() ![]() |
SΣ | 0..1 | CRAddress | Dirección de la sede | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | (Complex) | Barrio (zona urbana) o poblado (zona rural) URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct | ||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Sin orden, Abierto by value:url | ||||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct" | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Nombre del barrio o del poblado Max Length:100 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | work (valor fijo) Vinculación: AddressUse (required): The use of an address (home / work / etc.). Required Pattern: work | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | code | physical (valor fijo) Vinculación: AddressType (required): The type of an address (physical / postal). Required Pattern: physical | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Dirección completa, con los nombres (no los códigos) de provincia, cantón y distrito Example General: 137 Nowhere Street, Erewhon 9132 Max Length:250 | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..* | string | Señas (Costa Rica) o calle y número (otro país) This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street Max Length:250 | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Cantón (código de la DTA en Costa Rica) o ciudad Vinculación: Cantones de Costa Rica (preferred): En Costa Rica (CRI), el código de cantón de la DTA es obligatorio y pertenece a la provincia (invariantes cr-direccion-dta y cr-direccion-concordancia). En otro país, texto libre. Example General: Erewhon | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Distrito (código de la DTA en Costa Rica) Vinculación: Distritos de Costa Rica (preferred): En Costa Rica (CRI), el código de distrito de la DTA es obligatorio y pertenece al cantón (invariantes cr-direccion-dta y cr-direccion-concordancia). Example General: Madison | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Provincia (código de la DTA en Costa Rica) o estado, región o departamento Vinculación: Provincias de Costa Rica (preferred): En Costa Rica (CRI), el código de provincia de la DTA es obligatorio (invariantes cr-direccion-dta y cr-direccion-concordancia). En otro país, texto libre. | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | string | Código postal Example General: 9132 | ||||
![]() ![]() ![]() ![]() |
SΣ | 1..1 | string | País, con código ISO 3166-1 alfa-3 (CRI para Costa Rica) Vinculación: Iso316613 (required) | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when address was/is in use Example General: {"start":"2010-03-23","end":"2010-07-01"} | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | This contact detail is handled/monitored by a specific organization | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Period that this contact was valid for usage | ||||
![]() ![]() |
SΣ | 0..1 | Reference(Organización) | Organización superior (el área de salud de un EBAIS, la CCSS de un hospital) | ||||
![]() ![]() |
0..* | Reference(Endpoint) | Technical endpoints providing access to services operated for the organization | |||||
![]() ![]() |
S | 0..* | BackboneElement | Permiso o habilitación del Ministerio de Salud | ||||
![]() ![]() ![]() |
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 | Identifier | Número de la autorización | ||||
![]() ![]() ![]() ![]() |
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 | usual | official | temp | secondary | old (If known) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
![]() ![]() ![]() ![]() |
Σ | 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. | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() ![]() |
SΣC | 1..1 | string | Número de la autorización, tal como lo emite la autoridad 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 | CodeableConcept | Tipo de autorización (permiso de funcionamiento, habilitación) Vinculación: Tipos de autorización de salud (extensible) | ||||
![]() ![]() ![]() |
S | 0..1 | Period | Vigencia de la autorización | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Organización) | Institución que emite la autorización (Ministerio de Salud) | ||||
Documentación de este formato | ||||||||
| Id | Nivel | Ruta(s) | Descripción | Expression |
| cr-cedula-juridica-value | error | Organization.identifier | Una cédula jurídica (system https://hl7.or.cr/fhir/sid/cedula-juridica) tiene 10 dígitos, sin guiones ni cero inicial. |
system = 'https://hl7.or.cr/fhir/sid/cedula-juridica' implies value.matches('^[1-9][0-9]{9}$')
|
| cr-codigo-establecimiento-value | error | Organization.identifier | Un código de establecimiento (system https://hl7.or.cr/fhir/sid/establecimiento) es cj-, cn- o dimex- seguido del identificador del titular. |
system = 'https://hl7.or.cr/fhir/sid/establecimiento' implies value.matches('^(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-org-establecimiento-direccion | error | Organization | Un establecimiento de salud tiene la dirección de su sede en el contacto general. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() implies contact.where(purpose.empty()).address.exists()
|
| cr-org-facility | error | Organization | Lleva la marca de establecimiento de IHE mCSD (facility) toda organización con tipo de establecimiento, y solo ellas. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists() = type.coding.where(system = 'https://profiles.ihe.net/ITI/mCSD/CodeSystem/IHE.mCSD.Organization.Location.Types' and code = 'facility').exists()
|
| cr-org-identificacion | error | Organization | Una organización costarricense tiene al menos un identificador vigente, salvo una unidad con organización superior o una organización con dirección fuera de Costa Rica. |
identifier.where(use != 'old').exists() or partOf.exists() or contact.address.where(country != 'CRI').exists()
|
| cr-org-nivel-atencion-red-publica | error | Organization | Un establecimiento de la red pública indica su nivel de atención. |
type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('ebais' | 'sede-ebais' | 'sede-area-salud' | 'pvp' | 'clinica-t1' | 'clinica-t2' | 'clinica-t3' | 'clinica-t4' | 'hospital-nacional-general' | 'hospital-nacional-especializado' | 'hospital-regional' | 'hospital-periferico')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion').exists()
|
| cr-org-nivel-atencion-tipo | error | Organization | El nivel de atención es coherente con el tipo de establecimiento: consultorios, EBAIS y puestos de visita periódica son de primer nivel; las clínicas privadas y las clínicas tipo 4, de segundo o tercer nivel. |
(type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('consultorio-medico' | 'ebais' | 'sede-ebais' | 'pvp')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code != 'primer-nivel').empty()) and (type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud' and code in ('clinica-privada' | 'clinica-t4')).exists() implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion' and code = 'primer-nivel').empty())
|
| cr-org-tipo-establecimiento | error | Organization | Un prestador de servicios de salud que forma parte de otra organización o que no es institución del Estado indica su tipo de establecimiento. |
(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'prov').exists() and (partOf.exists() or type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'govt').empty())) implies type.coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-establecimiento-salud').exists()
|
| cr-telefono | error | Organization.contact.telecom | 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})?$')))
|
| dom-2 | error | Organization | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Organization | 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 | Organization | 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 | Organization | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Organization | 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()
|
| org-1 | error | Organization | The organization SHALL at least have a name or an identifier, and possibly more than one |
(identifier.count() + name.count()) > 0
|
| org-3 | error | Organization.contact | The telecom of an organization can never be of use 'home' |
telecom.where(use = 'home').empty()
|
| org-4 | error | Organization.contact | The address of an organization can never be of use 'home' |
address.where(use = 'home').empty()
|
Esta estructura se deriva de Organization .
Resumen
Obligatorios: 2 elementos(10 nested mandatory elementos)
Must-Support: 23 elementos
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Slices
This structure defines the following Slices:
Otras representaciones de perfil: CSV, Excel, Schematron
Registro de establecimientos. Organizaciones: establecimientos, sus unidades, instituciones, aseguradoras y colegios profesionales.
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 · Historial
Leer
Forma: GET [base]/Organization/{id}
Lee una organizació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 una organización. En el ejemplo se lee «Hospital de la CCSS (O2)»; la segunda respuesta es la de un id que no existe.
Solicitud
GET [base]/Organization/ejemplo-organizacion-hospital-ccss 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": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
}
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 Organization/no-existe."
}
]
}
Buscar por cédula jurídica u otro identificador
Forma: GET [base]/Organization?identifier={sistema}|{valor}
Encuentra una organización por su cédula jurídica o por su código de establecimiento. Es como se valida que una organización existe antes de referenciarla en un documento o en un rol. En el ejemplo se usa el dato de «Establecimiento privado (O3)»: identifier=https://hl7.or.cr/fhir/sid/cedula-juridica|3101123456.
Solicitud
GET [base]/Organization?identifier=https://hl7.or.cr/fhir/sid/cedula-juridica|3101123456 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 1 resultado: Establecimiento privado (O3)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Organization?identifier=https://hl7.or.cr/fhir/sid/cedula-juridica|3101123456"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-establecimiento",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-establecimiento",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"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"
},
"search": {
"mode": "match"
}
}
]
}
Buscar por nombre
Forma: GET [base]/Organization?name={texto}
Busca organizaciones por su nombre o su sigla, por ejemplo para que un usuario elija un establecimiento en una lista. En el ejemplo se usa el dato de «Hospital de la CCSS (O2)»: name=Hospital Regional de Ejemplo.
Solicitud
GET [base]/Organization?name=Hospital Regional de Ejemplo HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 1 resultado: Hospital de la CCSS (O2)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Organization?name=Hospital Regional de Ejemplo"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por tipo
Forma: GET [base]/Organization?type={sistema}|{código}
Busca organizaciones por categoría o por tipo de establecimiento; por ejemplo, todas las que prestan servicios de salud (prov). En el ejemplo se usa el dato de «Hospital de la CCSS (O2)»: type=http://terminology.hl7.org/CodeSystem/organization-type|prov.
Solicitud
GET [base]/Organization?type=http://terminology.hl7.org/CodeSystem/organization-type|prov&_count=2 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 7 resultados, de 2 en 2 con _count; la primera página trae Hospital de la CCSS (O2); Establecimiento privado (O3)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 7,
"link": [
{
"relation": "self",
"url": "[base]/Organization?type=http://terminology.hl7.org/CodeSystem/organization-type|prov&_count=2"
},
{
"relation": "next",
"url": "[base]/Organization?type=http://terminology.hl7.org/CodeSystem/organization-type|prov&_count=2&_offset=2"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "[base]/Organization/ejemplo-establecimiento",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-establecimiento",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"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"
},
"search": {
"mode": "match"
}
}
]
}
Buscar por registro activo
Forma: GET [base]/Organization?active={true o false}
Trae solo los registros activos, que son los que un sistema debe ofrecer al usuario; los inactivos se conservan porque otros datos los siguen citando. En el ejemplo se usa el dato de «Hospital de la CCSS (O2)»: active=true.
Solicitud
GET [base]/Organization?active=true&_count=2 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 10 resultados, de 2 en 2 con _count; la primera página trae Hospital de la CCSS (O2); Establecimiento privado (O3)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 10,
"link": [
{
"relation": "self",
"url": "[base]/Organization?active=true&_count=2"
},
{
"relation": "next",
"url": "[base]/Organization?active=true&_count=2&_offset=2"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "[base]/Organization/ejemplo-establecimiento",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-establecimiento",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"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"
},
"search": {
"mode": "match"
}
}
]
}
Buscar por organización superior
Forma: GET [base]/Organization?partof=Organization/{id}
Trae las organizaciones que dependen de otra; por ejemplo, los hospitales y las áreas de salud de la CCSS. Sirve para recorrer la jerarquía. En el ejemplo se usa el dato de «Hospital de la CCSS (O2)»: partof=Organization/ejemplo-organizacion-ccss.
Solicitud
GET [base]/Organization?partof=Organization/ejemplo-organizacion-ccss HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 2 resultados: Hospital de la CCSS (O2); Área de salud de la CCSS
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "[base]/Organization?partof=Organization/ejemplo-organizacion-ccss"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-area-salud",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-area-salud",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "sede-area-salud",
"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"
}
]
},
{
"coding": [
{
"code": "primer-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Primer nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50622620000"
}
],
"address": {
"line": [
"Frente a la plaza de deportes"
],
"country": "CRI",
"state": "4",
"city": "402",
"district": "40201",
"text": "Frente a la plaza de deportes, Barva, Barva, Heredia"
}
}
],
"active": true,
"name": "Área de Salud de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por provincia
Forma: GET [base]/Organization?address-state={texto}
Trae las organizaciones de una provincia, por su código de la División Territorial Administrativa (DTA). Sirve para reportes y para acotar una búsqueda. En el ejemplo se usa el dato de «Hospital de la CCSS (O2)»: address-state=2.
Solicitud
GET [base]/Organization?address-state=2 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 1 resultado: Hospital de la CCSS (O2)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Organization?address-state=2"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por cantón
Forma: GET [base]/Organization?address-city={texto}
Trae las organizaciones de un cantón, por su código de la DTA. En el ejemplo se usa el dato de «Hospital de la CCSS (O2)»: address-city=201.
Solicitud
GET [base]/Organization?address-city=201 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 1 resultado: Hospital de la CCSS (O2)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Organization?address-city=201"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por distrito
Forma: GET [base]/Organization?address-district={texto}
Trae las organizaciones de un distrito, por su código de la DTA. R5 no trae este parámetro: lo define esta guía. En el ejemplo se usa el dato de «Hospital de la CCSS (O2)»: address-district=20101.
Solicitud
GET [base]/Organization?address-district=20101 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 1 resultado: Hospital de la CCSS (O2)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "[base]/Organization?address-district=20101"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
}
]
}
Buscar por fecha de actualización
Forma: GET [base]/Organization?_lastUpdated={prefijo}{fecha}
Trae las organizaciones que cambiaron desde una fecha. La usa un sistema que guarda una copia del registro para traer solo lo nuevo, en lugar de descargarlo todo. En el ejemplo se piden los cambios desde el 2026-10-01 (prefijo ge: en esa fecha o después).
Solicitud
GET [base]/Organization?_lastUpdated=ge2026-10-01&_count=2 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 10 resultados, de 2 en 2 con _count; la primera página trae Hospital de la CCSS (O2); Establecimiento privado (O3)
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 10,
"link": [
{
"relation": "self",
"url": "[base]/Organization?_lastUpdated=ge2026-10-01&_count=2"
},
{
"relation": "next",
"url": "[base]/Organization?_lastUpdated=ge2026-10-01&_count=2&_offset=2"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "[base]/Organization/ejemplo-establecimiento",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-establecimiento",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"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"
},
"search": {
"mode": "match"
}
}
]
}
Buscar por cédula jurídica u otro identificador, con POST
Forma: POST [base]/Organization/_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 cédula jurídica u otro identificador.
Solicitud
POST [base]/Organization/_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/cedula-juridica|3101123456
Respuesta: 1 resultado: Establecimiento privado (O3), 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]/Organization?identifier=https://hl7.or.cr/fhir/sid/cedula-juridica|3101123456"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-establecimiento",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-establecimiento",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"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"
},
"search": {
"mode": "match"
}
}
]
}
Crear
Forma: POST [base]/Organization
Registra una organización en el registro de establecimientos. El servidor valida el recurso contra el perfil, le asigna su id y devuelve su dirección. Es la alimentación del registro de establecimientos (IHE mCSD ITI-130). En el ejemplo se registra «Hospital de la CCSS (O2)»; la segunda respuesta es el rechazo de un recurso que no cumple la invariante cr-org-identificacion (Una organización costarricense tiene al menos un identificador vigente, salvo una unidad con organización superior o una organización con dirección fuera de Costa Rica).
Solicitud
POST [base]/Organization HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Content-Type: application/fhir+json
{
"resourceType": "Organization",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
}
Respuesta si se crea
HTTP/1.1 201 Created
Location: [base]/Organization/ejemplo-organizacion-hospital-ccss/_history/1
ETag: W/"1"
Last-Modified: 2026-10-01T10:00:00-06:00
Content-Type: application/fhir+json
{
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
}
Respuesta si no cumple el perfil (invariante cr-org-identificacion)
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/fhir+json
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invariant",
"diagnostics": "cr-org-identificacion: Una organización costarricense tiene al menos un identificador vigente, salvo una unidad con organización superior o una organización con dirección fuera de Costa Rica.",
"expression": [
"Organization"
]
}
]
}
Actualizar
Forma: PUT [base]/Organization/{id}If-Match: W/"{versión}"
Reemplaza una organizació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 «Hospital de la CCSS (O2)» sobre su versión 1; la segunda respuesta es el rechazo cuando otra persona ya la había cambiado.
Solicitud
PUT [base]/Organization/ejemplo-organizacion-hospital-ccss HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
If-Match: W/"1"
Content-Type: application/fhir+json
{
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
}
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": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "2",
"lastUpdated": "2026-10-02T08:15:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
}
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 Organization/ejemplo-organizacion-hospital-ccss no es la 1: léalo de nuevo y repita el cambio."
}
]
}
Cambios desde una fecha (IHE mCSD ITI-91)
Forma: GET [base]/Organization/_history?_since={fecha y hora}
Trae las organizaciones que se crearon o cambiaron en el registro de establecimientos desde una fecha y hora. La usa un sistema que guarda una copia del registro para mantenerla al día (IHE mCSD ITI-91). En el ejemplo se piden los cambios desde el 2026-10-01, de 2 en 2.
Solicitud
GET [base]/Organization/_history?_since=2026-10-01T00:00:00-06:00&_count=2 HTTP/1.1
Accept: application/fhir+json
Authorization: Bearer [token]
Respuesta: 10 cambios, de 2 en 2 con _count
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "history",
"total": 10,
"link": [
{
"relation": "self",
"url": "[base]/Organization/_history?_since=2026-10-01T00:00:00-06:00&_count=2"
}
],
"entry": [
{
"fullUrl": "[base]/Organization/ejemplo-organizacion-hospital-ccss",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-organizacion-hospital-ccss",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"profile": [
"https://hl7.or.cr/fhir/core/StructureDefinition/cr-organization"
]
},
"type": [
{
"coding": [
{
"code": "prov",
"system": "http://terminology.hl7.org/CodeSystem/organization-type",
"display": "Healthcare Provider"
}
],
"text": "Prestador de servicios de salud"
},
{
"coding": [
{
"code": "hospital-regional",
"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"
}
]
},
{
"coding": [
{
"code": "segundo-nivel",
"system": "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-nivel-atencion",
"display": "Segundo nivel de atención"
}
]
}
],
"contact": [
{
"telecom": [
{
"system": "phone",
"value": "+50624400000"
}
],
"address": {
"line": [
"Costado norte del parque central"
],
"country": "CRI",
"state": "2",
"city": "201",
"district": "20101",
"text": "Costado norte del parque central, Alajuela, Alajuela, Alajuela"
}
}
],
"active": true,
"name": "Hospital Regional de Ejemplo",
"partOf": {
"reference": "Organization/ejemplo-organizacion-ccss",
"display": "Caja Costarricense de Seguro Social"
}
},
"request": {
"method": "POST",
"url": "Organization"
},
"response": {
"status": "201 Created",
"etag": "W/\"1\""
}
},
{
"fullUrl": "[base]/Organization/ejemplo-establecimiento",
"resource": {
"resourceType": "Organization",
"id": "ejemplo-establecimiento",
"meta": {
"versionId": "1",
"lastUpdated": "2026-10-01T10:00:00-06:00",
"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"
},
"request": {
"method": "POST",
"url": "Organization"
},
"response": {
"status": "201 Created",
"etag": "W/\"1\""
}
}
]
}