Prepopulating from earlier in a survey + repeats

I am working on a medical trauma survey that records procedures performed.
There are also repeats where you can add extra procedures and injuries for
different bones and organ systems (i.e. femur open fracture, femur closed
fracture, kidney resection, etc etc). At the end of the survey, we would
really like to have a "note" that shows all of the procedures selected
throughout the survey so the docs can have a list of what they said they
did, can verify, and add more if necessary. I have been programming this as
a long string of notes (i.e. Kidney ${intervention_kidney}) for each
question but because there are so many options in the survey this is both
tedious, produces a lot of extra code, and does not record all the repeats.

Is there anyway to put code into the question itself that exports the
response to, say, a txt files and then can populate a list from that at the
of the survey? I know you can upload csv files to the sd card but would
want this to be in real time.

Also, on a broader note, is there anyway to pull data from another survey
on the device. Say, if you added information for patient code: 1111 and
then closed the survey, is there anyway to open a new survey, enter the
same code and draw on data from the completed survey without exporting the
information onto a csv and reloading it?

Thanks so much for your help,

Elizabeth

A lot of what you are asking for are the features of the ODK 2.0 tools.

The short answer is that these features would require writing your own
applications or customizing ODK Collect.

··· On Fri, Jun 12, 2015 at 6:37 AM, Elizabeth L. wrote:

I am working on a medical trauma survey that records procedures performed.
There are also repeats where you can add extra procedures and injuries for
different bones and organ systems (i.e. femur open fracture, femur closed
fracture, kidney resection, etc etc). At the end of the survey, we would
really like to have a "note" that shows all of the procedures selected
throughout the survey so the docs can have a list of what they said they
did, can verify, and add more if necessary. I have been programming this as
a long string of notes (i.e. Kidney ${intervention_kidney}) for each
question but because there are so many options in the survey this is both
tedious, produces a lot of extra code, and does not record all the repeats.

Is there anyway to put code into the question itself that exports the
response to, say, a txt files and then can populate a list from that at the
of the survey? I know you can upload csv files to the sd card but would
want this to be in real time.

Also, on a broader note, is there anyway to pull data from another survey
on the device. Say, if you added information for patient code: 1111 and
then closed the survey, is there anyway to open a new survey, enter the
same code and draw on data from the completed survey without exporting the
information onto a csv and reloading it?

Thanks so much for your help,

Elizabeth

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi Elizabeth,

Would it make sense to put the logic to extract the "interventions" on the
server? Once the survey is submitted the procedures selected can be made
available on the device of the person who completed the survey. It can
also be made available to other people or even other computer systems used
by the clinic.

I'm using this approach with a company that does building inspections. As
part of the inspection they add the email addresses of people who need to
be notified of the results. When the inspection is submitted from the
device a PDF is generated with data extracted from the report and is sent
to the nominated people.

The ability to use this approach assumes that the person doing the survey
is connected to a network. Or at least they can be connected to the
network at some point in time before they need to review the procedures.

regards

Neil

··· On Sat, Jun 13, 2015 at 4:45 AM, Mitch Sundt wrote:

A lot of what you are asking for are the features of the ODK 2.0 tools.

The short answer is that these features would require writing your own
applications or customizing ODK Collect.

On Fri, Jun 12, 2015 at 6:37 AM, Elizabeth L. < elizabeth.m.ludwig@gmail.com> wrote:

I am working on a medical trauma survey that records procedures
performed. There are also repeats where you can add extra procedures and
injuries for different bones and organ systems (i.e. femur open fracture,
femur closed fracture, kidney resection, etc etc). At the end of the
survey, we would really like to have a "note" that shows all of the
procedures selected throughout the survey so the docs can have a list of
what they said they did, can verify, and add more if necessary. I have been
programming this as a long string of notes (i.e. Kidney
${intervention_kidney}) for each question but because there are so many
options in the survey this is both tedious, produces a lot of extra code,
and does not record all the repeats.

Is there anyway to put code into the question itself that exports the
response to, say, a txt files and then can populate a list from that at the
of the survey? I know you can upload csv files to the sd card but would
want this to be in real time.

Also, on a broader note, is there anyway to pull data from another survey
on the device. Say, if you added information for patient code: 1111 and
then closed the survey, is there anyway to open a new survey, enter the
same code and draw on data from the completed survey without exporting the
information onto a csv and reloading it?

Thanks so much for your help,

Elizabeth

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Smap Consulting http://smap.com.au/| Mobile Data Collection Solutions
Application Developer - neilpenman@gmail.com minqiang.huang@gmail.com
Twitter: @dgmsot
Skype: ianaf4you
Phone: +61 402 975 959
Website: http://smap.com.au http://smap.com.au/blog

Thanks Mike, I will explore ODK tools

Does odk tools work offline?

Hi Neil,

Thanks for the feedback. Most of the work we are doing is offline, but this might have some applications for other parts of the survey. Do you have any sample code you might be willing to share re: how you programmed the pdf and email creation?

Thanks,

Elizabeth

Hi Liz,

PDF creation uses iText, http://itextpdf.com/. To get a nicely formatted
output you need to load a PDF template on to the server. The field names
inside that template should have the same name as the question that you
want to use as the source of the data. If the field is inside a repeating
group it should include the path with names separated by "."

The pdf code is here:
https://github.com/smap-consulting/smapserver/blob/master/sdDAL/src/org/smap/sdal/managers/PDFManager.java

Email creation just uses smtp api to generate an email address and attach
the PDF or a link to an enketo / webform view of the data which is editable.

The email code is here:

I'll send you an example of a generated pdf separately so it doesn't clog
up the google group.

regards

Neil

··· On Mon, Jun 15, 2015 at 4:21 AM, Elizabeth L. wrote:

Hi Neil,

Thanks for the feedback. Most of the work we are doing is offline, but
this might have some applications for other parts of the survey. Do you
have any sample code you might be willing to share re: how you programmed
the pdf and email creation?

Thanks,

Elizabeth

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Smap Consulting http://smap.com.au/| Mobile Data Collection Solutions
Application Developer - neilpenman@gmail.com minqiang.huang@gmail.com
Twitter: @dgmsot
Skype: ianaf4you
Phone: +61 402 975 959
Website: http://smap.com.au http://smap.com.au/blog