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-composition | Versión: 0.1.0 | ||||
| Standards status: Draft | Nivel de madurez: 0 | Nombre computable: CRComposition | |||
Encabezado de un documento clínico de Costa Rica: un conjunto de información clínica que un autor reúne, un profesional valida y una organización custodia, y que se intercambia como una unidad (informe de imágenes médicas o de laboratorio, epicrisis, referencia, resumen del paciente). Implementa el modelo lógico del documento clínico.
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..* | Composition | Documento clínico: encabezado común Constraints: cr-documento-version, cr-documento-validacion-legal, cr-documento-validacion-fecha, cr-documento-validacion-profesional, cr-documento-validacion-oficial, cr-documento-validacion-personal, cr-documento-relacion, cr-documento-relacion-tipo, cr-documento-fecha-atencion, cr-documento-sensibilidad, cr-documento-sensibilidad-v | ||||||
![]() ![]() |
Σ | 0..1 | id | Identificador lógico del recurso | ||||||
![]() ![]() |
SΣ | 1..1 | Meta | Metadatos: las etiquetas de seguridad | ||||||
![]() ![]() ![]() |
Σ | 1..* | Coding | Confidencialidad y sensibilidad del documento Slice: Sin orden, Abierto by value:system Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||||
![]() ![]() ![]() ![]() |
SΣ | 1..1 | Coding | N | R | V Vinculación: Confidencialidad (required) | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-Confidentiality | ||||||
![]() ![]() ![]() ![]() |
SΣ | 0..* | Coding | PSY | PSYTHPN | HIV | STD | SDV | SEX | SUD | GDIS Vinculación: Sensibilidad de la información (required) | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-ActCode | ||||||
![]() ![]() |
?!Σ | 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 | 1..1 | Identifier | Identificador del documento, el mismo en todas sus versiones Constraints: cr-documento-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/documento/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número del documento Constraints: cr-codigo-interno-value Ejemplo General: 123456 Longitud máxima:64 | ||||||
![]() ![]() |
SΣC | 0..1 | string | 1 para la primera emisión, 2 para la primera corrección o adenda, y así sucesivamente Constraints: cr-documento-version-value | ||||||
![]() ![]() |
?!SΣ | 1..1 | code | Estado: preliminary | final | corrected | appended | entered-in-error Vinculación: Estado del documento (required) | ||||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Tipo de documento (LOINC) Vinculación: Tipo de documento clínico (extensible) | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Paciente) | Paciente del documento | ||||||
![]() ![]() |
SΣ | 0..1 | Reference(Atención) | Atención de la que resulta el documento | ||||||
![]() ![]() |
SΣC | 1..1 | dateTime | Fecha y hora en que se redactó (no futura) Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura | ||||||
![]() ![]() |
SΣ | 1..* | Reference(Rol del profesional | Profesional de salud | Organización) | Responsable del contenido: profesional en su rol u organización | ||||||
![]() ![]() |
SΣ | 1..1 | string | Título del documento, en español Longitud máxima:250 | ||||||
![]() ![]() |
S | 0..* | BackboneElement | Quién valida el documento (validación legal del profesional) | ||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | legal | professional | official | personal Vinculación: CompositionAttestationMode (required) | ||||||
![]() ![]() ![]() |
SC | 1..1 | dateTime | Fecha y hora de la validación Constraints: cr-documento-fecha-hora | ||||||
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Paciente | Persona relacionada | Organización) | Quién valida: profesional, organización, paciente o persona relacionada, según el modo | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | ||||||
![]() ![]() |
S | 0..* | RelatedArtifact | Versión anterior o documento fuente transformado | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | code | replaces | appends | transforms Vinculación: Relación entre documentos (required) | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | Reference(Documento clínico) | Documento relacionado, por su identificador | ||||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||||
![]() ![]() ![]() ![]() |
SΣC | 1..1 | Identifier | Identificador del documento relacionado | ||||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Versión del documento relacionado (versión 1) | ||||||
![]() ![]() |
SC | 1..* | BackboneElement | Secciones del documento (al menos una; las define cada guía de dominio) Constraints: cmp-1, cmp-2 | ||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
S | 1..1 | string | Título de la sección Longitud máxima:250 | ||||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Código de la sección (LOINC) Vinculación: DocumentSectionCodes (example): Classification of a section of a composition/document. | ||||||
![]() ![]() ![]() |
SC | 1..1 | Narrative | Texto narrativo de la sección, que es lo que se lee y se valida Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos | ||||||
![]() ![]() ![]() |
SC | 0..* | Reference(Resource) | Recursos de la sección | ||||||
![]() ![]() ![]() |
SC | 0..1 | CodeableConcept | Motivo de una sección vacía Vinculación: ListEmptyReasons (preferred): If a section is empty, why it is empty. | ||||||
Documentación de este formato | ||||||||||
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cmp-1 | error | Composition.section | A section must contain at least one of text, entries, or sub-sections |
text.exists() or entry.exists() or section.exists()
|
| cmp-2 | error | Composition.section | A section can only have an emptyReason if it is empty |
emptyReason.empty() or entry.empty()
|
| cr-codigo-interno-value | error | Composition.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-documento-fecha-atencion | error | Composition | La fecha del documento no es anterior al inicio de su atención. |
encounter.exists() implies (encounter.resolve().actualPeriod.start.empty() or date >= encounter.resolve().actualPeriod.start)
|
| cr-documento-fecha-hora | error | Composition.date, Composition.attester.time | La fecha lleva fecha y hora, no solo la fecha. |
toString().contains('T')
|
| cr-documento-fecha-no-futura | error | Composition.date | La fecha del documento no es futura. |
$this <= now()
|
| cr-documento-relacion | error | Composition | Una corrección o anulación reemplaza la versión anterior; una adenda le agrega contenido. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type = 'replaces').exists()) and (status = 'appended' implies relatesTo.where(type = 'appends').exists())
|
| cr-documento-relacion-tipo | error | Composition | La relación de una corrección o anulación es exclusivamente replaces; la de una adenda es exclusivamente appends. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type != 'replaces').empty()) and (status = 'appended' implies relatesTo.where(type != 'appends').empty())
|
| cr-documento-sensibilidad | error | Composition | Un documento con una sensibilidad tiene confidencialidad R o V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code in ('R' | 'V')).exists()
|
| cr-documento-sensibilidad-v | error | Composition | Un documento con notas de psicoterapia (PSYTHPN) o sobre violencia sexual o doméstica (SDV) tiene confidencialidad V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('PSYTHPN' | 'SDV')).exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code = 'V').exists()
|
| cr-documento-system | error | Composition.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/documento/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/documento/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-documento-validacion-fecha | error | Composition | La validación no es anterior a la fecha del documento. |
attester.all(time.empty() or time >= %resource.date)
|
| cr-documento-validacion-legal | error | Composition | Un documento final, corregido o con adenda redactado por un profesional lleva la validación legal (attester.mode legal). |
status in ('final' | 'corrected' | 'appended') and author.where(resolve() is PractitionerRole or resolve() is Practitioner).exists() implies attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'legal').exists()).exists()
|
| cr-documento-validacion-oficial | error | Composition | La validación oficial corresponde a una organización. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'official').exists()).all(party.resolve() is Organization)
|
| cr-documento-validacion-personal | error | Composition | La validación personal corresponde al paciente o a una persona relacionada. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'personal').exists()).all(party.resolve() is Patient or party.resolve() is RelatedPerson)
|
| cr-documento-validacion-profesional | error | Composition | La validación legal o profesional corresponde a un profesional de salud. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code in ('legal' | 'professional')).exists()).all(party.resolve() is PractitionerRole or party.resolve() is Practitioner)
|
| cr-documento-version | error | Composition | Una versión que reemplaza o amplía otra indica su número de versión. |
relatesTo.where(type in ('replaces' | 'appends')).exists() implies version.exists()
|
| cr-documento-version-value | error | Composition.version | La versión es un número entero positivo: 1, 2, 3. |
matches('^[1-9][0-9]*$')
|
| dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Composition | 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 | Composition | 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 | Composition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | buena práctica | Composition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **TODOS** los elementos | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Esta estructura se deriva de Composition .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Composition | Documento clínico: encabezado común Constraints: cr-documento-version, cr-documento-validacion-legal, cr-documento-validacion-fecha, cr-documento-validacion-profesional, cr-documento-validacion-oficial, cr-documento-validacion-personal, cr-documento-relacion, cr-documento-relacion-tipo, cr-documento-fecha-atencion, cr-documento-sensibilidad, cr-documento-sensibilidad-v | ||||
![]() ![]() |
0..1 | id | Identificador lógico del recurso | |||||
![]() ![]() |
S | 1..1 | Meta | Metadatos: las etiquetas de seguridad | ||||
![]() ![]() ![]() |
1..* | Coding | Confidencialidad y sensibilidad del documento Slice: Sin orden, Abierto by value:system | |||||
![]() ![]() ![]() ![]() |
S | 1..1 | Coding | N | R | V Vinculación: Confidencialidad (required) | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-Confidentiality | |||||
![]() ![]() ![]() ![]() |
S | 0..* | Coding | PSY | PSYTHPN | HIV | STD | SDV | SEX | SUD | GDIS Vinculación: Sensibilidad de la información (required) | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-ActCode | |||||
![]() ![]() |
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 | 1..1 | Identifier | Identificador del documento, el mismo en todas sus versiones Constraints: cr-documento-system | ||||
![]() ![]() ![]() |
0..1 | code | official (valor fijo) Patrón requerido: official | |||||
![]() ![]() ![]() |
S | 1..1 | uri | https://hl7.or.cr/fhir/sid/documento/{código del establecimiento} | ||||
![]() ![]() ![]() |
SC | 1..1 | string | Número del documento Constraints: cr-codigo-interno-value Longitud máxima:64 | ||||
![]() ![]() |
SC | 0..1 | string | 1 para la primera emisión, 2 para la primera corrección o adenda, y así sucesivamente Constraints: cr-documento-version-value | ||||
![]() ![]() |
S | 1..1 | code | Estado: preliminary | final | corrected | appended | entered-in-error Vinculación: Estado del documento (required) | ||||
![]() ![]() |
S | 1..1 | CodeableConcept | Tipo de documento (LOINC) Vinculación: Tipo de documento clínico (extensible) | ||||
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente del documento | ||||
![]() ![]() |
S | 0..1 | Reference(Atención) | Atención de la que resulta el documento | ||||
![]() ![]() |
SC | 1..1 | dateTime | Fecha y hora en que se redactó (no futura) Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura | ||||
![]() ![]() |
S | 1..* | Reference(Rol del profesional | Profesional de salud | Organización) | Responsable del contenido: profesional en su rol u organización | ||||
![]() ![]() |
S | 1..1 | string | Título del documento, en español Longitud máxima:250 | ||||
![]() ![]() |
S | 0..* | BackboneElement | Quién valida el documento (validación legal del profesional) | ||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | legal | professional | official | personal Vinculación: CompositionAttestationMode (required) | ||||
![]() ![]() ![]() |
SC | 1..1 | dateTime | Fecha y hora de la validación Constraints: cr-documento-fecha-hora | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Paciente | Persona relacionada | Organización) | Quién valida: profesional, organización, paciente o persona relacionada, según el modo | ||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | ||||
![]() ![]() |
S | 0..* | RelatedArtifact | Versión anterior o documento fuente transformado | ||||
![]() ![]() ![]() |
S | 1..1 | code | replaces | appends | transforms Vinculación: Relación entre documentos (required) | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Documento clínico) | Documento relacionado, por su identificador | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | Identifier | Identificador del documento relacionado | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Versión del documento relacionado (versión 1) | |||||
![]() ![]() |
S | 1..* | BackboneElement | Secciones del documento (al menos una; las define cada guía de dominio) | ||||
![]() ![]() ![]() |
S | 1..1 | string | Título de la sección Longitud máxima:250 | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Código de la sección (LOINC) | ||||
![]() ![]() ![]() |
S | 1..1 | Narrative | Texto narrativo de la sección, que es lo que se lee y se valida | ||||
![]() ![]() ![]() |
S | 0..* | Reference(Resource) | Recursos de la sección | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Motivo de una sección vacía | ||||
Documentación de este formato | ||||||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente |
| Composition.meta.security:confidencialidad | Base | required | Confidencialidad | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Composition.meta.security:sensibilidad | Base | required | Sensibilidad de la información | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Composition.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
| Composition.status | Base | required | Estado del documento | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Composition.type | Base | extensible | Tipo de documento clínico | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Composition.attester.mode | Base | required | Composition Attestation Mode | 📦5.0.0 | Estándar FHIR |
| Composition.relatesTo.type | Base | required | Relación entre documentos | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-codigo-interno-value | error | Composition.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-documento-fecha-atencion | error | Composition | La fecha del documento no es anterior al inicio de su atención. |
encounter.exists() implies (encounter.resolve().actualPeriod.start.empty() or date >= encounter.resolve().actualPeriod.start)
|
| cr-documento-fecha-hora | error | Composition.date, Composition.attester.time | La fecha lleva fecha y hora, no solo la fecha. |
toString().contains('T')
|
| cr-documento-fecha-no-futura | error | Composition.date | La fecha del documento no es futura. |
$this <= now()
|
| cr-documento-relacion | error | Composition | Una corrección o anulación reemplaza la versión anterior; una adenda le agrega contenido. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type = 'replaces').exists()) and (status = 'appended' implies relatesTo.where(type = 'appends').exists())
|
| cr-documento-relacion-tipo | error | Composition | La relación de una corrección o anulación es exclusivamente replaces; la de una adenda es exclusivamente appends. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type != 'replaces').empty()) and (status = 'appended' implies relatesTo.where(type != 'appends').empty())
|
| cr-documento-sensibilidad | error | Composition | Un documento con una sensibilidad tiene confidencialidad R o V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code in ('R' | 'V')).exists()
|
| cr-documento-sensibilidad-v | error | Composition | Un documento con notas de psicoterapia (PSYTHPN) o sobre violencia sexual o doméstica (SDV) tiene confidencialidad V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('PSYTHPN' | 'SDV')).exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code = 'V').exists()
|
| cr-documento-system | error | Composition.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/documento/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/documento/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-documento-validacion-fecha | error | Composition | La validación no es anterior a la fecha del documento. |
attester.all(time.empty() or time >= %resource.date)
|
| cr-documento-validacion-legal | error | Composition | Un documento final, corregido o con adenda redactado por un profesional lleva la validación legal (attester.mode legal). |
status in ('final' | 'corrected' | 'appended') and author.where(resolve() is PractitionerRole or resolve() is Practitioner).exists() implies attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'legal').exists()).exists()
|
| cr-documento-validacion-oficial | error | Composition | La validación oficial corresponde a una organización. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'official').exists()).all(party.resolve() is Organization)
|
| cr-documento-validacion-personal | error | Composition | La validación personal corresponde al paciente o a una persona relacionada. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'personal').exists()).all(party.resolve() is Patient or party.resolve() is RelatedPerson)
|
| cr-documento-validacion-profesional | error | Composition | La validación legal o profesional corresponde a un profesional de salud. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code in ('legal' | 'professional')).exists()).all(party.resolve() is PractitionerRole or party.resolve() is Practitioner)
|
| cr-documento-version | error | Composition | Una versión que reemplaza o amplía otra indica su número de versión. |
relatesTo.where(type in ('replaces' | 'appends')).exists() implies version.exists()
|
| cr-documento-version-value | error | Composition.version | La versión es un número entero positivo: 1, 2, 3. |
matches('^[1-9][0-9]*$')
|
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Composition | Documento clínico: encabezado común Constraints: cr-documento-version, cr-documento-validacion-legal, cr-documento-validacion-fecha, cr-documento-validacion-profesional, cr-documento-validacion-oficial, cr-documento-validacion-personal, cr-documento-relacion, cr-documento-relacion-tipo, cr-documento-fecha-atencion, cr-documento-sensibilidad, cr-documento-sensibilidad-v | ||||||
![]() ![]() |
Σ | 0..1 | id | Identificador lógico del recurso | ||||||
![]() ![]() |
SΣ | 1..1 | Meta | Metadatos: las etiquetas de seguridad | ||||||
![]() ![]() ![]() |
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 | id | Version specific identifier | ||||||
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||||
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||||
![]() ![]() ![]() |
Σ | 1..* | Coding | Confidencialidad y sensibilidad del documento Slice: Sin orden, Abierto by value:system Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||||
![]() ![]() ![]() ![]() |
SΣ | 1..1 | Coding | N | R | V Vinculación: Confidencialidad (required) | ||||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-Confidentiality | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Representation defined by the system | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | boolean | If this coding was chosen directly by the user | ||||||
![]() ![]() ![]() ![]() |
SΣ | 0..* | Coding | PSY | PSYTHPN | HIV | STD | SDV | SEX | SUD | GDIS Vinculación: Sensibilidad de la información (required) | ||||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-ActCode | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Representation defined by the system | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | boolean | If this coding was chosen directly by the user | ||||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Tags applied to this resource Vinculación: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". | ||||||
![]() ![]() |
?!Σ | 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 | ||||||
![]() ![]() |
Σ | 0..1 | uri | Canonical identifier for this Composition, represented as a URI (globally unique) | ||||||
![]() ![]() |
SΣC | 1..1 | Identifier | Identificador del documento, el mismo en todas sus versiones Constraints: cr-documento-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 | ||||||
![]() ![]() ![]() |
Σ | 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/documento/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número del documento 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ΣC | 0..1 | string | 1 para la primera emisión, 2 para la primera corrección o adenda, y así sucesivamente Constraints: cr-documento-version-value | ||||||
![]() ![]() |
?!SΣ | 1..1 | code | Estado: preliminary | final | corrected | appended | entered-in-error Vinculación: Estado del documento (required) | ||||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Tipo de documento (LOINC) Vinculación: Tipo de documento clínico (extensible) | ||||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Categorization of Composition Vinculación: ReferencedItemCategoryValueSet (example): High-level kind of a clinical document at a macro level. | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Paciente) | Paciente del documento | ||||||
![]() ![]() |
SΣ | 0..1 | Reference(Atención) | Atención de la que resulta el documento | ||||||
![]() ![]() |
SΣC | 1..1 | dateTime | Fecha y hora en que se redactó (no futura) Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura | ||||||
![]() ![]() |
Σ | 0..* | UsageContext | The context that the content is intended to support | ||||||
![]() ![]() |
SΣ | 1..* | Reference(Rol del profesional | Profesional de salud | Organización) | Responsable del contenido: profesional en su rol u organización | ||||||
![]() ![]() |
Σ | 0..1 | string | Name for this Composition (computer friendly) | ||||||
![]() ![]() |
SΣ | 1..1 | string | Título del documento, en español Longitud máxima:250 | ||||||
![]() ![]() |
0..* | Annotation | For any additional notes | |||||||
![]() ![]() |
S | 0..* | BackboneElement | Quién valida el documento (validación legal del profesional) | ||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | legal | professional | official | personal Vinculación: CompositionAttestationMode (required) | ||||||
![]() ![]() ![]() |
SC | 1..1 | dateTime | Fecha y hora de la validación Constraints: cr-documento-fecha-hora | ||||||
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Paciente | Persona relacionada | Organización) | Quién valida: profesional, organización, paciente o persona relacionada, según el modo | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | ||||||
![]() ![]() |
S | 0..* | RelatedArtifact | Versión anterior o documento fuente transformado | ||||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() |
SΣ | 1..1 | code | replaces | appends | transforms Vinculación: Relación entre documentos (required) | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableConcept | Additional classifiers Vinculación: CitationArtifactClassifier (example): Additional classifiers for the related artifact. | ||||||
![]() ![]() ![]() |
Σ | 0..1 | string | Short label | ||||||
![]() ![]() ![]() |
Σ | 0..1 | string | Brief description of the related artifact | ||||||
![]() ![]() ![]() |
Σ | 0..1 | markdown | Bibliographic citation for the artifact | ||||||
![]() ![]() ![]() |
Σ | 0..1 | Attachment | What document is being referenced | ||||||
![]() ![]() ![]() |
Σ | 0..1 | canonical(Resource) | What artifact is being referenced | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | Reference(Documento clínico) | Documento relacionado, por su identificador | ||||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Vinculación: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||||
![]() ![]() ![]() ![]() |
SΣC | 1..1 | Identifier | Identificador del documento relacionado | ||||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Versión del documento relacionado (versión 1) | ||||||
![]() ![]() ![]() |
Σ | 0..1 | code | draft | active | retired | unknown Vinculación: PublicationStatus (required): Publication status of an artifact being referred to. | ||||||
![]() ![]() ![]() |
Σ | 0..1 | date | Date of publication of the artifact being referred to | ||||||
![]() ![]() |
Σ | 0..* | BackboneElement | The clinical service(s) being documented | ||||||
![]() ![]() ![]() |
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 | Period | The period covered by the documentation | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableReference(Resource) | The event(s) being documented, as code(s), reference(s), or both Vinculación: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | ||||||
![]() ![]() |
SC | 1..* | BackboneElement | Secciones del documento (al menos una; las define cada guía de dominio) Constraints: cmp-1, cmp-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 | 1..1 | string | Título de la sección Longitud máxima:250 | ||||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Código de la sección (LOINC) Vinculación: DocumentSectionCodes (example): Classification of a section of a composition/document. | ||||||
![]() ![]() ![]() |
0..* | Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization) | Who and/or what authored the section | |||||||
![]() ![]() ![]() |
0..1 | Reference(Resource) | Who/what the section is about, when it is not about the subject of composition | |||||||
![]() ![]() ![]() |
SC | 1..1 | Narrative | Texto narrativo de la sección, que es lo que se lee y se valida Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos | ||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Order of section entries Vinculación: ListOrderCodes (preferred): What order applies to the items in the entry. | |||||||
![]() ![]() ![]() |
SC | 0..* | Reference(Resource) | Recursos de la sección | ||||||
![]() ![]() ![]() |
SC | 0..1 | CodeableConcept | Motivo de una sección vacía Vinculación: ListEmptyReasons (preferred): If a section is empty, why it is empty. | ||||||
![]() ![]() ![]() |
0..* | Vea section (Composition) | Nested Section | |||||||
Documentación de este formato | ||||||||||
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cmp-1 | error | Composition.section | A section must contain at least one of text, entries, or sub-sections |
text.exists() or entry.exists() or section.exists()
|
| cmp-2 | error | Composition.section | A section can only have an emptyReason if it is empty |
emptyReason.empty() or entry.empty()
|
| cr-codigo-interno-value | error | Composition.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-documento-fecha-atencion | error | Composition | La fecha del documento no es anterior al inicio de su atención. |
encounter.exists() implies (encounter.resolve().actualPeriod.start.empty() or date >= encounter.resolve().actualPeriod.start)
|
| cr-documento-fecha-hora | error | Composition.date, Composition.attester.time | La fecha lleva fecha y hora, no solo la fecha. |
toString().contains('T')
|
| cr-documento-fecha-no-futura | error | Composition.date | La fecha del documento no es futura. |
$this <= now()
|
| cr-documento-relacion | error | Composition | Una corrección o anulación reemplaza la versión anterior; una adenda le agrega contenido. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type = 'replaces').exists()) and (status = 'appended' implies relatesTo.where(type = 'appends').exists())
|
| cr-documento-relacion-tipo | error | Composition | La relación de una corrección o anulación es exclusivamente replaces; la de una adenda es exclusivamente appends. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type != 'replaces').empty()) and (status = 'appended' implies relatesTo.where(type != 'appends').empty())
|
| cr-documento-sensibilidad | error | Composition | Un documento con una sensibilidad tiene confidencialidad R o V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code in ('R' | 'V')).exists()
|
| cr-documento-sensibilidad-v | error | Composition | Un documento con notas de psicoterapia (PSYTHPN) o sobre violencia sexual o doméstica (SDV) tiene confidencialidad V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('PSYTHPN' | 'SDV')).exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code = 'V').exists()
|
| cr-documento-system | error | Composition.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/documento/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/documento/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-documento-validacion-fecha | error | Composition | La validación no es anterior a la fecha del documento. |
attester.all(time.empty() or time >= %resource.date)
|
| cr-documento-validacion-legal | error | Composition | Un documento final, corregido o con adenda redactado por un profesional lleva la validación legal (attester.mode legal). |
status in ('final' | 'corrected' | 'appended') and author.where(resolve() is PractitionerRole or resolve() is Practitioner).exists() implies attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'legal').exists()).exists()
|
| cr-documento-validacion-oficial | error | Composition | La validación oficial corresponde a una organización. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'official').exists()).all(party.resolve() is Organization)
|
| cr-documento-validacion-personal | error | Composition | La validación personal corresponde al paciente o a una persona relacionada. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'personal').exists()).all(party.resolve() is Patient or party.resolve() is RelatedPerson)
|
| cr-documento-validacion-profesional | error | Composition | La validación legal o profesional corresponde a un profesional de salud. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code in ('legal' | 'professional')).exists()).all(party.resolve() is PractitionerRole or party.resolve() is Practitioner)
|
| cr-documento-version | error | Composition | Una versión que reemplaza o amplía otra indica su número de versión. |
relatesTo.where(type in ('replaces' | 'appends')).exists() implies version.exists()
|
| cr-documento-version-value | error | Composition.version | La versión es un número entero positivo: 1, 2, 3. |
matches('^[1-9][0-9]*$')
|
| dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Composition | 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 | Composition | 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 | Composition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | buena práctica | Composition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **TODOS** los elementos | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Esta estructura se deriva de Composition .
Resumen
Obligatorios: 12 elementos(5 nested mandatory elementos)
Debe dar soporte a: 29 elementos
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Slices
Esta estructura define los siguientes slices:
Maturity: 0
Vista de elementos clave
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Composition | Documento clínico: encabezado común Constraints: cr-documento-version, cr-documento-validacion-legal, cr-documento-validacion-fecha, cr-documento-validacion-profesional, cr-documento-validacion-oficial, cr-documento-validacion-personal, cr-documento-relacion, cr-documento-relacion-tipo, cr-documento-fecha-atencion, cr-documento-sensibilidad, cr-documento-sensibilidad-v | ||||||
![]() ![]() |
Σ | 0..1 | id | Identificador lógico del recurso | ||||||
![]() ![]() |
SΣ | 1..1 | Meta | Metadatos: las etiquetas de seguridad | ||||||
![]() ![]() ![]() |
Σ | 1..* | Coding | Confidencialidad y sensibilidad del documento Slice: Sin orden, Abierto by value:system Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||||
![]() ![]() ![]() ![]() |
SΣ | 1..1 | Coding | N | R | V Vinculación: Confidencialidad (required) | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-Confidentiality | ||||||
![]() ![]() ![]() ![]() |
SΣ | 0..* | Coding | PSY | PSYTHPN | HIV | STD | SDV | SEX | SUD | GDIS Vinculación: Sensibilidad de la información (required) | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-ActCode | ||||||
![]() ![]() |
?!Σ | 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 | 1..1 | Identifier | Identificador del documento, el mismo en todas sus versiones Constraints: cr-documento-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/documento/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número del documento Constraints: cr-codigo-interno-value Ejemplo General: 123456 Longitud máxima:64 | ||||||
![]() ![]() |
SΣC | 0..1 | string | 1 para la primera emisión, 2 para la primera corrección o adenda, y así sucesivamente Constraints: cr-documento-version-value | ||||||
![]() ![]() |
?!SΣ | 1..1 | code | Estado: preliminary | final | corrected | appended | entered-in-error Vinculación: Estado del documento (required) | ||||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Tipo de documento (LOINC) Vinculación: Tipo de documento clínico (extensible) | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Paciente) | Paciente del documento | ||||||
![]() ![]() |
SΣ | 0..1 | Reference(Atención) | Atención de la que resulta el documento | ||||||
![]() ![]() |
SΣC | 1..1 | dateTime | Fecha y hora en que se redactó (no futura) Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura | ||||||
![]() ![]() |
SΣ | 1..* | Reference(Rol del profesional | Profesional de salud | Organización) | Responsable del contenido: profesional en su rol u organización | ||||||
![]() ![]() |
SΣ | 1..1 | string | Título del documento, en español Longitud máxima:250 | ||||||
![]() ![]() |
S | 0..* | BackboneElement | Quién valida el documento (validación legal del profesional) | ||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | legal | professional | official | personal Vinculación: CompositionAttestationMode (required) | ||||||
![]() ![]() ![]() |
SC | 1..1 | dateTime | Fecha y hora de la validación Constraints: cr-documento-fecha-hora | ||||||
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Paciente | Persona relacionada | Organización) | Quién valida: profesional, organización, paciente o persona relacionada, según el modo | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | ||||||
![]() ![]() |
S | 0..* | RelatedArtifact | Versión anterior o documento fuente transformado | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | code | replaces | appends | transforms Vinculación: Relación entre documentos (required) | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | Reference(Documento clínico) | Documento relacionado, por su identificador | ||||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||||
![]() ![]() ![]() ![]() |
SΣC | 1..1 | Identifier | Identificador del documento relacionado | ||||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Versión del documento relacionado (versión 1) | ||||||
![]() ![]() |
SC | 1..* | BackboneElement | Secciones del documento (al menos una; las define cada guía de dominio) Constraints: cmp-1, cmp-2 | ||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
S | 1..1 | string | Título de la sección Longitud máxima:250 | ||||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Código de la sección (LOINC) Vinculación: DocumentSectionCodes (example): Classification of a section of a composition/document. | ||||||
![]() ![]() ![]() |
SC | 1..1 | Narrative | Texto narrativo de la sección, que es lo que se lee y se valida Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos | ||||||
![]() ![]() ![]() |
SC | 0..* | Reference(Resource) | Recursos de la sección | ||||||
![]() ![]() ![]() |
SC | 0..1 | CodeableConcept | Motivo de una sección vacía Vinculación: ListEmptyReasons (preferred): If a section is empty, why it is empty. | ||||||
Documentación de este formato | ||||||||||
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cmp-1 | error | Composition.section | A section must contain at least one of text, entries, or sub-sections |
text.exists() or entry.exists() or section.exists()
|
| cmp-2 | error | Composition.section | A section can only have an emptyReason if it is empty |
emptyReason.empty() or entry.empty()
|
| cr-codigo-interno-value | error | Composition.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-documento-fecha-atencion | error | Composition | La fecha del documento no es anterior al inicio de su atención. |
encounter.exists() implies (encounter.resolve().actualPeriod.start.empty() or date >= encounter.resolve().actualPeriod.start)
|
| cr-documento-fecha-hora | error | Composition.date, Composition.attester.time | La fecha lleva fecha y hora, no solo la fecha. |
toString().contains('T')
|
| cr-documento-fecha-no-futura | error | Composition.date | La fecha del documento no es futura. |
$this <= now()
|
| cr-documento-relacion | error | Composition | Una corrección o anulación reemplaza la versión anterior; una adenda le agrega contenido. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type = 'replaces').exists()) and (status = 'appended' implies relatesTo.where(type = 'appends').exists())
|
| cr-documento-relacion-tipo | error | Composition | La relación de una corrección o anulación es exclusivamente replaces; la de una adenda es exclusivamente appends. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type != 'replaces').empty()) and (status = 'appended' implies relatesTo.where(type != 'appends').empty())
|
| cr-documento-sensibilidad | error | Composition | Un documento con una sensibilidad tiene confidencialidad R o V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code in ('R' | 'V')).exists()
|
| cr-documento-sensibilidad-v | error | Composition | Un documento con notas de psicoterapia (PSYTHPN) o sobre violencia sexual o doméstica (SDV) tiene confidencialidad V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('PSYTHPN' | 'SDV')).exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code = 'V').exists()
|
| cr-documento-system | error | Composition.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/documento/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/documento/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-documento-validacion-fecha | error | Composition | La validación no es anterior a la fecha del documento. |
attester.all(time.empty() or time >= %resource.date)
|
| cr-documento-validacion-legal | error | Composition | Un documento final, corregido o con adenda redactado por un profesional lleva la validación legal (attester.mode legal). |
status in ('final' | 'corrected' | 'appended') and author.where(resolve() is PractitionerRole or resolve() is Practitioner).exists() implies attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'legal').exists()).exists()
|
| cr-documento-validacion-oficial | error | Composition | La validación oficial corresponde a una organización. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'official').exists()).all(party.resolve() is Organization)
|
| cr-documento-validacion-personal | error | Composition | La validación personal corresponde al paciente o a una persona relacionada. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'personal').exists()).all(party.resolve() is Patient or party.resolve() is RelatedPerson)
|
| cr-documento-validacion-profesional | error | Composition | La validación legal o profesional corresponde a un profesional de salud. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code in ('legal' | 'professional')).exists()).all(party.resolve() is PractitionerRole or party.resolve() is Practitioner)
|
| cr-documento-version | error | Composition | Una versión que reemplaza o amplía otra indica su número de versión. |
relatesTo.where(type in ('replaces' | 'appends')).exists() implies version.exists()
|
| cr-documento-version-value | error | Composition.version | La versión es un número entero positivo: 1, 2, 3. |
matches('^[1-9][0-9]*$')
|
| dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Composition | 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 | Composition | 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 | Composition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | buena práctica | Composition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **TODOS** los elementos | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Vista diferencial
Esta estructura se deriva de Composition .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Composition | Documento clínico: encabezado común Constraints: cr-documento-version, cr-documento-validacion-legal, cr-documento-validacion-fecha, cr-documento-validacion-profesional, cr-documento-validacion-oficial, cr-documento-validacion-personal, cr-documento-relacion, cr-documento-relacion-tipo, cr-documento-fecha-atencion, cr-documento-sensibilidad, cr-documento-sensibilidad-v | ||||
![]() ![]() |
0..1 | id | Identificador lógico del recurso | |||||
![]() ![]() |
S | 1..1 | Meta | Metadatos: las etiquetas de seguridad | ||||
![]() ![]() ![]() |
1..* | Coding | Confidencialidad y sensibilidad del documento Slice: Sin orden, Abierto by value:system | |||||
![]() ![]() ![]() ![]() |
S | 1..1 | Coding | N | R | V Vinculación: Confidencialidad (required) | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-Confidentiality | |||||
![]() ![]() ![]() ![]() |
S | 0..* | Coding | PSY | PSYTHPN | HIV | STD | SDV | SEX | SUD | GDIS Vinculación: Sensibilidad de la información (required) | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-ActCode | |||||
![]() ![]() |
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 | 1..1 | Identifier | Identificador del documento, el mismo en todas sus versiones Constraints: cr-documento-system | ||||
![]() ![]() ![]() |
0..1 | code | official (valor fijo) Patrón requerido: official | |||||
![]() ![]() ![]() |
S | 1..1 | uri | https://hl7.or.cr/fhir/sid/documento/{código del establecimiento} | ||||
![]() ![]() ![]() |
SC | 1..1 | string | Número del documento Constraints: cr-codigo-interno-value Longitud máxima:64 | ||||
![]() ![]() |
SC | 0..1 | string | 1 para la primera emisión, 2 para la primera corrección o adenda, y así sucesivamente Constraints: cr-documento-version-value | ||||
![]() ![]() |
S | 1..1 | code | Estado: preliminary | final | corrected | appended | entered-in-error Vinculación: Estado del documento (required) | ||||
![]() ![]() |
S | 1..1 | CodeableConcept | Tipo de documento (LOINC) Vinculación: Tipo de documento clínico (extensible) | ||||
![]() ![]() |
S | 1..1 | Reference(Paciente) | Paciente del documento | ||||
![]() ![]() |
S | 0..1 | Reference(Atención) | Atención de la que resulta el documento | ||||
![]() ![]() |
SC | 1..1 | dateTime | Fecha y hora en que se redactó (no futura) Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura | ||||
![]() ![]() |
S | 1..* | Reference(Rol del profesional | Profesional de salud | Organización) | Responsable del contenido: profesional en su rol u organización | ||||
![]() ![]() |
S | 1..1 | string | Título del documento, en español Longitud máxima:250 | ||||
![]() ![]() |
S | 0..* | BackboneElement | Quién valida el documento (validación legal del profesional) | ||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | legal | professional | official | personal Vinculación: CompositionAttestationMode (required) | ||||
![]() ![]() ![]() |
SC | 1..1 | dateTime | Fecha y hora de la validación Constraints: cr-documento-fecha-hora | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Paciente | Persona relacionada | Organización) | Quién valida: profesional, organización, paciente o persona relacionada, según el modo | ||||
![]() ![]() |
S | 1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | ||||
![]() ![]() |
S | 0..* | RelatedArtifact | Versión anterior o documento fuente transformado | ||||
![]() ![]() ![]() |
S | 1..1 | code | replaces | appends | transforms Vinculación: Relación entre documentos (required) | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(Documento clínico) | Documento relacionado, por su identificador | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | Identifier | Identificador del documento relacionado | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Versión del documento relacionado (versión 1) | |||||
![]() ![]() |
S | 1..* | BackboneElement | Secciones del documento (al menos una; las define cada guía de dominio) | ||||
![]() ![]() ![]() |
S | 1..1 | string | Título de la sección Longitud máxima:250 | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Código de la sección (LOINC) | ||||
![]() ![]() ![]() |
S | 1..1 | Narrative | Texto narrativo de la sección, que es lo que se lee y se valida | ||||
![]() ![]() ![]() |
S | 0..* | Reference(Resource) | Recursos de la sección | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Motivo de una sección vacía | ||||
Documentación de este formato | ||||||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente |
| Composition.meta.security:confidencialidad | Base | required | Confidencialidad | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Composition.meta.security:sensibilidad | Base | required | Sensibilidad de la información | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Composition.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
| Composition.status | Base | required | Estado del documento | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Composition.type | Base | extensible | Tipo de documento clínico | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Composition.attester.mode | Base | required | Composition Attestation Mode | 📦5.0.0 | Estándar FHIR |
| Composition.relatesTo.type | Base | required | Relación entre documentos | 📦0.1.0 | Guía de Implementación de Terminología de Costa Rica vnull |
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-codigo-interno-value | error | Composition.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-documento-fecha-atencion | error | Composition | La fecha del documento no es anterior al inicio de su atención. |
encounter.exists() implies (encounter.resolve().actualPeriod.start.empty() or date >= encounter.resolve().actualPeriod.start)
|
| cr-documento-fecha-hora | error | Composition.date, Composition.attester.time | La fecha lleva fecha y hora, no solo la fecha. |
toString().contains('T')
|
| cr-documento-fecha-no-futura | error | Composition.date | La fecha del documento no es futura. |
$this <= now()
|
| cr-documento-relacion | error | Composition | Una corrección o anulación reemplaza la versión anterior; una adenda le agrega contenido. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type = 'replaces').exists()) and (status = 'appended' implies relatesTo.where(type = 'appends').exists())
|
| cr-documento-relacion-tipo | error | Composition | La relación de una corrección o anulación es exclusivamente replaces; la de una adenda es exclusivamente appends. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type != 'replaces').empty()) and (status = 'appended' implies relatesTo.where(type != 'appends').empty())
|
| cr-documento-sensibilidad | error | Composition | Un documento con una sensibilidad tiene confidencialidad R o V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code in ('R' | 'V')).exists()
|
| cr-documento-sensibilidad-v | error | Composition | Un documento con notas de psicoterapia (PSYTHPN) o sobre violencia sexual o doméstica (SDV) tiene confidencialidad V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('PSYTHPN' | 'SDV')).exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code = 'V').exists()
|
| cr-documento-system | error | Composition.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/documento/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/documento/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-documento-validacion-fecha | error | Composition | La validación no es anterior a la fecha del documento. |
attester.all(time.empty() or time >= %resource.date)
|
| cr-documento-validacion-legal | error | Composition | Un documento final, corregido o con adenda redactado por un profesional lleva la validación legal (attester.mode legal). |
status in ('final' | 'corrected' | 'appended') and author.where(resolve() is PractitionerRole or resolve() is Practitioner).exists() implies attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'legal').exists()).exists()
|
| cr-documento-validacion-oficial | error | Composition | La validación oficial corresponde a una organización. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'official').exists()).all(party.resolve() is Organization)
|
| cr-documento-validacion-personal | error | Composition | La validación personal corresponde al paciente o a una persona relacionada. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'personal').exists()).all(party.resolve() is Patient or party.resolve() is RelatedPerson)
|
| cr-documento-validacion-profesional | error | Composition | La validación legal o profesional corresponde a un profesional de salud. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code in ('legal' | 'professional')).exists()).all(party.resolve() is PractitionerRole or party.resolve() is Practitioner)
|
| cr-documento-version | error | Composition | Una versión que reemplaza o amplía otra indica su número de versión. |
relatesTo.where(type in ('replaces' | 'appends')).exists() implies version.exists()
|
| cr-documento-version-value | error | Composition.version | La versión es un número entero positivo: 1, 2, 3. |
matches('^[1-9][0-9]*$')
|
Vista instantáneaView
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() ![]() | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Composition | Documento clínico: encabezado común Constraints: cr-documento-version, cr-documento-validacion-legal, cr-documento-validacion-fecha, cr-documento-validacion-profesional, cr-documento-validacion-oficial, cr-documento-validacion-personal, cr-documento-relacion, cr-documento-relacion-tipo, cr-documento-fecha-atencion, cr-documento-sensibilidad, cr-documento-sensibilidad-v | ||||||
![]() ![]() |
Σ | 0..1 | id | Identificador lógico del recurso | ||||||
![]() ![]() |
SΣ | 1..1 | Meta | Metadatos: las etiquetas de seguridad | ||||||
![]() ![]() ![]() |
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 | id | Version specific identifier | ||||||
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||||
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||||
![]() ![]() ![]() |
Σ | 1..* | Coding | Confidencialidad y sensibilidad del documento Slice: Sin orden, Abierto by value:system Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||||
![]() ![]() ![]() ![]() |
SΣ | 1..1 | Coding | N | R | V Vinculación: Confidencialidad (required) | ||||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-Confidentiality | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Representation defined by the system | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | boolean | If this coding was chosen directly by the user | ||||||
![]() ![]() ![]() ![]() |
SΣ | 0..* | Coding | PSY | PSYTHPN | HIV | STD | SDV | SEX | SUD | GDIS Vinculación: Sensibilidad de la información (required) | ||||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | Sistema de códigos del slice (valor fijo) Patrón requerido: http://terminology.hl7.org/CodeSystem/v3-ActCode | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Version of the system - if relevant | ||||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Symbol in syntax defined by the system | ||||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Representation defined by the system | ||||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | boolean | If this coding was chosen directly by the user | ||||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Tags applied to this resource Vinculación: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". | ||||||
![]() ![]() |
?!Σ | 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 | ||||||
![]() ![]() |
Σ | 0..1 | uri | Canonical identifier for this Composition, represented as a URI (globally unique) | ||||||
![]() ![]() |
SΣC | 1..1 | Identifier | Identificador del documento, el mismo en todas sus versiones Constraints: cr-documento-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 | ||||||
![]() ![]() ![]() |
Σ | 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/documento/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | ||||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Número del documento 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ΣC | 0..1 | string | 1 para la primera emisión, 2 para la primera corrección o adenda, y así sucesivamente Constraints: cr-documento-version-value | ||||||
![]() ![]() |
?!SΣ | 1..1 | code | Estado: preliminary | final | corrected | appended | entered-in-error Vinculación: Estado del documento (required) | ||||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Tipo de documento (LOINC) Vinculación: Tipo de documento clínico (extensible) | ||||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Categorization of Composition Vinculación: ReferencedItemCategoryValueSet (example): High-level kind of a clinical document at a macro level. | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Paciente) | Paciente del documento | ||||||
![]() ![]() |
SΣ | 0..1 | Reference(Atención) | Atención de la que resulta el documento | ||||||
![]() ![]() |
SΣC | 1..1 | dateTime | Fecha y hora en que se redactó (no futura) Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura | ||||||
![]() ![]() |
Σ | 0..* | UsageContext | The context that the content is intended to support | ||||||
![]() ![]() |
SΣ | 1..* | Reference(Rol del profesional | Profesional de salud | Organización) | Responsable del contenido: profesional en su rol u organización | ||||||
![]() ![]() |
Σ | 0..1 | string | Name for this Composition (computer friendly) | ||||||
![]() ![]() |
SΣ | 1..1 | string | Título del documento, en español Longitud máxima:250 | ||||||
![]() ![]() |
0..* | Annotation | For any additional notes | |||||||
![]() ![]() |
S | 0..* | BackboneElement | Quién valida el documento (validación legal del profesional) | ||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||||
![]() ![]() ![]() |
S | 1..1 | CodeableConcept | legal | professional | official | personal Vinculación: CompositionAttestationMode (required) | ||||||
![]() ![]() ![]() |
SC | 1..1 | dateTime | Fecha y hora de la validación Constraints: cr-documento-fecha-hora | ||||||
![]() ![]() ![]() |
S | 1..1 | Reference(Rol del profesional | Profesional de salud | Paciente | Persona relacionada | Organización) | Quién valida: profesional, organización, paciente o persona relacionada, según el modo | ||||||
![]() ![]() |
SΣ | 1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | ||||||
![]() ![]() |
S | 0..* | RelatedArtifact | Versión anterior o documento fuente transformado | ||||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() |
SΣ | 1..1 | code | replaces | appends | transforms Vinculación: Relación entre documentos (required) | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableConcept | Additional classifiers Vinculación: CitationArtifactClassifier (example): Additional classifiers for the related artifact. | ||||||
![]() ![]() ![]() |
Σ | 0..1 | string | Short label | ||||||
![]() ![]() ![]() |
Σ | 0..1 | string | Brief description of the related artifact | ||||||
![]() ![]() ![]() |
Σ | 0..1 | markdown | Bibliographic citation for the artifact | ||||||
![]() ![]() ![]() |
Σ | 0..1 | Attachment | What document is being referenced | ||||||
![]() ![]() ![]() |
Σ | 0..1 | canonical(Resource) | What artifact is being referenced | ||||||
![]() ![]() ![]() |
SΣ | 1..1 | Reference(Documento clínico) | Documento relacionado, por su identificador | ||||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Sin orden, Abierto by value:url | |||||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Vinculación: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||||
![]() ![]() ![]() ![]() |
SΣC | 1..1 | Identifier | Identificador del documento relacionado | ||||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Versión del documento relacionado (versión 1) | ||||||
![]() ![]() ![]() |
Σ | 0..1 | code | draft | active | retired | unknown Vinculación: PublicationStatus (required): Publication status of an artifact being referred to. | ||||||
![]() ![]() ![]() |
Σ | 0..1 | date | Date of publication of the artifact being referred to | ||||||
![]() ![]() |
Σ | 0..* | BackboneElement | The clinical service(s) being documented | ||||||
![]() ![]() ![]() |
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 | Period | The period covered by the documentation | ||||||
![]() ![]() ![]() |
Σ | 0..* | CodeableReference(Resource) | The event(s) being documented, as code(s), reference(s), or both Vinculación: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | ||||||
![]() ![]() |
SC | 1..* | BackboneElement | Secciones del documento (al menos una; las define cada guía de dominio) Constraints: cmp-1, cmp-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 | 1..1 | string | Título de la sección Longitud máxima:250 | ||||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Código de la sección (LOINC) Vinculación: DocumentSectionCodes (example): Classification of a section of a composition/document. | ||||||
![]() ![]() ![]() |
0..* | Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization) | Who and/or what authored the section | |||||||
![]() ![]() ![]() |
0..1 | Reference(Resource) | Who/what the section is about, when it is not about the subject of composition | |||||||
![]() ![]() ![]() |
SC | 1..1 | Narrative | Texto narrativo de la sección, que es lo que se lee y se valida Este perfil no restringe el contenido de la narrativa, su idioma ni su correspondencia con los elementos de datos | ||||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Order of section entries Vinculación: ListOrderCodes (preferred): What order applies to the items in the entry. | |||||||
![]() ![]() ![]() |
SC | 0..* | Reference(Resource) | Recursos de la sección | ||||||
![]() ![]() ![]() |
SC | 0..1 | CodeableConcept | Motivo de una sección vacía Vinculación: ListEmptyReasons (preferred): If a section is empty, why it is empty. | ||||||
![]() ![]() ![]() |
0..* | Vea section (Composition) | Nested Section | |||||||
Documentación de este formato | ||||||||||
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cmp-1 | error | Composition.section | A section must contain at least one of text, entries, or sub-sections |
text.exists() or entry.exists() or section.exists()
|
| cmp-2 | error | Composition.section | A section can only have an emptyReason if it is empty |
emptyReason.empty() or entry.empty()
|
| cr-codigo-interno-value | error | Composition.identifier.value | Un código interno tiene de 1 a 64 caracteres, sin espacios. |
matches('^\\S{1,64}$')
|
| cr-documento-fecha-atencion | error | Composition | La fecha del documento no es anterior al inicio de su atención. |
encounter.exists() implies (encounter.resolve().actualPeriod.start.empty() or date >= encounter.resolve().actualPeriod.start)
|
| cr-documento-fecha-hora | error | Composition.date, Composition.attester.time | La fecha lleva fecha y hora, no solo la fecha. |
toString().contains('T')
|
| cr-documento-fecha-no-futura | error | Composition.date | La fecha del documento no es futura. |
$this <= now()
|
| cr-documento-relacion | error | Composition | Una corrección o anulación reemplaza la versión anterior; una adenda le agrega contenido. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type = 'replaces').exists()) and (status = 'appended' implies relatesTo.where(type = 'appends').exists())
|
| cr-documento-relacion-tipo | error | Composition | La relación de una corrección o anulación es exclusivamente replaces; la de una adenda es exclusivamente appends. |
(status in ('corrected' | 'entered-in-error') implies relatesTo.where(type != 'replaces').empty()) and (status = 'appended' implies relatesTo.where(type != 'appends').empty())
|
| cr-documento-sensibilidad | error | Composition | Un documento con una sensibilidad tiene confidencialidad R o V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code in ('R' | 'V')).exists()
|
| cr-documento-sensibilidad-v | error | Composition | Un documento con notas de psicoterapia (PSYTHPN) o sobre violencia sexual o doméstica (SDV) tiene confidencialidad V. |
meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' and code in ('PSYTHPN' | 'SDV')).exists() implies meta.security.where(system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality' and code = 'V').exists()
|
| cr-documento-system | error | Composition.identifier | El system del identificador es https://hl7.or.cr/fhir/sid/documento/ seguido del código del establecimiento (cj-, cn- o dimex- y el identificador del titular). |
system.matches('^https://hl7\\.or\\.cr/fhir/sid/documento/(cj-[1-9][0-9]{9}|cn-[1-9][0-9]{8}|dimex-[1-9][0-9]{10,11})$')
|
| cr-documento-validacion-fecha | error | Composition | La validación no es anterior a la fecha del documento. |
attester.all(time.empty() or time >= %resource.date)
|
| cr-documento-validacion-legal | error | Composition | Un documento final, corregido o con adenda redactado por un profesional lleva la validación legal (attester.mode legal). |
status in ('final' | 'corrected' | 'appended') and author.where(resolve() is PractitionerRole or resolve() is Practitioner).exists() implies attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'legal').exists()).exists()
|
| cr-documento-validacion-oficial | error | Composition | La validación oficial corresponde a una organización. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'official').exists()).all(party.resolve() is Organization)
|
| cr-documento-validacion-personal | error | Composition | La validación personal corresponde al paciente o a una persona relacionada. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code = 'personal').exists()).all(party.resolve() is Patient or party.resolve() is RelatedPerson)
|
| cr-documento-validacion-profesional | error | Composition | La validación legal o profesional corresponde a un profesional de salud. |
attester.where(mode.coding.where(system = 'http://hl7.org/fhir/composition-attestation-mode' and code in ('legal' | 'professional')).exists()).all(party.resolve() is PractitionerRole or party.resolve() is Practitioner)
|
| cr-documento-version | error | Composition | Una versión que reemplaza o amplía otra indica su número de versión. |
relatesTo.where(type in ('replaces' | 'appends')).exists() implies version.exists()
|
| cr-documento-version-value | error | Composition.version | La versión es un número entero positivo: 1, 2, 3. |
matches('^[1-9][0-9]*$')
|
| dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Composition | 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 | Composition | 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 | Composition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | buena práctica | Composition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **TODOS** los elementos | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **TODAS** las extensiones | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Esta estructura se deriva de Composition .
Resumen
Obligatorios: 12 elementos(5 nested mandatory elementos)
Debe dar soporte a: 29 elementos
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Slices
Esta estructura define los siguientes slices:
Maturity: 0
Otras representaciones de perfil: CSV, Excel, Schematron
No se intercambia sola: es la primera entrada del documento clínico completo, que se envía y se obtiene en el repositorio de documentos.
Todo documento lleva al menos una sección: allí está su contenido clínico legible. Core no fija los títulos, códigos ni entradas de las secciones; cada guía de dominio los restringe. Cuando el documento resulta de una atención, la guía de dominio hace obligatoria encounter y el servidor comprueba que su paciente sea el mismo de subject, incluso si alguna referencia es lógica.
author identifica quién redactó o generó el documento; attester quién responde por su validación; y custodian la organización que lo conserva. No son datos duplicados. La firma digital verificable no va en Composition: se registra separadamente en la procedencia de firma, que apunta a la versión exacta del Bundle. Un documento generado automáticamente puede tener organización autora y custodio, sin validación legal de un profesional. Si existe al menos un autor profesional, la validación legal sigue siendo obligatoria aunque también figure una organización autora. El responsable de la validación debe concordar con el modo: profesional para legal y professional, organización para official, y paciente o persona relacionada para personal; el Bundle contiene los recursos referenciados para que el servidor pueda comprobarlo.
Una corrección (corrected) o anulación (entered-in-error) sustituye exclusivamente la versión previa mediante relatesTo.type = replaces; una adenda (appended) agrega contenido exclusivamente mediante appends. Estas son versiones clínicas y deben llevar número de versión. transforms solo enlaza el mismo contenido en otro formato; no es una enmienda ni crea por sí sola una nueva versión. Las invariantes del perfil rechazan combinaciones contradictorias, como una adenda con replaces.
Ver también Servicios del HIE.