HL7 FHIR Costa Rica - Core
0.0.1-ballot - ci-build

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

## Resource Profile: Paciente

Official URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-core-patient | Version: 0.0.1-ballot
Standards status: Draft | Maturity Level: 0 | Computable Name: CRCorePatient
Copyright/Legal: Usado con el permiso de HL7 International, todos los derechos resevados en los Licencias de HL7 Internacional.

Perfil Patient para representar pacientes en Costa Rica, incluyendo identificadores oficiales y metadatos específicos del paciente.

### Alcance y uso

El perfil base de paciente para Costas Rica pretende encapsular el modelo de datos más común y básico de pacientes en los sistemas de salud costarricense, abarcando tanto el sector primario como el secundario (médicos especialistas y hospitales) y los casos regionales. Por lo tanto, el perfil debería ser utilizable en la mayoría de los contextos costarricenses. Cabe destacar que el perfil es útil para quienes reciben atención en salud y social en las diferentes regiones del país.

### Identificadores de pacientes

Actualmente, este perfil de paciente solo refleja el uso de los identificadores nacionales de Costa Ruca de pacientes establecidos. A este punto, se soporta solo tres tipos de identificación:

1. Cédula de identidad
2. DIMEX
3. Pasaporte

### Uso de la etiqueta de seguridad en pacientes

Si un proyecto de implementación necesita proteger el nombre y la dirección de un ciudadano costarricense, se recomienda incluir la etiqueta de seguridad de la siguiente manera:

    {
      "resourceType" : "Bundle",
      "type" : "searchset",
      ... otros headers etc.....
      "entry" : [
         ... otroe entries ....
         {
           "resource": {
             "id" : "1",
             "meta" : {
               "security" : [{
                 "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                 "code" : "R",
                 "display" : "Restricted"
               }]
             }
             ... otros content etc.....
           }
         },
         ... otros entries ....
      ]
    }

El uso de esta etiqueta debe interpretarse de acuerdo con la ley, lo que significa en términos generales que solo el personal que utiliza sistemas en asuntos públicos/oficiales puede ver el nombre y la dirección del paciente/ciudadano.

Usages:

- Refer to this Profile: Alergia e Intolerancia, Descripción Clínica, Condición o Diagnóstico Clínico, Inmunización and Procedencia
- Examples for this Profile: Patient/CRPatientCedula, Patient/CRPatientDeceasedBoolean, Patient/CRPatientDeceasedWithDate, Patient/CRPatientDimex... Show 10 more, Patient/CRPatientInvalidTwoCedulas, Patient/CRPatientMultipleId, Patient/CRPatientPassport, Patient/CRPatientWithAddress, Patient/CRPatientWithCalculatedAge, Patient/CRPatientWithContactEmergency, Patient/CRPatientWithContactMother, Patient/CRPatientWithContactSpouse, Patient/CRPatientWithReligion and Patient/CRPatientWithSecurityTag

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 URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-calculated-age Constraints: ext-1
extension:religion | S | 0..1 | CodeableConcept | Religión del paciente URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-religion Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-religions-set (extensible): Conjunto de religiones para Costa Rica basado en SNOMED CT. 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: https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types (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..* | CRCoreAddress(0.0.1-ballot) | 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/core/StructureDefinition/cr-city-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-cities (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/core/StructureDefinition/cr-district-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-districts (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/core/StructureDefinition/cr-state-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-provinces (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/core/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
relationship | S | 0..* | CodeableConcept | Tipo de relación (madre, padre, hermano, cónyuge, hijo/a, tutor, amigo, conviviente). Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set (extensible): CodeSystem de relaciones: madre, padre, hermano, cónyuge, hijo, tutor legal, amigo, conviviente
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 | https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types | Not State | Unknown
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.relationship | Base | extensible | https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set | Not State | Unknown
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.extension:religion, 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.relationship, 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.extension:religion, 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 URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-calculated-age
extension:religion | S | 0..1 | CodeableConcept | Religión del paciente URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-religion Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-religions-set (extensible): Conjunto de religiones para Costa Rica basado en SNOMED CT.
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: https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types (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..* | CRCoreAddress(0.0.1-ballot) | 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.).
relationship | S | 0..* | CodeableConcept | Tipo de relación (madre, padre, hermano, cónyuge, hijo/a, tutor, amigo, conviviente). Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set (extensible): CodeSystem de relaciones: madre, padre, hermano, cónyuge, hijo, tutor legal, amigo, conviviente
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 | https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types | Not State | Unknown
Patient.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.contact.relationship | Base | extensible | https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set | Not State | Unknown

#### 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 URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-calculated-age Constraints: ext-1
extension:religion | S | 0..1 | CodeableConcept | Religión del paciente URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-religion Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-religions-set (extensible): Conjunto de religiones para Costa Rica basado en SNOMED CT. 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: https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types (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..* | CRCoreAddress(0.0.1-ballot) | 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/core/StructureDefinition/cr-city-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-cities (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/core/StructureDefinition/cr-district-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-districts (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/core/StructureDefinition/cr-state-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-provinces (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/core/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 | S | 0..* | CodeableConcept | Tipo de relación (madre, padre, hermano, cónyuge, hijo/a, tutor, amigo, conviviente). Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set (extensible): CodeSystem de relaciones: madre, padre, hermano, cónyuge, hijo, tutor legal, amigo, conviviente
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 | https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types | Not State | Unknown
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 | https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set | Not State | Unknown
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.extension:religion, 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.extension:religion, 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: 30 elements

Structures

This structure refers to these other structures:

- Tipo de Dato Dirección Base (https://hl7.or.cr/fhir/core/StructureDefinition/cr-address-base|0.0.1-ballot)

Extensions

This structure refers to these extensions:

- https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-calculated-age|0.0.1-ballot
- https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-religion|0.0.1-ballot

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 URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-calculated-age Constraints: ext-1
extension:religion | S | 0..1 | CodeableConcept | Religión del paciente URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-religion Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-religions-set (extensible): Conjunto de religiones para Costa Rica basado en SNOMED CT. 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: https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types (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..* | CRCoreAddress(0.0.1-ballot) | 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/core/StructureDefinition/cr-city-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-cities (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/core/StructureDefinition/cr-district-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-districts (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/core/StructureDefinition/cr-state-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-provinces (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/core/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
relationship | S | 0..* | CodeableConcept | Tipo de relación (madre, padre, hermano, cónyuge, hijo/a, tutor, amigo, conviviente). Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set (extensible): CodeSystem de relaciones: madre, padre, hermano, cónyuge, hijo, tutor legal, amigo, conviviente
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 | https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types | Not State | Unknown
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.relationship | Base | extensible | https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set | Not State | Unknown
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.extension:religion, 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.relationship, 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.extension:religion, 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 URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-calculated-age
extension:religion | S | 0..1 | CodeableConcept | Religión del paciente URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-religion Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-religions-set (extensible): Conjunto de religiones para Costa Rica basado en SNOMED CT.
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: https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types (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..* | CRCoreAddress(0.0.1-ballot) | 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.).
relationship | S | 0..* | CodeableConcept | Tipo de relación (madre, padre, hermano, cónyuge, hijo/a, tutor, amigo, conviviente). Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set (extensible): CodeSystem de relaciones: madre, padre, hermano, cónyuge, hijo, tutor legal, amigo, conviviente
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 | https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types | Not State | Unknown
Patient.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std.
Patient.contact.relationship | Base | extensible | https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set | Not State | Unknown

#### 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 URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-calculated-age Constraints: ext-1
extension:religion | S | 0..1 | CodeableConcept | Religión del paciente URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-religion Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-religions-set (extensible): Conjunto de religiones para Costa Rica basado en SNOMED CT. 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: https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types (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..* | CRCoreAddress(0.0.1-ballot) | 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/core/StructureDefinition/cr-city-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-cities (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/core/StructureDefinition/cr-district-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-districts (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/core/StructureDefinition/cr-state-ext Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-provinces (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/core/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 | S | 0..* | CodeableConcept | Tipo de relación (madre, padre, hermano, cónyuge, hijo/a, tutor, amigo, conviviente). Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set (extensible): CodeSystem de relaciones: madre, padre, hermano, cónyuge, hijo, tutor legal, amigo, conviviente
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 | https://hl7.or.cr/fhir/terminology/ValueSet/cr-identifier-types | Not State | Unknown
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 | https://hl7.or.cr/fhir/terminology/ValueSet/cr-relationships-set | Not State | Unknown
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.extension:religion, 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.extension:religion, 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: 30 elements

Structures

This structure refers to these other structures:

- Tipo de Dato Dirección Base (https://hl7.or.cr/fhir/core/StructureDefinition/cr-address-base|0.0.1-ballot)

Extensions

This structure refers to these extensions:

- https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-calculated-age|0.0.1-ballot
- https://hl7.or.cr/fhir/core/StructureDefinition/cr-patient-religion|0.0.1-ballot

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

### Notes:

Nota: los comentarios son bienvenidos y deben dirigirse al repositorio de Github (https://github.com/HL7-cr/core).