/1/protocol - GET - Query

Overview

A second variant of the /1/protocol endpoint allows for query parameters that results in the retrieval of the content for a specific Group, Level or Question.

Locale

The locale of the returned protocol is determined by the purchase that was made for the Learner (See /1/purchase - POST).


Required Headers

KeyValueExample
User-Agent<company identifier>The exact value here is not important, but it should include something to identify your company
Acceptapplication/json
AuthorizationBearer <your token>Bearer wV1MLk5+sFzioJw/3M5r9A==
X-SystemDomain<the system domain>vbmapp
X-LearnerId<the learner id>The DMTD-supplied identifier that identifies the learner (see REST API Guide)
X-LearnerCode<the learner code>A REST-client-supplied identifier that identifies the learner (see REST API Guide)

Query Paramters

KeyTypeRequiredExampleDescription
areaStringRequiredarea=milestonesAn area provided by /1/protocol - GET - Index
groupStringRequiredgroup=mandA group provided by /1/protocol - GET - Index
levelStringOptionallevel=level1A level provided by  /1/protocol - GET - Index
questionNumIntOptionalquestionNum=1A level provided by  /1/protocol - GET - Index

The Response

Response Fields

Field
Type
Optional
Description
areaStringRequiredThe area of the question
groupStringRequiredThe group of the question
instructionsStringOptionalInstructions for the group (Required when area == 'eesa')
titleStringOptionalTitle for the group (Required when area == 'eesa')
targetsStringOptionalTargets for the group (Required when area == 'eesa')
questionsArrayRequiredAn array of Question objects

Question Fields

FieldTypeOptionalDescription
questionNumIntRequiredThe number (identifier) of this question (range 1...n)

level

IntOptionalThe level of the question (Required when area == 'milestones')
levelTitleStringOptionalA question displayed over each level that groups the questions in the level (Required when area == 'milestones')

example

StringOptionalAn example of how the question might be administered (Required when area == 'milestones')
materialsStringOptionalInformation about what materials might be required to administer the question. Required when area == 'milestones'
objectiveStringOptionalThe objective of the question. Required when area == 'milestones'
textStringRequiredThe text that describes the question
titleStringOptionalThe text to display at the top of a grid column for Barriers & Transition (Required when area == 'barriers', 'transitions')
responsesArrayRequiredAn array of Response objects
skillsArrayOptionalAn array of Skill objects (Required when area == 'milestones')

Response Fields

Field
Type
Optional
Description
scoreSingle Precision FloatRequiredValue to store as a score if this response is selected
textStringRequiredA string to display that describes this possible response
descriptionStringOptionalA description of the score to further help identify its application (Required when area == 'milestones' && (score == 0.5 || score == 1.0))

Skill Fields

Field
Type
Optional
Description
idStringRequiredThe skill identifier (e.g. '1-a')
skillStringRequiredA string to display that describes the skill
supportingBooleanRequiredtrue/false as to whether this is a 'supporting' skill (identified in assessment with a '*' after the skill id, e.g. '2-a*')

Example

Example

curl -X GET \
  -H 'User-Agent: dmtd-rest-api' \
  -H 'Authorization: Bearer wV1MLk5+sFzioJw/3M5r9A==' \
  -H "Accept: application/json" \
  -H "X-SystemDomain: vbmapp" \
  https://api-sandbox.datamtd.com/1/protocol?area=milestones\&group=mand

Response

{
    "group": "mand",
    "questions": [
        {
            "skills": [
                {
                    "id": "1-a*",
                    "skill": "Makes eye contact (gaze shift) as a mand for attention or other reinforcers 2 times {b}(O){/b}",
                    "supporting": true
                },
                {
                    "id": "1-b*",
                    "skill": "Moves close to a reinforcing item to indicate the presence of an MO 2 times {b}(O){/b}",
                    "supporting": true
                },
                {
                    "id": "1-c*",
                    "skill": "Pulls an adult to get access to a reinforcing item 2 times {b}(O){/b}",
                    "supporting": true
                },
                {
                    "id": "1-d*",
                    "skill": "Points or gestures towards a reinforcer in order to obtain it 2 times {b}(O){/b}",
                    "supporting": true
                }
            ],
            "materials": "Gather items or plan actions that function as reinforcement for the child.",
            "level": "level1",
"levelTitle" : "Does the child engage in independent play behavior that is automatically reinforcing?", "responses": [ { "score": "0", "text": "Score 0 Points" }, { "score": "0.5", "text": "Give the child ½ point if he only emits 1 mand." },
...