Skip to content

Commit 4277bb5

Browse files
authored
Update Learning Credential data model (#222)
1 parent b0e847e commit 4277bb5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/app/core/constants/attestation-definitions.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,15 @@ export const LEARNING_CREDENTIAL_ATTESTATION: AttestationDefinition = {
171171
{identifier: "achievement_description", attribute: "Achievement Description", selectivelyDisclosable: "never"},
172172
{identifier: "learning_outcomes", attribute: "Learning Outcomes"},
173173
{identifier: "assessment_grade", attribute: "Assessment Grade"},
174+
{identifier: "language_of_classes", attribute: "Language of classes", selectivelyDisclosable: "never"},
175+
{identifier: "learner_identification", attribute: "Learner identification"},
176+
{identifier: "expected_study_time", attribute: "Expected study time"},
177+
{identifier: "level_of_learning_experience", attribute: "Level of learning experience"},
178+
{identifier: "form_of_participation", attribute: "Form of participation"},
179+
{identifier: "types_of_quality_assurance", attribute: "Types of quality assurance"},
180+
{identifier: "prerequisites_to_enroll", attribute: "Prerequisites to enroll"},
181+
{identifier: "evaluator_verification", attribute: "Evaluator verification"},
182+
{identifier: "integration_stackability_options", attribute: "Integration or Stackability options"},
174183
]
175184
}
176185

src/app/core/constants/attestations-per-format.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ function sdJwtVcAttributeClaimQuery(attribute: DataElement, attestationType: Att
104104
return ['nationalities', null];
105105
} else if (attestationType === AttestationType.LEARNING_CREDENTIAL && resolvedAttribute === "learning_outcomes") {
106106
return ["learning_outcomes", null];
107+
} else if (attestationType === AttestationType.LEARNING_CREDENTIAL && resolvedAttribute === "types_of_quality_assurance") {
108+
return ["types_of_quality_assurance", null];
109+
} else if (attestationType === AttestationType.LEARNING_CREDENTIAL && resolvedAttribute === "prerequisites_to_enroll") {
110+
return ["prerequisites_to_enroll", null];
111+
} else if (attestationType === AttestationType.LEARNING_CREDENTIAL && resolvedAttribute === "evaluator_verification") {
112+
return ["evaluator_verification", null];
107113
} else {
108114
return resolvedAttribute.split('.');
109115
}

0 commit comments

Comments
 (0)