spirometry_result

Pulmonary function test results using a spirometer or peak flow meter.

Pulmonary function test results using a spirometer or peak flow meter.

Purpose. To record the results of a pulmonary function test performed using a spirometer or peak flow meter.

Source

ModelLegRole
openEHR-EHR-OBSERVATION.spirometry_result.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.
forced_expiratory_time_fetintervalyesForced expiratory time (FET)/data[at0001]/events[at0002]/data[at0003]/items[at0013]
clinical_interpretation
clinical_interpretation_code
clinical_interpretation_system
clinical_interpretation_valueset_id
coded text
text, text, text, text
yesClinical interpretation/data[at0001]/events[at0002]/data[at0003]/items[at0130]
commenttextyesComment/data[at0001]/events[at0002]/data[at0003]/items[at0101]
position
position_code
position_system
position_valueset_id
coded text
text, text, text, text
yesPosition/data[at0001]/events[at0002]/state[at0031]/items[at0115]
confounding_factorstextyesConfounding factors/data[at0001]/events[at0002]/state[at0031]/items[at0098]
type_of_measurement
type_of_measurement_code
type_of_measurement_system
type_of_measurement_valueset_id
coded text
text, text, text, text
yesType of measurement/protocol[at0029]/items[at0196]
method
method_code
method_system
method_valueset_id
coded text
text, text, text, text
yesMethod/protocol[at0029]/items[at0199]
challenge_reversibility
challenge_reversibility_code
challenge_reversibility_system
challenge_reversibility_valueset_id
coded text
text, text, text, text
yesChallenge/reversibility/protocol[at0029]/items[at0192]

Constraints

check ((clinical_interpretation_code is null and clinical_interpretation_system is null and clinical_interpretation_valueset_id is null) or (clinical_interpretation is not null and clinical_interpretation_code is not null and clinical_interpretation_system is not null and clinical_interpretation_valueset_id is not null))
check ((position_code is null and position_system is null and position_valueset_id is null and position is null) or (position is not null and position_code is not null and position_system is not null and position_valueset_id is not null))
check ((type_of_measurement_code is null and type_of_measurement_system is null and type_of_measurement_valueset_id is null and type_of_measurement is null) or (type_of_measurement is not null and type_of_measurement_code is not null and type_of_measurement_system is not null and type_of_measurement_valueset_id is not null))
check ((method_code is null and method_system is null and method_valueset_id is null) or (method is not null and method_code is not null and method_system is not null and method_valueset_id is not null))
check ((challenge_reversibility_code is null and challenge_reversibility_system is null and challenge_reversibility_valueset_id is null and challenge_reversibility is null) or (challenge_reversibility is not null and challenge_reversibility_code is not null and challenge_reversibility_system is not null and challenge_reversibility_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
clinical_interpretation_valueset_id, clinical_interpretation_code, clinical_interpretation_system, clinical_interpretationvalueset_coderestrict
position_valueset_id, position_code, position_system, positionvalueset_coderestrict
type_of_measurement_valueset_id, type_of_measurement_code, type_of_measurement_system, type_of_measurementvalueset_coderestrict
method_valueset_id, method_code, method_system, methodvalueset_coderestrict
challenge_reversibility_valueset_id, challenge_reversibility_code, challenge_reversibility_system, challenge_reversibilityvalueset_coderestrict

Referenced by

Indexes

Child tables

7 tables hang off spirometry_result, one row per repetition.

spirometry_result_volume

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
spirometry_result_iduuidspirometry_resultno
positionintegernoOrder of this row within its parent, from zero.
result_magnitude
result_units
quantity
numeric, text
yesResult/data[at0001]/events[at0002]/data[at0003]/items[at0052]/items[at0053]
predicted_result_magnitude
predicted_result_units
quantity
numeric, text
yesPredicted result/data[at0001]/events[at0002]/data[at0003]/items[at0052]/items[at0054]
measured_predicted_ratio_numerator
measured_predicted_ratio_denominator
numeric, numeric
numeric, numeric
yesMeasured/predicted ratio/data[at0001]/events[at0002]/data[at0003]/items[at0052]/items[at0044]

Constraints

check ((result_magnitude is null and result_units is null) or (result_magnitude is not null and result_units is not null))
check (result_magnitude is null or (result_units = 'L' and result_magnitude >= 0) or (result_units = 'mL' and result_magnitude >= 0))
check ((predicted_result_magnitude is null and predicted_result_units is null) or (predicted_result_magnitude is not null and predicted_result_units is not null))
check (predicted_result_magnitude is null or (predicted_result_units = 'L' and predicted_result_magnitude >= 0) or (predicted_result_units = 'mL' and predicted_result_magnitude >= 0))
check ((measured_predicted_ratio_numerator is null and measured_predicted_ratio_denominator is null) or (measured_predicted_ratio_numerator is not null and measured_predicted_ratio_denominator is not null))
check (measured_predicted_ratio_denominator is null or measured_predicted_ratio_denominator <> 0)
check (measured_predicted_ratio_denominator is null or measured_predicted_ratio_denominator = 100)
check (measured_predicted_ratio_numerator is null or measured_predicted_ratio_numerator >= 0)

Unique

References

ColumnsTargetOn delete
spirometry_result_idspirometry_resultcascade

spirometry_result_flow_rate

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
spirometry_result_iduuidspirometry_resultno
positionintegernoOrder of this row within its parent, from zero.
result_magnitude
result_units
quantity
numeric, text
yesResult/data[at0001]/events[at0002]/data[at0003]/items[at0057]/items[at0058]
predicted_result_magnitude
predicted_result_units
quantity
numeric, text
yesPredicted result/data[at0001]/events[at0002]/data[at0003]/items[at0057]/items[at0008]
measured_predicted_ratio_numerator
measured_predicted_ratio_denominator
numeric, numeric
numeric, numeric
yesMeasured/predicted ratio/data[at0001]/events[at0002]/data[at0003]/items[at0057]/items[at0122]

Constraints

check ((result_magnitude is null and result_units is null) or (result_magnitude is not null and result_units is not null))
check (result_magnitude is null or (result_units = 'L/s' and result_magnitude >= 0) or (result_units = 'mL/s' and result_magnitude >= 0) or (result_units = 'L/min' and result_magnitude >= 0))
check ((predicted_result_magnitude is null and predicted_result_units is null) or (predicted_result_magnitude is not null and predicted_result_units is not null))
check (predicted_result_magnitude is null or (predicted_result_units = 'L/s' and predicted_result_magnitude >= 0) or (predicted_result_units = 'mL/s' and predicted_result_magnitude >= 0) or (predicted_result_units = 'L/min' and predicted_result_magnitude >= 0))
check ((measured_predicted_ratio_numerator is null and measured_predicted_ratio_denominator is null) or (measured_predicted_ratio_numerator is not null and measured_predicted_ratio_denominator is not null))
check (measured_predicted_ratio_denominator is null or measured_predicted_ratio_denominator <> 0)
check (measured_predicted_ratio_denominator is null or measured_predicted_ratio_denominator = 100)
check (measured_predicted_ratio_numerator is null or measured_predicted_ratio_numerator >= 0)

Unique

References

ColumnsTargetOn delete
spirometry_result_idspirometry_resultcascade

spirometry_result_pressure

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
spirometry_result_iduuidspirometry_resultno
positionintegernoOrder of this row within its parent, from zero.
result_magnitude
result_units
quantity
numeric, text
yesResult/data[at0001]/events[at0002]/data[at0003]/items[at0156]/items[at0165]
predicted_result_magnitude
predicted_result_units
quantity
numeric, text
yesPredicted result/data[at0001]/events[at0002]/data[at0003]/items[at0156]/items[at0166]
measured_predicted_ratio_numerator
measured_predicted_ratio_denominator
numeric, numeric
numeric, numeric
yesMeasured/predicted ratio/data[at0001]/events[at0002]/data[at0003]/items[at0156]/items[at0167]

Constraints

check ((result_magnitude is null and result_units is null) or (result_magnitude is not null and result_units is not null))
check (result_magnitude is null or (result_units = 'cm[H2O]' and result_magnitude >= 0) or (result_units = 'mm[Hg]' and result_magnitude >= 0))
check ((predicted_result_magnitude is null and predicted_result_units is null) or (predicted_result_magnitude is not null and predicted_result_units is not null))
check (predicted_result_magnitude is null or (predicted_result_units = 'cm[H2O]' and predicted_result_magnitude >= 0) or (predicted_result_units = 'mm[Hg]' and predicted_result_magnitude >= 0))
check ((measured_predicted_ratio_numerator is null and measured_predicted_ratio_denominator is null) or (measured_predicted_ratio_numerator is not null and measured_predicted_ratio_denominator is not null))
check (measured_predicted_ratio_denominator is null or measured_predicted_ratio_denominator <> 0)
check (measured_predicted_ratio_denominator is null or measured_predicted_ratio_denominator = 100)
check (measured_predicted_ratio_numerator is null or measured_predicted_ratio_numerator >= 0)

Unique

References

ColumnsTargetOn delete
spirometry_result_idspirometry_resultcascade

spirometry_result_ratio

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
spirometry_result_iduuidspirometry_resultno
positionintegernoOrder of this row within its parent, from zero.
result_numerator
result_denominator
numeric, numeric
numeric, numeric
yesResult/data[at0001]/events[at0002]/data[at0003]/items[at0055]/items[at0056]
predicted_result_numerator
predicted_result_denominator
numeric, numeric
numeric, numeric
yesPredicted result/data[at0001]/events[at0002]/data[at0003]/items[at0055]/items[at0018]

Constraints

check ((result_numerator is null and result_denominator is null) or (result_numerator is not null and result_denominator is not null))
check (result_denominator is null or result_denominator <> 0)
check (result_denominator is null or result_denominator = 100)
check (result_numerator is null or result_numerator >= 0)
check ((predicted_result_numerator is null and predicted_result_denominator is null) or (predicted_result_numerator is not null and predicted_result_denominator is not null))
check (predicted_result_denominator is null or predicted_result_denominator <> 0)
check (predicted_result_denominator is null or predicted_result_denominator = 100)
check (predicted_result_numerator is null or predicted_result_numerator >= 0)

Unique

References

ColumnsTargetOn delete
spirometry_result_idspirometry_resultcascade

spirometry_result_multimedia_representation

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

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

Unique

References

ColumnsTargetOn delete
spirometry_result_idspirometry_resultcascade
attachment_idattachmentrestrict

Indexes

spirometry_result_device

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
spirometry_result_iduuidspirometry_resultno
positionintegernoOrder of this row within its parent, from zero.
device_iduuidnoDevice/protocol[at0029]/items[at0030]

Unique

References

ColumnsTargetOn delete
spirometry_result_idspirometry_resultcascade
device_iddeviceno action

Indexes

spirometry_result_predicted_results_source

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
spirometry_result_iduuidspirometry_resultno
positionintegernoOrder of this row within its parent, from zero.
knowledge_base_reference_iduuidnoPredicted results source/protocol[at0029]/items[at0185]

Unique

References

ColumnsTargetOn delete
spirometry_result_idspirometry_resultcascade
knowledge_base_reference_idknowledge_base_referenceno action

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-OBSERVATION.spirometry_result.v2/challenge_reversibility3
org.openehr::openEHR-EHR-OBSERVATION.spirometry_result.v2/position4
org.openehr::openEHR-EHR-OBSERVATION.spirometry_result.v2/type_of_measurement2