HL7 FHIR Costa Rica - Resultados de Laboratorio
0.0.2-draft - ci-build

HL7 FHIR Costa Rica - Resultados de Laboratorio, published by Iniciativa HL7 Costa Rica. This guide is not an authorized publication; it is the continuous build for version 0.0.2-draft built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7-cr/laboratory-results/ and changes regularly. See the Directory of published versions

## Resource Profile: Paciente - Resultados de Laboratorio

Official URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient | Version: 0.0.2
Standards status: Draft | Maturity Level: 0 | Computable Name: CRLabResultPatient
Copyright/Legal: Utilizado con permiso de HL7 International, todos los derechos reservados Licencia Creative Commons

Perfil Patient para representar pacientes en el contexto de resultados de laboratorio en Costa Rica. Incorpora todos los identificadores oficiales, metadatos y restricciones específicas del perfil CRCorePatient, permitiendo el uso en resultados de laboratorio sin requerir dependencia externa del Core IG.

Usages:

- Refer to this Profile: Resultado de Laboratorio - Colesterol Total, Resultado de Laboratorio Genérico, Resultado de Laboratorio - Glucosa, Resultado de Laboratorio - HbA1c and Resultado de Laboratorio - Hemoglobina
- Examples for this Profile: Patient/PatientLabResultExample

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Patient | C | 0..* | Patient(5.0.0) | Information about an individual or animal receiving health care services Constraints: only-one-cedula, only-one-dimex
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1
extension:calculatedAge | S | 0..1 | Age | Edad calculada del paciente - Resultados de Laboratorio URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient-calculated-age Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1
identifier | S Σ | 1..* | Identifier | Identificadores oficiales y alternativos del paciente.
use | ?!S Σ | 0..1 | code | usual | official | temp | secondary | old Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | Σ | 0..1 | CodeableConcept | Tipo de documento de identificación (Required) Binding: CRIdentifierTypesSet (0.0.1) (required): ValueSet de tipos de identificación oficiales y permitidos para pacientes en Costa Rica.
active | ?!S Σ | 0..1 | boolean | Si el registro del paciente está activo.
name | S Σ | 1..1 | HumanName | Nombre(s) y apellido(s) del paciente.
use | ?!Σ | 0..1 | code | usual | official | temp | nickname | anonymous | old | maiden Binding: NameUse (required): The use of a human name.
family | S Σ | 1..1 | string | Primer apellido obligatorio; puede incluir el segundo apellido.
given | S Σ | 1..2 | string | Primer nombre obligatorio, segundo nombre opcional. This repeating element order: Given Names appear in the correct order for presenting the name
telecom | S Σ | 0..* | ContactPoint | Información de contacto del paciente (teléfono, correo electrónico, etc.).
system | S Σ C | 0..1 | code | phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): Telecommunications form for contact point.
value | S Σ C | 0..1 | string | El número telefónico o dirección de correo electrónico.
use | ?!S Σ | 0..1 | code | home | work | temp | old | mobile Binding: ContactPointUse (required): Use of contact point.
gender | S Σ | 1..1 | code | Sexo biológico del paciente. Binding: AdministrativeGender (required)
birthDate | S Σ | 1..1 | date | Fecha de nacimiento del paciente.
Slices for deceased[x] | ?!S Σ | 0..1 |  | Información sobre el fallecimiento del paciente. Slice: Unordered, Closed by type:$this
deceasedBoolean |  |  | boolean |
deceasedDateTime |  |  | dateTime |
deceased[x]:deceasedBoolean | ?!S Σ | 0..1 | boolean | Indica si el paciente ha fallecido (sí/no).
deceased[x]:deceasedDateTime | ?!S Σ | 0..1 | dateTime | Fecha y hora exacta del fallecimiento.
address | S Σ | 0..* | CRLabResultAddress(0.0.2) | Dirección(es) del paciente.
use | ?!S Σ | 0..1 | code | home | work | temp | old | billing Binding: AddressUse (required): The use of an address (home / work / etc.). Example General: home
type | S Σ | 0..1 | code | postal | physical | both Binding: AddressType (required): The type of an address (physical / postal). Example General: both
line | S Σ | 1..* | string | Línea de dirección (calle, número, referencias). This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street
city | S Σ | 0..1 | string | Cantón de Costa Rica. Example General: Erewhon
Slices for extension |  |  |  | Content/Rules for all slices
extension:cityCode |  | 0..1 | CodeableConcept | Extensión para cantón URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-city-ext Binding: CRCities (0.0.1) (required): Códigos de cantones de Costa Rica basados en el ZipCode. Constraints: ext-1
district | S Σ | 0..1 | string | Distrito de Costa Rica. Example General: Madison
Slices for extension |  |  |  | Content/Rules for all slices
extension:districtCode |  | 0..1 | CodeableConcept | Extensión para distrito URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-district-ext Binding: CRDistricts (0.0.1) (required): Códigos de distritos de Costa Rica basados en el ZipCode. Constraints: ext-1
state | S Σ | 0..1 | string | Provincia de Costa Rica.
Slices for extension |  |  |  | Content/Rules for all slices
extension:stateCode |  | 0..1 | CodeableConcept | Extensión para provincia URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-state-ext Binding: CRProvinces (0.0.1) (required): Códigos de provincias de Costa Rica basados en el ZipCode. Constraints: ext-1
postalCode | S Σ | 0..1 | string | Código postal. Example General: 9132
country | S Σ | 0..1 | string | Nombre del país (CR).
Slices for extension |  |  |  | Content/Rules for all slices
extension:countryCode | S | 0..1 | CodeableConcept | Extensión para país URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-country-ext Binding: Iso316613 (required): Códigos de país en formato ISO 3166-1 alpha-3. Constraints: ext-1
contact | S C | 0..* | BackboneElement | Contacto(s) del paciente (familiares, tutores, etc.). Constraints: pat-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
name | S C | 0..1 | HumanName | Nombre del contacto.
telecom | S C | 0..* | ContactPoint | Información de contacto (teléfono, correo, etc.).
address | S C | 0..1 | Address | Dirección del contacto.
gender | S | 0..1 | code | Sexo del contacto. Binding: AdministrativeGender (required): The gender of a person used for administrative purposes.
link | ?!Σ | 0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
other | Σ | 1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to
type | Σ | 1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Patient.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std.
Patient.identifier.type | Base | required | Tipos de Identificadores de Personas | 📍0.0.1 | HL7 FHIR Costa Rica Terminología v0.0
Patient.name.use | Base | required | NameUse | 📍5.0.0 | FHIR Std.
Patient.telecom.system | Base | required | ContactPointSystem | 📍5.0.0 | FHIR Std.
Patient.telecom.use | Base | required | ContactPointUse | 📍5.0.0 | FHIR Std.
Patient.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.address.use | Base | required | AddressUse | 📍5.0.0 | FHIR Std.
Patient.address.type | Base | required | AddressType | 📍5.0.0 | FHIR Std.
Patient.contact.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.link.type | Base | required | Link Type | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Patient | 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 | Patient | 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 | Patient | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Patient | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | Patient.implicitRules, Patient.extension, Patient.extension:calculatedAge, Patient.modifierExtension, Patient.identifier, Patient.identifier.use, Patient.identifier.type, Patient.active, Patient.name, Patient.name.use, Patient.name.family, Patient.name.given, Patient.telecom, Patient.telecom.system, Patient.telecom.value, Patient.telecom.use, Patient.gender, Patient.birthDate, Patient.deceased[x], Patient.deceased[x]:deceasedBoolean, Patient.deceased[x]:deceasedDateTime, Patient.address, Patient.address.use, Patient.address.type, Patient.address.line, Patient.address.city, Patient.address.city.extension:cityCode, Patient.address.district, Patient.address.district.extension:districtCode, Patient.address.state, Patient.address.state.extension:stateCode, Patient.address.postalCode, Patient.address.country, Patient.address.country.extension:countryCode, Patient.contact, Patient.contact.modifierExtension, Patient.contact.name, Patient.contact.telecom, Patient.contact.address, Patient.contact.gender, Patient.link, Patient.link.modifierExtension, Patient.link.other, Patient.link.type | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | Patient.extension, Patient.extension:calculatedAge, Patient.modifierExtension, Patient.address.city.extension:cityCode, Patient.address.district.extension:districtCode, Patient.address.state.extension:stateCode, Patient.address.country.extension:countryCode, Patient.contact.modifierExtension, Patient.link.modifierExtension | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
only-one-cedula | error | Patient | El paciente no puede tener más de una cédula costarricense. | `identifier.where(type.coding.code='cedula').count() <= 1`
only-one-dimex | error | Patient | El paciente no puede tener más de un DIMEX. | `identifier.where(type.coding.code='dimex').count() <= 1`
pat-1 | error | Patient.contact | SHALL at least contain a contact's details or a reference to an organization | `name.exists() or telecom.exists() or address.exists() or organization.exists()`

This structure is derived from Patient

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Patient | C | 0..* | Patient(5.0.0) | Information about an individual or animal receiving health care services
meta |  |  |  |
security |  | 0..* | Coding | Etiqueta de seguridad Binding: Confidentiality (3.0.0) (required)
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:calculatedAge | S | 0..1 | Age | Edad calculada del paciente - Resultados de Laboratorio URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient-calculated-age
identifier | S | 1..* | Identifier | Identificadores oficiales y alternativos del paciente.
use | S | 0..1 | code | usual | official | temp | secondary | old
type |  | 0..1 | CodeableConcept | Tipo de documento de identificación (Required) Binding: CRIdentifierTypesSet (0.0.1) (required): ValueSet de tipos de identificación oficiales y permitidos para pacientes en Costa Rica.
active | S | 0..1 | boolean | Si el registro del paciente está activo.
name | S | 1..1 | HumanName | Nombre(s) y apellido(s) del paciente.
family | S | 1..1 | string | Primer apellido obligatorio; puede incluir el segundo apellido.
given | S | 1..2 | string | Primer nombre obligatorio, segundo nombre opcional.
telecom | S | 0..* | ContactPoint | Información de contacto del paciente (teléfono, correo electrónico, etc.).
system | S | 0..1 | code | phone | fax | email | pager | url | sms | other
value | S | 0..1 | string | El número telefónico o dirección de correo electrónico.
use | S | 0..1 | code | home | work | temp | old | mobile
gender | S | 1..1 | code | Sexo biológico del paciente. Binding: AdministrativeGender (required)
birthDate | S | 1..1 | date | Fecha de nacimiento del paciente.
Slices for deceased[x] | S | 0..1 | boolean, dateTime | Información sobre el fallecimiento del paciente. Slice: Unordered, Open by type:$this
deceased[x]:deceasedBoolean | S | 0..1 | boolean | Indica si el paciente ha fallecido (sí/no).
deceased[x]:deceasedDateTime | S | 0..1 | dateTime | Fecha y hora exacta del fallecimiento.
address | S | 0..* | CRLabResultAddress(0.0.2) | Dirección(es) del paciente.
use | S | 0..1 | code | home | work | temp | old | billing
type | S | 0..1 | code | postal | physical | both
line |  | 1..* | string | Línea de dirección (calle, número, referencias).
city | S | 0..1 | string | Cantón de Costa Rica.
district | S | 0..1 | string | Distrito de Costa Rica.
state | S | 0..1 | string | Provincia de Costa Rica.
postalCode | S | 0..1 | string | Código postal.
country |  | 0..1 | string | Nombre del país (CR).
contact | S | 0..* | BackboneElement | Contacto(s) del paciente (familiares, tutores, etc.).
name | S | 0..1 | HumanName | Nombre del contacto.
telecom | S | 0..* | ContactPoint | Información de contacto (teléfono, correo, etc.).
address | S | 0..1 | Address | Dirección del contacto.
gender | S | 0..1 | code | Sexo del contacto.
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Patient.meta.security | Base | required | Confidentiality | 📍3.0.0 | THO v7.1
Patient.identifier.type | Base | required | Tipos de Identificadores de Personas | 📍0.0.1 | HL7 FHIR Costa Rica Terminología v0.0
Patient.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Patient | C | 0..* | Patient(5.0.0) | Information about an individual or animal receiving health care services Constraints: only-one-cedula, only-one-dimex
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
versionId | Σ | 0..1 | id | Version specific identifier
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to
security | Σ | 0..* | Coding | Etiqueta de seguridad Binding: Confidentiality (3.0.0) (required)
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1
extension:calculatedAge | S | 0..1 | Age | Edad calculada del paciente - Resultados de Laboratorio URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient-calculated-age Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1
identifier | S Σ | 1..* | Identifier | Identificadores oficiales y alternativos del paciente.
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
use | ?!S Σ | 0..1 | code | usual | official | temp | secondary | old Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | Σ | 0..1 | CodeableConcept | Tipo de documento de identificación (Required) Binding: CRIdentifierTypesSet (0.0.1) (required): ValueSet de tipos de identificación oficiales y permitidos para pacientes en Costa Rica.
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 0..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text)
active | ?!S Σ | 0..1 | boolean | Si el registro del paciente está activo.
name | S Σ | 1..1 | HumanName | Nombre(s) y apellido(s) del paciente.
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
use | ?!Σ | 0..1 | code | usual | official | temp | nickname | anonymous | old | maiden Binding: NameUse (required): The use of a human name.
text | Σ | 0..1 | string | Text representation of the full name
family | S Σ | 1..1 | string | Primer apellido obligatorio; puede incluir el segundo apellido.
given | S Σ | 1..2 | string | Primer nombre obligatorio, segundo nombre opcional. This repeating element order: Given Names appear in the correct order for presenting the name
prefix | Σ | 0..* | string | Parts that come before the name This repeating element order: Prefixes appear in the correct order for presenting the name
suffix | Σ | 0..* | string | Parts that come after the name This repeating element order: Suffixes appear in the correct order for presenting the name
period | Σ | 0..1 | Period | Time period when name was/is in use
telecom | S Σ | 0..* | ContactPoint | Información de contacto del paciente (teléfono, correo electrónico, etc.).
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
system | S Σ C | 0..1 | code | phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): Telecommunications form for contact point.
value | S Σ C | 0..1 | string | El número telefónico o dirección de correo electrónico.
use | ?!S Σ | 0..1 | code | home | work | temp | old | mobile Binding: ContactPointUse (required): Use of contact point.
rank | Σ | 0..1 | positiveInt | Specify preferred order of use (1 = highest)
period | Σ | 0..1 | Period | Time period when the contact point was/is in use
gender | S Σ | 1..1 | code | Sexo biológico del paciente. Binding: AdministrativeGender (required)
birthDate | S Σ | 1..1 | date | Fecha de nacimiento del paciente.
Slices for deceased[x] | ?!S Σ | 0..1 |  | Información sobre el fallecimiento del paciente. Slice: Unordered, Closed by type:$this
deceasedBoolean |  |  | boolean |
deceasedDateTime |  |  | dateTime |
deceased[x]:deceasedBoolean | ?!S Σ | 0..1 | boolean | Indica si el paciente ha fallecido (sí/no).
deceased[x]:deceasedDateTime | ?!S Σ | 0..1 | dateTime | Fecha y hora exacta del fallecimiento.
address | S Σ | 0..* | CRLabResultAddress(0.0.2) | Dirección(es) del paciente.
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
use | ?!S Σ | 0..1 | code | home | work | temp | old | billing Binding: AddressUse (required): The use of an address (home / work / etc.). Example General: home
type | S Σ | 0..1 | code | postal | physical | both Binding: AddressType (required): The type of an address (physical / postal). Example General: both
text | Σ | 0..1 | string | Text representation of the address Example General: 137 Nowhere Street, Erewhon 9132
line | S Σ | 1..* | string | Línea de dirección (calle, número, referencias). This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street
city | S Σ | 0..1 | string | Cantón de Costa Rica. Example General: Erewhon
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Código de la ciudad basado en el ZipCode de Costa Rica Slice: Unordered, Open by value:url Constraints: ext-1
extension:cityCode |  | 0..1 | CodeableConcept | Extensión para cantón URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-city-ext Binding: CRCities (0.0.1) (required): Códigos de cantones de Costa Rica basados en el ZipCode. Constraints: ext-1
value |  | 0..1 | string | Primitive value for string Max Length:1048576
district | S Σ | 0..1 | string | Distrito de Costa Rica. Example General: Madison
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Código del distrito basado en el ZipCode de Costa Rica Slice: Unordered, Open by value:url Constraints: ext-1
extension:districtCode |  | 0..1 | CodeableConcept | Extensión para distrito URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-district-ext Binding: CRDistricts (0.0.1) (required): Códigos de distritos de Costa Rica basados en el ZipCode. Constraints: ext-1
value |  | 0..1 | string | Primitive value for string Max Length:1048576
state | S Σ | 0..1 | string | Provincia de Costa Rica.
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Código de la provincia basado en el ZipCode de Costa Rica Slice: Unordered, Open by value:url Constraints: ext-1
extension:stateCode |  | 0..1 | CodeableConcept | Extensión para provincia URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-state-ext Binding: CRProvinces (0.0.1) (required): Códigos de provincias de Costa Rica basados en el ZipCode. Constraints: ext-1
value |  | 0..1 | string | Primitive value for string Max Length:1048576
postalCode | S Σ | 0..1 | string | Código postal. Example General: 9132
country | S Σ | 0..1 | string | Nombre del país (CR).
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Código de país en formato ISO 3166-1 alpha-3 Slice: Unordered, Open by value:url Constraints: ext-1
extension:countryCode | S | 0..1 | CodeableConcept | Extensión para país URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-country-ext Binding: Iso316613 (required): Códigos de país en formato ISO 3166-1 alpha-3. Constraints: ext-1
value |  | 0..1 | string | Primitive value for string Max Length:1048576
period | Σ | 0..1 | Period | Time period when address was/is in use Example General: {"start":"2010-03-23","end":"2010-07-01"}
maritalStatus |  | 0..1 | CodeableConcept | Marital (civil) status of a patient Binding: MaritalStatusCodes (extensible): The domestic partnership status of a person.
multipleBirth[x] |  | 0..1 |  | Whether patient is part of a multiple birth
multipleBirthBoolean |  |  | boolean |
multipleBirthInteger |  |  | integer |
photo |  | 0..* | Attachment | Image of the patient
contact | S C | 0..* | BackboneElement | Contacto(s) del paciente (familiares, tutores, etc.). Constraints: pat-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
relationship |  | 0..* | CodeableConcept | The kind of relationship Binding: PatientContactRelationship (extensible): The nature of the relationship between a patient and a contact person for that patient.
name | S C | 0..1 | HumanName | Nombre del contacto.
telecom | S C | 0..* | ContactPoint | Información de contacto (teléfono, correo, etc.).
address | S C | 0..1 | Address | Dirección del contacto.
gender | S | 0..1 | code | Sexo del contacto. Binding: AdministrativeGender (required): The gender of a person used for administrative purposes.
organization | C | 0..1 | Reference(Organization) | Organization that is associated with the contact
period |  | 0..1 | Period | The period during which this contact person or organization is valid to be contacted relating to this patient
communication |  | 0..* | BackboneElement | A language which may be used to communicate with the patient about his or her health
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
language |  | 1..1 | CodeableConcept | The language which can be used to communicate with the patient about his or her health Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
preferred |  | 0..1 | boolean | Language preference indicator
generalPractitioner |  | 0..* | Reference(Organization | Practitioner | PractitionerRole) | Patient's nominated primary care provider
managingOrganization | Σ | 0..1 | Reference(Organization) | Organization that is the custodian of the patient record
link | ?!Σ | 0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
other | Σ | 1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to
type | Σ | 1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Patient.meta.security | Base | required | Confidentiality | 📍3.0.0 | THO v7.1
Patient.meta.tag | Base | example | Common Tags | 📍5.0.0 | FHIR Std.
Patient.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Patient.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std.
Patient.identifier.type | Base | required | Tipos de Identificadores de Personas | 📍0.0.1 | HL7 FHIR Costa Rica Terminología v0.0
Patient.name.use | Base | required | NameUse | 📍5.0.0 | FHIR Std.
Patient.telecom.system | Base | required | ContactPointSystem | 📍5.0.0 | FHIR Std.
Patient.telecom.use | Base | required | ContactPointUse | 📍5.0.0 | FHIR Std.
Patient.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.address.use | Base | required | AddressUse | 📍5.0.0 | FHIR Std.
Patient.address.type | Base | required | AddressType | 📍5.0.0 | FHIR Std.
Patient.maritalStatus | Base | extensible | Marital Status Codes | 📍5.0.0 | FHIR Std.
Patient.contact.relationship | Base | extensible | Patient Contact Relationship | 📍5.0.0 | FHIR Std.
Patient.contact.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.communication.​language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Patient.link.type | Base | required | Link Type | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Patient | 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 | Patient | 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 | Patient | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Patient | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | Patient.meta, Patient.meta.extension, Patient.meta.versionId, Patient.meta.lastUpdated, Patient.meta.source, Patient.meta.profile, Patient.meta.security, Patient.meta.tag, Patient.implicitRules, Patient.language, Patient.text, Patient.extension, Patient.extension:calculatedAge, Patient.modifierExtension, Patient.identifier, Patient.identifier.extension, Patient.identifier.use, Patient.identifier.type, Patient.identifier.system, Patient.identifier.value, Patient.identifier.period, Patient.identifier.assigner, Patient.active, Patient.name, Patient.name.extension, Patient.name.use, Patient.name.text, Patient.name.family, Patient.name.given, Patient.name.prefix, Patient.name.suffix, Patient.name.period, Patient.telecom, Patient.telecom.extension, Patient.telecom.system, Patient.telecom.value, Patient.telecom.use, Patient.telecom.rank, Patient.telecom.period, Patient.gender, Patient.birthDate, Patient.deceased[x], Patient.deceased[x]:deceasedBoolean, Patient.deceased[x]:deceasedDateTime, Patient.address, Patient.address.extension, Patient.address.use, Patient.address.type, Patient.address.text, Patient.address.line, Patient.address.city, Patient.address.city.extension, Patient.address.city.extension:cityCode, Patient.address.district, Patient.address.district.extension, Patient.address.district.extension:districtCode, Patient.address.state, Patient.address.state.extension, Patient.address.state.extension:stateCode, Patient.address.postalCode, Patient.address.country, Patient.address.country.extension, Patient.address.country.extension:countryCode, Patient.address.period, Patient.maritalStatus, Patient.multipleBirth[x], Patient.photo, Patient.contact, Patient.contact.extension, Patient.contact.modifierExtension, Patient.contact.relationship, Patient.contact.name, Patient.contact.telecom, Patient.contact.address, Patient.contact.gender, Patient.contact.organization, Patient.contact.period, Patient.communication, Patient.communication.extension, Patient.communication.modifierExtension, Patient.communication.language, Patient.communication.preferred, Patient.generalPractitioner, Patient.managingOrganization, Patient.link, Patient.link.extension, Patient.link.modifierExtension, Patient.link.other, Patient.link.type | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | Patient.meta.extension, Patient.extension, Patient.extension:calculatedAge, Patient.modifierExtension, Patient.identifier.extension, Patient.name.extension, Patient.telecom.extension, Patient.address.extension, Patient.address.city.extension, Patient.address.city.extension:cityCode, Patient.address.district.extension, Patient.address.district.extension:districtCode, Patient.address.state.extension, Patient.address.state.extension:stateCode, Patient.address.country.extension, Patient.address.country.extension:countryCode, Patient.contact.extension, Patient.contact.modifierExtension, Patient.communication.extension, Patient.communication.modifierExtension, Patient.link.extension, Patient.link.modifierExtension | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
only-one-cedula | error | Patient | El paciente no puede tener más de una cédula costarricense. | `identifier.where(type.coding.code='cedula').count() <= 1`
only-one-dimex | error | Patient | El paciente no puede tener más de un DIMEX. | `identifier.where(type.coding.code='dimex').count() <= 1`
pat-1 | error | Patient.contact | SHALL at least contain a contact's details or a reference to an organization | `name.exists() or telecom.exists() or address.exists() or organization.exists()`

This structure is derived from Patient

Summary

Mandatory: 6 elements
Must-Support: 28 elements

Structures

This structure refers to these other structures:

- Tipo de Dato Dirección - Resultados de Laboratorio (https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-address|0.0.2)

Extensions

This structure refers to these extensions:

- https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient-calculated-age|0.0.2

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of Patient.deceased[x]

Maturity: 0

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Patient | C | 0..* | Patient(5.0.0) | Information about an individual or animal receiving health care services Constraints: only-one-cedula, only-one-dimex
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1
extension:calculatedAge | S | 0..1 | Age | Edad calculada del paciente - Resultados de Laboratorio URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient-calculated-age Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1
identifier | S Σ | 1..* | Identifier | Identificadores oficiales y alternativos del paciente.
use | ?!S Σ | 0..1 | code | usual | official | temp | secondary | old Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | Σ | 0..1 | CodeableConcept | Tipo de documento de identificación (Required) Binding: CRIdentifierTypesSet (0.0.1) (required): ValueSet de tipos de identificación oficiales y permitidos para pacientes en Costa Rica.
active | ?!S Σ | 0..1 | boolean | Si el registro del paciente está activo.
name | S Σ | 1..1 | HumanName | Nombre(s) y apellido(s) del paciente.
use | ?!Σ | 0..1 | code | usual | official | temp | nickname | anonymous | old | maiden Binding: NameUse (required): The use of a human name.
family | S Σ | 1..1 | string | Primer apellido obligatorio; puede incluir el segundo apellido.
given | S Σ | 1..2 | string | Primer nombre obligatorio, segundo nombre opcional. This repeating element order: Given Names appear in the correct order for presenting the name
telecom | S Σ | 0..* | ContactPoint | Información de contacto del paciente (teléfono, correo electrónico, etc.).
system | S Σ C | 0..1 | code | phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): Telecommunications form for contact point.
value | S Σ C | 0..1 | string | El número telefónico o dirección de correo electrónico.
use | ?!S Σ | 0..1 | code | home | work | temp | old | mobile Binding: ContactPointUse (required): Use of contact point.
gender | S Σ | 1..1 | code | Sexo biológico del paciente. Binding: AdministrativeGender (required)
birthDate | S Σ | 1..1 | date | Fecha de nacimiento del paciente.
Slices for deceased[x] | ?!S Σ | 0..1 |  | Información sobre el fallecimiento del paciente. Slice: Unordered, Closed by type:$this
deceasedBoolean |  |  | boolean |
deceasedDateTime |  |  | dateTime |
deceased[x]:deceasedBoolean | ?!S Σ | 0..1 | boolean | Indica si el paciente ha fallecido (sí/no).
deceased[x]:deceasedDateTime | ?!S Σ | 0..1 | dateTime | Fecha y hora exacta del fallecimiento.
address | S Σ | 0..* | CRLabResultAddress(0.0.2) | Dirección(es) del paciente.
use | ?!S Σ | 0..1 | code | home | work | temp | old | billing Binding: AddressUse (required): The use of an address (home / work / etc.). Example General: home
type | S Σ | 0..1 | code | postal | physical | both Binding: AddressType (required): The type of an address (physical / postal). Example General: both
line | S Σ | 1..* | string | Línea de dirección (calle, número, referencias). This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street
city | S Σ | 0..1 | string | Cantón de Costa Rica. Example General: Erewhon
Slices for extension |  |  |  | Content/Rules for all slices
extension:cityCode |  | 0..1 | CodeableConcept | Extensión para cantón URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-city-ext Binding: CRCities (0.0.1) (required): Códigos de cantones de Costa Rica basados en el ZipCode. Constraints: ext-1
district | S Σ | 0..1 | string | Distrito de Costa Rica. Example General: Madison
Slices for extension |  |  |  | Content/Rules for all slices
extension:districtCode |  | 0..1 | CodeableConcept | Extensión para distrito URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-district-ext Binding: CRDistricts (0.0.1) (required): Códigos de distritos de Costa Rica basados en el ZipCode. Constraints: ext-1
state | S Σ | 0..1 | string | Provincia de Costa Rica.
Slices for extension |  |  |  | Content/Rules for all slices
extension:stateCode |  | 0..1 | CodeableConcept | Extensión para provincia URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-state-ext Binding: CRProvinces (0.0.1) (required): Códigos de provincias de Costa Rica basados en el ZipCode. Constraints: ext-1
postalCode | S Σ | 0..1 | string | Código postal. Example General: 9132
country | S Σ | 0..1 | string | Nombre del país (CR).
Slices for extension |  |  |  | Content/Rules for all slices
extension:countryCode | S | 0..1 | CodeableConcept | Extensión para país URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-country-ext Binding: Iso316613 (required): Códigos de país en formato ISO 3166-1 alpha-3. Constraints: ext-1
contact | S C | 0..* | BackboneElement | Contacto(s) del paciente (familiares, tutores, etc.). Constraints: pat-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
name | S C | 0..1 | HumanName | Nombre del contacto.
telecom | S C | 0..* | ContactPoint | Información de contacto (teléfono, correo, etc.).
address | S C | 0..1 | Address | Dirección del contacto.
gender | S | 0..1 | code | Sexo del contacto. Binding: AdministrativeGender (required): The gender of a person used for administrative purposes.
link | ?!Σ | 0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
other | Σ | 1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to
type | Σ | 1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Patient.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std.
Patient.identifier.type | Base | required | Tipos de Identificadores de Personas | 📍0.0.1 | HL7 FHIR Costa Rica Terminología v0.0
Patient.name.use | Base | required | NameUse | 📍5.0.0 | FHIR Std.
Patient.telecom.system | Base | required | ContactPointSystem | 📍5.0.0 | FHIR Std.
Patient.telecom.use | Base | required | ContactPointUse | 📍5.0.0 | FHIR Std.
Patient.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.address.use | Base | required | AddressUse | 📍5.0.0 | FHIR Std.
Patient.address.type | Base | required | AddressType | 📍5.0.0 | FHIR Std.
Patient.contact.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.link.type | Base | required | Link Type | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Patient | 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 | Patient | 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 | Patient | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Patient | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | Patient.implicitRules, Patient.extension, Patient.extension:calculatedAge, Patient.modifierExtension, Patient.identifier, Patient.identifier.use, Patient.identifier.type, Patient.active, Patient.name, Patient.name.use, Patient.name.family, Patient.name.given, Patient.telecom, Patient.telecom.system, Patient.telecom.value, Patient.telecom.use, Patient.gender, Patient.birthDate, Patient.deceased[x], Patient.deceased[x]:deceasedBoolean, Patient.deceased[x]:deceasedDateTime, Patient.address, Patient.address.use, Patient.address.type, Patient.address.line, Patient.address.city, Patient.address.city.extension:cityCode, Patient.address.district, Patient.address.district.extension:districtCode, Patient.address.state, Patient.address.state.extension:stateCode, Patient.address.postalCode, Patient.address.country, Patient.address.country.extension:countryCode, Patient.contact, Patient.contact.modifierExtension, Patient.contact.name, Patient.contact.telecom, Patient.contact.address, Patient.contact.gender, Patient.link, Patient.link.modifierExtension, Patient.link.other, Patient.link.type | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | Patient.extension, Patient.extension:calculatedAge, Patient.modifierExtension, Patient.address.city.extension:cityCode, Patient.address.district.extension:districtCode, Patient.address.state.extension:stateCode, Patient.address.country.extension:countryCode, Patient.contact.modifierExtension, Patient.link.modifierExtension | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
only-one-cedula | error | Patient | El paciente no puede tener más de una cédula costarricense. | `identifier.where(type.coding.code='cedula').count() <= 1`
only-one-dimex | error | Patient | El paciente no puede tener más de un DIMEX. | `identifier.where(type.coding.code='dimex').count() <= 1`
pat-1 | error | Patient.contact | SHALL at least contain a contact's details or a reference to an organization | `name.exists() or telecom.exists() or address.exists() or organization.exists()`

Differential View

This structure is derived from Patient

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Patient | C | 0..* | Patient(5.0.0) | Information about an individual or animal receiving health care services
meta |  |  |  |
security |  | 0..* | Coding | Etiqueta de seguridad Binding: Confidentiality (3.0.0) (required)
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:calculatedAge | S | 0..1 | Age | Edad calculada del paciente - Resultados de Laboratorio URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient-calculated-age
identifier | S | 1..* | Identifier | Identificadores oficiales y alternativos del paciente.
use | S | 0..1 | code | usual | official | temp | secondary | old
type |  | 0..1 | CodeableConcept | Tipo de documento de identificación (Required) Binding: CRIdentifierTypesSet (0.0.1) (required): ValueSet de tipos de identificación oficiales y permitidos para pacientes en Costa Rica.
active | S | 0..1 | boolean | Si el registro del paciente está activo.
name | S | 1..1 | HumanName | Nombre(s) y apellido(s) del paciente.
family | S | 1..1 | string | Primer apellido obligatorio; puede incluir el segundo apellido.
given | S | 1..2 | string | Primer nombre obligatorio, segundo nombre opcional.
telecom | S | 0..* | ContactPoint | Información de contacto del paciente (teléfono, correo electrónico, etc.).
system | S | 0..1 | code | phone | fax | email | pager | url | sms | other
value | S | 0..1 | string | El número telefónico o dirección de correo electrónico.
use | S | 0..1 | code | home | work | temp | old | mobile
gender | S | 1..1 | code | Sexo biológico del paciente. Binding: AdministrativeGender (required)
birthDate | S | 1..1 | date | Fecha de nacimiento del paciente.
Slices for deceased[x] | S | 0..1 | boolean, dateTime | Información sobre el fallecimiento del paciente. Slice: Unordered, Open by type:$this
deceased[x]:deceasedBoolean | S | 0..1 | boolean | Indica si el paciente ha fallecido (sí/no).
deceased[x]:deceasedDateTime | S | 0..1 | dateTime | Fecha y hora exacta del fallecimiento.
address | S | 0..* | CRLabResultAddress(0.0.2) | Dirección(es) del paciente.
use | S | 0..1 | code | home | work | temp | old | billing
type | S | 0..1 | code | postal | physical | both
line |  | 1..* | string | Línea de dirección (calle, número, referencias).
city | S | 0..1 | string | Cantón de Costa Rica.
district | S | 0..1 | string | Distrito de Costa Rica.
state | S | 0..1 | string | Provincia de Costa Rica.
postalCode | S | 0..1 | string | Código postal.
country |  | 0..1 | string | Nombre del país (CR).
contact | S | 0..* | BackboneElement | Contacto(s) del paciente (familiares, tutores, etc.).
name | S | 0..1 | HumanName | Nombre del contacto.
telecom | S | 0..* | ContactPoint | Información de contacto (teléfono, correo, etc.).
address | S | 0..1 | Address | Dirección del contacto.
gender | S | 0..1 | code | Sexo del contacto.
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Patient.meta.security | Base | required | Confidentiality | 📍3.0.0 | THO v7.1
Patient.identifier.type | Base | required | Tipos de Identificadores de Personas | 📍0.0.1 | HL7 FHIR Costa Rica Terminología v0.0
Patient.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Patient | C | 0..* | Patient(5.0.0) | Information about an individual or animal receiving health care services Constraints: only-one-cedula, only-one-dimex
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
versionId | Σ | 0..1 | id | Version specific identifier
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to
security | Σ | 0..* | Coding | Etiqueta de seguridad Binding: Confidentiality (3.0.0) (required)
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1
extension:calculatedAge | S | 0..1 | Age | Edad calculada del paciente - Resultados de Laboratorio URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient-calculated-age Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1
identifier | S Σ | 1..* | Identifier | Identificadores oficiales y alternativos del paciente.
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
use | ?!S Σ | 0..1 | code | usual | official | temp | secondary | old Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | Σ | 0..1 | CodeableConcept | Tipo de documento de identificación (Required) Binding: CRIdentifierTypesSet (0.0.1) (required): ValueSet de tipos de identificación oficiales y permitidos para pacientes en Costa Rica.
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 0..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text)
active | ?!S Σ | 0..1 | boolean | Si el registro del paciente está activo.
name | S Σ | 1..1 | HumanName | Nombre(s) y apellido(s) del paciente.
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
use | ?!Σ | 0..1 | code | usual | official | temp | nickname | anonymous | old | maiden Binding: NameUse (required): The use of a human name.
text | Σ | 0..1 | string | Text representation of the full name
family | S Σ | 1..1 | string | Primer apellido obligatorio; puede incluir el segundo apellido.
given | S Σ | 1..2 | string | Primer nombre obligatorio, segundo nombre opcional. This repeating element order: Given Names appear in the correct order for presenting the name
prefix | Σ | 0..* | string | Parts that come before the name This repeating element order: Prefixes appear in the correct order for presenting the name
suffix | Σ | 0..* | string | Parts that come after the name This repeating element order: Suffixes appear in the correct order for presenting the name
period | Σ | 0..1 | Period | Time period when name was/is in use
telecom | S Σ | 0..* | ContactPoint | Información de contacto del paciente (teléfono, correo electrónico, etc.).
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
system | S Σ C | 0..1 | code | phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): Telecommunications form for contact point.
value | S Σ C | 0..1 | string | El número telefónico o dirección de correo electrónico.
use | ?!S Σ | 0..1 | code | home | work | temp | old | mobile Binding: ContactPointUse (required): Use of contact point.
rank | Σ | 0..1 | positiveInt | Specify preferred order of use (1 = highest)
period | Σ | 0..1 | Period | Time period when the contact point was/is in use
gender | S Σ | 1..1 | code | Sexo biológico del paciente. Binding: AdministrativeGender (required)
birthDate | S Σ | 1..1 | date | Fecha de nacimiento del paciente.
Slices for deceased[x] | ?!S Σ | 0..1 |  | Información sobre el fallecimiento del paciente. Slice: Unordered, Closed by type:$this
deceasedBoolean |  |  | boolean |
deceasedDateTime |  |  | dateTime |
deceased[x]:deceasedBoolean | ?!S Σ | 0..1 | boolean | Indica si el paciente ha fallecido (sí/no).
deceased[x]:deceasedDateTime | ?!S Σ | 0..1 | dateTime | Fecha y hora exacta del fallecimiento.
address | S Σ | 0..* | CRLabResultAddress(0.0.2) | Dirección(es) del paciente.
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1
use | ?!S Σ | 0..1 | code | home | work | temp | old | billing Binding: AddressUse (required): The use of an address (home / work / etc.). Example General: home
type | S Σ | 0..1 | code | postal | physical | both Binding: AddressType (required): The type of an address (physical / postal). Example General: both
text | Σ | 0..1 | string | Text representation of the address Example General: 137 Nowhere Street, Erewhon 9132
line | S Σ | 1..* | string | Línea de dirección (calle, número, referencias). This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street
city | S Σ | 0..1 | string | Cantón de Costa Rica. Example General: Erewhon
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Código de la ciudad basado en el ZipCode de Costa Rica Slice: Unordered, Open by value:url Constraints: ext-1
extension:cityCode |  | 0..1 | CodeableConcept | Extensión para cantón URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-city-ext Binding: CRCities (0.0.1) (required): Códigos de cantones de Costa Rica basados en el ZipCode. Constraints: ext-1
value |  | 0..1 | string | Primitive value for string Max Length:1048576
district | S Σ | 0..1 | string | Distrito de Costa Rica. Example General: Madison
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Código del distrito basado en el ZipCode de Costa Rica Slice: Unordered, Open by value:url Constraints: ext-1
extension:districtCode |  | 0..1 | CodeableConcept | Extensión para distrito URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-district-ext Binding: CRDistricts (0.0.1) (required): Códigos de distritos de Costa Rica basados en el ZipCode. Constraints: ext-1
value |  | 0..1 | string | Primitive value for string Max Length:1048576
state | S Σ | 0..1 | string | Provincia de Costa Rica.
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Código de la provincia basado en el ZipCode de Costa Rica Slice: Unordered, Open by value:url Constraints: ext-1
extension:stateCode |  | 0..1 | CodeableConcept | Extensión para provincia URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-state-ext Binding: CRProvinces (0.0.1) (required): Códigos de provincias de Costa Rica basados en el ZipCode. Constraints: ext-1
value |  | 0..1 | string | Primitive value for string Max Length:1048576
postalCode | S Σ | 0..1 | string | Código postal. Example General: 9132
country | S Σ | 0..1 | string | Nombre del país (CR).
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Código de país en formato ISO 3166-1 alpha-3 Slice: Unordered, Open by value:url Constraints: ext-1
extension:countryCode | S | 0..1 | CodeableConcept | Extensión para país URL: https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-country-ext Binding: Iso316613 (required): Códigos de país en formato ISO 3166-1 alpha-3. Constraints: ext-1
value |  | 0..1 | string | Primitive value for string Max Length:1048576
period | Σ | 0..1 | Period | Time period when address was/is in use Example General: {"start":"2010-03-23","end":"2010-07-01"}
maritalStatus |  | 0..1 | CodeableConcept | Marital (civil) status of a patient Binding: MaritalStatusCodes (extensible): The domestic partnership status of a person.
multipleBirth[x] |  | 0..1 |  | Whether patient is part of a multiple birth
multipleBirthBoolean |  |  | boolean |
multipleBirthInteger |  |  | integer |
photo |  | 0..* | Attachment | Image of the patient
contact | S C | 0..* | BackboneElement | Contacto(s) del paciente (familiares, tutores, etc.). Constraints: pat-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
relationship |  | 0..* | CodeableConcept | The kind of relationship Binding: PatientContactRelationship (extensible): The nature of the relationship between a patient and a contact person for that patient.
name | S C | 0..1 | HumanName | Nombre del contacto.
telecom | S C | 0..* | ContactPoint | Información de contacto (teléfono, correo, etc.).
address | S C | 0..1 | Address | Dirección del contacto.
gender | S | 0..1 | code | Sexo del contacto. Binding: AdministrativeGender (required): The gender of a person used for administrative purposes.
organization | C | 0..1 | Reference(Organization) | Organization that is associated with the contact
period |  | 0..1 | Period | The period during which this contact person or organization is valid to be contacted relating to this patient
communication |  | 0..* | BackboneElement | A language which may be used to communicate with the patient about his or her health
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
language |  | 1..1 | CodeableConcept | The language which can be used to communicate with the patient about his or her health Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
preferred |  | 0..1 | boolean | Language preference indicator
generalPractitioner |  | 0..* | Reference(Organization | Practitioner | PractitionerRole) | Patient's nominated primary care provider
managingOrganization | Σ | 0..1 | Reference(Organization) | Organization that is the custodian of the patient record
link | ?!Σ | 0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Constraints: ext-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1
other | Σ | 1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to
type | Σ | 1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Patient.meta.security | Base | required | Confidentiality | 📍3.0.0 | THO v7.1
Patient.meta.tag | Base | example | Common Tags | 📍5.0.0 | FHIR Std.
Patient.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Patient.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std.
Patient.identifier.type | Base | required | Tipos de Identificadores de Personas | 📍0.0.1 | HL7 FHIR Costa Rica Terminología v0.0
Patient.name.use | Base | required | NameUse | 📍5.0.0 | FHIR Std.
Patient.telecom.system | Base | required | ContactPointSystem | 📍5.0.0 | FHIR Std.
Patient.telecom.use | Base | required | ContactPointUse | 📍5.0.0 | FHIR Std.
Patient.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.address.use | Base | required | AddressUse | 📍5.0.0 | FHIR Std.
Patient.address.type | Base | required | AddressType | 📍5.0.0 | FHIR Std.
Patient.maritalStatus | Base | extensible | Marital Status Codes | 📍5.0.0 | FHIR Std.
Patient.contact.relationship | Base | extensible | Patient Contact Relationship | 📍5.0.0 | FHIR Std.
Patient.contact.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.communication.​language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Patient.link.type | Base | required | Link Type | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Patient | 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 | Patient | 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 | Patient | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Patient | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | Patient.meta, Patient.meta.extension, Patient.meta.versionId, Patient.meta.lastUpdated, Patient.meta.source, Patient.meta.profile, Patient.meta.security, Patient.meta.tag, Patient.implicitRules, Patient.language, Patient.text, Patient.extension, Patient.extension:calculatedAge, Patient.modifierExtension, Patient.identifier, Patient.identifier.extension, Patient.identifier.use, Patient.identifier.type, Patient.identifier.system, Patient.identifier.value, Patient.identifier.period, Patient.identifier.assigner, Patient.active, Patient.name, Patient.name.extension, Patient.name.use, Patient.name.text, Patient.name.family, Patient.name.given, Patient.name.prefix, Patient.name.suffix, Patient.name.period, Patient.telecom, Patient.telecom.extension, Patient.telecom.system, Patient.telecom.value, Patient.telecom.use, Patient.telecom.rank, Patient.telecom.period, Patient.gender, Patient.birthDate, Patient.deceased[x], Patient.deceased[x]:deceasedBoolean, Patient.deceased[x]:deceasedDateTime, Patient.address, Patient.address.extension, Patient.address.use, Patient.address.type, Patient.address.text, Patient.address.line, Patient.address.city, Patient.address.city.extension, Patient.address.city.extension:cityCode, Patient.address.district, Patient.address.district.extension, Patient.address.district.extension:districtCode, Patient.address.state, Patient.address.state.extension, Patient.address.state.extension:stateCode, Patient.address.postalCode, Patient.address.country, Patient.address.country.extension, Patient.address.country.extension:countryCode, Patient.address.period, Patient.maritalStatus, Patient.multipleBirth[x], Patient.photo, Patient.contact, Patient.contact.extension, Patient.contact.modifierExtension, Patient.contact.relationship, Patient.contact.name, Patient.contact.telecom, Patient.contact.address, Patient.contact.gender, Patient.contact.organization, Patient.contact.period, Patient.communication, Patient.communication.extension, Patient.communication.modifierExtension, Patient.communication.language, Patient.communication.preferred, Patient.generalPractitioner, Patient.managingOrganization, Patient.link, Patient.link.extension, Patient.link.modifierExtension, Patient.link.other, Patient.link.type | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | Patient.meta.extension, Patient.extension, Patient.extension:calculatedAge, Patient.modifierExtension, Patient.identifier.extension, Patient.name.extension, Patient.telecom.extension, Patient.address.extension, Patient.address.city.extension, Patient.address.city.extension:cityCode, Patient.address.district.extension, Patient.address.district.extension:districtCode, Patient.address.state.extension, Patient.address.state.extension:stateCode, Patient.address.country.extension, Patient.address.country.extension:countryCode, Patient.contact.extension, Patient.contact.modifierExtension, Patient.communication.extension, Patient.communication.modifierExtension, Patient.link.extension, Patient.link.modifierExtension | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
only-one-cedula | error | Patient | El paciente no puede tener más de una cédula costarricense. | `identifier.where(type.coding.code='cedula').count() <= 1`
only-one-dimex | error | Patient | El paciente no puede tener más de un DIMEX. | `identifier.where(type.coding.code='dimex').count() <= 1`
pat-1 | error | Patient.contact | SHALL at least contain a contact's details or a reference to an organization | `name.exists() or telecom.exists() or address.exists() or organization.exists()`

This structure is derived from Patient

Summary

Mandatory: 6 elements
Must-Support: 28 elements

Structures

This structure refers to these other structures:

- Tipo de Dato Dirección - Resultados de Laboratorio (https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-address|0.0.2)

Extensions

This structure refers to these extensions:

- https://hl7.or.cr/fhir/laboratory-results/StructureDefinition/cr-lab-result-patient-calculated-age|0.0.2

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of Patient.deceased[x]

Maturity: 0

Other representations of profile: CSV, Excel, Schematron