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