goal

A desired health, or well-being, outcome for the subject of care.

A desired health, or well-being, outcome for the subject of care.

Purpose. To record details about a health-related goal and any associated targets and deadlines.

Source

ModelLegRole
openEHR-EHR-EVALUATION.goal.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.
goal_nametextyesGoal name/data[at0001]/items[at0002]
goal_descriptiontextyesGoal description/data[at0001]/items[at0012]
clinical_indicationtextyesClinical indication/data[at0001]/items[at0010]
goal_start_datetimestamptzyesGoal start date/data[at0001]/items[at0025]
goal_proposed_datedateyesGoal proposed date/data[at0001]/items[at0003]
goal_end_datedateyesGoal end date/data[at0001]/items[at0004]
goal_outcome
goal_outcome_code
goal_outcome_system
goal_outcome_valueset_id
coded text
text, text, text, text
yesGoal outcome/data[at0001]/items[at0013]
goal_commenttextyesGoal comment/data[at0001]/items[at0022]
last_updatedtimestamptzyesLast updated/protocol[at0026]/items[at0029]

Constraints

check ((goal_outcome_code is null and goal_outcome_system is null and goal_outcome_valueset_id is null) or (goal_outcome is not null and goal_outcome_code is not null and goal_outcome_system is not null and goal_outcome_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
goal_outcome_valueset_id, goal_outcome_code, goal_outcome_system, goal_outcomevalueset_coderestrict

Referenced by

Indexes

Child tables

1 table hang off goal, one row per repetition.

goal_target

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
goal_iduuidgoalno
positionintegernoOrder of this row within its parent, from zero.
target_nametextyesTarget name/data[at0001]/items[at0005]/items[at0011]
target_quantity_magnitude
target_quantity_units
target_text
quantity
numeric, text, text
yesTarget/data[at0001]/items[at0005]/items[at0007]
target_descriptiontextyesTarget description/data[at0001]/items[at0005]/items[at0024]
target_pathtextyesTarget path/data[at0001]/items[at0005]/items[at0006]
target_proposed_datedateyesTarget proposed date/data[at0001]/items[at0005]/items[at0008]
target_end_datedateyesTarget end date/data[at0001]/items[at0005]/items[at0009]
target_outcome
target_outcome_code
target_outcome_system
target_outcome_valueset_id
coded text
text, text, text, text
yesTarget outcome/data[at0001]/items[at0005]/items[at0018]
target_commenttextyesTarget comment/data[at0001]/items[at0005]/items[at0023]

Constraints

check ((target_quantity_magnitude is null and target_quantity_units is null) or (target_quantity_magnitude is not null and target_quantity_units is not null))
check (num_nonnulls(target_quantity_magnitude, target_text) <= 1)
check ((target_outcome_code is null and target_outcome_system is null and target_outcome_valueset_id is null) or (target_outcome is not null and target_outcome_code is not null and target_outcome_system is not null and target_outcome_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
goal_idgoalcascade
target_outcome_valueset_id, target_outcome_code, target_outcome_system, target_outcomevalueset_coderestrict

Value sets

Value setCodes
org.openehr::openEHR-EHR-EVALUATION.goal.v1/goal_outcome3
org.openehr::openEHR-EHR-EVALUATION.goal.v1/target_outcome3