- Published
- October 13, 2025
- Last Updated
- October 17, 2025
- Author
- FdR
Student Patient
HEKLKLLO.
The Student Patient doctype stores a student’s essential health profile for school nurses and authorized administrators. It centralizes allergies, relevant medical history, vaccination records, and a short, shareable note for teaching staff.
Module: Health
Naming: PAT-{YYYY}-{####}
One record per student: student is required and unique.
This document mirrors the Student record for identity details (name, preferred name, photo) and adds medical‑specific fields and a vaccination child table.
Identity & basics
student(Link → Student, reqd, unique)student_name(Data, fetched, read‑only)preferred_name(Data, fetched, read‑only)student_age(Data, read‑only; computed in form UI)photo(Attach Image, read‑only; synced from Student on validate)student_info(HTML; compact info panel rendered by JS)
Vitals
blood_group(Select: A Positive, A Negative, AB Positive, AB Negative, B Positive, B Negative, O Positive, O Negative)status(Select: Active, Disabled)completion_state(Select: Completed, Missing Info)
Allergies & medical history
allergies(Check)- Details:
food_allergies,insect_bites,medication_allergies,others - History (Small Text fields):
asthma,seizures,bone_joints_scoliosis,blood_disorder_info,fainting_spells,g6pd,hearing_problems,recurrent_ear_infections,speech_problem,vision_problem,birth_defect,bladder__bowel_problems,diabetes,heart_problems,recurrent_nose_bleeding,dental_problems,headache_migraine
Other data
diet_requirements(Small Text)medical_surgeries__hospitalizations(Text)other_medical_information(Text Editor) — nurse notesmedical_info(Text Editor) — brief, shareable note for instructors (shown via red‑cross indicator on student cards)
Vaccinations
vaccinations(Table → Student Patient Vaccination)- Child fields:
vaccine_name(Data),date(Date),vaccination_proof(Attach Image),additional_notes(Data)
- Child fields:
- Go to Desk → Health → Student Patient → New.
- Select Student. The form fetches name/preferred name, shows Student Info, and computes Student Age.
- Set Blood Group and Status.
- If applicable, tick Any allergies and fill detail fields.
- Add medical history and Other Data as needed.
- Add Vaccinations rows (name + date; attach proof if available).
- (Optional) Add a concise Medical Info note for instructors.
- Save.
• Guardian Details shows guardians (name, relation, email, mobile).
• Student Visit opens a new Student Patient Visit prefilled with student, this patient record, and arrival time.
- On validate,
photois synced from Student.student_image so nurses always see the latest picture. studentmust be set and is unique (one health record per student).- Allergy detail fields are relevant when
allergiesis checked.
Teachers do not access full Student Patient records. Use Medical Info to surface only minimal, essential details to instructors.
Controller (Python)
validate()→sync_photo_from_student()copiesStudent.student_imageto this doc’sphoto.Whitelisted:
get_student_basic_info(student)— returns basic student profile (enforces read permission on Student Patient).get_guardian_details(student_name)— returns guardians (name, relation, email, mobile) from the linked Student.
Client script (JS)
- On load/refresh: fetches basic info, renders the Student Info panel, computes and sets
student_age(in years/months/days). - Adds Guardian Details dialog and Student Visit quick‑action.
- On load/refresh: fetches basic info, renders the Student Info panel, computes and sets
Legend: 🟢 Allowed · ◻️ Not allowed
| Role | Read | Write | Create | Delete |
|---|---|---|---|---|
| System Manager | 🟢 | 🟢 | 🟢 | 🟢 |
| Nurse | 🟢 | 🟢 | 🟢 | 🟢 |
| Admission Manager | 🟢 | 🟢 | 🟢 | 🟢 |
| Admission Officer | 🟢 | 🟢 | 🟢 | 🟢 |
| Academic Admin | 🟢 | ◻️ | ◻️ | ◻️ |
| Academic Assistant | 🟢 | ◻️ | ◻️ | ◻️ |
> Keep scope tight: only nurses and necessary admins should have write access. For teaching staff, rely on the short Medical Info note.
- Student (Link) — identity & demographics source
- Student Patient Vaccination (Child Table) — vaccination entries
- Student Patient Visit — logs of nurse‑office visits
- Guardian (via Student.guardians) — surfaced by Guardian Details
Use root‑absolute slugs:/docs/en/student-patient, /docs/en/student, /docs/en/student-patient-visit.
See also
student-patient-visitstudent-logstudent-group
- Header after selecting Student (shows Student Info and Age).
- Allergies section toggled on with details.
- Vaccinations table with a sample entry and proof image.
- Guardian Details dialog.
- Student Visit button in the form menu.
- Auto‑set
completion_state = Completedwhen core fields are filled. - A concise Health Summary print format (field‑trip friendly).
- List‑view indicators for Missing Info and allergy presence.
- Optional school‑level toggle limiting edit rights to Nurse only.