private static List <FamilyTraceTemplateWrap> ConvertToTraceWrapperClass(IMemberTracingViewModel clientDashboardViewModel, Encounter encounter, List <CategoryItem> modes, List <CategoryItem> outcomes, List <CategoryItem> consents) { List <FamilyTraceTemplateWrap> list = new List <FamilyTraceTemplateWrap>(); var testResults = encounter.ObsFamilyTraceResults.ToList(); foreach (var r in testResults) { list.Add(new FamilyTraceTemplateWrap(clientDashboardViewModel, new FamilyTraceTemplate(r, modes, outcomes, consents))); } return(list); }
public FamilyTraceTemplateWrap(IMemberTracingViewModel parent, IFamilyTraceTemplate traceTemplate) { _traceTemplate = traceTemplate; _parent = parent; }