Widget:VisitSchedulerRedux: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
3 : [7, 1, 2, 0, 0, "Visit 4", "Infusion 3 should occur approximately 7 (-2/+1) days after the 2nd infusion (Visit 3) with a minimum window between infusions of at least 5 days.", "Infusion 3"],
3 : [7, 1, 2, 0, 0, "Visit 4", "Infusion 3 should occur approximately 7 (-2/+1) days after the 2nd infusion (Visit 3) with a minimum window between infusions of at least 5 days.", "Infusion 3"],
4 : [7, 1, 2, 0, 0, "Visit 5", "Infusion 4 should occur approximately 7 (-2/+1) days after the 3rd infusion (Visit 4) with a minimum window between infusions of at least 5 days. This infusion must be given within 30 days of the 1st infusion.", "Infusion 4"],
4 : [7, 1, 2, 0, 0, "Visit 5", "Infusion 4 should occur approximately 7 (-2/+1) days after the 3rd infusion (Visit 4) with a minimum window between infusions of at least 5 days. This infusion must be given within 30 days of the 1st infusion.", "Infusion 4"],
5 : [7, 2, 2, 0, 0, "Visit 6", "This follow-up visit should occur approximately on day 29 (ą2) after the 1st infusion (Visit 5).", "1st Follow-Up After Infusion 4"],
5 : [7, 2, 2, 0, 0, "Visit 6", "This follow-up visit should occur approximately on day 29 (±2) after the 1st infusion (Visit 5).", "1st Follow-Up After Infusion 4"],
6 : [31, 10, 10, 0, 0, "Visit 7", "This follow-up visit should occur approximately on day 60 (ą10) after the 1st infusion (Visit 2).", "2nd Follow-Up After Infusion 4"],
6 : [31, 10, 10, 0, 0, "Visit 7", "This follow-up visit should occur approximately on day 60 (±10) after the 1st infusion (Visit 2).", "2nd Follow-Up After Infusion 4"],
7 : [30, 10, 10, 0, 0, "Visit 8", "This follow-up visit should occur approximately on day 90 (ą10) after the 1st infusion (Visit 2).", "3rd Follow-Up After Infusion 4"],
7 : [30, 10, 10, 0, 0, "Visit 8", "This follow-up visit should occur approximately on day 90 (±10) after the 1st infusion (Visit 2).", "3rd Follow-Up After Infusion 4"],
8 : [90, 10, 10, 0, 0, "Visit 9", "This follow-up visit should occur approximately on day 180 (ą10) after the 1st infusion (Visit 2).", "4th Follow-Up After Infusion 4"],
8 : [90, 10, 10, 0, 0, "Visit 9", "This follow-up visit should occur approximately on day 180 (±10) after the 1st infusion (Visit 2).", "4th Follow-Up After Infusion 4"],
9 : [90, 10, 10, 0, 0, "Visit 10", "This follow-up visit should occur approximately on day 270 (ą10) after the 1st infusion (Visit 2).", "5th Follow-Up After Infusion 4"],
9 : [90, 10, 10, 0, 0, "Visit 10", "This follow-up visit should occur approximately on day 270 (±10) after the 1st infusion (Visit 2).", "5th Follow-Up After Infusion 4"],
10 : [95, 14, 14, 0, 0, "Visit 11", "This follow-up visit should occur approximately on day 365 (ą14) after the 1st infusion (Visit 2).", "End Of Study Visit"],
10 : [95, 14, 14, 0, 0, "Visit 11", "This follow-up visit should occur approximately on day 365 (±14) after the 1st infusion (Visit 2).", "End Of Study Visit"],
};
};
this.patientID = patient;
this.patientID = patient;
Line 88: Line 88:
                         $("#visit-4").css("border", "5px solid red");
                         $("#visit-4").css("border", "5px solid red");
}
}
 
if((new Date($("#visit-4").val()).getTime() - new Date($("#visit-1").val()).getTime()) > (24*60*60*1000*30)){
errorFlag = true;
                        $("#visit-4").css("border", "5px solid red");
}
if(errorFlag){alert("All infusions must occur within 30 days. All visits outlined in red are invalid and should not be scheduled or resolved.");}
if(errorFlag){alert("All infusions must occur within 30 days. All visits outlined in red are invalid and should not be scheduled or resolved.");}
};
};

Revision as of 21:16, 17 December 2018