The user wants a "field placement compliance tracker" with specific categories:
- Vaccinations
- Checks (likely background checks, police checks, working with children checks)
- Training (modules, certifications)
This sounds like a tool for students (nursing, social work, education) or employees going into external organizations (hospitals, schools, NGOs) for practical work experience.
I need to decide on the format. Since I am a text-based AI, I cannot build a fully functional hosted web application or a downloadable .exe file. I can, however, provide:
- A conceptual design/schema: How the data should be structured.
- A spreadsheet template (CSV/Excel description): The most common way these things are tracked manually.
- A simple database code snippet (SQL/Python/JavaScript): For someone wanting to build the actual software.
- A user interface mockup (HTML/CSS): A visual representation of what the tracker might look like.
Let's aim for a comprehensive solution that includes a Spreadsheet Structure (for immediate use) and a Simple Web App Prototype (HTML/JS) that runs in a single file for the user to test immediately. This provides immediate utility and a vision for a more robust tool.
Plan:
-
Define the Data Model:
- User/Student: Name, ID, Email, Program.
- Requirement: Name, Category (Vax, Check, Training), Description, Validity Period (e.g., 3 years), Proof required.
- Status: Complete, Pending, Expiring Soon, Expired, Date of Completion, Expiry Date, File Link.
-
Solution 1: Spreadsheet/Excel Template Structure:
- Columns needed: Name, ID, Item Type, Item Name, Status, Date Completed, Expiry Date, Verified By, Notes.
-
Solution 2: Simple Web App (Single File HTML/JS):
- This is the "cool" part. I will write code that the user can save as an
.html file and open in their browser.
- Features:
- Add a person.
- Add a requirement (Vax, Check, Training).
- Toggle status.
- Visual cues (Green for complete, Red for missing/expired).
- Local Storage (so data persists if they refresh).
Drafting the Web App logic:
- UI: A dashboard. A table of compliance items.
- Inputs: Form to add a new entry.
- Logic: Calculate if expired based on date.
Refining the content:
- Vaccinations: COVID-19, Flu, Hep B, MMR, Varicella.
- Checks: Police Check, Working with Children (WWCC), Vulnerable Sector Check.
- Training: CPR/First Aid, Fire Safety, Manual Handling, Privacy/Mandatory Reporting.
Let's write the code. I'll focus on a self-contained HTML/CSS/JS solution because it's interactive and answers "Build a..." better than just text instructions.
Step-by-Step Implementation Plan for the HTML file:
- CSS: Clean, modern look (card layout for requirements, status badges).
- HTML: Structure with a form to add requirements and a list to view them.
- JS:
requirements array to store data.
render() function to display the table.
addRequirement() function.
checkExpiry() helper.
Self-Correction during drafting: A full database is too complex to ask a user to set up (SQL server, Python env). A client-side app using localStorage is zero-config. I will provide that.
I will also provide a Database Schema (SQL) for if they want to scale this up later.
Final Output Structure:
- Conceptual Overview: Brief explanation of the categories.
- Option 1: Spreadsheet (CSV) Template: For quick manual use.
- Option 2: Interactive Web App (HTML/JS): A copy-paste tool to run locally.
- Option 3: Database Schema (SQL): For developers.
Let's focus on the Interactive Web App as the primary deliverable, as it's the most helpful.
Details for the App:
- Categories: Tabs or Filters? Filters are better.
- Status logic:
Valid: Date is present and not expired.
Expiring Soon: < 30 days.
Expired: Date past.
Pending: No date.
Let's write the code.
This solution provides a complete Field Placement Compliance Tracker. I have designed this as a Single Page Application (HTML/CSS/JS) that you can save as a file and run immediately in your browser without needing a server.
It includes logic for Vaccinations, Police/Background Checks, and Training, with automatic status indicators (Valid, Expiring Soon, Expired).
Part 1: The Interactive Web Tool
Instructions:
- Copy the code below.
- Save it as
compliance_tracker.html.
- Open it in any web browser (Chrome, Edge, Firefox).
- Data is saved in your browser's Local Storage, so it persists even if you close the tab.
Part 2: Database Schema (For Scaling)
If you are building this into a larger system (like a university portal) using SQL, here is the recommended database structure.
Table: users
id (PK)
first_name
last_name
email
role (Student, Faculty, Admin)
Table: compliance_items
id (PK)
name (e.g., "Flu Shot", "Police Check")
category (Vaccination, Check, Training)
validity_duration_days (Integer, e.g., 365 for annual training. NULL for lifetime validity)
Table: user_compliance
id (PK)
user_id (FK)
item_id (FK)
completion_date (Date)
expiry_date (Date - Calculated field or manual entry)
status (Enum: Pending, Approved, Rejected)
file_path (Link to uploaded PDF/Image)
reviewer_notes (Text)
Part 3: Recommended Workflow
- Vaccinations:
- Students upload their immunization records.
- Compliance Logic: Often does not expire (unless it's an annual flu shot).
- Checks (Background):
- Students upload PDF certificates.
- Compliance Logic: Hard expiry date (e.g., 3 years for Police Checks).
- Training:
- Students select from a dropdown (e.g., "Fire Safety").
- Compliance Logic: Renewal required annually.
- Pro Tip: Use color coding (Green/Red) on the main dashboard to instantly see who is "Placement Ready."