{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/pedstestonline.com"
        }
    ],
    "info": {
        "name": "PEDSTESTONLINE",
        "_postman_id": "1f22930d-2960-4f3c-929e-9ba68f406dbe",
        "description": "API documentation for PEDS Tests",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "PEDS-R Test",
            "description": "\nAPI docs for PEDS-R Test",
            "item": [
                {
                    "name": "GET api\/v1\/peds-test",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/peds-test",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/peds-test"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "location",
                                    "value": "https:\/\/pedstestonline.com\/login"
                                },
                                {
                                    "key": "content-type",
                                    "value": "text\/html; charset=utf-8"
                                }
                            ],
                            "code": 302,
                            "body": "<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=\"UTF-8\" \/>\n        <meta http-equiv=\"refresh\" content=\"0;url='https:\/\/pedstestonline.com\/login'\" \/>\n\n        <title>Redirecting to https:\/\/pedstestonline.com\/login<\/title>\n    <\/head>\n    <body>\n        Redirecting to <a href=\"https:\/\/pedstestonline.com\/login\">https:\/\/pedstestonline.com\/login<\/a>.\n    <\/body>\n<\/html>",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/v1\/peds-test",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/peds-test",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/peds-test"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"test_date\":\"2022-08-20\",\"subject_DOB\":\"2021-03-20\",\"subject_prem\":true,\"prem_weeks\":5,\"patient_id\":1007,\"q0_text\":\"none\",\"q11_text\":\"none\",\"q1_select\":\"n\",\"q1_text\":\"Some example text for q1_text\",\"q2_select\":\"n\",\"q2_text\":\"Some example text for q2_text\",\"q3_select\":\"n\",\"q3_text\":\"Some example text for q3_text\",\"q4_select\":\"n\",\"q4_text\":\"Some example text for q4_text\",\"q5_select\":\"n\",\"q5_text\":\"Some example text for q5_text\",\"q6_select\":\"n\",\"q6_text\":\"Some example text for q6_text\",\"q7_select\":\"n\",\"q7_text\":\"Some example text for q7_text\",\"q8_select\":\"n\",\"q8_text\":\"Some example text for q8_text\",\"q9_select\":\"n\",\"q9_text\":\"Some example text for q9_text\",\"q10_select\":\"n\",\"q10_text\":\"Some example text for q10_text\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"data\": {\n     \"date_of_birth\": \"2017-10-22\",\n     \"test_date\": \"2022-12-17\",\n     \"test_age\": \"5 years 1 months 26 days\",\n     \"path\": \"A\",\n     \"result\": \"<b>PEDS<\/b> - Path A: (High Risk for Mental Health, Emotional, Behavioral and Developmental Delays\/ Disorders )\",\n     \"peds_recommends\": \"Refer for special education evaluation of eligibility<br\/>Refer for evaluation of mental health, well-being and  behavior<br\/>Provide guidance on specific concerns<br\/>Contact in 6 - 8 weeks to assess effectiveness and follow-through with referrals<br\/>If ineligible refer for private therapies or Head Start programs\",\n     \"developmental_concerns\": \"Expressive Language, Receptive Language, Gross Motor, School, Health, Global Cognitive\",\n     \"meb_concerns\": \"Self help\",\n     \"patient_id\": 1028\n  }\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "PEDS-DM Test",
            "description": "\nAPI docs for PEDS-DM Test",
            "item": [
                {
                    "name": "GET api\/v1\/peds-dm-test",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/peds-dm-test",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/peds-dm-test"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"subject_DOB\":\"2021-03-20\",\"test_date\":\"2025-11-29\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "location",
                                    "value": "https:\/\/pedstestonline.com\/login"
                                },
                                {
                                    "key": "content-type",
                                    "value": "text\/html; charset=utf-8"
                                }
                            ],
                            "code": 302,
                            "body": "<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=\"UTF-8\" \/>\n        <meta http-equiv=\"refresh\" content=\"0;url='https:\/\/pedstestonline.com\/login'\" \/>\n\n        <title>Redirecting to https:\/\/pedstestonline.com\/login<\/title>\n    <\/head>\n    <body>\n        Redirecting to <a href=\"https:\/\/pedstestonline.com\/login\">https:\/\/pedstestonline.com\/login<\/a>.\n    <\/body>\n<\/html>",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/v1\/peds-test.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/peds-dm-test",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/peds-dm-test"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"fm_select\":\"0_2\",\"rl_select\":\"1_3\",\"el_select\":\"0_2\",\"gm_select\":\"1_2\",\"sh_select\":\"1_2\",\"se_select\":\"1_3\",\"patient_id\":1007,\"subject_DOB\":\"2021-03-20\"}"
                        },
                        "description": "Info about the patient_id parameter:\n<aside class=\"warning\">The patient_id is auto-generated on our server when the patient submits a response (i.e. makes a POST request) for a test and is sent along with the response (results). And for later consecutive requests (only for POST requests), the patient_id is required and should exist on our system.\n<\/aside>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"data\": {\n     \"milestones_met\": \"Self Help, Receptive Language, Gross Motor, Social Emotional\",\n     \"milestones_unmet\": \"Fine Motor, Expressive Language\",\n     \"patient_id\": 1007,\n     \"risk_level_code\": \"High MEBDD Risk\",\n     \"risk_level_description\": \"<b><i>PEDS:DM\u00ae<\/i><\/b> High Risk for Mental Health, Social-Emotional, Behavioral and Developmental Delays\/Disorders\",\n     \"referral\": \"Refer for special education evaluation of eligibility<br\/>Request evaluation of mental health, well-being, behavior<br\/>Provide guidance on specific concerns<br\/>Contact in 6 - 8 weeks to assess effectiveness and follow-through with referrals<br\/>If ineligible, refer for private therapies or Head Start programs\",\n     \"recommendation\": \"Assist with referrals for additional testing through Early Intervention or the public schools. Screen or refer for screening of potential vision and hearing problems. Provide information on how parents can help at home.\"\n  }\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "PEDS-DMAL Test",
            "description": "\nAPI docs for PEDS-DMAL Test",
            "item": [
                {
                    "name": "GET api\/v1\/peds-dmal-test.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/peds-dmal-test",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/peds-dmal-test"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"subject_DOB\":\"2021-05-12\",\"test_date\":\"2025-11-29\"}"
                        },
                        "description": "<aside class=\"warning\">\nThis endpoint is used to get the initial questions for the PEDS-DMAL test and depending on the age of the child, the questions are generated accordingly.<br>\nOne more thing to note is that each question and answer has a key associated with it. This key is used to identify the answer in the response.<br>\nAs an example, the test_type here is \"fm\" and the questions\/answers generated are from range 2 to 9.<br>\nSo while submitting the response, the POST request expects the answers to be in the range 2 to 9 with the test_type prefixed to it.\nLike \"fm_2\", \"fm_3\" and so on upto \"fm_9\" as a key and the value as the answer.\n<\/aside>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n\"data\": {\n\"domain_name\": \"Fine Motor\",\n\"test_type\": \"fm\",\n\"birth_date\": \"2021-05-12\",\n\"test_age\": \"1 year 11 months 6 days\",\n\"rounded_off_age\": \"1 year 11 months 0 day\",\n\"test_date\": \"2023-04-18\",\n\"uuid\": \"943b8348-e203-451f-8dcf-a5cce2b1fa10\",\n\"questions\": [\n{\n\"key\": 2,\n\"question\": \"When your child is holding a toy in each hand, does he or she look from one side to the other?\"\n},\n{\n\"key\": 3,\n\"question\": \"Can your child poke at things with just his or her first finger?\"\n},\n{\n\"key\": 4,\n\"question\": \"Can your child make a squeeze toy squeak - or try to?\"\n},\n{\n\"key\": 5,\n\"question\": \"Can your child unwrap food or a toy that has been loosely wrapped?\"\n},\n{\n\"key\": 6,\n\"question\": \"Can your child stack blocks?\"\n},\n{\n\"key\": 7,\n\"question\": \"Does your child try to scribble with crayons or markers?\"\n},\n{\n\"key\": 8,\n\"question\": \"Can your child scribble with a crayon or marker without going off the page much?\"\n},\n{\n\"key\": 9,\n\"question\": \"Can your child draw a picture of a person with any of these parts: head, legs, arms, eyes, body, nose, ears, hands?\"\n}\n],\n\"responses\": [\n{\n\"key\": 2,\n\"response\": {\n\"No\": \"1_0\",\n\"A little\": \"2_0\",\n\"Yes\": \"3_1\"\n}\n},\n{\n\"key\": 3,\n\"response\": {\n\"No\": \"1_0\",\n\"A little\": \"2_0\",\n\"Yes\": \"3_1\"\n}\n},\n{\n\"key\": 4,\n\"response\": {\n\"No\": \"1_0\",\n\"A little\": \"2_1\",\n\"Yes\": \"3_1\"\n}\n},\n{\n\"key\": 5,\n\"response\": {\n\"No\": \"1_0\",\n\"Sometimes\": \"2_0\",\n\"Most of the time\": \"3_1\"\n}\n},\n{\n\"key\": 6,\n\"response\": {\n\"No\/Don't have blocks\": \"1_0\",\n\"1-2 blocks\": \"2_0\",\n\"3 or more blocks\": \"3_1\"\n}\n},\n{\n\"key\": 7,\n\"response\": {\n\"No\/Never tried\": \"1_0\",\n\"Sometimes\": \"2_1\",\n\"Yes\": \"3_1\"\n}\n},\n{\n\"key\": 8,\n\"response\": {\n\"No\": \"1_0\",\n\"Sometimes\": \"2_0\",\n\"Yes\": \"3_1\"\n}\n},\n{\n\"key\": 9,\n\"response\": {\n\"No\": \"1_0\",\n\"1 or more parts\": \"2_1\",\n\"2 or more parts\": \"3_1\",\n\"4 or more parts\": \"4_1\"\n}\n}\n]\n}\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/v1\/peds-dmal-test.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/peds-dmal-test",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/peds-dmal-test"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"uuid\":\"943b8348-e203-451f-8dcf-a5cce2b1fa10\",\"subject_DOB\":\"2021-05-12\",\"fm_2\":\"2_0\",\"fm_3\":\"1_0\",\"fm_4\":\"1_0\",\"fm_5\":\"1_0\",\"fm_6\":\"3_1\",\"fm_7\":\"2_1\",\"fm_8\":\"3_1\",\"fm_9\":\"2_1\"}"
                        },
                        "description": "<aside class=\"warning\">\nHere, we are sending the data in the format as mentioned above, and depending on the previous response sent, the Server might ask additional questions for the same domain.<br>\nOtherwise, it will return the questions of next domain.<br>\nThis flow will continue until all the domains are completed, and finally, the Server will return the final Report of the Child being tested.\n<\/aside>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n\"data\": {\n\"message\": \"Please answer a few more questions to complete the test.\",\n\"domain_name\": \"Fine Motor\",\n\"test_type\": \"fm\",\n\"test_date\": \"2023-04-18\",\n\"uuid\": \"943b8348-e203-451f-8dcf-a5cce2b1fa10\",\n\"questions\": {\n\"basal\": [\n{\n\"key\": 0,\n\"question\": \"Does your child look at his or her hands?\"\n},\n{\n\"key\": 1,\n\"question\": \"Are your child's hands open most of the time, not in a fist?\"\n}\n],\n\"ceiling\": []\n},\n\"responses\": {\n\"basal\": [\n{\n\"key\": 0,\n\"response\": {\n\"No\": \"1_0\",\n\"A little\": \"2_1\",\n\"Yes\": \"3_1\"\n}\n},\n{\n\"key\": 1,\n\"response\": {\n\"No\": \"1_0\",\n\"A little\": \"2_0\",\n\"Yes\": \"3_1\"\n}\n}\n],\n\"ceiling\": []\n}\n}\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "key",
                "type": "string"
            }
        ]
    }
}