Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions SAPPub.Core/Entities/Performance/KS5EnglandPerformance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,4 +445,15 @@ public class KS5EnglandPerformance

// Percentage of students retained and assessed - Applied general qualifications - Previous2
public CodedDouble PT_RET_ASSESSED_AGEN_Eng_Previous2_Pct_Coded { get; set; }

// Tech Levels Retained and assessed measures

// Percentage of students retained and assessed - Tech Levels - Current
public CodedDouble PT_RET_ASSESSED_TLEV_Eng_Current_Pct_Coded { get; set; }

// Percentage of students retained and assessed - Tech Levels - Previous
public CodedDouble PT_RET_ASSESSED_TLEV_Eng_Previous_Pct_Coded { get; set; }

// Percentage of students retained and assessed - Tech Levels - Previous2
public CodedDouble PT_RET_ASSESSED_TLEV_Eng_Previous2_Pct_Coded { get; set; }
}
14 changes: 14 additions & 0 deletions SAPPub.Core/Entities/Performance/KS5EstablishmentPerformance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,4 +384,18 @@ public class KS5EstablishmentPerformance

// Percentage of students retained and assessed - Applied general qualifications - Previous2
public CodedDouble PT_RET_ASSESSED_AGEN_Est_Previous2_Pct_Coded { get; set; }

// Tech Levels Retained and assessed measures

// Number of students enrolled - Tech Levels
public CodedDouble T_INSCOPE_TLEV_RET_Est_Current_Num_Coded { get; set; }

// Percentage of students retained and assessed - Tech Levels - Current
public CodedDouble PT_RET_ASSESSED_TLEV_Est_Current_Pct_Coded { get; set; }

// Percentage of students retained and assessed - Tech Levels - Previous
public CodedDouble PT_RET_ASSESSED_TLEV_Est_Previous_Pct_Coded { get; set; }

// Percentage of students retained and assessed - Tech Levels - Previous2
public CodedDouble PT_RET_ASSESSED_TLEV_Est_Previous2_Pct_Coded { get; set; }
}
11 changes: 11 additions & 0 deletions SAPPub.Core/Entities/Performance/KS5LAPerformance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,15 @@ public class KS5LAPerformance

// Percentage of students retained and assessed - Applied general qualifications - Previous2
public CodedDouble PT_RET_ASSESSED_AGEN_LA_Previous2_Pct_Coded { get; set; }

// Tech Levels Retained and assessed measures

// Percentage of students retained and assessed - Tech Levels - Current
public CodedDouble PT_RET_ASSESSED_TLEV_LA_Current_Pct_Coded { get; set; }

// Percentage of students retained and assessed - Tech Levels - Previous
public CodedDouble PT_RET_ASSESSED_TLEV_LA_Previous_Pct_Coded { get; set; }

// Percentage of students retained and assessed - Tech Levels - Previous2
public CodedDouble PT_RET_ASSESSED_TLEV_LA_Previous2_Pct_Coded { get; set; }
}
10 changes: 10 additions & 0 deletions SAPPub.Core/Services/Performance/Level3QualificationsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public static RetainedAndAssessedModel GetRetainedAndAssessedMeasures(
Level3.ALevel => establishmentPerformance.T_INSCOPE_ALEV_RET_Est_Current_Num_Coded,
Level3.Academic => establishmentPerformance.T_INSCOPE_ACAD_RET_Est_Current_Num_Coded,
Level3.AppliedGeneral => establishmentPerformance.T_INSCOPE_AGEN_RET_Est_Current_Num_Coded,
Level3.TechLevel => establishmentPerformance.T_INSCOPE_TLEV_RET_Est_Current_Num_Coded,
_ => CodedDouble.Empty,
},
PreviousYear = CodedDouble.Empty,
Expand All @@ -387,20 +388,23 @@ public static RetainedAndAssessedModel GetRetainedAndAssessedMeasures(
Level3.ALevel => establishmentPerformance.PT_RET_ASSESSED_ALEV_Est_Current_Pct_Coded,
Level3.Academic => establishmentPerformance.PT_RET_ASSESSED_ACAD_Est_Current_Pct_Coded,
Level3.AppliedGeneral => establishmentPerformance.PT_RET_ASSESSED_AGEN_Est_Current_Pct_Coded,
Level3.TechLevel => establishmentPerformance.PT_RET_ASSESSED_TLEV_Est_Current_Pct_Coded,
_ => CodedDouble.Empty,
},
PreviousYear = level3Qualification switch
{
Level3.ALevel => establishmentPerformance.PT_RET_ASSESSED_ALEV_Est_Previous_Pct_Coded,
Level3.Academic => establishmentPerformance.PT_RET_ASSESSED_ACAD_Est_Previous_Pct_Coded,
Level3.AppliedGeneral => establishmentPerformance.PT_RET_ASSESSED_AGEN_Est_Previous_Pct_Coded,
Level3.TechLevel => establishmentPerformance.PT_RET_ASSESSED_TLEV_Est_Previous_Pct_Coded,
_ => CodedDouble.Empty,
},
TwoYearsAgo = level3Qualification switch
{
Level3.ALevel => establishmentPerformance.PT_RET_ASSESSED_ALEV_Est_Previous2_Pct_Coded,
Level3.Academic => establishmentPerformance.PT_RET_ASSESSED_ACAD_Est_Previous2_Pct_Coded,
Level3.AppliedGeneral => establishmentPerformance.PT_RET_ASSESSED_AGEN_Est_Previous2_Pct_Coded,
Level3.TechLevel => establishmentPerformance.PT_RET_ASSESSED_TLEV_Est_Previous2_Pct_Coded,
_ => CodedDouble.Empty,
},
},
Expand All @@ -411,20 +415,23 @@ public static RetainedAndAssessedModel GetRetainedAndAssessedMeasures(
Level3.ALevel => laPerformance.PT_RET_ASSESSED_ALEV_LA_Current_Pct_Coded,
Level3.Academic => laPerformance.PT_RET_ASSESSED_ACAD_LA_Current_Pct_Coded,
Level3.AppliedGeneral => laPerformance.PT_RET_ASSESSED_AGEN_LA_Current_Pct_Coded,
Level3.TechLevel => laPerformance.PT_RET_ASSESSED_TLEV_LA_Current_Pct_Coded,
_ => CodedDouble.Empty,
},
PreviousYear = level3Qualification switch
{
Level3.ALevel => laPerformance.PT_RET_ASSESSED_ALEV_LA_Previous_Pct_Coded,
Level3.Academic => laPerformance.PT_RET_ASSESSED_ACAD_LA_Previous_Pct_Coded,
Level3.AppliedGeneral => laPerformance.PT_RET_ASSESSED_AGEN_LA_Previous_Pct_Coded,
Level3.TechLevel => laPerformance.PT_RET_ASSESSED_TLEV_LA_Previous_Pct_Coded,
_ => CodedDouble.Empty,
},
TwoYearsAgo = level3Qualification switch
{
Level3.ALevel => laPerformance.PT_RET_ASSESSED_ALEV_LA_Previous2_Pct_Coded,
Level3.Academic => laPerformance.PT_RET_ASSESSED_ACAD_LA_Previous2_Pct_Coded,
Level3.AppliedGeneral => laPerformance.PT_RET_ASSESSED_AGEN_LA_Previous2_Pct_Coded,
Level3.TechLevel => laPerformance.PT_RET_ASSESSED_TLEV_LA_Previous2_Pct_Coded,
_ => CodedDouble.Empty,
},
},
Expand All @@ -435,20 +442,23 @@ public static RetainedAndAssessedModel GetRetainedAndAssessedMeasures(
Level3.ALevel => englandPerformance.PT_RET_ASSESSED_ALEV_Eng_Current_Pct_Coded,
Level3.Academic => englandPerformance.PT_RET_ASSESSED_ACAD_Eng_Current_Pct_Coded,
Level3.AppliedGeneral => englandPerformance.PT_RET_ASSESSED_AGEN_Eng_Current_Pct_Coded,
Level3.TechLevel => englandPerformance.PT_RET_ASSESSED_TLEV_Eng_Current_Pct_Coded,
_ => CodedDouble.Empty,
},
PreviousYear = level3Qualification switch
{
Level3.ALevel => englandPerformance.PT_RET_ASSESSED_ALEV_Eng_Previous_Pct_Coded,
Level3.Academic => englandPerformance.PT_RET_ASSESSED_ACAD_Eng_Previous_Pct_Coded,
Level3.AppliedGeneral => englandPerformance.PT_RET_ASSESSED_AGEN_Eng_Previous_Pct_Coded,
Level3.TechLevel => englandPerformance.PT_RET_ASSESSED_TLEV_Eng_Previous_Pct_Coded,
_ => CodedDouble.Empty,
},
TwoYearsAgo = level3Qualification switch
{
Level3.ALevel => englandPerformance.PT_RET_ASSESSED_ALEV_Eng_Previous2_Pct_Coded,
Level3.Academic => englandPerformance.PT_RET_ASSESSED_ACAD_Eng_Previous2_Pct_Coded,
Level3.AppliedGeneral => englandPerformance.PT_RET_ASSESSED_AGEN_Eng_Previous2_Pct_Coded,
Level3.TechLevel => englandPerformance.PT_RET_ASSESSED_TLEV_Eng_Previous2_Pct_Coded,
_ => CodedDouble.Empty,
},
},
Expand Down
16 changes: 13 additions & 3 deletions SAPPub.Infrastructure/Repositories/Helpers/DapperHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,11 @@ public static class DapperHelpers
"T_INSCOPE_AGEN_RET_Est_Current_Num_Coded",
"PT_RET_ASSESSED_AGEN_Est_Current_Pct_Coded",
"PT_RET_ASSESSED_AGEN_Est_Previous_Pct_Coded",
"PT_RET_ASSESSED_AGEN_Est_Previous2_Pct_Coded"
"PT_RET_ASSESSED_AGEN_Est_Previous2_Pct_Coded",
"T_INSCOPE_TLEV_RET_Est_Current_Num_Coded",
"PT_RET_ASSESSED_TLEV_Est_Current_Pct_Coded",
"PT_RET_ASSESSED_TLEV_Est_Previous_Pct_Coded",
"PT_RET_ASSESSED_TLEV_Est_Previous2_Pct_Coded"
""";

private const string KS5EnglandPerformanceColumns = """
Expand Down Expand Up @@ -634,7 +638,10 @@ public static class DapperHelpers
"PT_RET_ASSESSED_ACAD_Eng_Previous2_Pct_Coded",
"PT_RET_ASSESSED_AGEN_Eng_Current_Pct_Coded",
"PT_RET_ASSESSED_AGEN_Eng_Previous_Pct_Coded",
"PT_RET_ASSESSED_AGEN_Eng_Previous2_Pct_Coded"
"PT_RET_ASSESSED_AGEN_Eng_Previous2_Pct_Coded",
"PT_RET_ASSESSED_TLEV_Eng_Current_Pct_Coded",
"PT_RET_ASSESSED_TLEV_Eng_Previous_Pct_Coded",
"PT_RET_ASSESSED_TLEV_Eng_Previous2_Pct_Coded"
""";

private const string KS5LAPerformanceColumns = """
Expand Down Expand Up @@ -752,7 +759,10 @@ public static class DapperHelpers
"PT_RET_ASSESSED_ACAD_LA_Previous2_Pct_Coded",
"PT_RET_ASSESSED_AGEN_LA_Current_Pct_Coded",
"PT_RET_ASSESSED_AGEN_LA_Previous_Pct_Coded",
"PT_RET_ASSESSED_AGEN_LA_Previous2_Pct_Coded"
"PT_RET_ASSESSED_AGEN_LA_Previous2_Pct_Coded",
"PT_RET_ASSESSED_TLEV_LA_Current_Pct_Coded",
"PT_RET_ASSESSED_TLEV_LA_Previous_Pct_Coded",
"PT_RET_ASSESSED_TLEV_LA_Previous2_Pct_Coded"
""";

private const string GatewayLAColumns = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@if (await FeatureManager.IsEnabledAsync(EnableRetentionMeasure) &&
(qualification is Level3 level3Qualification &&
(level3Qualification == Level3.ALevel || level3Qualification == Level3.Academic ||
level3Qualification == Level3.AppliedGeneral)))
level3Qualification == Level3.AppliedGeneral || level3Qualification == Level3.TechLevel)))
{
<h3 class="govuk-heading-m">Student who completed their main course and were assessed</h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,20 @@ public async Task GetLevel3QualificationDetailsAsync_ShouldReturnData(Level3 qua
Assert.Equal(_englandPerformance.LCI_INS_TLEV_NOTDIS_Eng_Current_Num_Coded, result.NonDisadvantagedStudentsData.England.ConfidenceLevelLower);
Assert.Equal(_englandPerformance.TALLPPE_TLEV_NOTDIS_Eng_Current_Num_Coded, result.NonDisadvantagedStudentsData.England.Result.Points);
Assert.Equal(_englandPerformance.TALLPPEGRD_TLEV_NOTDIS_Eng_Current, result.NonDisadvantagedStudentsData.England.Result.Grade);

// Retention measures - A Levels
Assert.Equal(_establishmentPerformance.T_INSCOPE_TLEV_RET_Est_Current_Num_Coded, result.RetainedAndAssessedData.NumberOfStudents.CurrentYear);
Assert.Equal(_establishmentPerformance.PT_RET_ASSESSED_TLEV_Est_Current_Pct_Coded, result.RetainedAndAssessedData.EstablishmentAll.CurrentYear);
Assert.Equal(_establishmentPerformance.PT_RET_ASSESSED_TLEV_Est_Previous_Pct_Coded, result.RetainedAndAssessedData.EstablishmentAll.PreviousYear);
Assert.Equal(_establishmentPerformance.PT_RET_ASSESSED_TLEV_Est_Previous2_Pct_Coded, result.RetainedAndAssessedData.EstablishmentAll.TwoYearsAgo);

Assert.Equal(_laPerformance.PT_RET_ASSESSED_TLEV_LA_Current_Pct_Coded, result.RetainedAndAssessedData.LocalAuthorityAll.CurrentYear);
Assert.Equal(_laPerformance.PT_RET_ASSESSED_TLEV_LA_Previous_Pct_Coded, result.RetainedAndAssessedData.LocalAuthorityAll.PreviousYear);
Assert.Equal(_laPerformance.PT_RET_ASSESSED_TLEV_LA_Previous2_Pct_Coded, result.RetainedAndAssessedData.LocalAuthorityAll.TwoYearsAgo);

Assert.Equal(_englandPerformance.PT_RET_ASSESSED_TLEV_Eng_Current_Pct_Coded, result.RetainedAndAssessedData.EnglandAll.CurrentYear);
Assert.Equal(_englandPerformance.PT_RET_ASSESSED_TLEV_Eng_Previous_Pct_Coded, result.RetainedAndAssessedData.EnglandAll.PreviousYear);
Assert.Equal(_englandPerformance.PT_RET_ASSESSED_TLEV_Eng_Previous2_Pct_Coded, result.RetainedAndAssessedData.EnglandAll.TwoYearsAgo);
}
}

Expand Down Expand Up @@ -755,6 +769,12 @@ private void SetupData(bool isAlevelQual, bool isAcademicQual)
PT_RET_ASSESSED_AGEN_Est_Current_Pct_Coded = new CodedDouble(61.33, string.Empty, string.Empty),
PT_RET_ASSESSED_AGEN_Est_Previous_Pct_Coded = new CodedDouble(63.19, string.Empty, string.Empty),
PT_RET_ASSESSED_AGEN_Est_Previous2_Pct_Coded = new CodedDouble(59.55, string.Empty, string.Empty),

// Tech Levels
T_INSCOPE_TLEV_RET_Est_Current_Num_Coded = new CodedDouble(155, string.Empty, string.Empty),
PT_RET_ASSESSED_TLEV_Est_Current_Pct_Coded = new CodedDouble(51.33, string.Empty, string.Empty),
PT_RET_ASSESSED_TLEV_Est_Previous_Pct_Coded = new CodedDouble(53.19, string.Empty, string.Empty),
PT_RET_ASSESSED_TLEV_Est_Previous2_Pct_Coded = new CodedDouble(69.55, string.Empty, string.Empty),
};

_englandPerformance = new KS5EnglandPerformance
Expand Down Expand Up @@ -894,6 +914,11 @@ private void SetupData(bool isAlevelQual, bool isAcademicQual)
PT_RET_ASSESSED_AGEN_Eng_Current_Pct_Coded = new CodedDouble(53.11, string.Empty, string.Empty),
PT_RET_ASSESSED_AGEN_Eng_Previous_Pct_Coded = new CodedDouble(55.56, string.Empty, string.Empty),
PT_RET_ASSESSED_AGEN_Eng_Previous2_Pct_Coded = new CodedDouble(63.78, string.Empty, string.Empty),

// Retention measures - Tech Levels
PT_RET_ASSESSED_TLEV_Eng_Current_Pct_Coded = new CodedDouble(65.39, string.Empty, string.Empty),
PT_RET_ASSESSED_TLEV_Eng_Previous_Pct_Coded = new CodedDouble(61.74, string.Empty, string.Empty),
PT_RET_ASSESSED_TLEV_Eng_Previous2_Pct_Coded = new CodedDouble(62.55, string.Empty, string.Empty),
};

_laPerformance = new KS5LAPerformance
Expand Down Expand Up @@ -1010,6 +1035,11 @@ private void SetupData(bool isAlevelQual, bool isAcademicQual)
PT_RET_ASSESSED_AGEN_LA_Current_Pct_Coded = new CodedDouble(85.89, string.Empty, string.Empty),
PT_RET_ASSESSED_AGEN_LA_Previous_Pct_Coded = new CodedDouble(75.37, string.Empty, string.Empty),
PT_RET_ASSESSED_AGEN_LA_Previous2_Pct_Coded = new CodedDouble(63.27, string.Empty, string.Empty),

// Retention measures - Tech Levels
PT_RET_ASSESSED_TLEV_LA_Current_Pct_Coded = new CodedDouble(73.17, string.Empty, string.Empty),
PT_RET_ASSESSED_TLEV_LA_Previous_Pct_Coded = new CodedDouble(71.55, string.Empty, string.Empty),
PT_RET_ASSESSED_TLEV_LA_Previous2_Pct_Coded = new CodedDouble(69.89, string.Empty, string.Empty),
};

_mockKs5PerformanceRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public async Task Level3Qualifications_Displays_AverageResult_DataOverTime_Table
[InlineData(Level3.ALevel)]
[InlineData(Level3.Academic)]
[InlineData(Level3.AppliedGeneral)]
[InlineData(Level3.TechLevel)]
public async Task Level3Qualifications_Displays_RetentionMeasure_CurrentYear_Chart(Level3 level3Qualification)
{
// Arrange
Expand Down Expand Up @@ -139,6 +140,7 @@ public async Task Level3Qualifications_Displays_RetentionMeasure_CurrentYear_Cha
[InlineData(Level3.ALevel)]
[InlineData(Level3.Academic)]
[InlineData(Level3.AppliedGeneral)]
[InlineData(Level3.TechLevel)]
public async Task Level3Qualifications_Displays_RetentionMeasure_CurrentYear_Table(Level3 level3Qualification)
{
// Arrange
Expand Down Expand Up @@ -171,6 +173,7 @@ public async Task Level3Qualifications_Displays_RetentionMeasure_CurrentYear_Tab
[InlineData(Level3.ALevel)]
[InlineData(Level3.Academic)]
[InlineData(Level3.AppliedGeneral)]
[InlineData(Level3.TechLevel)]
public async Task Level3Qualifications_Displays_RetentionMeasure_DataOverTime_Chart(Level3 level3Qualification)
{
// Arrange
Expand Down Expand Up @@ -212,6 +215,7 @@ public async Task Level3Qualifications_Displays_RetentionMeasure_DataOverTime_Ch
[InlineData(Level3.ALevel)]
[InlineData(Level3.Academic)]
[InlineData(Level3.AppliedGeneral)]
[InlineData(Level3.TechLevel)]
public async Task Level3Qualifications_Displays_RetentionMeasure_DataOverTime_Table(Level3 level3Qualification)
{
// Arrange
Expand Down Expand Up @@ -253,6 +257,7 @@ public async Task Level3Qualifications_Displays_RetentionMeasure_DataOverTime_Ta
[InlineData(Level3.ALevel)]
[InlineData(Level3.Academic)]
[InlineData(Level3.AppliedGeneral)]
[InlineData(Level3.TechLevel)]
public async Task EnglishAndMathsResultsPage_Displays_RetentionMeasure_DataOverTime_Table_Click_On_ShowCurrentData(Level3 level3Qualification)
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ public async Task Get_Level3Qualifications_Info_ReturnsExpected(Level3 qualifica

if (qualification == Level3.ALevel ||
qualification == Level3.Academic ||
qualification == Level3.AppliedGeneral)
qualification == Level3.AppliedGeneral ||
qualification == Level3.TechLevel)
{
// Retained measure
Assert.Equal(["School or college", $"{fakeEstablishment.LAName} average", "England average"], model.RetainedAndAssessedData.AllData.Labels);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ public async Task Level3QualificationsPage_Displays_StudentRetention_Info(Level3
[InlineData(Level3.ALevel)]
[InlineData(Level3.Academic)]
[InlineData(Level3.AppliedGeneral)]
[InlineData(Level3.TechLevel)]
public async Task Level3QualificationsPage_Displays_RetentionMeasure_Details(Level3 qualification)
{
// Arrange
Expand Down
Loading