Exemplo n.º 1
0
        private static void AddAssessmentReminderForPatient(
            Guid assessmentDefinitionKey,
            Guid organizationKey,
            Guid patientKey,
            Guid staffKey,
            string reminderName,
            string description,
            string email,
            DateTime startDateTime,
            DateTime endDateTime,
            AssessmentReminderRecurrence reminderRecurrenceType,
            AssessmentReminderUnit assessmentReminderUnit)
        {
            var assessmentReminder = new AssessmentReminder(organizationKey,
                                                            patientKey,
                                                            staffKey,
                                                            assessmentDefinitionKey,
                                                            reminderName,
                                                            startDateTime,
                                                            description,
                                                            reminderRecurrenceType,
                                                            endDateTime);

            assessmentReminder.ReviseReminder(1, assessmentReminderUnit, new Email(email));
            Console.WriteLine("Added Assessment Reminder: {0} ......", reminderName);
        }
Exemplo n.º 2
0
        private static void AddAssessmentReminders(IEnumerable <AssessmentDefinitionDto> assessmentDefinitionDtos, Guid organizationKey, Guid patientKey, Guid staffKey)
        {
            var assessmentDefDto   = assessmentDefinitionDtos.First(a => a.AssessmentCode == "3254099");
            var assessmentReminder = new AssessmentReminder(organizationKey,
                                                            patientKey,
                                                            staffKey,
                                                            assessmentDefDto.Key,
                                                            "Followup",
                                                            DateTime.Now.AddDays(1),
                                                            "Test");

            assessmentReminder.ReviseReminder(1, AssessmentReminderUnit.Days, new Email("*****@*****.**"));
            Console.WriteLine("Added Assessment Reminder: {0} ......", "Followup");
        }