Interactive visualization of the Magician Platform's compliance monitoring system
Track participants through the complete compliance journey
See how easy it is to integrate the Magician Platform into your project
// Create VR Enrollment
const enrollment = await fetch('/api/vr/enrollment', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
userId: 'user-123',
vrAgency: 'State VR Agency',
vrCounselor: 'Jane Smith',
vrCounselorEmail: 'jane@vr.gov',
programType: 'self_employment',
currentPhase: 'assessment',
status: 'active'
})
});
const result = await enrollment.json();
console.log('Enrollment created:', result.id);
// Record VR Service
const service = await fetch('/api/vr/services', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
enrollmentId: 'enrollment-123',
serviceDate: new Date(),
serviceType: 'job_coaching',
serviceCost: 500.00,
serviceProvider: 'ABC Coaching Services',
serviceOutcome: 'Participant gained interview skills',
isCompliant: true,
regulationReference: '34 CFR 361.48',
approvedByVrCounselor: true
})
});
const serviceResult = await service.json();
console.log('Service recorded:', serviceResult.id);
// Track Milestone
const milestone = await fetch('/api/vr/milestones', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
enrollmentId: 'enrollment-123',
milestoneName: 'Complete job skills training',
targetDate: '2024-03-15',
status: 'in_progress',
verificationDoc: 'Training certificate uploaded'
})
});
// Update milestone status
await fetch(`/api/vr/milestones/${milestone.id}`, {
method: 'PUT',
body: JSON.stringify({
status: 'completed',
completionDate: new Date()
})
});
// Record Employment Outcome
const outcome = await fetch('/api/workforce/outcomes', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
userId: 'user-123',
jobTitle: 'Software Developer',
employer: 'Tech Company Inc',
startDate: new Date(),
wagePerHour: 25.00,
hoursPerWeek: 40,
employmentType: 'full_time',
source: 'vr_placement',
accommodationsProvided: 'Remote work, flexible hours'
})
});
// Track retention milestones
await fetch(`/api/workforce/outcomes/${outcome.id}/retention`, {
method: 'POST',
body: JSON.stringify({
retentionCheck90Day: true,
verificationDate: new Date()
})
});
Start using the Magician Platform's compliance system in your project today
View Integration Guide View on GitHub