Loading...

Attendance studentSummary

Request Description

Retrieves a summary of attendance information for a selected student over a period of time specified.
Retrieves: basic student and contact information, medical practise, weekly session summary and attendance figures.


Request Information

Response Format:JSON
Requires Authentication:Yes
Cached:Yes
Cache Duration:3 Hours

Parameters

student_idID of the student for whom's summary to display
date_from
Optional
Start date to lookup attendance data from
Use format YYYY-MM-DD
If not supplied, last occurrence of 02/09 will be used
date_to
Optional
End date of attendance data lookup
Use format YYYY-MM-DD
If not supplied, next occurrence of 01/09 will be used

Example Request

$a = $api->sendRequest(
  array( 
      'controller'      => 'Attendance',  
      'action'          => 'studentSummary',
      'student_id'      =>' 9313',
      'date_from'       => '2014-09-02',
      'date_to'         => '2015-09-01'
  )
  );

Example Result

Array
(
    [data] => Array
        (
            [PERSONAL] => Array
                (
                    [FIRSTNAME] => James
                    [SURNAME] => Smith
                    [PARENT] => Mr A and Mrs B Smith
                    [MOT] => Car/Van
                    [PHONE] => (H)  0115 9123456
                )

            [MED] => Array
                (
                    [PRACTICE] => A Medical Centre Hucknall
                    [PHONE] => 
                )

            [ATTEND] => Array
                (
                    [0] => Array
                        (
                            [WEEK] => 2014-09-01 00:00:00
                            [MON] => 
                            [TUE] => XX
                            [WED] => /#
                            [THUR] => /\
                            [FRI] => /\
                        )

                    [1] => Array
                        (
                            [WEEK] => 2014-09-08 00:00:00
                            [MON] => /\
                            [TUE] => /\
                            [WED] => /\
                            [THUR] => /\
                            [FRI] => /\
                        )

                    [2] => Array
                        (
                            [WEEK] => 2014-09-15 00:00:00
                            [MON] => /\
                            [TUE] => /\
                            [WED] => /\
                            [THUR] => /\
                            [FRI] => /\
                        )

                    . . .

                )

            [FIGS] => Array
                (
                    [POSSIBLE_ATTEND] => 348
                    [PRESENT] => 331
                    [AUTH] => 4
                    [AEA] => 33
                    [LATEBEFORECLOSE] => 0
                    [LATAFTERCLOSE] => 0
                    [UNEXPLAINED] => 1
                    [PRESPER] => 95.11
                    [AUTHPER] => 1.15
                    [UNAUTHPER] => 1.44
                    [AEAPER] => 9.48
                    [LATEBEFOREPER] => .00
                    [LATEAFTERPER] => .00
                    [UNEXPLAINEDPER] => .29
                )

        )
)