Based on AppatellaResearchAPI V 0.0.42.
Please note: the Appatella Export facility produces a single data file which is encrypted. The data within is pertinent to individuals. It is conformant to GDPR consent and revocation. You must be aware of your legal obligations in handling this data. If in doubt DO NOT extract.
This tool is provided to help you import individual data from Appatella into a local Postgres database. During the import process, encrypted data is extracted as files, which will be stored on your computer momentarily before being destroyed.
For this reason, it's vital that your computer has an encrypted filesystem. More information is below.
This tool will install a server on to your computer, which will create and update a Postgres database. To do this, you will need the following:
- A NodeJS runtime
- A Postgres database installation
To install on Windows 10, please see instructions here To install on macos, please see instructions here
Once these basics have been installed:
- Create a convenient folder on your filesystem
- Download this repository as a .zip
- Open a command window at the base of this folder. Hint: you should be able to see this README.md file in it.
- Type the following command:
npm start
- The Node Package Manager will run, and install the application, and all its dependencies.
- Node will then start, and attempt to start the service. You will probablybe prompted for permission to do this.
- The command window will finish running the server, with
Indicating that it is waiting for a browser to connect.
SERVER: listening on
- Start your web-browser, and paste the following into the address bar:
http://localhost:8000/docs/
- You should now see the Appatella Import Tool page.
- Using the Appatella Exercise Builder, you will have deployed Interventions to participants. You will have
- requested and obtained 'Constructor' capabilities
- requested and obtained 'Researcher' capabilities
- joined an Appatella organisation having Exercise Plans available for deployment
- obtained 'administrator' capabilities in the organisation.
- created Interventions
- deployed Exercise Plans to Interventions
- deployed Interventions to particpants
- ensured that participants have downloaded their Intervention to their mobile device, using the Appatella Player app.
- ensured that participants have shared their data with Appatella, using the Appatella Player app.
- ensured that particiants have performed some exercises, so there is data available for export.
- In the Appatella Exercise Builder, you can search for exportable Interventions.
- In the Interventions list, type in a search term. You can use a number of combinations to get the Interventions you need, seperated by commas:
- The IDs of interventions
- The IDs of any components used by any interventions (Exercise Plans, Sessions, Exercises, Surveys, Sections, Questions)
- The IDs (name) of any organisations, to which you have access
- A date range (defined in ISO 8601)
- the keyword 'exportable'. This will filter on Interventions with the proper consent.
- Once you have the list of interventions you need, use the multiselect button to select the items to go into an export.
- Press the 'Export...' button
- In the 'Export' dialog, specify the password required to protect the exported file.
- Download the export.
- In the Interventions list, type in a search term. You can use a number of combinations to get the Interventions you need, seperated by commas:
- You will need:
- your local database username and password
- the path to the downloaded Appatella export file
- the password for the export file.
- In the Appatella Import Tool page, press 'POST' /import/
- Fill in the following fields:
- source_path: the full path to your downloaded, encrypted file.
- secret: the password you attached to the exported file.
- destination_db: the name of the database to create.
- username: the username you created Postgres with.
- password: the password you create your Postgres username with.
- Press 'Try it out!'
- If everything went OK, the 'Response Code' should be 200. If not, the Response Body will contain some error information.
- You can now start your Database GUI, and connect to the database.
Your export is made available to you by the consent of of the person to whom it belongs. General Data Protection Regulations in the UK mandate that this consent can be revoked at any time. This means you must be prepared to delete this export - and any other associated files which may identify an individual - on request. Your export is tracked by Appatella. Please check back regularly for revokation requests. When you have finished your analysis, you may keep any aggregated data which does not identify individuals. You must delete the export, and remove the export record from your Appatella user account, to avoid confusion or unnecessary auditing.