advance_care_directive

A framework to communicate the preferences of an individual for future medical treatment and care.

A framework to communicate the preferences of an individual for future medical treatment and care.

Purpose. To record the preferences of an individual for future medical treatment and care.

Source

ModelLegRole
openEHR-EHR-EVALUATION.advance_care_directive.v2openEHRdefines 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.
type_of_directive
type_of_directive_code
type_of_directive_system
type_of_directive_valueset_id
coded text
text, text, text, text
yesType of directive/data[at0001]/items[at0005]
status
status_code
status_system
status_valueset_id
coded text
text, text, text, text
yesStatus/data[at0001]/items[at0004]
descriptiontextyesDescription/data[at0001]/items[at0006]
condition
condition_code
condition_system
condition_valueset_id
coded text
text, text, text, text
yesCondition/data[at0001]/items[at0007]
commenttextyesComment/data[at0001]/items[at0038]
valid_period_starttimestamptzyesValid period start/protocol[at0010]/items[at0053]
valid_period_endtimestamptzyesValid period end/protocol[at0010]/items[at0054]
review_due_datetimestamptzyesReview due date/protocol[at0010]/items[at0056]
last_updatedtimestamptzyesLast updated/protocol[at0010]/items[at0055]
mandatetextyesMandate/protocol[at0010]/items[at0027]
digital_representationuuidyesDigital representation/protocol[at0010]/items[at0060]

Constraints

check ((type_of_directive_code is null and type_of_directive_system is null and type_of_directive_valueset_id is null) or (type_of_directive is not null and type_of_directive_code is not null and type_of_directive_system is not null and type_of_directive_valueset_id is not null))
check ((status_code is null and status_system is null and status_valueset_id is null) or (status is not null and status_code is not null and status_system is not null and status_valueset_id is not null))
check ((condition_code is null and condition_system is null and condition_valueset_id is null) or (condition is not null and condition_code is not null and condition_system is not null and condition_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
type_of_directive_valueset_id, type_of_directive_code, type_of_directive_system, type_of_directivevalueset_coderestrict
status_valueset_id, status_code, status_system, statusvalueset_coderestrict
condition_valueset_id, condition_code, condition_system, conditionvalueset_coderestrict
digital_representationattachmentrestrict

Referenced by

Indexes

Child tables

2 tables hang off advance_care_directive, one row per repetition.

advance_care_directive_witness

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
advance_care_directive_iduuidadvance_care_directiveno
positionintegernoOrder of this row within its parent, from zero.
person_iduuidnoWitness/protocol[at0010]/items[at0025]

Unique

References

ColumnsTargetOn delete
advance_care_directive_idadvance_care_directivecascade
person_idpersonno action

Indexes

advance_care_directive_directive_location

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
advance_care_directive_iduuidadvance_care_directiveno
positionintegernoOrder of this row within its parent, from zero.
locationtextyesLocation/protocol[at0010]/items[at0058]/items[at0030]
copy_holderuuidyesCopy holder/protocol[at0010]/items[at0058]/items[at0059]

Unique

References

ColumnsTargetOn delete
advance_care_directive_idadvance_care_directivecascade
copy_holderpersonno action

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-EVALUATION.advance_care_directive.v2/status3