gender

Details about the gender of an individual.

Details about the gender of an individual.

Purpose. To record details about the gender of an individual.

Source

ModelLegRole
openEHR-EHR-EVALUATION.gender.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.
administrative_gender
administrative_gender_code
administrative_gender_system
administrative_gender_valueset_id
coded text
text, text, text, text
yesAdministrative gender/data[at0002]/items[at0022]
legal_gender
legal_gender_code
legal_gender_system
legal_gender_valueset_id
coded text
text, text, text, text
yesLegal gender/data[at0002]/items[at0026]
sex_assigned_at_birth
sex_assigned_at_birth_code
sex_assigned_at_birth_system
sex_assigned_at_birth_valueset_id
coded text
text, text, text, text
yesSex assigned at birth/data[at0002]/items[at0019]
gender_expression
gender_expression_code
gender_expression_system
gender_expression_valueset_id
coded text
text, text, text, text
yesGender expression/data[at0002]/items[at0025]
gender_identity
gender_identity_code
gender_identity_system
gender_identity_valueset_id
coded text
text, text, text, text
yesGender identity/data[at0002]/items[at0001]
preferred_pronoun
preferred_pronoun_code
preferred_pronoun_system
preferred_pronoun_valueset_id
coded text
text, text, text, text
yesPreferred pronoun/data[at0002]/items[at0020]
gender_category
gender_category_code
gender_category_system
gender_category_valueset_id
coded text
text, text, text, text
yesGender category/data[at0002]/items[at0027]
commenttextyesComment/data[at0002]/items[at0014]
last_updatedtimestamptzyesLast updated/protocol[at0003]/items[at0004]

Constraints

check ((administrative_gender_code is null and administrative_gender_system is null and administrative_gender_valueset_id is null) or (administrative_gender is not null and administrative_gender_code is not null and administrative_gender_system is not null and administrative_gender_valueset_id is not null))
check ((legal_gender_code is null and legal_gender_system is null and legal_gender_valueset_id is null) or (legal_gender is not null and legal_gender_code is not null and legal_gender_system is not null and legal_gender_valueset_id is not null))
check ((sex_assigned_at_birth_code is null and sex_assigned_at_birth_system is null and sex_assigned_at_birth_valueset_id is null) or (sex_assigned_at_birth is not null and sex_assigned_at_birth_code is not null and sex_assigned_at_birth_system is not null and sex_assigned_at_birth_valueset_id is not null))
check ((gender_expression_code is null and gender_expression_system is null and gender_expression_valueset_id is null) or (gender_expression is not null and gender_expression_code is not null and gender_expression_system is not null and gender_expression_valueset_id is not null))
check ((gender_identity_code is null and gender_identity_system is null and gender_identity_valueset_id is null) or (gender_identity is not null and gender_identity_code is not null and gender_identity_system is not null and gender_identity_valueset_id is not null))
check ((preferred_pronoun_code is null and preferred_pronoun_system is null and preferred_pronoun_valueset_id is null) or (preferred_pronoun is not null and preferred_pronoun_code is not null and preferred_pronoun_system is not null and preferred_pronoun_valueset_id is not null))
check ((gender_category_code is null and gender_category_system is null and gender_category_valueset_id is null) or (gender_category is not null and gender_category_code is not null and gender_category_system is not null and gender_category_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
administrative_gender_valueset_id, administrative_gender_code, administrative_gender_system, administrative_gendervalueset_coderestrict
legal_gender_valueset_id, legal_gender_code, legal_gender_system, legal_gendervalueset_coderestrict
sex_assigned_at_birth_valueset_id, sex_assigned_at_birth_code, sex_assigned_at_birth_system, sex_assigned_at_birthvalueset_coderestrict
gender_expression_valueset_id, gender_expression_code, gender_expression_system, gender_expressionvalueset_coderestrict
gender_identity_valueset_id, gender_identity_code, gender_identity_system, gender_identityvalueset_coderestrict
preferred_pronoun_valueset_id, preferred_pronoun_code, preferred_pronoun_system, preferred_pronounvalueset_coderestrict
gender_category_valueset_id, gender_category_code, gender_category_system, gender_categoryvalueset_coderestrict

Indexes