person

Demographics and administrative information about a person independent of a specific health-related context.

Demographics and administrative information about a person independent of a specific health-related context.

Source

ModelLegRole
PersonFHIRdefines this table
openEHR-EHR-CLUSTER.address.v1openEHRmerged in — Address
openEHR-EHR-CLUSTER.electronic_communication.v1openEHRmerged in — Electronic communication
openEHR-EHR-CLUSTER.person.v1openEHRmerged in — Person
This table is the union of 4 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 keynoPerson.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
yesA human identifier for this personPerson.identifier
name_text
name_prefix
name_family
name_given
name_suffix
text, text, text, text, text
text, text, text, text, text
yesA name associated with the personPerson.name
phone_number
phone_use_code
email
email_use_code
text, text, text, text
text, text, text, text
yesA contact detail for the personPerson.telecom
gendertextyesmale | female | other | unknownPerson.gender
birth_datedateyesThe date on which the person was bornPerson.birthDate
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
yesOne or more addresses for the personPerson.address
photouuidattachmentyesImage of the personPerson.photo
managing_organization_iduuidyesThe organization that is the custodian of the person recordPerson.managingOrganization
activebooleanyesThis person's record is in active usePerson.active
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]
roletextyesRoleopenEHR-EHR-CLUSTER.person.v1/items[at0004]
commenttextyesCommentopenEHR-EHR-CLUSTER.person.v1/items[at0010]
labeltextyesLabelopenEHR-EHR-CLUSTER.person.v1/items[at0011]

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
photoattachmentrestrict
managing_organization_idorganizationno action

Referenced by

24 tables reference person, via person_id. The first 15 alphabetically:

Indexes

Child tables

5 tables hang off person, one row per repetition.

person_other_identifier

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

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

Unique

References

ColumnsTargetOn delete
person_idpersoncascade

person_other_name

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

ColumnTypeNullDescriptionFromSource
iduuid primary keynoPrimary key.
person_iduuidpersonno
use_codetextyes
name_texttextyes
name_prefixtextyes
name_familytextyes
name_giventextyes
name_suffixtextyes
valid_fromtimestamptzyes
valid_untiltimestamptzyes

References

ColumnsTargetOn delete
person_idpersoncascade

Indexes

person_other_telecom

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

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

References

ColumnsTargetOn delete
person_idpersoncascade

Indexes

person_other_address

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

ColumnTypeNullDescriptionFromSource
iduuid primary keynoPrimary key.
person_iduuidpersonno
address_linetextyesnewline-delimited for multiple lines
address_citytextyes
address_districttextyes
address_statetextyes
address_postal_codetextyes
address_countrytextyes
use_codetextyes
type_codetextyes
valid_fromtimestamptzyes
valid_untiltimestamptzyes
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]

Constraints

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
person_idpersoncascade

Indexes

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

ColumnTypeNullDescriptionFromSource
iduuid primary keynoPrimary key.
person_iduuidpersonno
target_patient_id
target_person_id
target_practitioner_id
target_related_person_id
uuid, uuid, uuid, uuid
uuid, uuid, uuid, uuid
yesThe resource to which this actual person is associatedPerson.link.target
assurancetextyeslevel1 | level2 | level3 | level4Person.link.assurance

Constraints

check (num_nonnulls(target_patient_id, target_person_id, target_practitioner_id, target_related_person_id) <= 1)

References

ColumnsTargetOn delete
person_idpersoncascade
target_patient_idpatientno action
target_person_idpersonno action
target_practitioner_idpractitionerno action
target_related_person_idrelated_personno action

Indexes