Skip to content

Conversation

@christinerogers
Copy link
Contributor

Folks :

LookupBattery() in Battery class has been updated to permit battery population filtering by CenterID, for site-specific instruments.
Calls to this function were also modified in assign_missing_instruments.php and NDB_Form_next_stage.class.inc, to pass in the CenterID

Additionally, some code was refactored and moved from inline to the function Populate Visit - Dave's previous change for IBIS.

Note: this change was executed by Christine (but using mia's megamind setup)

@driusan
Copy link
Collaborator

driusan commented Nov 24, 2011

I think the part of assign missing instruments that defines a $visit_ages array with median ages for the visit and the part that uses that fake median age to derive the battery needs to be reworked into a way that's more project independent before merging this into the main trunk (I think those actually come from my IBIS code, not Christine's..)

As things stand, with this merge I'm not sure that assign_missing_instruments would work with anything other than IBIS.

@samirdas
Copy link
Contributor

Needs the table schema to be updated to add the CenterID as a field. Remove the add_timepoint instrument script from the commit.

@driusan
Copy link
Collaborator

driusan commented Jan 11, 2012

I removed the script from the commit, and updated the table schema. Can be reviewed/merged next meeting now, I think..

@samirdas
Copy link
Contributor

Added CenterID to change the battery. IBIS is using this. NeuroDevnet ASD is using this and all looks good.

samirdas added a commit that referenced this pull request Apr 26, 2012
Changed TestBattery to accept CenterID as part of battery
@samirdas samirdas merged commit 30a83e1 into aces:master Apr 26, 2012
Jkat referenced this pull request in Jkat/Loris Oct 21, 2014
automatic set up of mri-pipeline infrastructure
@driusan driusan added Category: Feature PR or issue that aims to introduce a new feature Language: SQL PR or issue that update SQL code labels Dec 16, 2014
rathisekaran pushed a commit to rathisekaran/Loris that referenced this pull request Jan 7, 2015
updating script to use existing function from candidate class
samirdas pushed a commit that referenced this pull request Feb 26, 2016
stellarxo referenced this pull request in stellarxo/Loris May 9, 2016
davidblader added a commit to davidblader/Loris that referenced this pull request Feb 8, 2017
ZainVirani pushed a commit to ZainVirani/Loris that referenced this pull request Jul 12, 2017
xlecours referenced this pull request in xlecours/Loris Apr 20, 2018
xlecours referenced this pull request in xlecours/Loris Jun 27, 2018
cmadjar referenced this pull request in cmadjar/Loris Apr 18, 2019
@jftunteng jftunteng added this to the PRE 20.0.0 milestone Jan 7, 2020
HenriRabalais referenced this pull request in HenriRabalais/Loris Feb 17, 2020
[Consent] Add COPN consent (Patient + Surrogate) Version 1
laemtl pushed a commit to laemtl/Loris that referenced this pull request Oct 19, 2020
driusan pushed a commit that referenced this pull request Feb 24, 2025
The candidate list module was not loading on some VMs with the following
error:

`[Fri Feb 21 11:54:24.183216 2025] [php:error] [pid 41249] [client
::1:38026] PHP Fatal error: Uncaught PDOException: SQLSTATE[42000]:
Syntax error or access violation: 1055 Expression #6 of SELECT list is
not in GROUP BY clause and contains nonaggregated column
'cbeaudoin_dev.c.Entity_type' which is not functionally dependent on
columns in GROUP BY clause; this is incompatible with
sql_mode=only_full_group_by in
/var/www/loris/src/Database/Query.php:46\nStack trace:\n#0
/var/www/loris/src/Database/Query.php(46): PDOStatement->execute()\n#1
/var/www/loris/src/Data/Provisioners/DBRowProvisioner.php(90):
LORIS\\Database\\Query->getIterator()\n#2 [internal function]:
LORIS\\Data\\Provisioners\\DBRowProvisioner->getAllInstances()\n#3
[internal function]: FilterIterator->rewind()\n#4
/var/www/loris/src/Http/DataIteratorBinaryStream.php(239):
FilterIterator->rewind()\n#5 [internal function]:
LORIS\\Http\\DataIteratorBinaryStream->rowGenerator()\n#6
/var/www/loris/src/Http/DataIteratorBinaryStream.php(189):
Generator->valid()\n#7 /var/www/loris/src/Http/GzipStream.php(160):
LORIS\\Http\\DataIteratorBinaryStream->read()\n#8
/var/www/loris/htdocs/index.php(102):
LORIS\\Http\\GzipStream->read()\n#9 {main}\n thrown in
/var/www/loris/src/Database/Query.php on line 46, referer:
http://localhost:8080/candidate_list/`

There were fields missing from the GROUP BY statement. This adds all
missing fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Feature PR or issue that aims to introduce a new feature Language: SQL PR or issue that update SQL code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants