service

A simple health-related service or activity delivered by a clinician, organisation or agency.

A simple health-related service or activity delivered by a clinician, organisation or agency.

Purpose. To record details about a simple health-related service or activity delivered by a clinician, organisation or agency.

Source

ModelLegRole
openEHR-EHR-ACTION.service.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.
service_name
service_name_code
service_name_system
service_name_valueset_id
coded text
text, text, text, text
yesService name/description[at0001]/items[at0011]
service_type
service_type_code
service_type_system
service_type_valueset_id
coded text
text, text, text, text
yesService type/description[at0001]/items[at0014]
descriptiontextyesDescription/description[at0001]/items[at0013]
planned_date_timetimestamptzyesPlanned date/time/description[at0001]/items[at0032]
scheduled_date_timetimestamptzyesScheduled date/time/description[at0001]/items[at0025]
sequenceintegeryesSequence/description[at0001]/items[at0021]
reasontextyesReason/description[at0001]/items[at0012]
commenttextyesComment/description[at0001]/items[at0028]
requestor_identifier_value
requestor_identifier_system
text, text
text, text
yesRequestor identifier/protocol[at0015]/items[at0016]
service_provider_identifier_value
service_provider_identifier_system
text, text
text, text
yesService provider identifier/protocol[at0015]/items[at0018]

Constraints

check ((service_name_code is null and service_name_system is null and service_name_valueset_id is null) or (service_name is not null and service_name_code is not null and service_name_system is not null and service_name_valueset_id is not null))
check ((service_type_code is null and service_type_system is null and service_type_valueset_id is null) or (service_type is not null and service_type_code is not null and service_type_system is not null and service_type_valueset_id is not null))
check (sequence is null or sequence >= 1)
check (requestor_identifier_system is null or requestor_identifier_value is not null)
check (service_provider_identifier_system is null or service_provider_identifier_value is not null)

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
service_name_valueset_id, service_name_code, service_name_system, service_namevalueset_coderestrict
service_type_valueset_id, service_type_code, service_type_system, service_typevalueset_coderestrict

Referenced by

Indexes

Child tables

3 tables hang off service, one row per repetition.

service_multimedia_representation

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
service_iduuidserviceno
positionintegernoOrder of this row within its parent, from zero.
attachment_iduuidnoMultimedia representation/description[at0001]/items[at0029]

Unique

References

ColumnsTargetOn delete
service_idservicecascade
attachment_idattachmentrestrict

Indexes

service_requestor

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
service_iduuidserviceno
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
service_idservicecascade
organization_idorganizationno action
person_idpersonno action

Indexes

service_receiver

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
service_iduuidserviceno
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
service_idservicecascade
organization_idorganizationno action
person_idpersonno action

Indexes