visual_acuity

A test to quantify an individual's visual acuity as a measure of the ability to detect, resolve or recognize visual details.

A test to quantify an individual's visual acuity as a measure of the ability to detect, resolve or recognize visual details.

Purpose. To record the results of visual acuity assessments, which are typically performed by quantifying the individual's ability to detect, resolve or identify visual differences or symbols.

Source

ModelLegRole
openEHR-EHR-OBSERVATION.visual_acuity.v0openEHRdefines 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.
eye_examined
eye_examined_code
eye_examined_system
eye_examined_valueset_id
coded text
text, text, text, text
yesEye examined/data[at0001]/events[at0134]/data[at0003]/items[at0007]
result_log_mar_result_magnitude
result_log_mar_result_units
quantity
numeric, text
yeslogMAR result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0297]
result_metre_ratio_result_numerator
result_metre_ratio_result_denominator
numeric, numeric
numeric, numeric
yesMetre ratio result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0295]
result_feet_ratio_result_numerator
result_feet_ratio_result_denominator
numeric, numeric
numeric, numeric
yesFeet ratio result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0296]
result_decimal_notation_result_magnitude
result_decimal_notation_result_units
quantity
numeric, text
yesDecimal notation result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0294]
result_etdrs_letter_scoreintegeryesETDRS letter score/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0356]
result__5_score_notation_result_magnitude
result__5_score_notation_result_units
quantity
numeric, text
yes5-Score notation result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0355]
result_n_point_font_size_notation_result
result_n_point_font_size_notation_result_code
result_n_point_font_size_notation_result_system
result_n_point_font_size_notation_result_numeric
result_n_point_font_size_notation_result_valueset_id
coded text
text, text, text, numeric, text
yesN point font size notation result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0299]
result_jaeger_font_size_notation_result
result_jaeger_font_size_notation_result_code
result_jaeger_font_size_notation_result_system
result_jaeger_font_size_notation_result_numeric
result_jaeger_font_size_notation_result_valueset_id
coded text
text, text, text, numeric, text
yesJaeger font size notation result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0302]
result_cycles_per_centimetre_result_magnitude
result_cycles_per_centimetre_result_units
quantity
numeric, text
yesCycles per centimetre result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0491]
result_cycles_per_degree_result_magnitude
result_cycles_per_degree_result_units
quantity
numeric, text
yesCycles per degree result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0492]
result_best_qualitative_result
result_best_qualitative_result_code
result_best_qualitative_result_system
result_best_qualitative_result_numeric
result_best_qualitative_result_valueset_id
coded text
text, text, text, numeric, text
yesBest qualitative result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0151]
result_missed_or_additional_optotypes_count
result_missed_or_additional_optotypes_coded_text
result_missed_or_additional_optotypes_coded_text_code
result_missed_or_additional_optotypes_coded_text_system
result_missed_or_additional_optotypes_coded_text_valueset_id
coded text
integer, text, text, text, text
yesMissed or additional optotypes/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0410]
result_derived_result_derived_log_mar_result_magnitude
result_derived_result_derived_log_mar_result_units
quantity
numeric, text
yesDerived logMAR result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0193]/items[at0322]
result_derived_result_derived_meter_ratio_result_numerator
result_derived_result_derived_meter_ratio_result_denominator
numeric, numeric
numeric, numeric
yesDerived meter ratio result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0193]/items[at0320]
result_derived_result_derived_feet_ratio_result_numerator
result_derived_result_derived_feet_ratio_result_denominator
numeric, numeric
numeric, numeric
yesDerived feet ratio result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0193]/items[at0321]
result_derived_result_derived_decimal_notation_result_magnitude
result_derived_result_derived_decimal_notation_result_units
quantity
numeric, text
yesDerived decimal notation result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0193]/items[at0319]
result_derived_result_derived_etdrs_letter_score_resultintegeryesDerived ETDRS letter score result/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0193]/items[at0357]
result_derived_result_derived_cycles_per_degree_magnitude
result_derived_result_derived_cycles_per_degree_units
quantity
numeric, text
yesDerived cycles per degree/data[at0001]/events[at0134]/data[at0003]/items[at0461]/items[at0193]/items[at0493]
testing_distance_category
testing_distance_category_code
testing_distance_category_system
testing_distance_category_valueset_id
coded text
text, text, text, text
yesTesting distance category/data[at0001]/events[at0134]/data[at0003]/items[at0081]
testing_distance_magnitude
testing_distance_units
quantity
numeric, text
yesTesting distance/data[at0001]/events[at0134]/data[at0003]/items[at0412]
perceptual_task
perceptual_task_code
perceptual_task_system
perceptual_task_valueset_id
coded text
text, text, text, text
yesPerceptual task/data[at0001]/events[at0134]/data[at0003]/items[at0586]
stimulus_method
stimulus_method_code
stimulus_method_system
stimulus_method_valueset_id
coded text
text, text, text, text
yesStimulus method/data[at0001]/events[at0134]/data[at0003]/items[at0226]
chart_or_stimulus_type
chart_or_stimulus_type_code
chart_or_stimulus_type_system
chart_or_stimulus_type_valueset_id
coded text
text, text, text, text
yesChart or Stimulus type/data[at0001]/events[at0134]/data[at0003]/items[at0023]
optotype
optotype_code
optotype_system
optotype_valueset_id
coded text
text, text, text, text
yesOptotype/data[at0001]/events[at0134]/data[at0003]/items[at0021]
crowdedness
crowdedness_code
crowdedness_system
crowdedness_valueset_id
coded text
text, text, text, text
yesCrowdedness/data[at0001]/events[at0134]/data[at0003]/items[at0558]
contrast_category
contrast_category_code
contrast_category_system
contrast_category_valueset_id
coded text
text, text, text, text
yesContrast category/data[at0001]/events[at0134]/data[at0003]/items[at0513]
weber_contrast_numerator
weber_contrast_denominator
numeric, numeric
numeric, numeric
yesWeber contrast/data[at0001]/events[at0134]/data[at0003]/items[at0245]
michelson_contrast_numerator
michelson_contrast_denominator
numeric, numeric
numeric, numeric
yesMichelson contrast/data[at0001]/events[at0134]/data[at0003]/items[at0248]
no_improvement_note
no_improvement_note_code
no_improvement_note_system
no_improvement_note_valueset_id
coded text
text, text, text, text
yesNo improvement note/data[at0001]/events[at0134]/data[at0003]/items[at0415]
commenttextyesComment/data[at0001]/events[at0134]/data[at0003]/items[at0040]
interpretationtextyesInterpretation/data[at0001]/events[at0134]/data[at0003]/items[at0333]
comparative_label
comparative_label_code
comparative_label_system
comparative_label_valueset_id
coded text
text, text, text, text
yesComparative label/data[at0001]/events[at0134]/data[at0003]/items[at0370]
pupil_state
pupil_state_code
pupil_state_system
pupil_state_valueset_id
coded text
text, text, text, text
yesPupil state/data[at0001]/events[at0134]/state[at0041]/items[at0418]
type_of_ancillary_lighting_used
type_of_ancillary_lighting_used_code
type_of_ancillary_lighting_used_system
type_of_ancillary_lighting_used_valueset_id
coded text
text, text, text, text
yesType of ancillary lighting used/data[at0001]/events[at0134]/state[at0041]/items[at0562]
light_adaptation_state
light_adaptation_state_code
light_adaptation_state_system
light_adaptation_state_valueset_id
coded text
text, text, text, text
yesLight adaptation state/data[at0001]/events[at0134]/state[at0041]/items[at0589]
ambient_illuminance_magnitude
ambient_illuminance_units
quantity
numeric, text
yesAmbient illuminance/data[at0001]/events[at0134]/state[at0041]/items[at0256]
background_luminance_magnitude
background_luminance_units
quantity
numeric, text
yesBackground luminance/data[at0001]/events[at0134]/state[at0041]/items[at0244]
confounding_factorstextyesConfounding factors/data[at0001]/events[at0134]/state[at0041]/items[at0112]

Constraints

check ((eye_examined_code is null and eye_examined_system is null and eye_examined_valueset_id is null and eye_examined is null) or (eye_examined is not null and eye_examined_code is not null and eye_examined_system is not null and eye_examined_valueset_id is not null))
check ((result_log_mar_result_magnitude is null and result_log_mar_result_units is null) or (result_log_mar_result_magnitude is not null and result_log_mar_result_units is not null))
check (result_log_mar_result_magnitude is null or (result_log_mar_result_units = '1{logMAR}' and result_log_mar_result_magnitude between -10 and 10))
check ((result_metre_ratio_result_numerator is null and result_metre_ratio_result_denominator is null) or (result_metre_ratio_result_numerator is not null and result_metre_ratio_result_denominator is not null))
check (result_metre_ratio_result_denominator is null or result_metre_ratio_result_denominator <> 0)
check (result_metre_ratio_result_numerator is null or result_metre_ratio_result_numerator between 0 and 100)
check ((result_feet_ratio_result_numerator is null and result_feet_ratio_result_denominator is null) or (result_feet_ratio_result_numerator is not null and result_feet_ratio_result_denominator is not null))
check (result_feet_ratio_result_denominator is null or result_feet_ratio_result_denominator <> 0)
check (result_feet_ratio_result_numerator is null or result_feet_ratio_result_numerator between 0 and 1000)
check ((result_decimal_notation_result_magnitude is null and result_decimal_notation_result_units is null) or (result_decimal_notation_result_magnitude is not null and result_decimal_notation_result_units is not null))
check (result_decimal_notation_result_magnitude is null or (result_decimal_notation_result_units = '1{decimal VA}' and result_decimal_notation_result_magnitude between 0 and 10))
check (result_etdrs_letter_score is null or result_etdrs_letter_score between 0 and 1000)
check ((result__5_score_notation_result_magnitude is null and result__5_score_notation_result_units is null) or (result__5_score_notation_result_magnitude is not null and result__5_score_notation_result_units is not null))
check (result__5_score_notation_result_magnitude is null or (result__5_score_notation_result_units = '1{5PointVA}' and result__5_score_notation_result_magnitude between 0 and 10))
check ((result_n_point_font_size_notation_result_code is null and result_n_point_font_size_notation_result_system is null and result_n_point_font_size_notation_result_numeric is null and result_n_point_font_size_notation_result is null) or (result_n_point_font_size_notation_result_valueset_id is not null and result_n_point_font_size_notation_result_code is not null and result_n_point_font_size_notation_result_system is not null and result_n_point_font_size_notation_result_numeric is not null and result_n_point_font_size_notation_result is not null))
check ((result_jaeger_font_size_notation_result_code is null and result_jaeger_font_size_notation_result_system is null and result_jaeger_font_size_notation_result_numeric is null and result_jaeger_font_size_notation_result is null) or (result_jaeger_font_size_notation_result_valueset_id is not null and result_jaeger_font_size_notation_result_code is not null and result_jaeger_font_size_notation_result_system is not null and result_jaeger_font_size_notation_result_numeric is not null and result_jaeger_font_size_notation_result is not null))
check ((result_cycles_per_centimetre_result_magnitude is null and result_cycles_per_centimetre_result_units is null) or (result_cycles_per_centimetre_result_magnitude is not null and result_cycles_per_centimetre_result_units is not null))
check (result_cycles_per_centimetre_result_magnitude is null or (result_cycles_per_centimetre_result_units = '1/cm' and result_cycles_per_centimetre_result_magnitude between 0 and 1000))
check ((result_cycles_per_degree_result_magnitude is null and result_cycles_per_degree_result_units is null) or (result_cycles_per_degree_result_magnitude is not null and result_cycles_per_degree_result_units is not null))
check (result_cycles_per_degree_result_magnitude is null or (result_cycles_per_degree_result_units = '1/deg' and result_cycles_per_degree_result_magnitude between 0 and 10000))
check ((result_best_qualitative_result_code is null and result_best_qualitative_result_system is null and result_best_qualitative_result_numeric is null and result_best_qualitative_result is null) or (result_best_qualitative_result_valueset_id is not null and result_best_qualitative_result_code is not null and result_best_qualitative_result_system is not null and result_best_qualitative_result_numeric is not null and result_best_qualitative_result is not null))
check (result_missed_or_additional_optotypes_count is null or result_missed_or_additional_optotypes_count between -9 and 9)
check ((result_missed_or_additional_optotypes_coded_text_code is null and result_missed_or_additional_optotypes_coded_text_system is null and result_missed_or_additional_optotypes_coded_text_valueset_id is null and result_missed_or_additional_optotypes_coded_text is null) or (result_missed_or_additional_optotypes_coded_text is not null and result_missed_or_additional_optotypes_coded_text_code is not null and result_missed_or_additional_optotypes_coded_text_system is not null and result_missed_or_additional_optotypes_coded_text_valueset_id is not null))
check (num_nonnulls(result_missed_or_additional_optotypes_count, result_missed_or_additional_optotypes_coded_text) <= 1)
check ((result_derived_result_derived_log_mar_result_magnitude is null and result_derived_result_derived_log_mar_result_units is null) or (result_derived_result_derived_log_mar_result_magnitude is not null and result_derived_result_derived_log_mar_result_units is not null))
check (result_derived_result_derived_log_mar_result_magnitude is null or (result_derived_result_derived_log_mar_result_units = '1{logMAR}' and result_derived_result_derived_log_mar_result_magnitude between -10 and 10))
check ((result_derived_result_derived_meter_ratio_result_numerator is null and result_derived_result_derived_meter_ratio_result_denominator is null) or (result_derived_result_derived_meter_ratio_result_numerator is not null and result_derived_result_derived_meter_ratio_result_denominator is not null))
check (result_derived_result_derived_meter_ratio_result_denominator is null or result_derived_result_derived_meter_ratio_result_denominator <> 0)
check (result_derived_result_derived_meter_ratio_result_numerator is null or result_derived_result_derived_meter_ratio_result_numerator between 0 and 100)
check ((result_derived_result_derived_feet_ratio_result_numerator is null and result_derived_result_derived_feet_ratio_result_denominator is null) or (result_derived_result_derived_feet_ratio_result_numerator is not null and result_derived_result_derived_feet_ratio_result_denominator is not null))
check (result_derived_result_derived_feet_ratio_result_denominator is null or result_derived_result_derived_feet_ratio_result_denominator <> 0)
check (result_derived_result_derived_feet_ratio_result_numerator is null or result_derived_result_derived_feet_ratio_result_numerator between 0 and 1000)
check ((result_derived_result_derived_decimal_notation_result_magnitude is null and result_derived_result_derived_decimal_notation_result_units is null) or (result_derived_result_derived_decimal_notation_result_magnitude is not null and result_derived_result_derived_decimal_notation_result_units is not null))
check (result_derived_result_derived_decimal_notation_result_magnitude is null or (result_derived_result_derived_decimal_notation_result_units = '1{decimal VA}' and result_derived_result_derived_decimal_notation_result_magnitude between 0 and 10))
check (result_derived_result_derived_etdrs_letter_score_result is null or result_derived_result_derived_etdrs_letter_score_result between 0 and 1000)
check ((result_derived_result_derived_cycles_per_degree_magnitude is null and result_derived_result_derived_cycles_per_degree_units is null) or (result_derived_result_derived_cycles_per_degree_magnitude is not null and result_derived_result_derived_cycles_per_degree_units is not null))
check (result_derived_result_derived_cycles_per_degree_magnitude is null or (result_derived_result_derived_cycles_per_degree_units = '1/deg' and result_derived_result_derived_cycles_per_degree_magnitude between 0 and 10000))
check ((testing_distance_category_code is null and testing_distance_category_system is null and testing_distance_category_valueset_id is null and testing_distance_category is null) or (testing_distance_category is not null and testing_distance_category_code is not null and testing_distance_category_system is not null and testing_distance_category_valueset_id is not null))
check ((testing_distance_magnitude is null and testing_distance_units is null) or (testing_distance_magnitude is not null and testing_distance_units is not null))
check (testing_distance_magnitude is null or (testing_distance_units = 'm' and testing_distance_magnitude between 0 and 1000) or (testing_distance_units = 'cm' and testing_distance_magnitude between 0 and 10000) or (testing_distance_units = '[in_i]' and testing_distance_magnitude between 0 and 10000) or (testing_distance_units = '[ft_i]' and testing_distance_magnitude between 0 and 10000))
check ((perceptual_task_code is null and perceptual_task_system is null and perceptual_task_valueset_id is null and perceptual_task is null) or (perceptual_task is not null and perceptual_task_code is not null and perceptual_task_system is not null and perceptual_task_valueset_id is not null))
check ((stimulus_method_code is null and stimulus_method_system is null and stimulus_method_valueset_id is null and stimulus_method is null) or (stimulus_method is not null and stimulus_method_code is not null and stimulus_method_system is not null and stimulus_method_valueset_id is not null))
check ((chart_or_stimulus_type_code is null and chart_or_stimulus_type_system is null and chart_or_stimulus_type_valueset_id is null) or (chart_or_stimulus_type is not null and chart_or_stimulus_type_code is not null and chart_or_stimulus_type_system is not null and chart_or_stimulus_type_valueset_id is not null))
check ((optotype_code is null and optotype_system is null and optotype_valueset_id is null) or (optotype is not null and optotype_code is not null and optotype_system is not null and optotype_valueset_id is not null))
check ((crowdedness_code is null and crowdedness_system is null and crowdedness_valueset_id is null and crowdedness is null) or (crowdedness is not null and crowdedness_code is not null and crowdedness_system is not null and crowdedness_valueset_id is not null))
check ((contrast_category_code is null and contrast_category_system is null and contrast_category_valueset_id is null and contrast_category is null) or (contrast_category is not null and contrast_category_code is not null and contrast_category_system is not null and contrast_category_valueset_id is not null))
check ((weber_contrast_numerator is null and weber_contrast_denominator is null) or (weber_contrast_numerator is not null and weber_contrast_denominator is not null))
check (weber_contrast_denominator is null or weber_contrast_denominator <> 0)
check (weber_contrast_denominator is null or weber_contrast_denominator = 1)
check ((michelson_contrast_numerator is null and michelson_contrast_denominator is null) or (michelson_contrast_numerator is not null and michelson_contrast_denominator is not null))
check (michelson_contrast_denominator is null or michelson_contrast_denominator <> 0)
check (michelson_contrast_denominator is null or michelson_contrast_denominator = 1)
check ((no_improvement_note_code is null and no_improvement_note_system is null and no_improvement_note_valueset_id is null) or (no_improvement_note is not null and no_improvement_note_code is not null and no_improvement_note_system is not null and no_improvement_note_valueset_id is not null))
check ((comparative_label_code is null and comparative_label_system is null and comparative_label_valueset_id is null) or (comparative_label is not null and comparative_label_code is not null and comparative_label_system is not null and comparative_label_valueset_id is not null))
check ((pupil_state_code is null and pupil_state_system is null and pupil_state_valueset_id is null) or (pupil_state is not null and pupil_state_code is not null and pupil_state_system is not null and pupil_state_valueset_id is not null))
check ((type_of_ancillary_lighting_used_code is null and type_of_ancillary_lighting_used_system is null and type_of_ancillary_lighting_used_valueset_id is null and type_of_ancillary_lighting_used is null) or (type_of_ancillary_lighting_used is not null and type_of_ancillary_lighting_used_code is not null and type_of_ancillary_lighting_used_system is not null and type_of_ancillary_lighting_used_valueset_id is not null))
check ((light_adaptation_state_code is null and light_adaptation_state_system is null and light_adaptation_state_valueset_id is null and light_adaptation_state is null) or (light_adaptation_state is not null and light_adaptation_state_code is not null and light_adaptation_state_system is not null and light_adaptation_state_valueset_id is not null))
check ((ambient_illuminance_magnitude is null and ambient_illuminance_units is null) or (ambient_illuminance_magnitude is not null and ambient_illuminance_units is not null))
check ((background_luminance_magnitude is null and background_luminance_units is null) or (background_luminance_magnitude is not null and background_luminance_units is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
eye_examined_valueset_id, eye_examined_code, eye_examined_system, eye_examinedvalueset_coderestrict
result_n_point_font_size_notation_result_valueset_id, result_n_point_font_size_notation_result_code, result_n_point_font_size_notation_result_system, result_n_point_font_size_notation_result, result_n_point_font_size_notation_result_numericvalueset_coderestrict
result_jaeger_font_size_notation_result_valueset_id, result_jaeger_font_size_notation_result_code, result_jaeger_font_size_notation_result_system, result_jaeger_font_size_notation_result, result_jaeger_font_size_notation_result_numericvalueset_coderestrict
result_best_qualitative_result_valueset_id, result_best_qualitative_result_code, result_best_qualitative_result_system, result_best_qualitative_result, result_best_qualitative_result_numericvalueset_coderestrict
result_missed_or_additional_optotypes_coded_text_valueset_id, result_missed_or_additional_optotypes_coded_text_code, result_missed_or_additional_optotypes_coded_text_system, result_missed_or_additional_optotypes_coded_textvalueset_coderestrict
testing_distance_category_valueset_id, testing_distance_category_code, testing_distance_category_system, testing_distance_categoryvalueset_coderestrict
perceptual_task_valueset_id, perceptual_task_code, perceptual_task_system, perceptual_taskvalueset_coderestrict
stimulus_method_valueset_id, stimulus_method_code, stimulus_method_system, stimulus_methodvalueset_coderestrict
chart_or_stimulus_type_valueset_id, chart_or_stimulus_type_code, chart_or_stimulus_type_system, chart_or_stimulus_typevalueset_coderestrict
optotype_valueset_id, optotype_code, optotype_system, optotypevalueset_coderestrict
crowdedness_valueset_id, crowdedness_code, crowdedness_system, crowdednessvalueset_coderestrict
contrast_category_valueset_id, contrast_category_code, contrast_category_system, contrast_categoryvalueset_coderestrict
no_improvement_note_valueset_id, no_improvement_note_code, no_improvement_note_system, no_improvement_notevalueset_coderestrict
comparative_label_valueset_id, comparative_label_code, comparative_label_system, comparative_labelvalueset_coderestrict
pupil_state_valueset_id, pupil_state_code, pupil_state_system, pupil_statevalueset_coderestrict
type_of_ancillary_lighting_used_valueset_id, type_of_ancillary_lighting_used_code, type_of_ancillary_lighting_used_system, type_of_ancillary_lighting_usedvalueset_coderestrict
light_adaptation_state_valueset_id, light_adaptation_state_code, light_adaptation_state_system, light_adaptation_statevalueset_coderestrict

Referenced by

Indexes

Child tables

3 tables hang off visual_acuity, one row per repetition.

visual_acuity_chart_or_stimulus_device_details

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
visual_acuity_iduuidvisual_acuityno
positionintegernoOrder of this row within its parent, from zero.
device_iduuidnoChart or stimulus device details/data[at0001]/events[at0134]/data[at0003]/items[at0025]

Unique

References

ColumnsTargetOn delete
visual_acuity_idvisual_acuitycascade
device_iddeviceno action

Indexes

visual_acuity_test_not_done

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
visual_acuity_iduuidvisual_acuityno
positionintegernoOrder of this row within its parent, from zero.
exclusion_exam_iduuidnoTest not done/data[at0001]/events[at0134]/data[at0003]/items[at0141]

Unique

References

ColumnsTargetOn delete
visual_acuity_idvisual_acuitycascade
exclusion_exam_idexclusion_examno action

Indexes

visual_acuity_visual_aid_per_eye

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
visual_acuity_iduuidvisual_acuityno
positionintegernoOrder of this row within its parent, from zero.
aided_eye
aided_eye_code
aided_eye_system
aided_eye_valueset_id
coded text
text, text, text, text
yesAided eye/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0405]
visual_aid_type
visual_aid_type_code
visual_aid_type_system
visual_aid_type_valueset_id
coded text
text, text, text, text
yesVisual aid type/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0373]
cycloplegia_during_refraction
cycloplegia_during_refraction_code
cycloplegia_during_refraction_system
cycloplegia_during_refraction_valueset_id
coded text
text, text, text, text
yesCycloplegia during refraction/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0500]
power_of_sphere_magnitude
power_of_sphere_units
quantity
numeric, text
yesPower of sphere/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0464]
power_of_cylinder_magnitude
power_of_cylinder_units
quantity
numeric, text
yesPower of cylinder/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0466]
axis_of_cylinder_magnitude
axis_of_cylinder_units
quantity
numeric, text
yesAxis of cylinder/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0467]
near_addition_magnitude
near_addition_units
quantity
numeric, text
yesNear addition/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0468]
visual_aid_detailsuuidyesVisual aid details/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0465]
commenttextyesComment/data[at0001]/events[at0134]/state[at0041]/items[at0262]/items[at0565]

Constraints

check ((aided_eye_code is null and aided_eye_system is null and aided_eye_valueset_id is null and aided_eye is null) or (aided_eye is not null and aided_eye_code is not null and aided_eye_system is not null and aided_eye_valueset_id is not null))
check ((visual_aid_type_code is null and visual_aid_type_system is null and visual_aid_type_valueset_id is null) or (visual_aid_type is not null and visual_aid_type_code is not null and visual_aid_type_system is not null and visual_aid_type_valueset_id is not null))
check ((cycloplegia_during_refraction_code is null and cycloplegia_during_refraction_system is null and cycloplegia_during_refraction_valueset_id is null and cycloplegia_during_refraction is null) or (cycloplegia_during_refraction is not null and cycloplegia_during_refraction_code is not null and cycloplegia_during_refraction_system is not null and cycloplegia_during_refraction_valueset_id is not null))
check ((power_of_sphere_magnitude is null and power_of_sphere_units is null) or (power_of_sphere_magnitude is not null and power_of_sphere_units is not null))
check ((power_of_cylinder_magnitude is null and power_of_cylinder_units is null) or (power_of_cylinder_magnitude is not null and power_of_cylinder_units is not null))
check ((axis_of_cylinder_magnitude is null and axis_of_cylinder_units is null) or (axis_of_cylinder_magnitude is not null and axis_of_cylinder_units is not null))
check ((near_addition_magnitude is null and near_addition_units is null) or (near_addition_magnitude is not null and near_addition_units is not null))

Unique

References

ColumnsTargetOn delete
visual_acuity_idvisual_acuitycascade
aided_eye_valueset_id, aided_eye_code, aided_eye_system, aided_eyevalueset_coderestrict
visual_aid_type_valueset_id, visual_aid_type_code, visual_aid_type_system, visual_aid_typevalueset_coderestrict
cycloplegia_during_refraction_valueset_id, cycloplegia_during_refraction_code, cycloplegia_during_refraction_system, cycloplegia_during_refractionvalueset_coderestrict
visual_aid_detailsdeviceno action

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/aided_eye2
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/best_qualitative_result4
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/chart_or_stimulus_type22
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/comparative_label2
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/contrast_category2
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/crowdedness2
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/cycloplegia_during_refraction2
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/eye_examined3
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/jaeger_font_size_notation_result20
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/light_adaptation_state3
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/missed_or_additional_optotypes1
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/n_point_font_size_notation_result41
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/no_improvement_note8
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/optotype19
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/perceptual_task4
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/pupil_state4
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/stimulus_method5
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/testing_distance_category3
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/type_of_ancillary_lighting_used2
org.openehr::openEHR-EHR-OBSERVATION.visual_acuity.v0/visual_aid_type12