Guía de Implementación de Resultados de Laboratorio de Costa Rica
0.1.0 - ci-build
Guía de Implementación de Resultados de Laboratorio 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. Por ahora aplica solo al sector privado, hasta que el Ministerio de Salud publique la hoja de ruta de las guías de implementación públicas.
| URL oficial: https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-composition-laboratory-result | Versión: 0.1.0 | ||||
| Standards status: Informative * | Nombre computable: CRCompositionLaboratoryResult | ||||
Perfil de composición clínica para estructurar documentos de resultados de laboratorio (HbA1c y glucosa en ayunas) en el PoC de Costa Rica.
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..* | CRComposition | 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 |
![]() ![]() |
1..1 | Meta | Metadatos: las etiquetas de seguridad | |
![]() ![]() ![]() |
1..* | Coding | Etiqueta de confidencialidad, cubierta por la firma Slice: Sin orden, Abierto by value:system Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() ![]() |
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 (extensions allowed) | |
![]() ![]() ![]() ![]() |
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 (extensions allowed) | |
![]() ![]() |
0..1 | uri | Reglas que rigen la interpretación del contenido del recurso | |
![]() ![]() |
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 | Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan | |
![]() ![]() |
C | 1..1 | Identifier | Identificador del documento, cubierto por la firma 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 (extensions allowed) | |
![]() ![]() ![]() |
1..1 | uri | https://hl7.or.cr/fhir/sid/documento/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | |
![]() ![]() ![]() |
C | 1..1 | string | Número del documento Constraints: cr-codigo-interno-value Ejemplo General: 123456 Longitud máxima:64 |
![]() ![]() |
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 |
![]() ![]() |
1..1 | code | Estado final del documento Vinculación: Estado del documento (required) Patrón requerido: final (extensions allowed) | |
![]() ![]() |
1..1 | CodeableConcept | Tipo de documento clínico Vinculación: Tipos de Documento Clínico de Laboratorio (required) Patrón requerido: | |
![]() ![]() |
1..1 | Reference(Patient - Resultados de Laboratorio) | Paciente del documento | |
![]() ![]() |
C | 1..1 | dateTime | Fecha del documento Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura, cr-composition-date-no-future |
![]() ![]() |
1..* | Reference(Organization - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | PractitionerRole - Resultados de Laboratorio) | Autores del documento | |
![]() ![]() |
1..1 | string | Título del documento Longitud máxima:250 | |
![]() ![]() |
1..* | BackboneElement | Quien atesta el documento, cubierto por la firma | |
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() |
1..1 | CodeableConcept | Modo de atestacion Vinculación: CompositionAttestationMode (required) | |
![]() ![]() ![]() |
C | 1..1 | dateTime | Momento de la atestacion Constraints: cr-documento-fecha-hora |
![]() ![]() ![]() |
1..1 | Reference(PractitionerRole - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | Organization - Resultados de Laboratorio) | Quien atesta | |
![]() ![]() |
1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | |
![]() ![]() |
0..* | RelatedArtifact | Versión anterior o documento fuente transformado | |
![]() ![]() ![]() |
1..1 | code | replaces | appends | transforms Vinculación: Relación entre documentos (required) | |
![]() ![]() ![]() |
1..1 | Reference(Documento clínico) | Documento relacionado, por su identificador | |
![]() ![]() ![]() ![]() |
C | 0..1 | string | Literal reference, Relative, internal or absolute URL |
![]() ![]() ![]() ![]() |
C | 1..1 | Identifier | Identificador del documento relacionado |
![]() ![]() |
C | 1..* | BackboneElement | Secciones del documento Constraints: cmp-1, cmp-2 |
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() |
1..1 | string | Título de la sección Longitud máxima:250 | |
![]() ![]() ![]() |
0..1 | CodeableConcept | Código de la sección (LOINC) Vinculación: DocumentSectionCodes (example): Classification of a section of a composition/document. | |
![]() ![]() ![]() |
C | 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 |
![]() ![]() ![]() |
C | 1..* | Reference(DiagnosticReport Laboratorio) | Recursos clínicos referenciados por la sección |
![]() ![]() ![]() |
C | 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 | ||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente | Documentación |
| Composition.meta.security | Base | extensible | All Security Labels | 📍5.0.0 | Estándar FHIR |
Security Labels from the Healthcare Privacy and Security Classification System. |
| 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.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | Estándar FHIR |
Identifies the purpose for this identifier, if known . |
| 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 | required | Tipos de Documento Clínico de Laboratorio | 📦0.1.0 | Esta IG | |
| 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 | |
| Composition.section.code | Base | example | Document Section Codes | 📍5.0.0 | Estándar FHIR |
Classification of a section of a composition/document. |
| Composition.section.emptyReason | Base | preferred | List Empty Reasons | 📍5.0.0 | Estándar FHIR |
If a section is empty, why it is empty. |
| 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-composition-date-no-future | error | Composition.date | La fecha de creación del documento no puede ser futura. |
$this <= now()
|
| 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 CRComposition .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() |
|---|---|---|---|---|
![]() |
CRComposition | |||
![]() ![]() |
1..1 | Meta | Metadatos: las etiquetas de seguridad | |
![]() ![]() ![]() |
1..* | Coding | Etiqueta de confidencialidad, cubierta por la firma Other Changes: documentation | |
![]() ![]() |
1..1 | Identifier | Identificador del documento, cubierto por la firma Other Changes: documentation | |
![]() ![]() |
1..1 | code | Estado final del documento Patrón requerido: final (extensions allowed) Other Changes: documentation | |
![]() ![]() |
1..1 | CodeableConcept | Tipo de documento clínico Vinculación: Tipos de Documento Clínico de Laboratorio (required) Patrón requerido: Other Changes: documentation | |
![]() ![]() |
1..1 | Reference(Patient - Resultados de Laboratorio) | Paciente del documento Other Changes: documentation | |
![]() ![]() |
0..0 | Sin encuentro documentado Other Changes: documentation | ||
![]() ![]() |
C | 1..1 | dateTime | Fecha del documento Constraints: cr-composition-date-no-future Other Changes: documentation |
![]() ![]() |
1..* | Reference(Organization - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | PractitionerRole - Resultados de Laboratorio) | Autores del documento Other Changes: documentation | |
![]() ![]() |
1..1 | string | Título del documento Other Changes: documentation | |
![]() ![]() |
1..* | BackboneElement | Quien atesta el documento, cubierto por la firma Other Changes: documentation | |
![]() ![]() ![]() |
1..1 | CodeableConcept | Modo de atestacion | |
![]() ![]() ![]() |
1..1 | dateTime | Momento de la atestacion | |
![]() ![]() ![]() |
1..1 | Reference(PractitionerRole - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | Organization - Resultados de Laboratorio) | Quien atesta | |
![]() ![]() |
1..* | BackboneElement | Secciones del documento Other Changes: documentation | |
![]() ![]() ![]() |
1..1 | string | Título de la sección Other Changes: documentation | |
![]() ![]() ![]() |
1..* | Reference(DiagnosticReport Laboratorio) | Recursos clínicos referenciados por la sección Other Changes: documentation | |
Documentación de este formato | ||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente |
| Composition.type | Base | required | Tipos de Documento Clínico de Laboratorio | 📦0.1.0 | Esta IG |
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-composition-date-no-future | error | Composition.date | La fecha de creación del documento no puede ser futura. |
$this <= now()
|
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | CRComposition | 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 | |||||||
![]() ![]() |
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 | Etiqueta de confidencialidad, cubierta por la firma Slice: Sin orden, Abierto by value:system Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||||
![]() ![]() ![]() ![]() |
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 (extensions allowed) | |||||||
![]() ![]() ![]() ![]() ![]() |
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 | 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 (extensions allowed) | |||||||
![]() ![]() ![]() ![]() ![]() |
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) | |||||||
![]() ![]() |
C | 1..1 | Identifier | Identificador del documento, cubierto por la firma 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 (extensions allowed) | |||||||
![]() ![]() ![]() |
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. | |||||||
![]() ![]() ![]() |
1..1 | uri | https://hl7.or.cr/fhir/sid/documento/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | |||||||
![]() ![]() ![]() |
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) | |||||||
![]() ![]() |
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 | ||||||
![]() ![]() |
1..1 | code | Estado final del documento Vinculación: Estado del documento (required) Patrón requerido: final (extensions allowed) | |||||||
![]() ![]() |
1..1 | CodeableConcept | Tipo de documento clínico Vinculación: Tipos de Documento Clínico de Laboratorio (required) Patrón requerido: | |||||||
![]() ![]() |
0..* | CodeableConcept | Categorization of Composition Vinculación: ReferencedItemCategoryValueSet (example): High-level kind of a clinical document at a macro level. | |||||||
![]() ![]() |
1..1 | Reference(Patient - Resultados de Laboratorio) | Paciente del documento | |||||||
![]() ![]() |
C | 1..1 | dateTime | Fecha del documento Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura, cr-composition-date-no-future | ||||||
![]() ![]() |
0..* | UsageContext | The context that the content is intended to support | |||||||
![]() ![]() |
1..* | Reference(Organization - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | PractitionerRole - Resultados de Laboratorio) | Autores del documento | |||||||
![]() ![]() |
0..1 | string | Name for this Composition (computer friendly) | |||||||
![]() ![]() |
1..1 | string | Título del documento Longitud máxima:250 | |||||||
![]() ![]() |
0..* | Annotation | For any additional notes | |||||||
![]() ![]() |
1..* | BackboneElement | Quien atesta el documento, cubierto por la firma | |||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||||
![]() ![]() ![]() |
1..1 | CodeableConcept | Modo de atestacion Vinculación: CompositionAttestationMode (required) | |||||||
![]() ![]() ![]() |
C | 1..1 | dateTime | Momento de la atestacion Constraints: cr-documento-fecha-hora | ||||||
![]() ![]() ![]() |
1..1 | Reference(PractitionerRole - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | Organization - Resultados de Laboratorio) | Quien atesta | |||||||
![]() ![]() |
1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | |||||||
![]() ![]() |
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 | |||||||
![]() ![]() ![]() |
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 | |||||||
![]() ![]() ![]() |
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). | |||||||
![]() ![]() ![]() ![]() |
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. | |||||||
![]() ![]() |
C | 1..* | BackboneElement | Secciones del documento 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 | |||||||
![]() ![]() ![]() |
1..1 | string | Título de la sección Longitud máxima:250 | |||||||
![]() ![]() ![]() |
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 | |||||||
![]() ![]() ![]() |
C | 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. | |||||||
![]() ![]() ![]() |
C | 1..* | Reference(DiagnosticReport Laboratorio) | Recursos clínicos referenciados por la sección | ||||||
![]() ![]() ![]() |
C | 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 | ||||||||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente | Documentación |
| Composition.meta.security | Base | extensible | All Security Labels | 📍5.0.0 | Estándar FHIR |
Security Labels from the Healthcare Privacy and Security Classification System. |
| 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.meta.tag | Base | example | Common Tags | 📍5.0.0 | Estándar FHIR |
Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". |
| Composition.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
Etiqueta de idioma para un lenguaje humano, conforme a IETF BCP 47. |
| Additional / all | Inicial | Common Languages | 📍5.0.0 | Estándar FHIR | ||
| Additional / all | Inicial | Common Languages | 📦5.0.0 | Estándar FHIR | ||
| Composition.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | Estándar FHIR |
Identifies the purpose for this identifier, if known . |
| Composition.identifier.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | Estándar FHIR |
A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. |
| 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 | required | Tipos de Documento Clínico de Laboratorio | 📦0.1.0 | Esta IG | |
| Composition.category | Base | example | Referenced Item Category Value Set | 📍5.0.0 | Estándar FHIR |
High-level kind of a clinical document at a macro level. |
| 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 | |
| Composition.relatesTo.classifier | Base | example | Citation Artifact Classifier | 📍5.0.0 | Estándar FHIR |
Additional classifiers for the related artifact. |
| Composition.relatesTo.resourceReference.type | Base | extensible | Resource Types | 📍5.0.0 | Estándar FHIR |
Aa resource (or, for logical models, the URI of the logical model). |
| Composition.relatesTo.publicationStatus | Base | required | PublicationStatus | 📍5.0.0 | Estándar FHIR |
Publication status of an artifact being referred to. |
| Composition.event.detail | Base | example | v3 Code System ActCode | 📦3.0.0 | THO v7.5 |
This list of codes represents the main clinical acts being documented. |
| Composition.section.code | Base | example | Document Section Codes | 📍5.0.0 | Estándar FHIR |
Classification of a section of a composition/document. |
| Composition.section.orderedBy | Base | preferred | List Order Codes | 📍5.0.0 | Estándar FHIR |
What order applies to the items in the entry. |
| Composition.section.emptyReason | Base | preferred | List Empty Reasons | 📍5.0.0 | Estándar FHIR |
If a section is empty, why it is empty. |
| 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-composition-date-no-future | error | Composition.date | La fecha de creación del documento no puede ser futura. |
$this <= now()
|
| 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 CRComposition .
Resumen
Obligatorios: 2 elementos
Debe dar soporte a: 1 elemento
Prohibidos: 1 elemento
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Vista de elementos clave
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | CRComposition | 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 |
![]() ![]() |
1..1 | Meta | Metadatos: las etiquetas de seguridad | |
![]() ![]() ![]() |
1..* | Coding | Etiqueta de confidencialidad, cubierta por la firma Slice: Sin orden, Abierto by value:system Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() ![]() |
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 (extensions allowed) | |
![]() ![]() ![]() ![]() |
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 (extensions allowed) | |
![]() ![]() |
0..1 | uri | Reglas que rigen la interpretación del contenido del recurso | |
![]() ![]() |
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 | Extensiones modificadoras que no deben ignorarse, aunque no se reconozcan | |
![]() ![]() |
C | 1..1 | Identifier | Identificador del documento, cubierto por la firma 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 (extensions allowed) | |
![]() ![]() ![]() |
1..1 | uri | https://hl7.or.cr/fhir/sid/documento/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | |
![]() ![]() ![]() |
C | 1..1 | string | Número del documento Constraints: cr-codigo-interno-value Ejemplo General: 123456 Longitud máxima:64 |
![]() ![]() |
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 |
![]() ![]() |
1..1 | code | Estado final del documento Vinculación: Estado del documento (required) Patrón requerido: final (extensions allowed) | |
![]() ![]() |
1..1 | CodeableConcept | Tipo de documento clínico Vinculación: Tipos de Documento Clínico de Laboratorio (required) Patrón requerido: | |
![]() ![]() |
1..1 | Reference(Patient - Resultados de Laboratorio) | Paciente del documento | |
![]() ![]() |
C | 1..1 | dateTime | Fecha del documento Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura, cr-composition-date-no-future |
![]() ![]() |
1..* | Reference(Organization - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | PractitionerRole - Resultados de Laboratorio) | Autores del documento | |
![]() ![]() |
1..1 | string | Título del documento Longitud máxima:250 | |
![]() ![]() |
1..* | BackboneElement | Quien atesta el documento, cubierto por la firma | |
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() |
1..1 | CodeableConcept | Modo de atestacion Vinculación: CompositionAttestationMode (required) | |
![]() ![]() ![]() |
C | 1..1 | dateTime | Momento de la atestacion Constraints: cr-documento-fecha-hora |
![]() ![]() ![]() |
1..1 | Reference(PractitionerRole - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | Organization - Resultados de Laboratorio) | Quien atesta | |
![]() ![]() |
1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | |
![]() ![]() |
0..* | RelatedArtifact | Versión anterior o documento fuente transformado | |
![]() ![]() ![]() |
1..1 | code | replaces | appends | transforms Vinculación: Relación entre documentos (required) | |
![]() ![]() ![]() |
1..1 | Reference(Documento clínico) | Documento relacionado, por su identificador | |
![]() ![]() ![]() ![]() |
C | 0..1 | string | Literal reference, Relative, internal or absolute URL |
![]() ![]() ![]() ![]() |
C | 1..1 | Identifier | Identificador del documento relacionado |
![]() ![]() |
C | 1..* | BackboneElement | Secciones del documento Constraints: cmp-1, cmp-2 |
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() |
1..1 | string | Título de la sección Longitud máxima:250 | |
![]() ![]() ![]() |
0..1 | CodeableConcept | Código de la sección (LOINC) Vinculación: DocumentSectionCodes (example): Classification of a section of a composition/document. | |
![]() ![]() ![]() |
C | 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 |
![]() ![]() ![]() |
C | 1..* | Reference(DiagnosticReport Laboratorio) | Recursos clínicos referenciados por la sección |
![]() ![]() ![]() |
C | 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 | ||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente | Documentación |
| Composition.meta.security | Base | extensible | All Security Labels | 📍5.0.0 | Estándar FHIR |
Security Labels from the Healthcare Privacy and Security Classification System. |
| 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.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | Estándar FHIR |
Identifies the purpose for this identifier, if known . |
| 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 | required | Tipos de Documento Clínico de Laboratorio | 📦0.1.0 | Esta IG | |
| 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 | |
| Composition.section.code | Base | example | Document Section Codes | 📍5.0.0 | Estándar FHIR |
Classification of a section of a composition/document. |
| Composition.section.emptyReason | Base | preferred | List Empty Reasons | 📍5.0.0 | Estándar FHIR |
If a section is empty, why it is empty. |
| 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-composition-date-no-future | error | Composition.date | La fecha de creación del documento no puede ser futura. |
$this <= now()
|
| 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 CRComposition .
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() |
|---|---|---|---|---|
![]() |
CRComposition | |||
![]() ![]() |
1..1 | Meta | Metadatos: las etiquetas de seguridad | |
![]() ![]() ![]() |
1..* | Coding | Etiqueta de confidencialidad, cubierta por la firma Other Changes: documentation | |
![]() ![]() |
1..1 | Identifier | Identificador del documento, cubierto por la firma Other Changes: documentation | |
![]() ![]() |
1..1 | code | Estado final del documento Patrón requerido: final (extensions allowed) Other Changes: documentation | |
![]() ![]() |
1..1 | CodeableConcept | Tipo de documento clínico Vinculación: Tipos de Documento Clínico de Laboratorio (required) Patrón requerido: Other Changes: documentation | |
![]() ![]() |
1..1 | Reference(Patient - Resultados de Laboratorio) | Paciente del documento Other Changes: documentation | |
![]() ![]() |
0..0 | Sin encuentro documentado Other Changes: documentation | ||
![]() ![]() |
C | 1..1 | dateTime | Fecha del documento Constraints: cr-composition-date-no-future Other Changes: documentation |
![]() ![]() |
1..* | Reference(Organization - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | PractitionerRole - Resultados de Laboratorio) | Autores del documento Other Changes: documentation | |
![]() ![]() |
1..1 | string | Título del documento Other Changes: documentation | |
![]() ![]() |
1..* | BackboneElement | Quien atesta el documento, cubierto por la firma Other Changes: documentation | |
![]() ![]() ![]() |
1..1 | CodeableConcept | Modo de atestacion | |
![]() ![]() ![]() |
1..1 | dateTime | Momento de la atestacion | |
![]() ![]() ![]() |
1..1 | Reference(PractitionerRole - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | Organization - Resultados de Laboratorio) | Quien atesta | |
![]() ![]() |
1..* | BackboneElement | Secciones del documento Other Changes: documentation | |
![]() ![]() ![]() |
1..1 | string | Título de la sección Other Changes: documentation | |
![]() ![]() ![]() |
1..* | Reference(DiagnosticReport Laboratorio) | Recursos clínicos referenciados por la sección Other Changes: documentation | |
Documentación de este formato | ||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente |
| Composition.type | Base | required | Tipos de Documento Clínico de Laboratorio | 📦0.1.0 | Esta IG |
| Id | Nivel | Ruta(s) | Descripción | Expresión |
| cr-composition-date-no-future | error | Composition.date | La fecha de creación del documento no puede ser futura. |
$this <= now()
|
Vista instantáneaView
| Nombre | Marcas | Card. | Tipo | Descripción y restricciones Filter: ![]() | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | CRComposition | 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 | |||||||
![]() ![]() |
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 | Etiqueta de confidencialidad, cubierta por la firma Slice: Sin orden, Abierto by value:system Vinculación: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||||
![]() ![]() ![]() ![]() |
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 (extensions allowed) | |||||||
![]() ![]() ![]() ![]() ![]() |
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 | 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 (extensions allowed) | |||||||
![]() ![]() ![]() ![]() ![]() |
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) | |||||||
![]() ![]() |
C | 1..1 | Identifier | Identificador del documento, cubierto por la firma 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 (extensions allowed) | |||||||
![]() ![]() ![]() |
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. | |||||||
![]() ![]() ![]() |
1..1 | uri | https://hl7.or.cr/fhir/sid/documento/{código del establecimiento} Ejemplo General: http://www.acme.com/identifiers/patient | |||||||
![]() ![]() ![]() |
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) | |||||||
![]() ![]() |
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 | ||||||
![]() ![]() |
1..1 | code | Estado final del documento Vinculación: Estado del documento (required) Patrón requerido: final (extensions allowed) | |||||||
![]() ![]() |
1..1 | CodeableConcept | Tipo de documento clínico Vinculación: Tipos de Documento Clínico de Laboratorio (required) Patrón requerido: | |||||||
![]() ![]() |
0..* | CodeableConcept | Categorization of Composition Vinculación: ReferencedItemCategoryValueSet (example): High-level kind of a clinical document at a macro level. | |||||||
![]() ![]() |
1..1 | Reference(Patient - Resultados de Laboratorio) | Paciente del documento | |||||||
![]() ![]() |
C | 1..1 | dateTime | Fecha del documento Constraints: cr-documento-fecha-hora, cr-documento-fecha-no-futura, cr-composition-date-no-future | ||||||
![]() ![]() |
0..* | UsageContext | The context that the content is intended to support | |||||||
![]() ![]() |
1..* | Reference(Organization - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | PractitionerRole - Resultados de Laboratorio) | Autores del documento | |||||||
![]() ![]() |
0..1 | string | Name for this Composition (computer friendly) | |||||||
![]() ![]() |
1..1 | string | Título del documento Longitud máxima:250 | |||||||
![]() ![]() |
0..* | Annotation | For any additional notes | |||||||
![]() ![]() |
1..* | BackboneElement | Quien atesta el documento, cubierto por la firma | |||||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||||
![]() ![]() ![]() |
1..1 | CodeableConcept | Modo de atestacion Vinculación: CompositionAttestationMode (required) | |||||||
![]() ![]() ![]() |
C | 1..1 | dateTime | Momento de la atestacion Constraints: cr-documento-fecha-hora | ||||||
![]() ![]() ![]() |
1..1 | Reference(PractitionerRole - Resultados de Laboratorio | Practitioner - Resultados de Laboratorio | Organization - Resultados de Laboratorio) | Quien atesta | |||||||
![]() ![]() |
1..1 | Reference(Organización) | Entidad que emite el documento y lo custodia | |||||||
![]() ![]() |
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 | |||||||
![]() ![]() ![]() |
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 | |||||||
![]() ![]() ![]() |
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). | |||||||
![]() ![]() ![]() ![]() |
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. | |||||||
![]() ![]() |
C | 1..* | BackboneElement | Secciones del documento 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 | |||||||
![]() ![]() ![]() |
1..1 | string | Título de la sección Longitud máxima:250 | |||||||
![]() ![]() ![]() |
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 | |||||||
![]() ![]() ![]() |
C | 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. | |||||||
![]() ![]() ![]() |
C | 1..* | Reference(DiagnosticReport Laboratorio) | Recursos clínicos referenciados por la sección | ||||||
![]() ![]() ![]() |
C | 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 | ||||||||||
| Ruta | Estado | Uso | Conjunto de valores | Versión | Fuente | Documentación |
| Composition.meta.security | Base | extensible | All Security Labels | 📍5.0.0 | Estándar FHIR |
Security Labels from the Healthcare Privacy and Security Classification System. |
| 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.meta.tag | Base | example | Common Tags | 📍5.0.0 | Estándar FHIR |
Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". |
| Composition.language | Base | required | All Languages | 📍5.0.0 | Estándar FHIR |
Etiqueta de idioma para un lenguaje humano, conforme a IETF BCP 47. |
| Additional / all | Inicial | Common Languages | 📍5.0.0 | Estándar FHIR | ||
| Additional / all | Inicial | Common Languages | 📦5.0.0 | Estándar FHIR | ||
| Composition.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | Estándar FHIR |
Identifies the purpose for this identifier, if known . |
| Composition.identifier.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | Estándar FHIR |
A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. |
| 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 | required | Tipos de Documento Clínico de Laboratorio | 📦0.1.0 | Esta IG | |
| Composition.category | Base | example | Referenced Item Category Value Set | 📍5.0.0 | Estándar FHIR |
High-level kind of a clinical document at a macro level. |
| 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 | |
| Composition.relatesTo.classifier | Base | example | Citation Artifact Classifier | 📍5.0.0 | Estándar FHIR |
Additional classifiers for the related artifact. |
| Composition.relatesTo.resourceReference.type | Base | extensible | Resource Types | 📍5.0.0 | Estándar FHIR |
Aa resource (or, for logical models, the URI of the logical model). |
| Composition.relatesTo.publicationStatus | Base | required | PublicationStatus | 📍5.0.0 | Estándar FHIR |
Publication status of an artifact being referred to. |
| Composition.event.detail | Base | example | v3 Code System ActCode | 📦3.0.0 | THO v7.5 |
This list of codes represents the main clinical acts being documented. |
| Composition.section.code | Base | example | Document Section Codes | 📍5.0.0 | Estándar FHIR |
Classification of a section of a composition/document. |
| Composition.section.orderedBy | Base | preferred | List Order Codes | 📍5.0.0 | Estándar FHIR |
What order applies to the items in the entry. |
| Composition.section.emptyReason | Base | preferred | List Empty Reasons | 📍5.0.0 | Estándar FHIR |
If a section is empty, why it is empty. |
| 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-composition-date-no-future | error | Composition.date | La fecha de creación del documento no puede ser futura. |
$this <= now()
|
| 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 CRComposition .
Resumen
Obligatorios: 2 elementos
Debe dar soporte a: 1 elemento
Prohibidos: 1 elemento
Estructuras
Esta estructura hace referencia a estas otras estructuras:
Otras representaciones de perfil: CSV, Excel, Schematron