specimen

A physical sample collected from, or related to, an individual for the purpose of investigation, examination or analysis.

A physical sample collected from, or related to, an individual for the purpose of investigation, examination or analysis.

Purpose. To record details about a physical sample collected from, or related to, an individual for the purpose of investigation, examination or analysis.

Source

ModelLegRole
openEHR-EHR-CLUSTER.specimen.v1openEHRdefines this table

Columns

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
specimen_type
specimen_type_code
specimen_type_system
specimen_type_valueset_id
coded text
text, text, text, text
yesSpecimen type/items[at0029]
specimen_labeltextyesSpecimen label/items[at0098]
specimen_descriptiontextyesSpecimen description/items[at0097]
number_of_fragmentsintegeryesNumber of fragments/items[at0099]
laboratory_specimen_identifier_value
laboratory_specimen_identifier_system
text, text
text, text
yesLaboratory specimen identifier/items[at0001]
external_identifier_value
external_identifier_system
text, text
text, text
yesExternal identifier/items[at0088]
date_time_receivedtimestamptzyesDate/time received/items[at0034]
sampling_context
sampling_context_code
sampling_context_system
sampling_context_valueset_id
coded text
text, text, text, text
yesSampling context/items[at0008]
collection_method
collection_method_code
collection_method_system
collection_method_valueset_id
coded text
text, text, text, text
yesCollection method/items[at0007]
collection_descriptiontextyesCollection description/items[at0079]
source_site
source_site_code
source_site_system
source_site_valueset_id
coded text
text, text, text, text
yesSource site/items[at0087]
collection_date_timetimestamptzyesCollection date/time/items[at0015]
hazard_warning
hazard_warning_code
hazard_warning_system
hazard_warning_valueset_id
coded text
text, text, text, text
yesHazard warning/items[at0005]
collection_setting
collection_setting_code
collection_setting_system
collection_setting_valueset_id
coded text
text, text, text, text
yesCollection setting/items[at0067]
specimen_collector_identifier_value
specimen_collector_identifier_system
text, text
text, text
yesSpecimen collector identifier/items[at0070]
number_of_containersintegeryesNumber of containers/items[at0080]
parent_specimen_identifier_value
parent_specimen_identifier_system
text, text
text, text
yesParent specimen identifier/items[at0003]
specimen_quality_issue
specimen_quality_issue_code
specimen_quality_issue_system
specimen_quality_issue_valueset_id
coded text
text, text, text, text
yesSpecimen quality issue/items[at0042]
adequacy_for_testing
adequacy_for_testing_code
adequacy_for_testing_system
adequacy_for_testing_valueset_id
coded text
text, text, text, text
yesAdequacy for testing/items[at0041]
commenttextyesComment/items[at0045]

Constraints

check ((specimen_type_code is null and specimen_type_system is null and specimen_type_valueset_id is null) or (specimen_type is not null and specimen_type_code is not null and specimen_type_system is not null and specimen_type_valueset_id is not null))
check (laboratory_specimen_identifier_system is null or laboratory_specimen_identifier_value is not null)
check (external_identifier_system is null or external_identifier_value is not null)
check ((sampling_context_code is null and sampling_context_system is null and sampling_context_valueset_id is null) or (sampling_context is not null and sampling_context_code is not null and sampling_context_system is not null and sampling_context_valueset_id is not null))
check ((collection_method_code is null and collection_method_system is null and collection_method_valueset_id is null) or (collection_method is not null and collection_method_code is not null and collection_method_system is not null and collection_method_valueset_id is not null))
check ((source_site_code is null and source_site_system is null and source_site_valueset_id is null) or (source_site is not null and source_site_code is not null and source_site_system is not null and source_site_valueset_id is not null))
check ((hazard_warning_code is null and hazard_warning_system is null and hazard_warning_valueset_id is null) or (hazard_warning is not null and hazard_warning_code is not null and hazard_warning_system is not null and hazard_warning_valueset_id is not null))
check ((collection_setting_code is null and collection_setting_system is null and collection_setting_valueset_id is null) or (collection_setting is not null and collection_setting_code is not null and collection_setting_system is not null and collection_setting_valueset_id is not null))
check (specimen_collector_identifier_system is null or specimen_collector_identifier_value is not null)
check (number_of_containers is null or number_of_containers >= 0)
check (parent_specimen_identifier_system is null or parent_specimen_identifier_value is not null)
check ((specimen_quality_issue_code is null and specimen_quality_issue_system is null and specimen_quality_issue_valueset_id is null) or (specimen_quality_issue is not null and specimen_quality_issue_code is not null and specimen_quality_issue_system is not null and specimen_quality_issue_valueset_id is not null))
check ((adequacy_for_testing_code is null and adequacy_for_testing_system is null and adequacy_for_testing_valueset_id is null) or (adequacy_for_testing is not null and adequacy_for_testing_code is not null and adequacy_for_testing_system is not null and adequacy_for_testing_valueset_id is not null))

References

ColumnsTargetOn delete
specimen_type_valueset_id, specimen_type_code, specimen_type_system, specimen_typevalueset_coderestrict
sampling_context_valueset_id, sampling_context_code, sampling_context_system, sampling_contextvalueset_coderestrict
collection_method_valueset_id, collection_method_code, collection_method_system, collection_methodvalueset_coderestrict
source_site_valueset_id, source_site_code, source_site_system, source_sitevalueset_coderestrict
hazard_warning_valueset_id, hazard_warning_code, hazard_warning_system, hazard_warningvalueset_coderestrict
collection_setting_valueset_id, collection_setting_code, collection_setting_system, collection_settingvalueset_coderestrict
specimen_quality_issue_valueset_id, specimen_quality_issue_code, specimen_quality_issue_system, specimen_quality_issuevalueset_coderestrict
adequacy_for_testing_valueset_id, adequacy_for_testing_code, adequacy_for_testing_system, adequacy_for_testingvalueset_coderestrict

Referenced by

Child tables

4 tables hang off specimen, one row per repetition.

specimen_structured_source_site

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
specimen_iduuidspecimenno
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
specimen_idspecimencascade
anatomical_location_idanatomical_locationno action
anatomical_location_circle_idanatomical_location_circleno action
anatomical_location_relative_idanatomical_location_relativeno action

Indexes

specimen_specimen_collector_details

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
specimen_iduuidspecimenno
positionintegernoOrder of this row within its parent, from zero.
organization_iduuidyes
person_iduuidyes

Constraints

check (num_nonnulls(organization_id, person_id) = 1)

Unique

References

ColumnsTargetOn delete
specimen_idspecimencascade
organization_idorganizationno action
person_idpersonno action

Indexes

specimen_container_details

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
specimen_iduuidspecimenno
positionintegernoOrder of this row within its parent, from zero.
specimen_container_iduuidnoContainer details/items[at0085]

Unique

References

ColumnsTargetOn delete
specimen_idspecimencascade
specimen_container_idspecimen_containerno action

Indexes

specimen_digital_representation

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
specimen_iduuidspecimenno
positionintegernoOrder of this row within its parent, from zero.
attachment_iduuidnoDigital representation/items[at0096]

Unique

References

ColumnsTargetOn delete
specimen_idspecimencascade
attachment_idattachmentrestrict

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-CLUSTER.specimen.v1/adequacy_for_testing3
org.openehr::openEHR-EHR-CLUSTER.specimen.v1/specimen_quality_issue10