© 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 - Get Application Medical Conditions and related Documents

Code Sample

SIMS.Processes.Admissions.MaintainApplication maintAppMedicalConditionDocs = new MaintainApplication();
            maintAppMedicalConditionDocs.RetrieveApplication(2619); // application id for Chris Heyes in GA training data

            foreach (SIMS.Entities.Admissions.ApplicationMedicalCondition applicationMedicalCondition in maintAppMedicalConditionDocs.DetailedApplication.MedicalConditions)
            {
                // which medical condition is it?
                string applicationMediCondition = applicationMedicalCondition.Condition.ToString();

                // get the docs for this medical condition
                maintAppMedicalConditionDocs.LoadMedicalConditionDocuments(applicationMedicalCondition);
                
                // now for each of the docs for the medical condition, show what they are...
                foreach (SIMS.Entities.Document medConditionDoc in applicationMedicalCondition.Documents)
                {
                    string medConditionDocNote = medConditionDoc.Note;
                    string medConditionDocSummary = medConditionDoc.Summary;
                    string medConditionDocDocumentType = medConditionDoc.DocumentTypeAttribute.ToString();
                }
            }

Reference AdmissionProcesses and Entities