Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RB] Fix bmi DB error #8673

Merged
merged 2 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions raisinbread/instruments/bmi.linst
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
table{@}bmi
laemtl marked this conversation as resolved.
Show resolved Hide resolved
title{@}BMI Calculator
date{@}Date_taken{@}Date of Administration{@}2006{@}2012
static{@}Candidate_Age{@}Candidate Age (Months)
static{@}Window_Difference{@}Window Difference (+/- Days)
select{@}Examiner{@}Examiner{@}NULL=>''
static{@}{@}Note: Please enter measurements in Imperial OR Metric units
select{@}unit_classification{@}Choose unit of measurement{@}NULL=>''{-}'metric'=>'Metric'{-}'imperial'=>'Imperial'
select{@}unit_classification{@}Choose unit of measurement{@}NULL=>''{-}'metric'=>'Metric'{-}'imperial'=>'Imperial'{-}'standard'=>'Standard'{-}'not_answered'=>'Not Answered'
page{@}{@}Imperial units
static{@}{@}Imperial units
numeric{@}height_feet{@}Your height (feet) :
numeric{@}height_feet{@}Your height (feet) :{@}undefined{@}undefined
laemtl marked this conversation as resolved.
Show resolved Hide resolved
select{@}height_feet_status{@}{@}NULL=>''{-}'not_answered'=>'Not Answered'
numeric{@}height_inches{@}Your height (inches) :
numeric{@}height_inches{@}Your height (inches) :{@}undefined{@}undefined
select{@}height_inches_status{@}{@}NULL=>''{-}'not_answered'=>'Not Answered'
numeric{@}weight_lbs{@}Your weight (lbs) :{@}50{@}500
select{@}weight_lbs_status{@}{@}NULL=>''{-}'not_answered'=>'Not Answered'
page{@}{@}Metric Units
static{@}{@}Metric units
numeric{@}height_cms{@}Your height (cms) :
numeric{@}height_cms{@}Your height (cms) :{@}undefined{@}undefined
select{@}height_cms_status{@}{@}NULL=>''{-}'not_answered'=>'Not Answered'
numeric{@}weight_kgs{@}Your weight (kgs) :
numeric{@}weight_kgs{@}Your weight (kgs) :{@}undefined{@}undefined
select{@}weight_kgs_status{@}{@}NULL=>''{-}'not_answered'=>'Not Answered'
page{@}{@}Results
static{@}bmi{@}Your BMI
Expand Down
16 changes: 6 additions & 10 deletions raisinbread/instruments/instrument_sql/bmi.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
CREATE TABLE `bmi` (
`CommentID` varchar(255) NOT NULL default '',

`UserID` varchar(255) default NULL,

`Examiner` varchar(255) default NULL,

`Testdate` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`UserID` varchar(255) default NULL,
`Examiner` varchar(255) default NULL,
`Testdate` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`Date_taken` date default NULL,
`Candidate_Age` varchar(255) default NULL,
`Window_Difference` varchar(255) default NULL,
`unit_classification` enum('metric','standard') default NULL,
`unit_classification` enum('metric','imperial','standard','not_answered') default NULL,
laemtl marked this conversation as resolved.
Show resolved Hide resolved
`height_feet` numeric default NULL,
`height_feet_status` enum('not_answered') default NULL,
`height_inches` numeric default NULL,
Expand All @@ -22,6 +19,5 @@ CREATE TABLE `bmi` (
`weight_kgs_status` enum('not_answered') default NULL,
`bmi` varchar(255) default NULL,
`bmi_category` varchar(255) default NULL,
PRIMARY KEY (`CommentID`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8;
PRIMARY KEY (`CommentID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;