social_network

Group of individuals connected by social interactions and personal relationships.

Group of individuals connected by social interactions and personal relationships.

Purpose. To record information about the key people who are connected to the individual through social interactions and personal relationships.

Source

ModelLegRole
openEHR-EHR-EVALUATION.social_network.v1openEHRdefines this table

Columns

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
form_iduuidformnoThe form this entry was recorded on.
form_block_iduuidyesThe block within the form, when the entry is bound to one.
descriptiontextyesDescription/data[at0001]/items[at0015]
partnership_status
partnership_status_code
partnership_status_system
partnership_status_valueset_id
coded text
text, text, text, text
yesPartnership status/data[at0001]/items[at0002]
commenttextyesComment/data[at0001]/items[at0018]
last_updatedtimestamptzyesLast updated/protocol[at0010]/items[at0011]

Constraints

check ((partnership_status_code is null and partnership_status_system is null and partnership_status_valueset_id is null) or (partnership_status is not null and partnership_status_code is not null and partnership_status_system is not null and partnership_status_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
partnership_status_valueset_id, partnership_status_code, partnership_status_system, partnership_statusvalueset_coderestrict

Referenced by

Indexes

Child tables

1 table hang off social_network, one row per repetition.

social_network_network

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
social_network_iduuidsocial_networkno
positionintegernoOrder of this row within its parent, from zero.
organization_iduuidyes
person_iduuidyes

Constraints

check (num_nonnulls(organization_id, person_id) = 1)

Unique

References

ColumnsTargetOn delete
social_network_idsocial_networkcascade
organization_idorganizationno action
person_idpersonno action

Indexes