Home arrow Support arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Favoured: 0
TOPIC: database change
#16878
wrobyn (User)
Junior Lime
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
database change 5 Months, 1 Week ago Karma: 0  
I've been talking to Mazi about some work. Namely changing the schema for lime_survey_sid, the table that stores saved answers, and is the only thing limiting questions to 1000.

In our situation, say we have a list of 1500 patients, with data, this go to may be 5 Doctors. next to the data is a set of questions:
does the patient smoke, on meds?, specific labwork value, you get the idea

representing this in limesurvey via a ruby tool to merge the csv list of patients and data with the survey is easy (and done)

however, limesurvey represents each thing as question data.. so let us say we have 5 questions per patient, and all of the data (text) is a 6th boiler plate question.

this leaves us with the ability to only gather information on 166 patients..

the reality is that we routinely work with lists of 1000 patients with perhaps 10 questions.

so table lime_survey_sid just doesnt work for us (though everything else does, with some ruby glue)

if the schema were changed to rows, with columns of:
id
submitdate
startlanguage
token
datestamp
startdate
saved <- new field indicating question sidXqidX....
saveddata <- the value of that question

then we have a table that is row based and essentially has the same functionality..

thoughts?
 
Logged Logged  
 
Last Edit: 2008/07/29 16:31 By wrobyn.
  The administrator has disabled public write access.
#17030
c_schmitz (Admin)
Moderator Lime
Posts: 1384
graphgraph
User Online Now Click here to see the profile of this user
Re:database change 5 Months ago Karma: 39  
Hi Wrobym,

well.. you can change that but be alerted that this is a huge change in the engine. Essentially you will have to re-code half of LimeSurvey so I would not recommend that. At the moment everything is based the current way to store data. Also you have the problem that evaluating the data will be a pain.

I would suggest that you are using the token system and generate a token for each patient. Then have the doctor use these tokens to answer each questions for each patient.

For the change between each single survey you would have to customize LimeSurvey - especially the end url, so that after a survey is finished it automatically jumps to the next survey for that doctor.

You will need to change code in LimeSurvey but that is doable and affordable.

Or you can wait for LS2, depending how urgent it is.
 
Logged Logged  
 
Best regards

Carsten Schmitz
LimeSurvey Project Leader
  The administrator has disabled public write access.
#17037
Mazi (Moderator)
Moderator Lime
Posts: 3503
graph
User Online Now Click here to see the profile of this user
Re:database change 5 Months ago Karma: 28  
As discussed before toucing the table structure isn't a very good approach because this affects the whole system.

Try to think of other solutions. You can easily copy a survey by using export/import. Why not setting up a survey for each doctor or something like this?
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#17103
wrobyn (User)
Junior Lime
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Re:database change 5 Months ago Karma: 0  
c_schmitz,
Thanks for the reply. Does LS2 database schema change so there are no more column based dependencies?

Survey to survey jump isn't really feasible as every patient needs to be seen on the same screen at the same time.
 
Logged Logged  
  The administrator has disabled public write access.
#17107
wrobyn (User)
Junior Lime
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Re:database change 5 Months ago Karma: 0  
Hey Mazi,

unfortunately our constraints are:
the survey must contain every patient on screen at the same time (scrolling down is fine) so that the MD or nurse can go through everyone at one time then submit.

so again it is a list of patients with questions (on the same row) about that patient.. I have it working nicely in LS using importing and exporting.. Just hit the wall with the database schema..

I unfortunately don't see any other way around it except waiting for LS2..
 
Logged Logged  
  The administrator has disabled public write access.
#17158
Mazi (Moderator)
Moderator Lime
Posts: 3503
graph
User Online Now Click here to see the profile of this user
Re:database change 5 Months ago Karma: 28  
This is the LS2 database schema:
File Attachment:
File Name: schema.png
File Size: 165394


For more specific questions about LS2 I recommend to ask in the LS2 subforum.

Did you try to use another database like Postgres?
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
Go to top