Widget:MattTest: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 74: Line 74:
$("#nextApptHour").spinner({max: 24});
$("#nextApptHour").spinner({max: 24});
nextApptMinute = $( "#nextApptMinute" ).spinner();
nextApptMinute = $( "#nextApptMinute" ).spinner();
$("#nextApptMinute").spinner({min: 0});
$("#nextApptMinute").spinner({min: 00});
$("#nextApptMinute").spinner({max: 60});
$("#nextApptMinute").spinner({max: 60});
day1 = new Date();
day1 = new Date();
Line 320: Line 320:
}
}
}
}
else if ($.inArray($.trim(visitNum),["Visit 2", "Visit 4", "Visit 5", "Visit 6", "Visit 7", "Visit 8"]) > -1){
else if ($.inArray($.trim(visitNum),["Visit 2", "Visit 4", "Visit 5", "Visit 6", "Visit 7", "Visit 8", "Visit 9", "Visit 10", "Visit 11"]) > -1){
//Check visit based on number of days only.  Need to create temp variables to drop the time from the dates.
//Check visit based on number of days only.  Need to create temp variables to drop the time from the dates.
var maxDay = new Date(tdmax.getFullYear(), tdmax.getMonth(), tdmax.getDate() );
var maxDay = new Date(tdmax.getFullYear(), tdmax.getMonth(), tdmax.getDate() );
Line 368: Line 368:
}
}
}
}
else if ($.inArray($.trim(visitNum),["Visit 9"]) > -1 ) {
else if ($.inArray($.trim(visitNum),["Visit 12"]) > -1 ) {
//Check visit based on number of days, but allow for delayed or missed infusions.
//Check visit based on number of days, but allow for delayed or missed infusions.
var daysNeeded = 14 - 7*($.inArray($.trim(visitNum),["Visit 4", "Visit 5", "Visit 6"]));
var daysNeeded = 14 - 7*($.inArray($.trim(visitNum),["Visit 4", "Visit 5", "Visit 6"]));
Line 608: Line 608:
// VisitNum : [Days from Infusion 1, Window + Days, Window - Days, Window + Hours, Window - Hours, Visit, Visit Description, Short Visit Description]
// VisitNum : [Days from Infusion 1, Window + Days, Window - Days, Window + Hours, Window - Hours, Visit, Visit Description, Short Visit Description]
1 : [0, 5, 0, 12, 0, "Visit 2", "Infusion 1 of investigational product should occur no earlier than 12 h after IV contrast and be dosed within 5 days of First Medical Contact.  Subjects who are to undergo angiography and, therefore, receive IV contrast agent must have stable renal function.", "Infusion 1"],
1 : [0, 5, 0, 12, 0, "Visit 2", "Infusion 1 of investigational product should occur no earlier than 12 h after IV contrast and be dosed within 5 days of First Medical Contact.  Subjects who are to undergo angiography and, therefore, receive IV contrast agent must have stable renal function.", "Infusion 1"],
2 : [7, 1, 2, 0, 0, "Visit 3", "Infusion 2 should occur 7 days (-2/+1) after the 1st infusion (Visit 2).", "Infusion 2"],
2 : [7, 1, 2, 0, 0, "Visit 3", "Infusion 2 should occur approximately 7 (-2/+1) days  after the 1st infusion (Visit 2) with a minimum window between infusions of at least 5 days.", "Infusion 2"],
3 : [14, 1, 2, 0, 0, "Visit 4", "Infusion 3 should occur 7 days (-2/+1) after the 2nd infusion (Visit 3).", "Infusion 3"],
3 : [14, 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 : [21, 1, 2, 0, 0, "Visit 5", "Infusion 4 should occur 7 days (-2/+1) after the 3rd infusion (Visit 4).", "Infusion 4"],
4 : [21, 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 : [28, 2, 2, 0, 0, "Visit 6", "This follow-up visit should occur 7 days (±2) after the 4th infusion (Visit 5).", "1st Follow-Up After Infusion 4"],
5 : [28, 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 : [60, 10, 10, 0, 0, "Visit 7", "This follow-up visit should occur approximately 30 days (±10) after the 4th infusion (Visit 5).", "2nd Follow-Up After Infusion 4"],
6 : [59, 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 : [90, 10, 10, 0, 0, "Visit 8", "This follow-up visit should occur approximately 60 days (±10) after the 4th infusion (Visit 5).", "3rd Follow-Up After Infusion 4"],
7 : [89, 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 : [180, 10, 10, 0, 0, "Visit 9", "This follow-up visit should occur approximately 150 days (±10) after the 4th infusion (Visit 5).", "4th Follow-Up After Infusion 4"],
8 : [179, 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 : [270, 10, 10, 0, 0, "Visit 10", "This follow-up visit should occur approximately 240 days (±10) after the 4th infusion (Visit 5).", "5th Follow-Up After Infusion 4"],
9 : [269, 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 : [365, 14, 14, 0, 0, "Visit 11", "This follow-up visit should occur approximately 335 days (±14) after the 4th infusion (Visit 5).", "End Of Study Visit"],
10 : [364, 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"],
};
};
return timeConstraints;
return timeConstraints;

Latest revision as of 15:00, 2 July 2018