location

The US Core Location Profile inherits from the FHIR [Location](https://hl7.org/fhir/R4/location.html) resource; refer to it for scope and usage definitions.

The US Core Location Profile inherits from the FHIR Location resource; refer to it for scope and usage definitions. This profile sets minimum expectations for the Location resource for recording, searching, and fetching a "physical place of available services or resources." It specifies which core elements, extensions, vocabularies, and value sets SHALL be present and constrains how the elements are used. Providing the floor for standards development for specific use cases promotes interoperability and adoption.

Source

ModelLegRole
us-core-locationFHIRdefines this table
openEHR-EHR-CLUSTER.address.v1openEHRmerged in — Address
openEHR-EHR-CLUSTER.electronic_communication.v1openEHRmerged in — Electronic communication
This table is the union of 3 source models. Columns carrying a From value came from a model that merged into it, so the same row satisfies both specifications.

Columns

ColumnTypeNullDescriptionFromSource
iduuid primary keynoLocation.id
created_attimestamptznoRow creation timestamp.
updated_attimestamptznoRow update timestamp; maintained by the application.
created_bytextnoActor who created the row.
updated_bytextnoActor who last updated the row.
identifier_value
identifier_system
text, text
text, text
yesUnique business identifier for facility or location.Location.identifier
statustextyesactive | suspended | inactiveLocation.status
nametextyesName by which a facility or location is known.Location.name
phone_number
phone_use_code
email
email_use_code
text, text, text, text
text, text, text, text
yesContact details of the locationLocation.telecom
address_line
address_city
address_district
address_state
address_postal_code
address_country
address_use_code
address_type_code
text, text, text, text, text, text, text, text
text, text, text, text, text, text, text, text
yesPhysical locationLocation.address
managing_organization_iduuidyesOrganization responsible for provisioning and upkeepLocation.managingOrganization
address_latitude_magnitude
address_latitude_units
quantity
numeric, text
yesLatitudeopenEHR-EHR-CLUSTER.address.v1/items[at0007]
address_longitude_magnitude
address_longitude_units
quantity
numeric, text
yesLongitudeopenEHR-EHR-CLUSTER.address.v1/items[at0008]
address_altitude_magnitude
address_altitude_units
quantity
numeric, text
yesAltitudeopenEHR-EHR-CLUSTER.address.v1/items[at0009]
address_commenttextyesCommentopenEHR-EHR-CLUSTER.address.v1/items[at0018]
address_map_urltextyesMap URLopenEHR-EHR-CLUSTER.address.v1/items[at0019]
address_geolocation_codetextyesGeolocation codeopenEHR-EHR-CLUSTER.address.v1/items[at0021]
phone_comment
email_comment
text, text
text, text
yesCommentopenEHR-EHR-CLUSTER.electronic_communication.v1/items[at0004]

Constraints

check (identifier_system is null or identifier_value is not null)
check ((address_latitude_magnitude is null and address_latitude_units is null) or (address_latitude_magnitude is not null and address_latitude_units is not null))
check (address_latitude_magnitude is null or (address_latitude_units = 'deg' and address_latitude_magnitude between -90 and 90))
check ((address_longitude_magnitude is null and address_longitude_units is null) or (address_longitude_magnitude is not null and address_longitude_units is not null))
check (address_longitude_magnitude is null or (address_longitude_units = 'deg' and address_longitude_magnitude between -180 and 180))
check ((address_altitude_magnitude is null and address_altitude_units is null) or (address_altitude_magnitude is not null and address_altitude_units is not null))

References

ColumnsTargetOn delete
managing_organization_idorganizationno action

Referenced by

Indexes

Child tables

3 tables hang off location, one row per repetition.

location_other_identifier

Child table — one row per repetition, deleted with its parent.

ColumnTypeNullDescriptionFromSource
iduuid primary keynoPrimary key.
location_iduuidlocationno
identifier_valuetextno
identifier_systemtextyes
identifier_usetextyes
valid_fromtimestamptzyes
valid_untiltimestamptzyes

Unique

References

ColumnsTargetOn delete
location_idlocationcascade

location_type

Child table — one row per repetition, deleted with its parent.

ColumnTypeNullDescriptionFromSource
iduuid primary keynoPrimary key.
location_iduuidlocationno
type
type_code
type_system
text, text, text
text, text, text
yesCategory of service or resource available in a location.Location.type

Constraints

check ((type_code is null and type_system is null) or (type_code is not null and type_system is not null))

References

ColumnsTargetOn delete
location_idlocationcascade

Indexes

location_other_telecom

Child table — one row per repetition, deleted with its parent.

ColumnTypeNullDescriptionFromSource
iduuid primary keynoPrimary key.
location_iduuidlocationno
systemtextno
valuetextno
use_codetextyes
rankintegeryes
valid_fromtimestamptzyes
valid_untiltimestamptzyes
commenttextyesCommentopenEHR-EHR-CLUSTER.electronic_communication.v1/items[at0004]

References

ColumnsTargetOn delete
location_idlocationcascade

Indexes