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

Update aivo_get_subjects.m #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
6 changes: 3 additions & 3 deletions aivo/aivo_get_subjects.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
value = varargin{i+l+1};
l=l+1;
% Materia view - Values
if(ismember(field,{'study_date','mri_code','dose','scan_start_time','injection_time','height','weight','age'}))
if(ismember(field,{'study_date','dose','scan_start_time','injection_time','height','weight','age'}))
if(ischar(value)) %only one value
if(ismember('~',value)) %exclude spesific value
where_statement = [where_statement,' NOT ','materia.',lower(field),' = ',char(39),value(2:length(value)),char(39)];
Expand Down Expand Up @@ -84,7 +84,7 @@
where_statement = [where_statement,' AND '];
end
else % excluding the exact value/s
where_statement = [where_statement,' NOT ','materia.',lower(field),' = ',char(39),value(2:length(value)),char(39)];
where_statement = [where_statement,' NOT ',' materia.',lower(field),' = ',char(39),value(2:length(value)),char(39)];
if(i~=nargin/2)
where_statement = [where_statement,' AND '];
end
Expand Down Expand Up @@ -145,4 +145,4 @@ function refresh(conn)
curs = exec(conn,refresh_cmd);
close(curs);

end
end