menstrual_diary

Details about menstrual bleeding and associated symptoms within a specified day.

Details about menstrual bleeding and associated symptoms within a specified day.

Purpose. To record details about menstrual bleeding and associated symptoms within a specified day.

Source

ModelLegRole
openEHR-EHR-OBSERVATION.menstrual_diary.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.
event_typetextyesnull represents any_event
flow
flow_code
flow_system
flow_valueset_id
coded text
text, text, text, text
yesFlow/data[at0001]/events[at0002]/data[at0003]/items[at0004]
volume_magnitude
volume_units
quantity
numeric, text
yesVolume/data[at0001]/events[at0002]/data[at0003]/items[at0010]
blood_clots
blood_clots_code
blood_clots_system
blood_clots_valueset_id
coded text
text, text, text, text
yesBlood clots/data[at0001]/events[at0002]/data[at0003]/items[at0014]
color
color_code
color_system
color_valueset_id
coded text
text, text, text, text
yesColor/data[at0001]/events[at0002]/data[at0003]/items[at0017]
descriptiontextyesDescription/data[at0001]/events[at0002]/data[at0003]/items[at0018]
commenttextyesComment/data[at0001]/events[at0002]/data[at0003]/items[at0021]

Constraints

check ((flow_code is null and flow_system is null and flow_valueset_id is null) or (flow is not null and flow_code is not null and flow_system is not null and flow_valueset_id is not null))
check ((volume_magnitude is null and volume_units is null) or (volume_magnitude is not null and volume_units is not null))
check ((blood_clots_code is null and blood_clots_system is null and blood_clots_valueset_id is null and blood_clots is null) or (blood_clots is not null and blood_clots_code is not null and blood_clots_system is not null and blood_clots_valueset_id is not null))
check ((color_code is null and color_system is null and color_valueset_id is null) or (color is not null and color_code is not null and color_system is not null and color_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
flow_valueset_id, flow_code, flow_system, flowvalueset_coderestrict
blood_clots_valueset_id, blood_clots_code, blood_clots_system, blood_clotsvalueset_coderestrict
color_valueset_id, color_code, color_system, colorvalueset_coderestrict

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-OBSERVATION.menstrual_diary.v1/blood_clots2
org.openehr::openEHR-EHR-OBSERVATION.menstrual_diary.v1/flow6