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

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: Ubicación

Official URL: https://hl7.or.cr/fhir/core/StructureDefinition/cr-core-location Version: 0.0.1-ballot
Standards status: Draft Maturity Level: 0 Computable Name: CRCoreLocation

Copyright/Legal: Usado con el permiso de HL7 International, todos los derechos resevados en los Licencias de HL7 Internacional.

Perfil Location para representar ubicaciones físicas como hospitales, clínicas, centros de salud y otros lugares relevantes en Costa Rica.

Usages:

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.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* Location(5.0.0) Details and position information for a place
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
.... use ?!SΣ 0..1 code official | usual | temp | secondary | old
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 0..1 CodeableConcept Tipo de identificador
Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types (extensible): CodeSystem de tipos de identificadores para ubicaciones en Costa Rica.
.... system SΣ 0..1 uri Sistema que emite el identificador
Example General: http://www.acme.com/identifiers/patient
.... value SΣC 0..1 string El valor del identificador
Example General: 123456
... status ?!SΣ 0..1 code Estado de la ubicación.
Binding: LocationStatus (required): ValueSet de estados de Location definidos en FHIR.
... name SΣ 1..1 string Nombre de la ubicación.
... alias S 0..* string Nombres alternativos o apodos de la ubicación.
... contact S 0..* ExtendedContactDetail Contacto(s) de la ubicación.
.... name SΣ 0..1 HumanName Nombre del contacto.
.... telecom SΣ 0..* ContactPoint Información de contacto.
... address S 0..1 CRCoreAddress(0.0.1-ballot) Dirección física de la ubicación.
.... 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
... position S 0..1 BackboneElement Coordenadas geográficas de la ubicación.
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... longitude S 1..1 decimal Longitud de la ubicación.
.... latitude S 1..1 decimal Latitud de la ubicación.
.... altitude S 0..1 decimal Altitud de la ubicación.
... partOf S 0..1 Reference(Ubicación(0.0.1-ballot)) Ubicación superior de la cual esta ubicación forma parte.

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Location.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
Location.identifier.​type Base extensible https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types Not State Unknown
Location.status Base required Location Status 📍5.0.0 FHIR Std.
Location.address.use Base required AddressUse 📍5.0.0 FHIR Std.
Location.address.type Base required AddressType 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Location If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Location 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 Location 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 Location If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Location A resource should have narrative for robust management text.`div`.exists()
ele-1 error Location.implicitRules, Location.modifierExtension, Location.identifier, Location.identifier.use, Location.identifier.type, Location.identifier.system, Location.identifier.value, Location.status, Location.name, Location.alias, Location.contact, Location.contact.name, Location.contact.telecom, Location.address, Location.address.use, Location.address.type, Location.address.line, Location.address.city, Location.address.city.extension:cityCode, Location.address.district, Location.address.district.extension:districtCode, Location.address.state, Location.address.state.extension:stateCode, Location.address.postalCode, Location.address.country, Location.address.country.extension:countryCode, Location.position, Location.position.modifierExtension, Location.position.longitude, Location.position.latitude, Location.position.altitude, Location.partOf All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Location.modifierExtension, Location.address.city.extension:cityCode, Location.address.district.extension:districtCode, Location.address.state.extension:stateCode, Location.address.country.extension:countryCode, Location.position.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Location

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* Location(5.0.0) Details and position information for a place
... identifier S 0..* Identifier Identificadores de la ubicación (Cédula Jurídica, Código de Prestador, etc.).
.... use S 0..1 code official | usual | temp | secondary | old
.... type S 0..1 CodeableConcept Tipo de identificador
Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types (extensible): CodeSystem de tipos de identificadores para ubicaciones en Costa Rica.
.... system S 0..1 uri Sistema que emite el identificador
.... value S 0..1 string El valor del identificador
... status S 0..1 code Estado de la ubicación.
Binding: LocationStatus (required): ValueSet de estados de Location definidos en FHIR.
... name S 1..1 string Nombre de la ubicación.
... contact S 0..* ExtendedContactDetail Contacto(s) de la ubicación.
.... name S 0..1 HumanName Nombre del contacto.
.... telecom S 0..* ContactPoint Información de contacto.
... address S 0..1 CRCoreAddress(0.0.1-ballot) Dirección física de la ubicación.
.... 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).
... position S 0..1 BackboneElement Coordenadas geográficas de la ubicación.
.... longitude S 1..1 decimal Longitud de la ubicación.
.... latitude S 1..1 decimal Latitud de la ubicación.
.... altitude S 0..1 decimal Altitud de la ubicación.
... partOf S 0..1 Reference(Ubicación(0.0.1-ballot)) Ubicación superior de la cual esta ubicación forma parte.

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Location.identifier.​type Base extensible https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types Not State Unknown
Location.status Base required Location Status 📍5.0.0 FHIR Std.
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* Location(5.0.0) Details and position information for a place
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... 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
... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
... identifier SΣ 0..* Identifier Identificadores de la ubicación (Cédula Jurídica, Código de Prestador, 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
.... use ?!SΣ 0..1 code official | usual | temp | secondary | old
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 0..1 CodeableConcept Tipo de identificador
Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types (extensible): CodeSystem de tipos de identificadores para ubicaciones en Costa Rica.
.... system SΣ 0..1 uri Sistema que emite el identificador
Example General: http://www.acme.com/identifiers/patient
.... value SΣC 0..1 string El valor del identificador
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)
... status ?!SΣ 0..1 code Estado de la ubicación.
Binding: LocationStatus (required): ValueSet de estados de Location definidos en FHIR.
... operationalStatus Σ 0..1 Coding The operational status of the location (typically only for a bed/room)
Binding: Hl7VSBedStatus (2.0.0) (preferred): The operational status if the location (where typically a bed/room).
... name SΣ 1..1 string Nombre de la ubicación.
... alias S 0..* string Nombres alternativos o apodos de la ubicación.
... description Σ 0..1 markdown Additional details about the location that could be displayed as further information to identify the location beyond its name
... mode Σ 0..1 code instance | kind
Binding: LocationMode (required): Indicates whether a resource instance represents a specific location or a class of locations.
... type Σ 0..* CodeableConcept Type of function performed
Binding: ServiceDeliveryLocationRoleType (3.0.0) (extensible): Indicates the type of function performed at the location.
... contact S 0..* ExtendedContactDetail Contacto(s) de la ubicación.
.... 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
.... purpose Σ 0..1 CodeableConcept The type of contact
Binding: ContactEntityType (1.0.0) (preferred): The purpose for which an extended contact detail should be used.
.... name SΣ 0..1 HumanName Nombre del contacto.
.... telecom SΣ 0..* ContactPoint Información de contacto.
.... address Σ 0..1 Address Address for the contact
.... organization Σ 0..1 Reference(Organization) This contact detail is handled/monitored by a specific organization
.... period Σ 0..1 Period Period that this contact was valid for usage
... address S 0..1 CRCoreAddress(0.0.1-ballot) Dirección física de la ubicación.
.... 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"}
... form Σ 0..1 CodeableConcept Physical form of the location
Binding: LocationForm (example): Physical form of the location.
... position S 0..1 BackboneElement Coordenadas geográficas de la ubicación.
.... 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
.... longitude S 1..1 decimal Longitud de la ubicación.
.... latitude S 1..1 decimal Latitud de la ubicación.
.... altitude S 0..1 decimal Altitud de la ubicación.
... managingOrganization Σ 0..1 Reference(Organization) Organization responsible for provisioning and upkeep
... partOf S 0..1 Reference(Ubicación(0.0.1-ballot)) Ubicación superior de la cual esta ubicación forma parte.
... characteristic 0..* CodeableConcept Collection of characteristics (attributes)
Binding: LocationCharacteristic (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy).
... hoursOfOperation 0..* Availability What days/times during a week is this location usually open (including exceptions)
... virtualService 0..* VirtualServiceDetail Connection details of a virtual service (e.g. conference call)
... endpoint 0..* Reference(Endpoint) Technical endpoints providing access to services operated for the location

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Location.language Base required All Languages 📍5.0.0 FHIR Std.
Location.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
Location.identifier.​type Base extensible https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types Not State Unknown
Location.status Base required Location Status 📍5.0.0 FHIR Std.
Location.operationalStatus Base preferred hl7VS-bedStatus 📍2.0.0 THO v7.0
Location.mode Base required Location Mode 📍5.0.0 FHIR Std.
Location.type Base extensible ServiceDeliveryLocationRoleType 📍3.0.0 THO v7.0
Location.contact.purpose Base preferred Contact entity type 📍1.0.0 THO v7.0
Location.address.use Base required AddressUse 📍5.0.0 FHIR Std.
Location.address.type Base required AddressType 📍5.0.0 FHIR Std.
Location.form Base example Location Form 📍5.0.0 FHIR Std.
Location.characteristic Base example Location Characteristic 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Location If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Location 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 Location 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 Location If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Location A resource should have narrative for robust management text.`div`.exists()
ele-1 error Location.meta, Location.implicitRules, Location.language, Location.text, Location.extension, Location.modifierExtension, Location.identifier, Location.identifier.extension, Location.identifier.use, Location.identifier.type, Location.identifier.system, Location.identifier.value, Location.identifier.period, Location.identifier.assigner, Location.status, Location.operationalStatus, Location.name, Location.alias, Location.description, Location.mode, Location.type, Location.contact, Location.contact.extension, Location.contact.purpose, Location.contact.name, Location.contact.telecom, Location.contact.address, Location.contact.organization, Location.contact.period, Location.address, Location.address.extension, Location.address.use, Location.address.type, Location.address.text, Location.address.line, Location.address.city, Location.address.city.extension, Location.address.city.extension:cityCode, Location.address.district, Location.address.district.extension, Location.address.district.extension:districtCode, Location.address.state, Location.address.state.extension, Location.address.state.extension:stateCode, Location.address.postalCode, Location.address.country, Location.address.country.extension, Location.address.country.extension:countryCode, Location.address.period, Location.form, Location.position, Location.position.extension, Location.position.modifierExtension, Location.position.longitude, Location.position.latitude, Location.position.altitude, Location.managingOrganization, Location.partOf, Location.characteristic, Location.hoursOfOperation, Location.virtualService, Location.endpoint All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Location.extension, Location.modifierExtension, Location.identifier.extension, Location.contact.extension, Location.address.extension, Location.address.city.extension, Location.address.city.extension:cityCode, Location.address.district.extension, Location.address.district.extension:districtCode, Location.address.state.extension, Location.address.state.extension:stateCode, Location.address.country.extension, Location.address.country.extension:countryCode, Location.position.extension, Location.position.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Location

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* Location(5.0.0) Details and position information for a place
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
.... use ?!SΣ 0..1 code official | usual | temp | secondary | old
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 0..1 CodeableConcept Tipo de identificador
Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types (extensible): CodeSystem de tipos de identificadores para ubicaciones en Costa Rica.
.... system SΣ 0..1 uri Sistema que emite el identificador
Example General: http://www.acme.com/identifiers/patient
.... value SΣC 0..1 string El valor del identificador
Example General: 123456
... status ?!SΣ 0..1 code Estado de la ubicación.
Binding: LocationStatus (required): ValueSet de estados de Location definidos en FHIR.
... name SΣ 1..1 string Nombre de la ubicación.
... alias S 0..* string Nombres alternativos o apodos de la ubicación.
... contact S 0..* ExtendedContactDetail Contacto(s) de la ubicación.
.... name SΣ 0..1 HumanName Nombre del contacto.
.... telecom SΣ 0..* ContactPoint Información de contacto.
... address S 0..1 CRCoreAddress(0.0.1-ballot) Dirección física de la ubicación.
.... 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
... position S 0..1 BackboneElement Coordenadas geográficas de la ubicación.
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... longitude S 1..1 decimal Longitud de la ubicación.
.... latitude S 1..1 decimal Latitud de la ubicación.
.... altitude S 0..1 decimal Altitud de la ubicación.
... partOf S 0..1 Reference(Ubicación(0.0.1-ballot)) Ubicación superior de la cual esta ubicación forma parte.

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Location.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
Location.identifier.​type Base extensible https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types Not State Unknown
Location.status Base required Location Status 📍5.0.0 FHIR Std.
Location.address.use Base required AddressUse 📍5.0.0 FHIR Std.
Location.address.type Base required AddressType 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Location If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Location 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 Location 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 Location If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Location A resource should have narrative for robust management text.`div`.exists()
ele-1 error Location.implicitRules, Location.modifierExtension, Location.identifier, Location.identifier.use, Location.identifier.type, Location.identifier.system, Location.identifier.value, Location.status, Location.name, Location.alias, Location.contact, Location.contact.name, Location.contact.telecom, Location.address, Location.address.use, Location.address.type, Location.address.line, Location.address.city, Location.address.city.extension:cityCode, Location.address.district, Location.address.district.extension:districtCode, Location.address.state, Location.address.state.extension:stateCode, Location.address.postalCode, Location.address.country, Location.address.country.extension:countryCode, Location.position, Location.position.modifierExtension, Location.position.longitude, Location.position.latitude, Location.position.altitude, Location.partOf All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Location.modifierExtension, Location.address.city.extension:cityCode, Location.address.district.extension:districtCode, Location.address.state.extension:stateCode, Location.address.country.extension:countryCode, Location.position.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()

Differential View

This structure is derived from Location

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* Location(5.0.0) Details and position information for a place
... identifier S 0..* Identifier Identificadores de la ubicación (Cédula Jurídica, Código de Prestador, etc.).
.... use S 0..1 code official | usual | temp | secondary | old
.... type S 0..1 CodeableConcept Tipo de identificador
Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types (extensible): CodeSystem de tipos de identificadores para ubicaciones en Costa Rica.
.... system S 0..1 uri Sistema que emite el identificador
.... value S 0..1 string El valor del identificador
... status S 0..1 code Estado de la ubicación.
Binding: LocationStatus (required): ValueSet de estados de Location definidos en FHIR.
... name S 1..1 string Nombre de la ubicación.
... contact S 0..* ExtendedContactDetail Contacto(s) de la ubicación.
.... name S 0..1 HumanName Nombre del contacto.
.... telecom S 0..* ContactPoint Información de contacto.
... address S 0..1 CRCoreAddress(0.0.1-ballot) Dirección física de la ubicación.
.... 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).
... position S 0..1 BackboneElement Coordenadas geográficas de la ubicación.
.... longitude S 1..1 decimal Longitud de la ubicación.
.... latitude S 1..1 decimal Latitud de la ubicación.
.... altitude S 0..1 decimal Altitud de la ubicación.
... partOf S 0..1 Reference(Ubicación(0.0.1-ballot)) Ubicación superior de la cual esta ubicación forma parte.

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Location.identifier.​type Base extensible https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types Not State Unknown
Location.status Base required Location Status 📍5.0.0 FHIR Std.

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* Location(5.0.0) Details and position information for a place
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... 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
... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
... identifier SΣ 0..* Identifier Identificadores de la ubicación (Cédula Jurídica, Código de Prestador, 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
.... use ?!SΣ 0..1 code official | usual | temp | secondary | old
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 0..1 CodeableConcept Tipo de identificador
Binding: https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types (extensible): CodeSystem de tipos de identificadores para ubicaciones en Costa Rica.
.... system SΣ 0..1 uri Sistema que emite el identificador
Example General: http://www.acme.com/identifiers/patient
.... value SΣC 0..1 string El valor del identificador
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)
... status ?!SΣ 0..1 code Estado de la ubicación.
Binding: LocationStatus (required): ValueSet de estados de Location definidos en FHIR.
... operationalStatus Σ 0..1 Coding The operational status of the location (typically only for a bed/room)
Binding: Hl7VSBedStatus (2.0.0) (preferred): The operational status if the location (where typically a bed/room).
... name SΣ 1..1 string Nombre de la ubicación.
... alias S 0..* string Nombres alternativos o apodos de la ubicación.
... description Σ 0..1 markdown Additional details about the location that could be displayed as further information to identify the location beyond its name
... mode Σ 0..1 code instance | kind
Binding: LocationMode (required): Indicates whether a resource instance represents a specific location or a class of locations.
... type Σ 0..* CodeableConcept Type of function performed
Binding: ServiceDeliveryLocationRoleType (3.0.0) (extensible): Indicates the type of function performed at the location.
... contact S 0..* ExtendedContactDetail Contacto(s) de la ubicación.
.... 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
.... purpose Σ 0..1 CodeableConcept The type of contact
Binding: ContactEntityType (1.0.0) (preferred): The purpose for which an extended contact detail should be used.
.... name SΣ 0..1 HumanName Nombre del contacto.
.... telecom SΣ 0..* ContactPoint Información de contacto.
.... address Σ 0..1 Address Address for the contact
.... organization Σ 0..1 Reference(Organization) This contact detail is handled/monitored by a specific organization
.... period Σ 0..1 Period Period that this contact was valid for usage
... address S 0..1 CRCoreAddress(0.0.1-ballot) Dirección física de la ubicación.
.... 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"}
... form Σ 0..1 CodeableConcept Physical form of the location
Binding: LocationForm (example): Physical form of the location.
... position S 0..1 BackboneElement Coordenadas geográficas de la ubicación.
.... 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
.... longitude S 1..1 decimal Longitud de la ubicación.
.... latitude S 1..1 decimal Latitud de la ubicación.
.... altitude S 0..1 decimal Altitud de la ubicación.
... managingOrganization Σ 0..1 Reference(Organization) Organization responsible for provisioning and upkeep
... partOf S 0..1 Reference(Ubicación(0.0.1-ballot)) Ubicación superior de la cual esta ubicación forma parte.
... characteristic 0..* CodeableConcept Collection of characteristics (attributes)
Binding: LocationCharacteristic (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy).
... hoursOfOperation 0..* Availability What days/times during a week is this location usually open (including exceptions)
... virtualService 0..* VirtualServiceDetail Connection details of a virtual service (e.g. conference call)
... endpoint 0..* Reference(Endpoint) Technical endpoints providing access to services operated for the location

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Location.language Base required All Languages 📍5.0.0 FHIR Std.
Location.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
Location.identifier.​type Base extensible https://hl7.or.cr/fhir/terminology/ValueSet/cr-organization-identifier-types Not State Unknown
Location.status Base required Location Status 📍5.0.0 FHIR Std.
Location.operationalStatus Base preferred hl7VS-bedStatus 📍2.0.0 THO v7.0
Location.mode Base required Location Mode 📍5.0.0 FHIR Std.
Location.type Base extensible ServiceDeliveryLocationRoleType 📍3.0.0 THO v7.0
Location.contact.purpose Base preferred Contact entity type 📍1.0.0 THO v7.0
Location.address.use Base required AddressUse 📍5.0.0 FHIR Std.
Location.address.type Base required AddressType 📍5.0.0 FHIR Std.
Location.form Base example Location Form 📍5.0.0 FHIR Std.
Location.characteristic Base example Location Characteristic 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Location If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Location 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 Location 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 Location If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Location A resource should have narrative for robust management text.`div`.exists()
ele-1 error Location.meta, Location.implicitRules, Location.language, Location.text, Location.extension, Location.modifierExtension, Location.identifier, Location.identifier.extension, Location.identifier.use, Location.identifier.type, Location.identifier.system, Location.identifier.value, Location.identifier.period, Location.identifier.assigner, Location.status, Location.operationalStatus, Location.name, Location.alias, Location.description, Location.mode, Location.type, Location.contact, Location.contact.extension, Location.contact.purpose, Location.contact.name, Location.contact.telecom, Location.contact.address, Location.contact.organization, Location.contact.period, Location.address, Location.address.extension, Location.address.use, Location.address.type, Location.address.text, Location.address.line, Location.address.city, Location.address.city.extension, Location.address.city.extension:cityCode, Location.address.district, Location.address.district.extension, Location.address.district.extension:districtCode, Location.address.state, Location.address.state.extension, Location.address.state.extension:stateCode, Location.address.postalCode, Location.address.country, Location.address.country.extension, Location.address.country.extension:countryCode, Location.address.period, Location.form, Location.position, Location.position.extension, Location.position.modifierExtension, Location.position.longitude, Location.position.latitude, Location.position.altitude, Location.managingOrganization, Location.partOf, Location.characteristic, Location.hoursOfOperation, Location.virtualService, Location.endpoint All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Location.extension, Location.modifierExtension, Location.identifier.extension, Location.contact.extension, Location.address.extension, Location.address.city.extension, Location.address.city.extension:cityCode, Location.address.district.extension, Location.address.district.extension:districtCode, Location.address.state.extension, Location.address.state.extension:stateCode, Location.address.country.extension, Location.address.country.extension:countryCode, Location.position.extension, Location.position.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Location

 

Other representations of profile: CSV, Excel, Schematron