public IMessageBag <EnhancedAdherenceCounsellingExtractView> Generate(List <EnhancedAdherenceCounsellingExtractView> extracts) { var messages = new List <IMessage <EnhancedAdherenceCounsellingExtractView> >(); foreach (var artExtractView in extracts) { var message = new EnhancedAdherenceCounsellingsMessage(artExtractView); messages.Add(message); } return(new EnhancedAdherenceCounsellingsMessageBag(messages)); }
public static EnhancedAdherenceCounsellingsMessageBag Create(PatientExtractView patient) { var message = new EnhancedAdherenceCounsellingsMessage(patient); return(new EnhancedAdherenceCounsellingsMessageBag(message)); }
public EnhancedAdherenceCounsellingsMessageBag(EnhancedAdherenceCounsellingsMessage message) { Message = message; }