PageSourceSearch

https://patient.webdoctors.com/Scripts/Page/ReminderService.js?v=3.2

js webdoctors.com collected 2026-10-04 03:08:13 UTC 4,293 bytes, 84 lines download raw bytes

1if (typeof (ReminderService) == "undefined") { ReminderService = {}; }
2
3ReminderService.Form = {
4
5    // Stages
6    PatientProfile:1,               // 1 - Patient Profile
7    Questionnaire:2,                // 2 - Questionnaire
8    HealthHistory:3,                // 3 - Health History
9    PharmacySelection:4,            // 4 - Pharmacy
10    DoctorSelection:5,              // 5 - Doctor Selection
11
12    TriggerReminder: function (reminderModel) {
13        $.post("/ReminderService/TriggerReminder", reminderModel, function (data) {
14
15        });
16
17    },
18    SetLocalStorage: function (data) {
19        // Ensure date of birth is available and valid
20        var dobStr = data.Patient.UserProfile.DateOfBirth; // Should be "yyyy-MM-dd" or ISO format
21        var age = null;
22        if (dobStr) {
23            var dob = new Date(dobStr);
24            var today = new Date();
25            age = today.getFullYear() - dob.getFullYear();
26            // If birthday hasn't occurred yet this year, subtract one
27            if (today < new Date(today.getFullYear(), dob.getMonth(), dob.getDate())) {
28                age--;
29            }
30        }
31        //Set all the needed local storage items
32        localStorage.setItem("age", age);
33        localStorage.setItem("IsAgreeAppointment", "1");
34        localStorage.setItem("allowQuestionaire", data.Encounter.Reason.AllowQuestionaire);
35        localStorage.setItem("allowpicture", data.Encounter.Reason.AllowPicture);
36        localStorage.setItem("appttype", data.Encounter.Reason.Type);
37        localStorage.setItem("emergencyMessage", "Please call 911 or go to the nearest emergency room immediately if you have a medical emergency such as trouble breathing, high fever, seizures, or severe vomiting.");
38        localStorage.setItem("encounterId", data.Encounter.ID);
39        localStorage.setItem("patientId", data.Patient.ID);
40        localStorage.setItem("patientName", data.Patient.UserProfile.FullName);
41        localStorage.setItem("pharmacyState", data.Patient.UserProfile.State);
42        localStorage.setItem("physicianUserId", data.Encounter.PhysicianID);
43        localStorage.setItem("reasonId", data.Encounter.ReasonID);
44        localStorage.setItem("skipSymptomPage", data.Encounter.Reason.SkipSymptomPage);
45        localStorage.setItem("visitType", "E");
46        localStorage.setItem("zipcode", data.Patient.UserProfile.Zipcode);
47
48    },
49    ReminderContinue: function (data) {
50        //Stage 1 :Redirect to Patient Profile
51        if (data.Stage == ReminderService.Form.PatientProfile) {
52            window.location.href = "/User/PatientSignUp?id=" + data.Patient.UserProfile.ID + "&userid=" + data.Patient.UserProfile.AspNetUser.Id + "&firstname=" + data.Patient.UserProfile.FirstName + "&lastname=" + data.Patient.UserProfile.LastName + "&consultation=Myself&patientId=" + data.Patient.ID + "&mode=" + "";
53        }
54        //Stage 2 :Redirect to Questionnaire Page
55        else if (data.Stage == ReminderService.Form.Questionnaire) {
56            ReminderService.Form.SetLocalStorage(data);
57            Questionnaire.Form.GetQuestionnaires("divWizardPageHolder", data.Encounter.ID);
58        }
59        //Stage 3 :Redirect to Health History Page
60        else if (data.Stage == ReminderService.Form.HealthHistory) {
61            ReminderService.Form.SetLocalStorage(data);
62            GetHealthHistory('divWizardPageHolder');
63
64        }
65        //Stage 4 :Redirect to Pharmacy Page
66        else if (data.Stage == ReminderService.Form.PharmacySelection) {
67            ReminderService.Form.SetLocalStorage(data);
68            SelectPharmacy();
69        }
70        //Stage 5 :Redirect to Doctor Selection Page
71        else if (data.Stage == ReminderService.Form.DoctorSelection) {
72            ReminderService.Form.SetLocalStorage(data);
73            if (isBrenzavvyMember == 1 || data.Encounter.ReasonId == GlobalVariable.Form.ReviewLabReasonId) {
74                SaveAsPhysician(1, "Narendra Garg");
75            }
76            // If the reason is not "Review Lab" and not a Brenzavvy member, proceed to doctor selection
77            else {
78                GetAvailableDoctors("divWizardPageHolder", data.Patient.UserProfile.State);
79            }
80        }
81    }
82
83
84}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.