laboratory_test_result

The result, including findings and the laboratory's interpretation, of an investigation performed on specimens collected from an individual or related to that individual.

The result, including findings and the laboratory's interpretation, of an investigation performed on specimens collected from an individual or related to that individual.

Purpose. To record the result, including findings and the laboratory's interpretation, of an investigation performed on specimens collected from an individual or related to that individual.

Source

ModelLegRole
openEHR-EHR-OBSERVATION.laboratory_test_result.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.
test_name
test_name_code
test_name_system
test_name_valueset_id
coded text
text, text, text, text
yesTest name/data[at0001]/events[at0002]/data[at0003]/items[at0005]
overall_test_status
overall_test_status_code
overall_test_status_system
overall_test_status_valueset_id
coded text
text, text, text, text
yesOverall test status/data[at0001]/events[at0002]/data[at0003]/items[at0073]
overall_test_status_timestamptimestamptzyesOverall test status timestamp/data[at0001]/events[at0002]/data[at0003]/items[at0075]
diagnostic_service_category
diagnostic_service_category_code
diagnostic_service_category_system
diagnostic_service_category_valueset_id
coded text
text, text, text, text
yesDiagnostic service category/data[at0001]/events[at0002]/data[at0003]/items[at0077]
clinical_information_providedtextyesClinical information provided/data[at0001]/events[at0002]/data[at0003]/items[at0100]
conclusiontextyesConclusion/data[at0001]/events[at0002]/data[at0003]/items[at0057]
test_diagnosis
test_diagnosis_code
test_diagnosis_system
test_diagnosis_valueset_id
coded text
text, text, text, text
yesTest diagnosis/data[at0001]/events[at0002]/data[at0003]/items[at0098]
commenttextyesComment/data[at0001]/events[at0002]/data[at0003]/items[at0101]
confounding_factorstextyesConfounding factors/data[at0001]/events[at0002]/state[at0112]/items[at0113]
laboratory_internal_identifier_value
laboratory_internal_identifier_system
text, text
text, text
yesLaboratory internal identifier/protocol[at0004]/items[at0068]
point_of_care_testbooleanyesPoint-of-care test/protocol[at0004]/items[at0111]
test_method
test_method_code
test_method_system
test_method_valueset_id
coded text
text, text, text, text
yesTest method/protocol[at0004]/items[at0121]

Constraints

check ((test_name_code is null and test_name_system is null and test_name_valueset_id is null) or (test_name is not null and test_name_code is not null and test_name_system is not null and test_name_valueset_id is not null))
check ((overall_test_status_code is null and overall_test_status_system is null and overall_test_status_valueset_id is null) or (overall_test_status is not null and overall_test_status_code is not null and overall_test_status_system is not null and overall_test_status_valueset_id is not null))
check ((diagnostic_service_category_code is null and diagnostic_service_category_system is null and diagnostic_service_category_valueset_id is null) or (diagnostic_service_category is not null and diagnostic_service_category_code is not null and diagnostic_service_category_system is not null and diagnostic_service_category_valueset_id is not null))
check ((test_diagnosis_code is null and test_diagnosis_system is null and test_diagnosis_valueset_id is null) or (test_diagnosis is not null and test_diagnosis_code is not null and test_diagnosis_system is not null and test_diagnosis_valueset_id is not null))
check (laboratory_internal_identifier_system is null or laboratory_internal_identifier_value is not null)
check ((test_method_code is null and test_method_system is null and test_method_valueset_id is null) or (test_method is not null and test_method_code is not null and test_method_system is not null and test_method_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
test_name_valueset_id, test_name_code, test_name_system, test_namevalueset_coderestrict
overall_test_status_valueset_id, overall_test_status_code, overall_test_status_system, overall_test_statusvalueset_coderestrict
diagnostic_service_category_valueset_id, diagnostic_service_category_code, diagnostic_service_category_system, diagnostic_service_categoryvalueset_coderestrict
test_diagnosis_valueset_id, test_diagnosis_code, test_diagnosis_system, test_diagnosisvalueset_coderestrict
test_method_valueset_id, test_method_code, test_method_system, test_methodvalueset_coderestrict

Referenced by

Indexes

Child tables

6 tables hang off laboratory_test_result, one row per repetition.

laboratory_test_result_specimen_detail

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
laboratory_test_result_iduuidlaboratory_test_resultno
positionintegernoOrder of this row within its parent, from zero.
specimen_iduuidnoSpecimen detail/data[at0001]/events[at0002]/data[at0003]/items[at0065]

Unique

References

ColumnsTargetOn delete
laboratory_test_result_idlaboratory_test_resultcascade
specimen_idspecimenno action

Indexes

laboratory_test_result_test_result

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
laboratory_test_result_iduuidlaboratory_test_resultno
positionintegernoOrder of this row within its parent, from zero.
laboratory_test_analyte_iduuidnoTest result/data[at0001]/events[at0002]/data[at0003]/items[at0097]

Unique

References

ColumnsTargetOn delete
laboratory_test_result_idlaboratory_test_resultcascade
laboratory_test_analyte_idlaboratory_test_analyteno action

Indexes

laboratory_test_result_multimedia_representation

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
laboratory_test_result_iduuidlaboratory_test_resultno
positionintegernoOrder of this row within its parent, from zero.
attachment_iduuidnoMultimedia representation/data[at0001]/events[at0002]/data[at0003]/items[at0118]

Unique

References

ColumnsTargetOn delete
laboratory_test_result_idlaboratory_test_resultcascade
attachment_idattachmentrestrict

Indexes

laboratory_test_result_receiving_laboratory

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
laboratory_test_result_iduuidlaboratory_test_resultno
positionintegernoOrder of this row within its parent, from zero.
organization_iduuidnoReceiving laboratory/protocol[at0004]/items[at0017]

Unique

References

ColumnsTargetOn delete
laboratory_test_result_idlaboratory_test_resultcascade
organization_idorganizationno action

Indexes

laboratory_test_result_test_request_details

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
laboratory_test_result_iduuidlaboratory_test_resultno
positionintegernoOrder of this row within its parent, from zero.
original_test_requested_nametextyesOriginal test requested name/protocol[at0004]/items[at0094]/items[at0106]
requester_order_identifier_value
requester_order_identifier_system
text, text
text, text
yesRequester order identifier/protocol[at0004]/items[at0094]/items[at0062]
receiver_order_identifier_value
receiver_order_identifier_system
text, text
text, text
yesReceiver order identifier/protocol[at0004]/items[at0094]/items[at0063]
requesteruuidyesRequester/protocol[at0004]/items[at0094]/items[at0090]

Constraints

check (requester_order_identifier_system is null or requester_order_identifier_value is not null)
check (receiver_order_identifier_system is null or receiver_order_identifier_value is not null)

Unique

References

ColumnsTargetOn delete
laboratory_test_result_idlaboratory_test_resultcascade
requesterpersonno action

Indexes

laboratory_test_result_testing_details

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
laboratory_test_result_iduuidlaboratory_test_resultno
positionintegernoOrder of this row within its parent, from zero.
device_iduuidnoTesting details/protocol[at0004]/items[at0110]

Unique

References

ColumnsTargetOn delete
laboratory_test_result_idlaboratory_test_resultcascade
device_iddeviceno action

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-OBSERVATION.laboratory_test_result.v1/overall_test_status9