© 2018 Capita Business Services Ltd. All rights reserved.

Capita Education Software Solutions is a trading name of Capita Business Services Ltd. Our Registered office is 30 Berners Street, London, W1T 3LR and our registered number is 02299747. Further information about Capita plc can be found in our legal statement.

SIMS 7 - Student Young Carer Details

Preamble

Students have a list of their your carer responsibilities. This can be accessed as follows:

Data Format

    public class CarerDetail
    {
        public string IdentifiedBy { get; set; }
        public DateTime Start { get; set; }
        public DateTime End { get; set; }
        public string Notes { get; set; }
    }
    
    public class dStudent
    {
        /// <summary>
        /// SIMS Internal ID
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// Surname to help understand the process.
        /// </summary>
        public string LegalSurname { get; set; }
        //...
        
        public List<CarerDetail> YoungCarerDetails = new List<CarerDetail>();
        // ...
        
    }

Iteration

            SIMS.Processes.StudentBrowseProcess studentBrowse = new SIMS.Processes.StudentBrowseProcess();

            SIMS.Entities.StudentSummarys students = studentBrowse.GetStudents(
                "Current"                                  // Current students
                , SIMS.Entities.Cache.WildcardAny          // Surname any                                                                                                                        
                , SIMS.Entities.Cache.WildcardAny          // Forename Any                    
                , studentBrowse.RegistrationGroupAny.Code  // Any                    
                , studentBrowse.YearGroupAny.Code          // ANy YG                   
                , studentBrowse.HouseAny.Code              // Any house                    
                , studentBrowse.TierAny.Code               // Any Tier                    
                , DateTime.Now                             // Effective Date                    
                , false); ; ;                              // Photos
            foreach (SIMS.Entities.StudentSummary student in students)
            {
                EditStudentInformation studentEdit = new EditStudentInformation();
                studentEdit.Load(new Person(student.ID), DateTime.Now);
                dStudent studentDetails = new dStudent();

Population

// Young carerer
                foreach (SIMS.Entities.StudentYoungCarer y in studentEdit.Student.AdditionalInformation.StudentYoungCarers)
                {
                    CarerDetail carerDetail = new CarerDetail();
                    carerDetail.Start = y.StartDateAttribute.Value;
                    carerDetail.End = y.EndDateAttribute.Value;
                    carerDetail.IdentifiedBy = y.StudentYoungCarerTypeAttribute.Value.Description;
                    carerDetail.Notes = y.CommentAttribute.Value;
                    studentDetails.YoungCarerDetails.Add(carerDetail);
                }