problem_diagnosis

Details about a single identified health condition, injury, disability or any other issue which impacts on the physical, mental and/or social well-being of an individual.

Details about a single identified health condition, injury, disability or any other issue which impacts on the physical, mental and/or social well-being of an individual.

Purpose. For recording details about a single, identified health problem or diagnosis.

Source

ModelLegRole
openEHR-EHR-EVALUATION.problem_diagnosis.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.
problem_diagnosis_name
problem_diagnosis_name_code
problem_diagnosis_name_system
problem_diagnosis_name_valueset_id
coded text
text, text, text, text
yesProblem/Diagnosis name/data[at0001]/items[at0002]
variant
variant_code
variant_system
variant_valueset_id
coded text
text, text, text, text
yesVariant/data[at0001]/items[at0079]
clinical_descriptiontextyesClinical description/data[at0001]/items[at0009]
body_site
body_site_code
body_site_system
body_site_valueset_id
coded text
text, text, text, text
yesBody site/data[at0001]/items[at0012]
cause
cause_code
cause_system
cause_valueset_id
coded text
text, text, text, text
yesCause/data[at0001]/items[at0078]
date_time_of_onsettimestamptzyesDate/time of onset/data[at0001]/items[at0077]
date_time_clinically_recognisedtimestamptzyesDate/time clinically recognised/data[at0001]/items[at0003]
severity
severity_code
severity_system
severity_valueset_id
coded text
text, text, text, text
yesSeverity/data[at0001]/items[at0005]
impacttextyesImpact/data[at0001]/items[at0080]
course_descriptiontextyesCourse description/data[at0001]/items[at0072]
date_time_of_resolutiontimestamptzyesDate/time of resolution/data[at0001]/items[at0030]
diagnostic_certainty
diagnostic_certainty_code
diagnostic_certainty_system
diagnostic_certainty_valueset_id
coded text
text, text, text, text
yesDiagnostic certainty/data[at0001]/items[at0073]
commenttextyesComment/data[at0001]/items[at0069]
last_updatedtimestamptzyesLast updated/protocol[at0032]/items[at0070]

Constraints

check ((problem_diagnosis_name_code is null and problem_diagnosis_name_system is null and problem_diagnosis_name_valueset_id is null) or (problem_diagnosis_name is not null and problem_diagnosis_name_code is not null and problem_diagnosis_name_system is not null and problem_diagnosis_name_valueset_id is not null))
check ((variant_code is null and variant_system is null and variant_valueset_id is null) or (variant is not null and variant_code is not null and variant_system is not null and variant_valueset_id is not null))
check ((body_site_code is null and body_site_system is null and body_site_valueset_id is null) or (body_site is not null and body_site_code is not null and body_site_system is not null and body_site_valueset_id is not null))
check ((cause_code is null and cause_system is null and cause_valueset_id is null) or (cause is not null and cause_code is not null and cause_system is not null and cause_valueset_id is not null))
check ((severity_code is null and severity_system is null and severity_valueset_id is null) or (severity is not null and severity_code is not null and severity_system is not null and severity_valueset_id is not null))
check ((diagnostic_certainty_code is null and diagnostic_certainty_system is null and diagnostic_certainty_valueset_id is null) or (diagnostic_certainty is not null and diagnostic_certainty_code is not null and diagnostic_certainty_system is not null and diagnostic_certainty_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
problem_diagnosis_name_valueset_id, problem_diagnosis_name_code, problem_diagnosis_name_system, problem_diagnosis_namevalueset_coderestrict
variant_valueset_id, variant_code, variant_system, variantvalueset_coderestrict
body_site_valueset_id, body_site_code, body_site_system, body_sitevalueset_coderestrict
cause_valueset_id, cause_code, cause_system, causevalueset_coderestrict
severity_valueset_id, severity_code, severity_system, severityvalueset_coderestrict
diagnostic_certainty_valueset_id, diagnostic_certainty_code, diagnostic_certainty_system, diagnostic_certaintyvalueset_coderestrict

Referenced by

Indexes

Child tables

2 tables hang off problem_diagnosis, one row per repetition.

problem_diagnosis_structured_body_site

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
problem_diagnosis_iduuidproblem_diagnosisno
positionintegernoOrder of this row within its parent, from zero.
anatomical_location_iduuidyes
anatomical_location_circle_iduuidyes
anatomical_location_relative_iduuidyes

Constraints

check (num_nonnulls(anatomical_location_id, anatomical_location_circle_id, anatomical_location_relative_id) = 1)

Unique

References

ColumnsTargetOn delete
problem_diagnosis_idproblem_diagnosiscascade
anatomical_location_idanatomical_locationno action
anatomical_location_circle_idanatomical_location_circleno action
anatomical_location_relative_idanatomical_location_relativeno action

Indexes

problem_diagnosis_status

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
problem_diagnosis_iduuidproblem_diagnosisno
positionintegernoOrder of this row within its parent, from zero.
problem_qualifier_iduuidnoStatus/data[at0001]/items[at0046]

Unique

References

ColumnsTargetOn delete
problem_diagnosis_idproblem_diagnosiscascade
problem_qualifier_idproblem_qualifierno action

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-EVALUATION.problem_diagnosis.v1/diagnostic_certainty3
org.openehr::openEHR-EHR-EVALUATION.problem_diagnosis.v1/severity3