problem_qualifier

Contextual or temporal qualifier for a specified problem or diagnosis.

Contextual or temporal qualifier for a specified problem or diagnosis.

Purpose. To record a clinical context-specific or time-specific qualifier for a specified problem or diagnosis.

Source

ModelLegRole
openEHR-EHR-CLUSTER.problem_qualifier.v2openEHRdefines this table

Columns

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
diagnostic_status
diagnostic_status_code
diagnostic_status_system
diagnostic_status_valueset_id
coded text
text, text, text, text
yesDiagnostic status/items[at0004]
disorder_category
disorder_category_code
disorder_category_system
disorder_category_valueset_id
coded text
text, text, text, text
yesDisorder category/items[at0111]
current_past
current_past_code
current_past_system
current_past_valueset_id
coded text
text, text, text, text
yesCurrent/Past?/items[at0060]
active_inactive
active_inactive_code
active_inactive_system
active_inactive_valueset_id
coded text
text, text, text, text
yesActive/Inactive?/items[at0003]
level_of_control
level_of_control_code
level_of_control_system
level_of_control_valueset_id
coded text
text, text, text, text
yesLevel of control/items[at0098]
progression
progression_code
progression_system
progression_valueset_id
coded text
text, text, text, text
yesProgression/items[at0102]
resolution_phase
resolution_phase_code
resolution_phase_system
resolution_phase_valueset_id
coded text
text, text, text, text
yesResolution phase/items[at0083]
remission_status
remission_status_code
remission_status_system
remission_status_valueset_id
coded text
text, text, text, text
yesRemission status/items[at0089]
episodicity
episodicity_code
episodicity_system
episodicity_valueset_id
coded text
text, text, text, text
yesEpisodicity/items[at0001]
reason_for_an_ongoing_episodetextyesReason for an ongoing episode/items[at0107]
occurrence
occurrence_code
occurrence_system
occurrence_valueset_id
coded text
text, text, text, text
yesOccurrence/items[at0071]
course_label
course_label_code
course_label_system
course_label_valueset_id
coded text
text, text, text, text
yesCourse label/items[at0077]
diagnostic_category
diagnostic_category_code
diagnostic_category_system
diagnostic_category_valueset_id
coded text
text, text, text, text
yesDiagnostic category/items[at0063]
admission_diagnosis_boolean
admission_diagnosis_coded_text
admission_diagnosis_coded_text_code
admission_diagnosis_coded_text_system
admission_diagnosis_coded_text_valueset_id
coded text
boolean, text, text, text, text
yesAdmission diagnosis?/items[at0073]
commenttextyesComment/items[at0110]

Constraints

check ((diagnostic_status_code is null and diagnostic_status_system is null and diagnostic_status_valueset_id is null) or (diagnostic_status is not null and diagnostic_status_code is not null and diagnostic_status_system is not null and diagnostic_status_valueset_id is not null))
check ((disorder_category_code is null and disorder_category_system is null and disorder_category_valueset_id is null) or (disorder_category is not null and disorder_category_code is not null and disorder_category_system is not null and disorder_category_valueset_id is not null))
check ((current_past_code is null and current_past_system is null and current_past_valueset_id is null and current_past is null) or (current_past is not null and current_past_code is not null and current_past_system is not null and current_past_valueset_id is not null))
check ((active_inactive_code is null and active_inactive_system is null and active_inactive_valueset_id is null and active_inactive is null) or (active_inactive is not null and active_inactive_code is not null and active_inactive_system is not null and active_inactive_valueset_id is not null))
check ((level_of_control_code is null and level_of_control_system is null and level_of_control_valueset_id is null) or (level_of_control is not null and level_of_control_code is not null and level_of_control_system is not null and level_of_control_valueset_id is not null))
check ((progression_code is null and progression_system is null and progression_valueset_id is null) or (progression is not null and progression_code is not null and progression_system is not null and progression_valueset_id is not null))
check ((resolution_phase_code is null and resolution_phase_system is null and resolution_phase_valueset_id is null) or (resolution_phase is not null and resolution_phase_code is not null and resolution_phase_system is not null and resolution_phase_valueset_id is not null))
check ((remission_status_code is null and remission_status_system is null and remission_status_valueset_id is null) or (remission_status is not null and remission_status_code is not null and remission_status_system is not null and remission_status_valueset_id is not null))
check ((episodicity_code is null and episodicity_system is null and episodicity_valueset_id is null) or (episodicity is not null and episodicity_code is not null and episodicity_system is not null and episodicity_valueset_id is not null))
check ((occurrence_code is null and occurrence_system is null and occurrence_valueset_id is null) or (occurrence is not null and occurrence_code is not null and occurrence_system is not null and occurrence_valueset_id is not null))
check ((course_label_code is null and course_label_system is null and course_label_valueset_id is null) or (course_label is not null and course_label_code is not null and course_label_system is not null and course_label_valueset_id is not null))
check ((diagnostic_category_code is null and diagnostic_category_system is null and diagnostic_category_valueset_id is null) or (diagnostic_category is not null and diagnostic_category_code is not null and diagnostic_category_system is not null and diagnostic_category_valueset_id is not null))
check ((admission_diagnosis_coded_text_code is null and admission_diagnosis_coded_text_system is null and admission_diagnosis_coded_text_valueset_id is null and admission_diagnosis_coded_text is null) or (admission_diagnosis_coded_text is not null and admission_diagnosis_coded_text_code is not null and admission_diagnosis_coded_text_system is not null and admission_diagnosis_coded_text_valueset_id is not null))
check (num_nonnulls(admission_diagnosis_boolean, admission_diagnosis_coded_text) <= 1)

References

ColumnsTargetOn delete
diagnostic_status_valueset_id, diagnostic_status_code, diagnostic_status_system, diagnostic_statusvalueset_coderestrict
disorder_category_valueset_id, disorder_category_code, disorder_category_system, disorder_categoryvalueset_coderestrict
current_past_valueset_id, current_past_code, current_past_system, current_pastvalueset_coderestrict
active_inactive_valueset_id, active_inactive_code, active_inactive_system, active_inactivevalueset_coderestrict
level_of_control_valueset_id, level_of_control_code, level_of_control_system, level_of_controlvalueset_coderestrict
progression_valueset_id, progression_code, progression_system, progressionvalueset_coderestrict
resolution_phase_valueset_id, resolution_phase_code, resolution_phase_system, resolution_phasevalueset_coderestrict
remission_status_valueset_id, remission_status_code, remission_status_system, remission_statusvalueset_coderestrict
episodicity_valueset_id, episodicity_code, episodicity_system, episodicityvalueset_coderestrict
occurrence_valueset_id, occurrence_code, occurrence_system, occurrencevalueset_coderestrict
course_label_valueset_id, course_label_code, course_label_system, course_labelvalueset_coderestrict
diagnostic_category_valueset_id, diagnostic_category_code, diagnostic_category_system, diagnostic_categoryvalueset_coderestrict
admission_diagnosis_coded_text_valueset_id, admission_diagnosis_coded_text_code, admission_diagnosis_coded_text_system, admission_diagnosis_coded_textvalueset_coderestrict

Referenced by

Value sets

Value setCodes
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/active_inactive2
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/admission_diagnosis2
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/course_label3
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/current_past2
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/diagnostic_category3
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/diagnostic_status4
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/episodicity3
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/level_of_control3
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/occurrence2
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/progression4
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/remission_status3
org.openehr::openEHR-EHR-CLUSTER.problem_qualifier.v2/resolution_phase5