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-encounter | Versión: 0.1.0 | ||||
| Standards status: Draft | 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. 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-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-responsable, cr-atencion-periodos |
![]() ![]() |
?!Σ | 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 | 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 . Required Pattern: official |
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} Example 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 Example General: 123456 Max Length:64 |
![]() ![]() |
?!SΣ | 1..1 | code | Estado: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued Vinculación: EncounterStatus (required): Current state of the encounter. |
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR | HH Vinculación: Encounter class (required) |
![]() ![]() |
SΣ | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio y, si existe, el 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 | ValueSet | Versión | Fuente |
| 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 | Encounter class | 📦2.0.1 | THO v7.4 |
| 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 | Expression |
| 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-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-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 | best practice | 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-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-responsable, cr-atencion-periodos |
![]() ![]() |
SC | 0..* | Identifier | Número de la atención en el establecimiento Constraints: cr-atencion-system |
![]() ![]() ![]() |
0..1 | code | official (valor fijo) Required Pattern: official | |
![]() ![]() ![]() |
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 Max Length:64 |
![]() ![]() |
S | 1..1 | code | Estado: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued |
![]() ![]() |
S | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR | HH Vinculación: Encounter class (required) |
![]() ![]() |
S | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio y, si existe, el 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 | ValueSet | Versión | Fuente |
| Encounter.class | Base | required | Encounter class | 📦2.0.1 | THO v7.4 |
| 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 | Expression |
| 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-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-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-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-responsable, cr-atencion-periodos | ||||
![]() ![]() |
Σ | 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 | 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 . Required Pattern: official | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Description of identifier Vinculación: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | ||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} Example 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 Example General: 123456 Max Length: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: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued Vinculación: EncounterStatus (required): Current state of the encounter. | ||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR | HH Vinculación: Encounter class (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 y, si existe, el 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 | Expression |
| 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-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-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 | best practice | 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)
Must-Support: 21 elementos
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Vista de elementos clave
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Encounter | Atención: contacto entre un paciente y un establecimiento de salud Constraints: cr-identificador-unico, cr-atencion-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-responsable, cr-atencion-periodos |
![]() ![]() |
?!Σ | 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 | 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 . Required Pattern: official |
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} Example 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 Example General: 123456 Max Length:64 |
![]() ![]() |
?!SΣ | 1..1 | code | Estado: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued Vinculación: EncounterStatus (required): Current state of the encounter. |
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR | HH Vinculación: Encounter class (required) |
![]() ![]() |
SΣ | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio y, si existe, el 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 | ValueSet | Versión | Fuente |
| 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 | Encounter class | 📦2.0.1 | THO v7.4 |
| 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 | Expression |
| 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-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-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 | best practice | 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-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-responsable, cr-atencion-periodos |
![]() ![]() |
SC | 0..* | Identifier | Número de la atención en el establecimiento Constraints: cr-atencion-system |
![]() ![]() ![]() |
0..1 | code | official (valor fijo) Required Pattern: official | |
![]() ![]() ![]() |
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 Max Length:64 |
![]() ![]() |
S | 1..1 | code | Estado: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued |
![]() ![]() |
S | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR | HH Vinculación: Encounter class (required) |
![]() ![]() |
S | 0..* | CodeableReference(Servicio de salud) | Tipo de servicio y, si existe, el 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 | ValueSet | Versión | Fuente |
| Encounter.class | Base | required | Encounter class | 📦2.0.1 | THO v7.4 |
| 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 | Expression |
| 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-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-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-inicio, cr-atencion-fin, cr-atencion-fin-completed, cr-atencion-responsable, cr-atencion-periodos | ||||
![]() ![]() |
Σ | 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 | 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 . Required Pattern: official | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Description of identifier Vinculación: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | ||||
![]() ![]() ![]() |
SΣ | 1..1 | uri | https://hl7.or.cr/fhir/sid/atencion/{código del establecimiento} Example 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 Example General: 123456 Max Length: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: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued Vinculación: EncounterStatus (required): Current state of the encounter. | ||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Modalidad: AMB | EMER | IMP | OBSENC | VR | HH Vinculación: Encounter class (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 y, si existe, el 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 | Expression |
| 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-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-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 | best practice | 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)
Must-Support: 21 elementos
Estructuras
Esta estructura hace referencia a estas otras estructuras:
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.
Ver también Servicios del HIE.