-
Notifications
You must be signed in to change notification settings - Fork 183
Developer's Instrument Guide
Stella Lee edited this page Aug 25, 2016
·
24 revisions
This guide reflects a typical workflow and best practices used by Loris developers at the MNI. Some specifics such as git workflow steps may not apply to all projects and implementations.
##Should this instrument be coded?
- An instrument should likely be coded manually in PHP if it involves:
- dependencies between fields
- special data formats or restricted types
- special scoring
- look-up tables (t-scores etc)
- age-dependencies in administering the instrument
- Has it been coded before? [link to instruments list]
##Developer Workflow
- Before getting started...
- Get the entire PDF/paper copy, including any “lookup” tables used for scoring/normalization.
- Clarify requirements: which sections of the questionnaire to include/omit. Typically, administrative details included on the original form can be ignored, but instructions that will be helpful for the examiner might be included.
- How will all your fields map to the element types allowed by Loris form (beta!) (also see here for a list of allowed elements)
- Does your instrument require certification? Are there certified examiners? Should users be certified as examiners for this instrument using the Training module?
- Create a new git branch based off the up-to-date branch for your project-specific repo.
- Create an instrument in the project/instruments/ directory.
- Insert the Instrument.
- Front end testing
- Push branch and create pull request to your project-specific repo. Assign relevant tags and tester.
- Update any management documents, add a category to your bug tracker utility.