housing_record

Details about a single home or other residential setting of an individual during a specified period of time.

Details about a single home or other residential setting of an individual during a specified period of time.

Purpose. To record details about a single home or other residential setting of an individual during a specified period of time.

Source

ModelLegRole
openEHR-EHR-CLUSTER.housing_record.v1openEHRdefines this table

Columns

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
name_labeltextyesName/label/items[at0005]
descriptiontextyesDescription/items[at0016]
date_commencedtimestamptzyesDate commenced/items[at0007]
residential_setting
residential_setting_code
residential_setting_system
residential_setting_valueset_id
coded text
text, text, text, text
yesResidential setting/items[at0001]
tenure
tenure_code
tenure_system
tenure_valueset_id
coded text
text, text, text, text
yesTenure/items[at0013]
date_ceasedtimestamptzyesDate ceased/items[at0008]
commenttextyesComment/items[at0014]

Constraints

check ((residential_setting_code is null and residential_setting_system is null and residential_setting_valueset_id is null) or (residential_setting is not null and residential_setting_code is not null and residential_setting_system is not null and residential_setting_valueset_id is not null))
check ((tenure_code is null and tenure_system is null and tenure_valueset_id is null) or (tenure is not null and tenure_code is not null and tenure_system is not null and tenure_valueset_id is not null))

References

ColumnsTargetOn delete
residential_setting_valueset_id, residential_setting_code, residential_setting_system, residential_settingvalueset_coderestrict
tenure_valueset_id, tenure_code, tenure_system, tenurevalueset_coderestrict

Referenced by