Easy to use PHP class for scoring the Dsm-5 Adult Evaluation
To provide a straightfoward 'Dsm-5 Adult' implementation for software offering this Evaluation.
It's super simple!
- Require 'dsm5.php' in your application
require 'dsm5.php';
- Instantiate your $test object
$test = new Dsm5();
- call GetQuestions() to retrieve the test questions (returns a JSON object)
$test->GetQuestions();
- call ScoreTest(), and pass in a JSON object of responses (returns a JSON object)
$test->ScoreTest($myJSONResponses);
- That's it!
Check out test-data.json
for examples and formatting