Guía de Implementación Core de Costa Rica
0.1.0 - ci-build
Guía de Implementación Core de Costa Rica - Compilación local de desarrollo (v0.1.0), generada con las herramientas de compilación de FHIR (HL7® FHIR® Standard). Vea el directorio de versiones publicadas
| URL oficial: https://hl7.or.cr/fhir/core/StructureDefinition/cr-encounter | Versión: 0.1.0 | ||||
| Standards status: Draft | Nivel de madurez: 0 | Nombre computable: CREncounter | |||
Contacto entre un paciente y un establecimiento de salud en Costa Rica, en el que se le presta uno o varios servicios: consulta externa, emergencias, hospitalización, observación, un estudio o una teleconsulta. Puede registrar uno o varios tipos de servicio para clasificar lo prestado y vincular cada ocurrencia con el directorio cuando exista la oferta correspondiente. Es el contexto de la información clínica. Implementa el modelo lógico de la atenció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..* | Encounter | Atención: contacto entre un paciente y un establecimiento de salud Constraints: cr-identificador-unico, cr-atencion-servicio-contenido, cr-atencion-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-periodo-no-iniciado, cr-atencion-discharge-modalidad, cr-atencion-responsable, cr-atencion-periodos | ||||||
![]() ![]() |
Σ | 0..1 | id | Identificador lógico del recurso | ||||||
![]() ![]() |
Σ | 0..1 | Meta | Metadatos del recurso | ||||||
![]() ![]() |
?!Σ | 0..1 | uri | Reglas que rigen la interpretación del contenido del recurso | ||||||
![]() ![]() |
0..1 | code | Idioma del contenido del recurso Vinculación: AllLanguages (required): Etiqueta de idioma para un lenguaje humano, conforme a IETF BCP 47.
| |||||||
![]() ![]() |
0..1 | Narrative | Resumen narrativo del recurso para su interpretación humana Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos | |||||||
![]() ![]() |
0..* | Resource | Recursos contenidos en línea | |||||||
![]() ![]() |
0..* | Extension | Contenido adicional definido por las implementaciones | |||||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan | ||||||
![]() ![]() |
SΣC | 0..* | Identifier | Número de la atención en el establecimiento Constraints: cr-atencion-system | ||||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | official (valor fijo) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . Patrón requerido: official | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número de la atención en el sistema del establecimiento Constraints: cr-codigo-interno-value Ejemplo General: 123456 Longitud máxima:64 | ||||||
![]() ![]() |
?!SΣ | 1..1 | code | Estado de la atención (encounter-status) Vinculación: EncounterStatus (required): Current state of the encounter. | ||||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR Vinculación: Modalidad de la atención (required) | ||||||
![]() ![]() |
SΣ | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio prestado y, si existe, servicio del directorio Vinculación: Tipos de servicio de salud (extensible) | ||||||
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Tipo de servicio del catálogo de Costa Rica | ||||||
![]() ![]() ![]() |
SΣ | 0..1 | Reference() | Servicio de salud del directorio | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Paciente) | Paciente atendido | ||||||
![]() ![]() |
S | 0..1 | Reference(Atención) | Atención mayor de la que forma parte | ||||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que presta la atención (la unidad más específica) | ||||||
![]() ![]() |
SΣC | 0..* | BackboneElement | Profesionales que participan, con su función Constraints: enc-1, enc-2 | ||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | CodeableConcept | ATND | ADM | DIS | CON Vinculación: Función del profesional en la atención (required) | ||||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo de participación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | Reference(Rol del profesional | Profesional de salud) | Rol del profesional (o el profesional, por su código de colegiado) | ||||||
![]() ![]() |
SC | 0..1 | Period | Periodo real de la atención, con fecha y hora Constraints: cr-atencion-fecha-hora | ||||||
![]() ![]() ![]() |
SΣC | 0..1 | dateTime | Inicio (no futuro) Constraints: cr-atencion-inicio-no-futuro | ||||||
![]() ![]() ![]() |
SΣC | 0..1 | dateTime | Fin (obligatorio en el egreso y la interrupción) | ||||||
![]() ![]() |
S | 0..* | BackboneElement | Ubicaciones donde estuvo el paciente (traslados) | ||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
S | 1..1 | Reference(Ubicación) | Ubicación | ||||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo en esa ubicación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||||
Documentación de este formato | ||||||||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente |
| Encounter.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
| Encounter.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | Estándar FHIR |
| Encounter.status | Base | required | Encounter Status | 📍5.0.0 | Estándar FHIR |
| Encounter.class | Base | required | Modalidad de la atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Encounter.serviceType | Base | extensible | Tipos de servicio de salud | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Encounter.participant.type | Base | required | Función del profesional en la atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-atencion-discharge-modalidad | error | Encounter | Una atención egresada es una hospitalización u observación. |
status = 'discharged' implies class.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('IMP' | 'OBSENC')).exists()
|
| cr-atencion-fecha-hora | error | Encounter.participant.period, Encounter.actualPeriod, Encounter.location.period | Los periodos de la atención llevan fecha y hora, no solo la fecha. |
(start.empty() or start.toString().contains('T')) and (end.empty() or end.toString().contains('T'))
|
| cr-atencion-fin | error | Encounter | Una atención egresada o interrumpida tiene fecha de fin. |
status in ('discharged' | 'discontinued') implies actualPeriod.end.exists()
|
| cr-atencion-fin-completed | warning | Encounter | Una atención finalizada debería tener fecha de fin. |
status = 'completed' implies actualPeriod.end.exists()
|
| cr-atencion-inicio | error | Encounter | Una atención que empezó (en curso, en pausa, egresada, finalizada o interrumpida) tiene fecha de inicio. |
status in ('in-progress' | 'on-hold' | 'discharged' | 'completed' | 'discontinued') implies actualPeriod.start.exists()
|
| cr-atencion-inicio-no-futuro | error | Encounter.actualPeriod.start | La atención no empieza en el futuro. |
$this <= now()
|
| cr-atencion-periodo-no-iniciado | error | Encounter | Una atención planificada o cancelada no tiene periodo real. |
status in ('planned' | 'cancelled') implies actualPeriod.empty()
|
| cr-atencion-periodos | error | Encounter | Los periodos de los profesionales y de las ubicaciones están dentro del periodo de la atención. |
(participant.period | location.period).all((start.empty() or %resource.actualPeriod.start.empty() or start >= %resource.actualPeriod.start) and (end.empty() or %resource.actualPeriod.end.empty() or end <= %resource.actualPeriod.end))
|
| cr-atencion-responsable | warning | Encounter | Una atención finalizada o egresada debería indicar al profesional responsable (ATND). |
status in ('completed' | 'discharged') implies participant.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' and code = 'ATND').exists()).exists()
|
| cr-atencion-servicio-contenido | error | Encounter | Cada tipo de servicio incluye el concepto, la referencia al servicio del directorio o ambos. |
serviceType.all(concept.exists() or reference.exists())
|
| cr-atencion-system | error | Encounter.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/atencion/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/atencion/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-codigo-interno-value | error | Encounter.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-identificador-unico | error | Encounter | No hay dos identificadores con el mismo system y el mismo valor. |
identifier.select(system & '|' & value).isDistinct()
|
| dom-2 | error | Encounter | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Encounter | 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 | Encounter | 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 | Encounter | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | buena práctica | Encounter | 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())
|
| enc-1 | error | Encounter.participant | A type must be provided when no explicit actor is specified |
actor.exists() or type.exists()
|
| enc-2 | error | Encounter.participant | A type cannot be provided for a patient or group participant |
actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Esta estructura se deriva de Encounter .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Encounter | Atención: contacto entre un paciente y un establecimiento de salud Constraints: cr-identificador-unico, cr-atencion-servicio-contenido, cr-atencion-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-periodo-no-iniciado, cr-atencion-discharge-modalidad, cr-atencion-responsable, cr-atencion-periodos | ||||
![]() ![]() |
0..1 | id | Identificador lógico del recurso | |||||
![]() ![]() |
0..1 | Meta | Metadatos del recurso | |||||
![]() ![]() |
0..1 | uri | Reglas que rigen la interpretación del contenido del recurso | |||||
![]() ![]() |
0..1 | code | Idioma del contenido del recurso Vinculación: AllLanguages (required): Etiqueta de idioma para un lenguaje humano, conforme a IETF BCP 47.
| |||||
![]() ![]() |
0..1 | Narrative | Resumen narrativo del recurso para su interpretación humana | |||||
![]() ![]() |
0..* | Resource | Recursos contenidos en línea | |||||
![]() ![]() |
0..* | Extension | Contenido adicional definido por las implementaciones | |||||
![]() ![]() |
0..* | Extension | Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan | |||||
![]() ![]() |
SC | 0..* | Identifier | Número de la atención en el establecimiento Constraints: cr-atencion-system | ||||
![]() ![]() ![]() |
0..1 | code | official (valor fijo) Patrón requerido: official | |||||
![]() ![]() ![]() |
0..0 | Description of identifier | ||||||
![]() ![]() ![]() |
S | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} | ||||
![]() ![]() ![]() |
SC | 1..1 | string | Número de la atención en el sistema del establecimiento Constraints: cr-codigo-interno-value Longitud máxima:64 | ||||
![]() ![]() |
S | 1..1 | code | Estado de la atención (encounter-status) | ||||
![]() ![]() |
S | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR Vinculación: Modalidad de la atención (required) | ||||
![]() ![]() |
S | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio prestado y, si existe, servicio del directorio Vinculación: Tipos de servicio de salud (extensible) | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Tipo de servicio del catálogo de Costa Rica | ||||
![]() ![]() ![]() |
S | 0..1 | Reference() | Servicio de salud del directorio | ||||
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente atendido | ||||
![]() ![]() |
S | 0..1 | Reference(Atención) | Atención mayor de la que forma parte | ||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que presta la atención (la unidad más específica) | ||||
![]() ![]() |
S | 0..* | BackboneElement | Profesionales que participan, con su función | ||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | ATND | ADM | DIS | CON Vinculación: Función del profesional en la atención (required) | ||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo de participación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud) | Rol del profesional (o el profesional, por su código de colegiado) | ||||
![]() ![]() |
SC | 0..1 | Period | Periodo real de la atención, con fecha y hora Constraints: cr-atencion-fecha-hora | ||||
![]() ![]() ![]() |
SC | 0..1 | dateTime | Inicio (no futuro) Constraints: cr-atencion-inicio-no-futuro | ||||
![]() ![]() ![]() |
S | 0..1 | dateTime | Fin (obligatorio en el egreso y la interrupción) | ||||
![]() ![]() |
S | 0..* | BackboneElement | Ubicaciones donde estuvo el paciente (traslados) | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Ubicación) | Ubicación | ||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo en esa ubicación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||
Documentación de este formato | ||||||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente |
| Encounter.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
| Encounter.class | Base | required | Modalidad de la atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Encounter.serviceType | Base | extensible | Tipos de servicio de salud | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Encounter.participant.type | Base | required | Función del profesional en la atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-atencion-discharge-modalidad | error | Encounter | Una atención egresada es una hospitalización u observación. |
status = 'discharged' implies class.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('IMP' | 'OBSENC')).exists()
|
| cr-atencion-fecha-hora | error | Encounter.participant.period, Encounter.actualPeriod, Encounter.location.period | Los periodos de la atención llevan fecha y hora, no solo la fecha. |
(start.empty() or start.toString().contains('T')) and (end.empty() or end.toString().contains('T'))
|
| cr-atencion-fin | error | Encounter | Una atención egresada o interrumpida tiene fecha de fin. |
status in ('discharged' | 'discontinued') implies actualPeriod.end.exists()
|
| cr-atencion-fin-completed | warning | Encounter | Una atención finalizada debería tener fecha de fin. |
status = 'completed' implies actualPeriod.end.exists()
|
| cr-atencion-inicio | error | Encounter | Una atención que empezó (en curso, en pausa, egresada, finalizada o interrumpida) tiene fecha de inicio. |
status in ('in-progress' | 'on-hold' | 'discharged' | 'completed' | 'discontinued') implies actualPeriod.start.exists()
|
| cr-atencion-inicio-no-futuro | error | Encounter.actualPeriod.start | La atención no empieza en el futuro. |
$this <= now()
|
| cr-atencion-periodo-no-iniciado | error | Encounter | Una atención planificada o cancelada no tiene periodo real. |
status in ('planned' | 'cancelled') implies actualPeriod.empty()
|
| cr-atencion-periodos | error | Encounter | Los periodos de los profesionales y de las ubicaciones están dentro del periodo de la atención. |
(participant.period | location.period).all((start.empty() or %resource.actualPeriod.start.empty() or start >= %resource.actualPeriod.start) and (end.empty() or %resource.actualPeriod.end.empty() or end <= %resource.actualPeriod.end))
|
| cr-atencion-responsable | warning | Encounter | Una atención finalizada o egresada debería indicar al profesional responsable (ATND). |
status in ('completed' | 'discharged') implies participant.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' and code = 'ATND').exists()).exists()
|
| cr-atencion-servicio-contenido | error | Encounter | Cada tipo de servicio incluye el concepto, la referencia al servicio del directorio o ambos. |
serviceType.all(concept.exists() or reference.exists())
|
| cr-atencion-system | error | Encounter.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/atencion/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/atencion/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-codigo-interno-value | error | Encounter.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-identificador-unico | error | Encounter | No hay dos identificadores con el mismo system y el mismo valor. |
identifier.select(system & '|' & value).isDistinct()
|
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Encounter | Atención: contacto entre un paciente y un establecimiento de salud Constraints: cr-identificador-unico, cr-atencion-servicio-contenido, cr-atencion-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-periodo-no-iniciado, cr-atencion-discharge-modalidad, cr-atencion-responsable, cr-atencion-periodos | ||||||
![]() ![]() |
Σ | 0..1 | id | Identificador lógico del recurso | ||||||
![]() ![]() |
Σ | 0..1 | Meta | Metadatos del recurso | ||||||
![]() ![]() |
?!Σ | 0..1 | uri | Reglas que rigen la interpretación del contenido del recurso | ||||||
![]() ![]() |
0..1 | code | Idioma del contenido del recurso Vinculación: AllLanguages (required): Etiqueta de idioma para un lenguaje humano, conforme a IETF BCP 47.
| |||||||
![]() ![]() |
0..1 | Narrative | Resumen narrativo del recurso para su interpretación humana Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos | |||||||
![]() ![]() |
0..* | Resource | Recursos contenidos en línea | |||||||
![]() ![]() |
0..* | Extension | Contenido adicional definido por las implementaciones | |||||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan | ||||||
![]() ![]() |
SΣC | 0..* | Identifier | Número de la atención en el establecimiento Constraints: cr-atencion-system | ||||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | official (valor fijo) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . Patrón requerido: official | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número de la atención en el sistema del establecimiento Constraints: cr-codigo-interno-value Ejemplo General: 123456 Longitud máxima:64 | ||||||
![]() ![]() ![]() |
Σ | 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 | code | Estado de la atención (encounter-status) Vinculación: EncounterStatus (required): Current state of the encounter. | ||||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR Vinculación: Modalidad de la atención (required) | ||||||
![]() ![]() |
0..1 | CodeableConcept | Indicates the urgency of the encounter Vinculación: ActPriority (example): Indicates the urgency of the encounter. | |||||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Specific type of encounter (e.g. e-mail consultation, surgical day-care, ...) Vinculación: EncounterType (example): A specific code indicating type of service provided | ||||||
![]() ![]() |
SΣ | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio prestado y, si existe, servicio del directorio Vinculación: Tipos de servicio de salud (extensible) | ||||||
![]() ![]() ![]() |
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 | CodeableConcept | Tipo de servicio del catálogo de Costa Rica | ||||||
![]() ![]() ![]() |
SΣ | 0..1 | Reference() | Servicio de salud del directorio | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Paciente) | Paciente atendido | ||||||
![]() ![]() |
0..1 | CodeableConcept | The current status of the subject in relation to the Encounter Vinculación: EncounterSubjectStatus (example): Current status of the subject within the encounter. | |||||||
![]() ![]() |
Σ | 0..* | Reference(EpisodeOfCare) | Episode(s) of care that this encounter should be recorded against | ||||||
![]() ![]() |
0..* | Reference(CarePlan | DeviceRequest | MedicationRequest | ServiceRequest) | The request that initiated this encounter | |||||||
![]() ![]() |
0..* | Reference(CareTeam) | The group(s) that are allocated to participate in this encounter | |||||||
![]() ![]() |
S | 0..1 | Reference(Atención) | Atención mayor de la que forma parte | ||||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que presta la atención (la unidad más específica) | ||||||
![]() ![]() |
SΣC | 0..* | BackboneElement | Profesionales que participan, con su función Constraints: enc-1, enc-2 | ||||||
![]() ![]() ![]() |
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ΣC | 1..1 | CodeableConcept | ATND | ADM | DIS | CON Vinculación: Función del profesional en la atención (required) | ||||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo de participación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | Reference(Rol del profesional | Profesional de salud) | Rol del profesional (o el profesional, por su código de colegiado) | ||||||
![]() ![]() |
Σ | 0..* | Reference(Appointment) | The appointment that scheduled this encounter | ||||||
![]() ![]() |
0..* | VirtualServiceDetail | Connection details of a virtual service (e.g. conference call) | |||||||
![]() ![]() |
SC | 0..1 | Period | Periodo real de la atención, con fecha y hora Constraints: cr-atencion-fecha-hora | ||||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() |
SΣC | 0..1 | dateTime | Inicio (no futuro) Constraints: cr-atencion-inicio-no-futuro | ||||||
![]() ![]() ![]() |
SΣC | 0..1 | dateTime | Fin (obligatorio en el egreso y la interrupción) | ||||||
![]() ![]() |
0..1 | dateTime | The planned start date/time (or admission date) of the encounter | |||||||
![]() ![]() |
0..1 | dateTime | The planned end date/time (or discharge date) of the encounter | |||||||
![]() ![]() |
0..1 | Duration | Actual quantity of time the encounter lasted (less time absent) | |||||||
![]() ![]() |
Σ | 0..* | BackboneElement | The list of medical reasons that are expected to be addressed during the episode of care | ||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableConcept | What the reason value should be used for/as Vinculación: EncounterReasonUse (example) | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableReference(Condition | DiagnosticReport | Observation | ImmunizationRecommendation | Procedure) | Reason the encounter takes place (core or reference) Vinculación: EncounterReasonCodes (preferred): Reason why the encounter takes place. | ||||||
![]() ![]() |
Σ | 0..* | BackboneElement | The list of diagnosis relevant to this encounter | ||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableReference(Condition) | The diagnosis relevant to the encounter Vinculación: ConditionProblemDiagnosisCodes (example) | ||||||
![]() ![]() ![]() |
0..* | CodeableConcept | Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …) Vinculación: EncounterDiagnosisUse (preferred): The type of diagnosis this condition represents. | |||||||
![]() ![]() |
0..* | Reference(Account) | The set of accounts that may be used for billing for this Encounter | |||||||
![]() ![]() |
0..* | CodeableConcept | Diet preferences reported by the patient Vinculación: EncounterDiet (example): Medical, cultural or ethical food preferences to help with catering requirements. | |||||||
![]() ![]() |
0..* | CodeableConcept | Wheelchair, translator, stretcher, etc Vinculación: SpecialArrangements (preferred): Special arrangements. | |||||||
![]() ![]() |
0..* | CodeableConcept | Special courtesies (VIP, board member) Vinculación: SpecialCourtesy (preferred): Special courtesies. | |||||||
![]() ![]() |
0..1 | BackboneElement | Details about the admission to a healthcare service | |||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
0..1 | Identifier | Pre-admission identifier | |||||||
![]() ![]() ![]() |
0..1 | Reference(Location | Organization) | The location/organization from which the patient came before admission | |||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | From where patient was admitted (physician referral, transfer) Vinculación: AdmitSource (preferred): From where the patient was admitted. | |||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Indicates that the patient is being re-admitted Vinculación: hl7VS-re-admissionIndicator (example): The reason for re-admission of this admission encounter. | |||||||
![]() ![]() ![]() |
0..1 | Reference(Location | Organization) | Location/organization to which the patient is discharged | |||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Category or kind of location after discharge Vinculación: DischargeDisposition (example): Discharge Disposition. | |||||||
![]() ![]() |
S | 0..* | BackboneElement | Ubicaciones donde estuvo el paciente (traslados) | ||||||
![]() ![]() ![]() |
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 | Reference(Ubicación) | Ubicación | ||||||
![]() ![]() ![]() |
0..1 | code | planned | active | reserved | completed Vinculación: EncounterLocationStatus (required): The status of the location. | |||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) Vinculación: LocationForm (example): Physical form of the location. | |||||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo en esa ubicación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||||
Documentación de este formato | ||||||||||
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-atencion-discharge-modalidad | error | Encounter | Una atención egresada es una hospitalización u observación. |
status = 'discharged' implies class.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('IMP' | 'OBSENC')).exists()
|
| cr-atencion-fecha-hora | error | Encounter.participant.period, Encounter.actualPeriod, Encounter.location.period | Los periodos de la atención llevan fecha y hora, no solo la fecha. |
(start.empty() or start.toString().contains('T')) and (end.empty() or end.toString().contains('T'))
|
| cr-atencion-fin | error | Encounter | Una atención egresada o interrumpida tiene fecha de fin. |
status in ('discharged' | 'discontinued') implies actualPeriod.end.exists()
|
| cr-atencion-fin-completed | warning | Encounter | Una atención finalizada debería tener fecha de fin. |
status = 'completed' implies actualPeriod.end.exists()
|
| cr-atencion-inicio | error | Encounter | Una atención que empezó (en curso, en pausa, egresada, finalizada o interrumpida) tiene fecha de inicio. |
status in ('in-progress' | 'on-hold' | 'discharged' | 'completed' | 'discontinued') implies actualPeriod.start.exists()
|
| cr-atencion-inicio-no-futuro | error | Encounter.actualPeriod.start | La atención no empieza en el futuro. |
$this <= now()
|
| cr-atencion-periodo-no-iniciado | error | Encounter | Una atención planificada o cancelada no tiene periodo real. |
status in ('planned' | 'cancelled') implies actualPeriod.empty()
|
| cr-atencion-periodos | error | Encounter | Los periodos de los profesionales y de las ubicaciones están dentro del periodo de la atención. |
(participant.period | location.period).all((start.empty() or %resource.actualPeriod.start.empty() or start >= %resource.actualPeriod.start) and (end.empty() or %resource.actualPeriod.end.empty() or end <= %resource.actualPeriod.end))
|
| cr-atencion-responsable | warning | Encounter | Una atención finalizada o egresada debería indicar al profesional responsable (ATND). |
status in ('completed' | 'discharged') implies participant.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' and code = 'ATND').exists()).exists()
|
| cr-atencion-servicio-contenido | error | Encounter | Cada tipo de servicio incluye el concepto, la referencia al servicio del directorio o ambos. |
serviceType.all(concept.exists() or reference.exists())
|
| cr-atencion-system | error | Encounter.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/atencion/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/atencion/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-codigo-interno-value | error | Encounter.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-identificador-unico | error | Encounter | No hay dos identificadores con el mismo system y el mismo valor. |
identifier.select(system & '|' & value).isDistinct()
|
| dom-2 | error | Encounter | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Encounter | 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 | Encounter | 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 | Encounter | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | buena práctica | Encounter | 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())
|
| enc-1 | error | Encounter.participant | A type must be provided when no explicit actor is specified |
actor.exists() or type.exists()
|
| enc-2 | error | Encounter.participant | A type cannot be provided for a patient or group participant |
actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Esta estructura se deriva de Encounter .
Resumen
Obligatorios: 3 elementos(4 nested mandatory elementos)
Debe dar soporte a: 21 elementos
Prohibidos: 1 elemento
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Maturity: 0
Vista de elementos clave
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Encounter | Atención: contacto entre un paciente y un establecimiento de salud Constraints: cr-identificador-unico, cr-atencion-servicio-contenido, cr-atencion-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-periodo-no-iniciado, cr-atencion-discharge-modalidad, cr-atencion-responsable, cr-atencion-periodos | ||||||
![]() ![]() |
Σ | 0..1 | id | Identificador lógico del recurso | ||||||
![]() ![]() |
Σ | 0..1 | Meta | Metadatos del recurso | ||||||
![]() ![]() |
?!Σ | 0..1 | uri | Reglas que rigen la interpretación del contenido del recurso | ||||||
![]() ![]() |
0..1 | code | Idioma del contenido del recurso Vinculación: AllLanguages (required): Etiqueta de idioma para un lenguaje humano, conforme a IETF BCP 47.
| |||||||
![]() ![]() |
0..1 | Narrative | Resumen narrativo del recurso para su interpretación humana Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos | |||||||
![]() ![]() |
0..* | Resource | Recursos contenidos en línea | |||||||
![]() ![]() |
0..* | Extension | Contenido adicional definido por las implementaciones | |||||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan | ||||||
![]() ![]() |
SΣC | 0..* | Identifier | Número de la atención en el establecimiento Constraints: cr-atencion-system | ||||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | official (valor fijo) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . Patrón requerido: official | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número de la atención en el sistema del establecimiento Constraints: cr-codigo-interno-value Ejemplo General: 123456 Longitud máxima:64 | ||||||
![]() ![]() |
?!SΣ | 1..1 | code | Estado de la atención (encounter-status) Vinculación: EncounterStatus (required): Current state of the encounter. | ||||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR Vinculación: Modalidad de la atención (required) | ||||||
![]() ![]() |
SΣ | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio prestado y, si existe, servicio del directorio Vinculación: Tipos de servicio de salud (extensible) | ||||||
![]() ![]() ![]() |
SΣ | 0..1 | CodeableConcept | Tipo de servicio del catálogo de Costa Rica | ||||||
![]() ![]() ![]() |
SΣ | 0..1 | Reference() | Servicio de salud del directorio | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Paciente) | Paciente atendido | ||||||
![]() ![]() |
S | 0..1 | Reference(Atención) | Atención mayor de la que forma parte | ||||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que presta la atención (la unidad más específica) | ||||||
![]() ![]() |
SΣC | 0..* | BackboneElement | Profesionales que participan, con su función Constraints: enc-1, enc-2 | ||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | CodeableConcept | ATND | ADM | DIS | CON Vinculación: Función del profesional en la atención (required) | ||||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo de participación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | Reference(Rol del profesional | Profesional de salud) | Rol del profesional (o el profesional, por su código de colegiado) | ||||||
![]() ![]() |
SC | 0..1 | Period | Periodo real de la atención, con fecha y hora Constraints: cr-atencion-fecha-hora | ||||||
![]() ![]() ![]() |
SΣC | 0..1 | dateTime | Inicio (no futuro) Constraints: cr-atencion-inicio-no-futuro | ||||||
![]() ![]() ![]() |
SΣC | 0..1 | dateTime | Fin (obligatorio en el egreso y la interrupción) | ||||||
![]() ![]() |
S | 0..* | BackboneElement | Ubicaciones donde estuvo el paciente (traslados) | ||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
S | 1..1 | Reference(Ubicación) | Ubicación | ||||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo en esa ubicación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||||
Documentación de este formato | ||||||||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente |
| Encounter.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
| Encounter.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | Estándar FHIR |
| Encounter.status | Base | required | Encounter Status | 📍5.0.0 | Estándar FHIR |
| Encounter.class | Base | required | Modalidad de la atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Encounter.serviceType | Base | extensible | Tipos de servicio de salud | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Encounter.participant.type | Base | required | Función del profesional en la atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-atencion-discharge-modalidad | error | Encounter | Una atención egresada es una hospitalización u observación. |
status = 'discharged' implies class.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('IMP' | 'OBSENC')).exists()
|
| cr-atencion-fecha-hora | error | Encounter.participant.period, Encounter.actualPeriod, Encounter.location.period | Los periodos de la atención llevan fecha y hora, no solo la fecha. |
(start.empty() or start.toString().contains('T')) and (end.empty() or end.toString().contains('T'))
|
| cr-atencion-fin | error | Encounter | Una atención egresada o interrumpida tiene fecha de fin. |
status in ('discharged' | 'discontinued') implies actualPeriod.end.exists()
|
| cr-atencion-fin-completed | warning | Encounter | Una atención finalizada debería tener fecha de fin. |
status = 'completed' implies actualPeriod.end.exists()
|
| cr-atencion-inicio | error | Encounter | Una atención que empezó (en curso, en pausa, egresada, finalizada o interrumpida) tiene fecha de inicio. |
status in ('in-progress' | 'on-hold' | 'discharged' | 'completed' | 'discontinued') implies actualPeriod.start.exists()
|
| cr-atencion-inicio-no-futuro | error | Encounter.actualPeriod.start | La atención no empieza en el futuro. |
$this <= now()
|
| cr-atencion-periodo-no-iniciado | error | Encounter | Una atención planificada o cancelada no tiene periodo real. |
status in ('planned' | 'cancelled') implies actualPeriod.empty()
|
| cr-atencion-periodos | error | Encounter | Los periodos de los profesionales y de las ubicaciones están dentro del periodo de la atención. |
(participant.period | location.period).all((start.empty() or %resource.actualPeriod.start.empty() or start >= %resource.actualPeriod.start) and (end.empty() or %resource.actualPeriod.end.empty() or end <= %resource.actualPeriod.end))
|
| cr-atencion-responsable | warning | Encounter | Una atención finalizada o egresada debería indicar al profesional responsable (ATND). |
status in ('completed' | 'discharged') implies participant.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' and code = 'ATND').exists()).exists()
|
| cr-atencion-servicio-contenido | error | Encounter | Cada tipo de servicio incluye el concepto, la referencia al servicio del directorio o ambos. |
serviceType.all(concept.exists() or reference.exists())
|
| cr-atencion-system | error | Encounter.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/atencion/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/atencion/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-codigo-interno-value | error | Encounter.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-identificador-unico | error | Encounter | No hay dos identificadores con el mismo system y el mismo valor. |
identifier.select(system & '|' & value).isDistinct()
|
| dom-2 | error | Encounter | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Encounter | 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 | Encounter | 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 | Encounter | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | buena práctica | Encounter | 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())
|
| enc-1 | error | Encounter.participant | A type must be provided when no explicit actor is specified |
actor.exists() or type.exists()
|
| enc-2 | error | Encounter.participant | A type cannot be provided for a patient or group participant |
actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Vista diferencial
Esta estructura se deriva de Encounter .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Encounter | Atención: contacto entre un paciente y un establecimiento de salud Constraints: cr-identificador-unico, cr-atencion-servicio-contenido, cr-atencion-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-periodo-no-iniciado, cr-atencion-discharge-modalidad, cr-atencion-responsable, cr-atencion-periodos | ||||
![]() ![]() |
0..1 | id | Identificador lógico del recurso | |||||
![]() ![]() |
0..1 | Meta | Metadatos del recurso | |||||
![]() ![]() |
0..1 | uri | Reglas que rigen la interpretación del contenido del recurso | |||||
![]() ![]() |
0..1 | code | Idioma del contenido del recurso Vinculación: AllLanguages (required): Etiqueta de idioma para un lenguaje humano, conforme a IETF BCP 47.
| |||||
![]() ![]() |
0..1 | Narrative | Resumen narrativo del recurso para su interpretación humana | |||||
![]() ![]() |
0..* | Resource | Recursos contenidos en línea | |||||
![]() ![]() |
0..* | Extension | Contenido adicional definido por las implementaciones | |||||
![]() ![]() |
0..* | Extension | Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan | |||||
![]() ![]() |
SC | 0..* | Identifier | Número de la atención en el establecimiento Constraints: cr-atencion-system | ||||
![]() ![]() ![]() |
0..1 | code | official (valor fijo) Patrón requerido: official | |||||
![]() ![]() ![]() |
0..0 | Description of identifier | ||||||
![]() ![]() ![]() |
S | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} | ||||
![]() ![]() ![]() |
SC | 1..1 | string | Número de la atención en el sistema del establecimiento Constraints: cr-codigo-interno-value Longitud máxima:64 | ||||
![]() ![]() |
S | 1..1 | code | Estado de la atención (encounter-status) | ||||
![]() ![]() |
S | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR Vinculación: Modalidad de la atención (required) | ||||
![]() ![]() |
S | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio prestado y, si existe, servicio del directorio Vinculación: Tipos de servicio de salud (extensible) | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Tipo de servicio del catálogo de Costa Rica | ||||
![]() ![]() ![]() |
S | 0..1 | Reference() | Servicio de salud del directorio | ||||
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente atendido | ||||
![]() ![]() |
S | 0..1 | Reference(Atención) | Atención mayor de la que forma parte | ||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que presta la atención (la unidad más específica) | ||||
![]() ![]() |
S | 0..* | BackboneElement | Profesionales que participan, con su función | ||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | ATND | ADM | DIS | CON Vinculación: Función del profesional en la atención (required) | ||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo de participación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud) | Rol del profesional (o el profesional, por su código de colegiado) | ||||
![]() ![]() |
SC | 0..1 | Period | Periodo real de la atención, con fecha y hora Constraints: cr-atencion-fecha-hora | ||||
![]() ![]() ![]() |
SC | 0..1 | dateTime | Inicio (no futuro) Constraints: cr-atencion-inicio-no-futuro | ||||
![]() ![]() ![]() |
S | 0..1 | dateTime | Fin (obligatorio en el egreso y la interrupción) | ||||
![]() ![]() |
S | 0..* | BackboneElement | Ubicaciones donde estuvo el paciente (traslados) | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Ubicación) | Ubicación | ||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo en esa ubicación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||
Documentación de este formato | ||||||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente |
| Encounter.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
| Encounter.class | Base | required | Modalidad de la atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Encounter.serviceType | Base | extensible | Tipos de servicio de salud | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Encounter.participant.type | Base | required | Función del profesional en la atención | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-atencion-discharge-modalidad | error | Encounter | Una atención egresada es una hospitalización u observación. |
status = 'discharged' implies class.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('IMP' | 'OBSENC')).exists()
|
| cr-atencion-fecha-hora | error | Encounter.participant.period, Encounter.actualPeriod, Encounter.location.period | Los periodos de la atención llevan fecha y hora, no solo la fecha. |
(start.empty() or start.toString().contains('T')) and (end.empty() or end.toString().contains('T'))
|
| cr-atencion-fin | error | Encounter | Una atención egresada o interrumpida tiene fecha de fin. |
status in ('discharged' | 'discontinued') implies actualPeriod.end.exists()
|
| cr-atencion-fin-completed | warning | Encounter | Una atención finalizada debería tener fecha de fin. |
status = 'completed' implies actualPeriod.end.exists()
|
| cr-atencion-inicio | error | Encounter | Una atención que empezó (en curso, en pausa, egresada, finalizada o interrumpida) tiene fecha de inicio. |
status in ('in-progress' | 'on-hold' | 'discharged' | 'completed' | 'discontinued') implies actualPeriod.start.exists()
|
| cr-atencion-inicio-no-futuro | error | Encounter.actualPeriod.start | La atención no empieza en el futuro. |
$this <= now()
|
| cr-atencion-periodo-no-iniciado | error | Encounter | Una atención planificada o cancelada no tiene periodo real. |
status in ('planned' | 'cancelled') implies actualPeriod.empty()
|
| cr-atencion-periodos | error | Encounter | Los periodos de los profesionales y de las ubicaciones están dentro del periodo de la atención. |
(participant.period | location.period).all((start.empty() or %resource.actualPeriod.start.empty() or start >= %resource.actualPeriod.start) and (end.empty() or %resource.actualPeriod.end.empty() or end <= %resource.actualPeriod.end))
|
| cr-atencion-responsable | warning | Encounter | Una atención finalizada o egresada debería indicar al profesional responsable (ATND). |
status in ('completed' | 'discharged') implies participant.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' and code = 'ATND').exists()).exists()
|
| cr-atencion-servicio-contenido | error | Encounter | Cada tipo de servicio incluye el concepto, la referencia al servicio del directorio o ambos. |
serviceType.all(concept.exists() or reference.exists())
|
| cr-atencion-system | error | Encounter.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/atencion/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/atencion/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-codigo-interno-value | error | Encounter.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-identificador-unico | error | Encounter | No hay dos identificadores con el mismo system y el mismo valor. |
identifier.select(system & '|' & value).isDistinct()
|
Vista instantáneaView
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Encounter | Atención: contacto entre un paciente y un establecimiento de salud Constraints: cr-identificador-unico, cr-atencion-servicio-contenido, cr-atencion-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-periodo-no-iniciado, cr-atencion-discharge-modalidad, cr-atencion-responsable, cr-atencion-periodos | ||||||
![]() ![]() |
Σ | 0..1 | id | Identificador lógico del recurso | ||||||
![]() ![]() |
Σ | 0..1 | Meta | Metadatos del recurso | ||||||
![]() ![]() |
?!Σ | 0..1 | uri | Reglas que rigen la interpretación del contenido del recurso | ||||||
![]() ![]() |
0..1 | code | Idioma del contenido del recurso Vinculación: AllLanguages (required): Etiqueta de idioma para un lenguaje humano, conforme a IETF BCP 47.
| |||||||
![]() ![]() |
0..1 | Narrative | Resumen narrativo del recurso para su interpretación humana Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos | |||||||
![]() ![]() |
0..* | Resource | Recursos contenidos en línea | |||||||
![]() ![]() |
0..* | Extension | Contenido adicional definido por las implementaciones | |||||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan | ||||||
![]() ![]() |
SΣC | 0..* | Identifier | Número de la atención en el establecimiento Constraints: cr-atencion-system | ||||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | official (valor fijo) Vinculación: IdentifierUse (required): Identifies the purpose for this identifier, if known . Patrón requerido: official | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número de la atención en el sistema del establecimiento Constraints: cr-codigo-interno-value Ejemplo General: 123456 Longitud máxima:64 | ||||||
![]() ![]() ![]() |
Σ | 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 | code | Estado de la atención (encounter-status) Vinculación: EncounterStatus (required): Current state of the encounter. | ||||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR Vinculación: Modalidad de la atención (required) | ||||||
![]() ![]() |
0..1 | CodeableConcept | Indicates the urgency of the encounter Vinculación: ActPriority (example): Indicates the urgency of the encounter. | |||||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Specific type of encounter (e.g. e-mail consultation, surgical day-care, ...) Vinculación: EncounterType (example): A specific code indicating type of service provided | ||||||
![]() ![]() |
SΣ | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio prestado y, si existe, servicio del directorio Vinculación: Tipos de servicio de salud (extensible) | ||||||
![]() ![]() ![]() |
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 | CodeableConcept | Tipo de servicio del catálogo de Costa Rica | ||||||
![]() ![]() ![]() |
SΣ | 0..1 | Reference() | Servicio de salud del directorio | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Paciente) | Paciente atendido | ||||||
![]() ![]() |
0..1 | CodeableConcept | The current status of the subject in relation to the Encounter Vinculación: EncounterSubjectStatus (example): Current status of the subject within the encounter. | |||||||
![]() ![]() |
Σ | 0..* | Reference(EpisodeOfCare) | Episode(s) of care that this encounter should be recorded against | ||||||
![]() ![]() |
0..* | Reference(CarePlan | DeviceRequest | MedicationRequest | ServiceRequest) | The request that initiated this encounter | |||||||
![]() ![]() |
0..* | Reference(CareTeam) | The group(s) that are allocated to participate in this encounter | |||||||
![]() ![]() |
S | 0..1 | Reference(Atención) | Atención mayor de la que forma parte | ||||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Organización que presta la atención (la unidad más específica) | ||||||
![]() ![]() |
SΣC | 0..* | BackboneElement | Profesionales que participan, con su función Constraints: enc-1, enc-2 | ||||||
![]() ![]() ![]() |
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ΣC | 1..1 | CodeableConcept | ATND | ADM | DIS | CON Vinculación: Función del profesional en la atención (required) | ||||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo de participación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | Reference(Rol del profesional | Profesional de salud) | Rol del profesional (o el profesional, por su código de colegiado) | ||||||
![]() ![]() |
Σ | 0..* | Reference(Appointment) | The appointment that scheduled this encounter | ||||||
![]() ![]() |
0..* | VirtualServiceDetail | Connection details of a virtual service (e.g. conference call) | |||||||
![]() ![]() |
SC | 0..1 | Period | Periodo real de la atención, con fecha y hora Constraints: cr-atencion-fecha-hora | ||||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() |
SΣC | 0..1 | dateTime | Inicio (no futuro) Constraints: cr-atencion-inicio-no-futuro | ||||||
![]() ![]() ![]() |
SΣC | 0..1 | dateTime | Fin (obligatorio en el egreso y la interrupción) | ||||||
![]() ![]() |
0..1 | dateTime | The planned start date/time (or admission date) of the encounter | |||||||
![]() ![]() |
0..1 | dateTime | The planned end date/time (or discharge date) of the encounter | |||||||
![]() ![]() |
0..1 | Duration | Actual quantity of time the encounter lasted (less time absent) | |||||||
![]() ![]() |
Σ | 0..* | BackboneElement | The list of medical reasons that are expected to be addressed during the episode of care | ||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableConcept | What the reason value should be used for/as Vinculación: EncounterReasonUse (example) | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableReference(Condition | DiagnosticReport | Observation | ImmunizationRecommendation | Procedure) | Reason the encounter takes place (core or reference) Vinculación: EncounterReasonCodes (preferred): Reason why the encounter takes place. | ||||||
![]() ![]() |
Σ | 0..* | BackboneElement | The list of diagnosis relevant to this encounter | ||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableReference(Condition) | The diagnosis relevant to the encounter Vinculación: ConditionProblemDiagnosisCodes (example) | ||||||
![]() ![]() ![]() |
0..* | CodeableConcept | Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …) Vinculación: EncounterDiagnosisUse (preferred): The type of diagnosis this condition represents. | |||||||
![]() ![]() |
0..* | Reference(Account) | The set of accounts that may be used for billing for this Encounter | |||||||
![]() ![]() |
0..* | CodeableConcept | Diet preferences reported by the patient Vinculación: EncounterDiet (example): Medical, cultural or ethical food preferences to help with catering requirements. | |||||||
![]() ![]() |
0..* | CodeableConcept | Wheelchair, translator, stretcher, etc Vinculación: SpecialArrangements (preferred): Special arrangements. | |||||||
![]() ![]() |
0..* | CodeableConcept | Special courtesies (VIP, board member) Vinculación: SpecialCourtesy (preferred): Special courtesies. | |||||||
![]() ![]() |
0..1 | BackboneElement | Details about the admission to a healthcare service | |||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
0..1 | Identifier | Pre-admission identifier | |||||||
![]() ![]() ![]() |
0..1 | Reference(Location | Organization) | The location/organization from which the patient came before admission | |||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | From where patient was admitted (physician referral, transfer) Vinculación: AdmitSource (preferred): From where the patient was admitted. | |||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Indicates that the patient is being re-admitted Vinculación: hl7VS-re-admissionIndicator (example): The reason for re-admission of this admission encounter. | |||||||
![]() ![]() ![]() |
0..1 | Reference(Location | Organization) | Location/organization to which the patient is discharged | |||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Category or kind of location after discharge Vinculación: DischargeDisposition (example): Discharge Disposition. | |||||||
![]() ![]() |
S | 0..* | BackboneElement | Ubicaciones donde estuvo el paciente (traslados) | ||||||
![]() ![]() ![]() |
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 | Reference(Ubicación) | Ubicación | ||||||
![]() ![]() ![]() |
0..1 | code | planned | active | reserved | completed Vinculación: EncounterLocationStatus (required): The status of the location. | |||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) Vinculación: LocationForm (example): Physical form of the location. | |||||||
![]() ![]() ![]() |
SC | 0..1 | Period | Periodo en esa ubicación, dentro del de la atención Constraints: cr-atencion-fecha-hora | ||||||
Documentación de este formato | ||||||||||
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-atencion-discharge-modalidad | error | Encounter | Una atención egresada es una hospitalización u observación. |
status = 'discharged' implies class.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('IMP' | 'OBSENC')).exists()
|
| cr-atencion-fecha-hora | error | Encounter.participant.period, Encounter.actualPeriod, Encounter.location.period | Los periodos de la atención llevan fecha y hora, no solo la fecha. |
(start.empty() or start.toString().contains('T')) and (end.empty() or end.toString().contains('T'))
|
| cr-atencion-fin | error | Encounter | Una atención egresada o interrumpida tiene fecha de fin. |
status in ('discharged' | 'discontinued') implies actualPeriod.end.exists()
|
| cr-atencion-fin-completed | warning | Encounter | Una atención finalizada debería tener fecha de fin. |
status = 'completed' implies actualPeriod.end.exists()
|
| cr-atencion-inicio | error | Encounter | Una atención que empezó (en curso, en pausa, egresada, finalizada o interrumpida) tiene fecha de inicio. |
status in ('in-progress' | 'on-hold' | 'discharged' | 'completed' | 'discontinued') implies actualPeriod.start.exists()
|
| cr-atencion-inicio-no-futuro | error | Encounter.actualPeriod.start | La atención no empieza en el futuro. |
$this <= now()
|
| cr-atencion-periodo-no-iniciado | error | Encounter | Una atención planificada o cancelada no tiene periodo real. |
status in ('planned' | 'cancelled') implies actualPeriod.empty()
|
| cr-atencion-periodos | error | Encounter | Los periodos de los profesionales y de las ubicaciones están dentro del periodo de la atención. |
(participant.period | location.period).all((start.empty() or %resource.actualPeriod.start.empty() or start >= %resource.actualPeriod.start) and (end.empty() or %resource.actualPeriod.end.empty() or end <= %resource.actualPeriod.end))
|
| cr-atencion-responsable | warning | Encounter | Una atención finalizada o egresada debería indicar al profesional responsable (ATND). |
status in ('completed' | 'discharged') implies participant.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' and code = 'ATND').exists()).exists()
|
| cr-atencion-servicio-contenido | error | Encounter | Cada tipo de servicio incluye el concepto, la referencia al servicio del directorio o ambos. |
serviceType.all(concept.exists() or reference.exists())
|
| cr-atencion-system | error | Encounter.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/atencion/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/atencion/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-codigo-interno-value | error | Encounter.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-identificador-unico | error | Encounter | No hay dos identificadores con el mismo system y el mismo valor. |
identifier.select(system & '|' & value).isDistinct()
|
| dom-2 | error | Encounter | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Encounter | 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 | Encounter | 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 | Encounter | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | buena práctica | Encounter | 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())
|
| enc-1 | error | Encounter.participant | A type must be provided when no explicit actor is specified |
actor.exists() or type.exists()
|
| enc-2 | error | Encounter.participant | A type cannot be provided for a patient or group participant |
actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Esta estructura se deriva de Encounter .
Resumen
Obligatorios: 3 elementos(4 nested mandatory elementos)
Debe dar soporte a: 21 elementos
Prohibidos: 1 elemento
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Maturity: 0
Otras representaciones de perfil: CSV, Excel, Schematron
En esta versión no tiene un servicio propio: es el contexto de la información clínica y viaja dentro del documento clínico que la referencia. También la referencian la referencia a documento, la observación y la procedencia.
class es obligatoria y acepta solo AMB, EMER, IMP, OBSENC o VR, mediante el ValueSet nacional de modalidad. Son códigos estándar de HL7 v3-ActCode: el ValueSet no crea códigos nacionales, sino que fija el alcance interoperable. HH (atención domiciliar) queda excluido hasta que ese caso tenga modelo, perfiles y reglas propias.
serviceType dice qué se prestó; participant.actor, quién participó y bajo qué rol; y location, dónde estuvo el paciente. No se duplican entre sí. Los traslados de cama o salón son entradas de location con sus periodos, no atenciones nuevas. partOf se reserva para una subatención clínica real dentro de una atención mayor del mismo paciente; no encadena emergencias con hospitalización, no registra traslados y no sustituye al futuro episodio de atención. La coherencia entre recursos la verifica el servidor al resolver las referencias.
actualPeriod registra únicamente el tiempo real: una atención planned o cancelled no lo lleva; las fechas previstas se modelarán con plannedStartDate y plannedEndDate. discharged se usa solo en hospitalización u observación con tareas administrativas pendientes; una consulta o emergencia ya terminada es completed. El fin en completed se mantiene como advertencia, porque algunos sistemas ambulatorios no registran la hora de cierre.
El identificador interno usa system = .../sid/atencion/<codigo-establecimiento> y value; no lleva Identifier.type. La URI ya declara el único tipo permitido y quién asignó el valor, por lo que agregar un tipo no aportaría significado y podría contradecirlo. Esta regla no se aplica a los documentos de una persona o de una organización, que sí necesitan type para distinguir clases de identificador.
Ver también Servicios del HIE.