mayo_score

An assessment score used to estimate the severity of ulcerative colitis.

An assessment score used to estimate the severity of ulcerative colitis.

Purpose. To record an assessment of the severity of ulcerative colitis.

Source

ModelLegRole
openEHR-EHR-OBSERVATION.mayo_score.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.
stool_frequency
stool_frequency_code
stool_frequency_system
stool_frequency_numeric
stool_frequency_valueset_id
coded text
text, text, text, numeric, text
yesStool frequency/data[at0001]/events[at0002]/data[at0003]/items[at0009]
rectal_bleeding
rectal_bleeding_code
rectal_bleeding_system
rectal_bleeding_numeric
rectal_bleeding_valueset_id
coded text
text, text, text, numeric, text
yesRectal bleeding/data[at0001]/events[at0002]/data[at0003]/items[at0014]
endoscopy_findings
endoscopy_findings_code
endoscopy_findings_system
endoscopy_findings_numeric
endoscopy_findings_valueset_id
coded text
text, text, text, numeric, text
yesEndoscopy findings/data[at0001]/events[at0002]/data[at0003]/items[at0019]
global_assessment
global_assessment_code
global_assessment_system
global_assessment_numeric
global_assessment_valueset_id
coded text
text, text, text, numeric, text
yesGlobal assessment/data[at0001]/events[at0002]/data[at0003]/items[at0024]
total_mayo_scoreintegeryesTotal Mayo score/data[at0001]/events[at0002]/data[at0003]/items[at0029]
partial_mayo_scoreintegeryesPartial Mayo score/data[at0001]/events[at0002]/data[at0003]/items[at0033]
simplified_mayo_scoreintegeryesSimplified Mayo score/data[at0001]/events[at0002]/data[at0003]/items[at0034]

Constraints

check ((stool_frequency_code is null and stool_frequency_system is null and stool_frequency_numeric is null and stool_frequency is null) or (stool_frequency_valueset_id is not null and stool_frequency_code is not null and stool_frequency_system is not null and stool_frequency_numeric is not null and stool_frequency is not null))
check ((rectal_bleeding_code is null and rectal_bleeding_system is null and rectal_bleeding_numeric is null and rectal_bleeding is null) or (rectal_bleeding_valueset_id is not null and rectal_bleeding_code is not null and rectal_bleeding_system is not null and rectal_bleeding_numeric is not null and rectal_bleeding is not null))
check ((endoscopy_findings_code is null and endoscopy_findings_system is null and endoscopy_findings_numeric is null and endoscopy_findings is null) or (endoscopy_findings_valueset_id is not null and endoscopy_findings_code is not null and endoscopy_findings_system is not null and endoscopy_findings_numeric is not null and endoscopy_findings is not null))
check ((global_assessment_code is null and global_assessment_system is null and global_assessment_numeric is null and global_assessment is null) or (global_assessment_valueset_id is not null and global_assessment_code is not null and global_assessment_system is not null and global_assessment_numeric is not null and global_assessment is not null))
check (total_mayo_score is null or total_mayo_score between 0 and 12)
check (partial_mayo_score is null or partial_mayo_score between 0 and 9)
check (simplified_mayo_score is null or simplified_mayo_score between 0 and 6)

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
stool_frequency_valueset_id, stool_frequency_code, stool_frequency_system, stool_frequency, stool_frequency_numericvalueset_coderestrict
rectal_bleeding_valueset_id, rectal_bleeding_code, rectal_bleeding_system, rectal_bleeding, rectal_bleeding_numericvalueset_coderestrict
endoscopy_findings_valueset_id, endoscopy_findings_code, endoscopy_findings_system, endoscopy_findings, endoscopy_findings_numericvalueset_coderestrict
global_assessment_valueset_id, global_assessment_code, global_assessment_system, global_assessment, global_assessment_numericvalueset_coderestrict

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-OBSERVATION.mayo_score.v1/endoscopy_findings4
org.openehr::openEHR-EHR-OBSERVATION.mayo_score.v1/global_assessment4
org.openehr::openEHR-EHR-OBSERVATION.mayo_score.v1/rectal_bleeding4
org.openehr::openEHR-EHR-OBSERVATION.mayo_score.v1/stool_frequency4