Skip to main content

mr_opv_entries

Table: mr_opv_entries

The mr_opv_entries table stores vaccination campaign entries for MR (Measles-Rubella) and OPV (Oral Polio Vaccine).
It tracks site details, coverage data, and the responsible vaccinator for each entry.


Columns

Column NameData TypeConstraintsDescription
idint(11)NOT NULL, AUTO_INCREMENT, PRIMARY KEYUnique identifier for each vaccination entry
vaccinator_idint(11)NOT NULLID of the vaccinator (references vaccinator.mappedId)
uc_idint(11)NOT NULLUnion council ID where the vaccination took place
district_idint(11)NOT NULLDistrict ID of the vaccination site
town_idint(11)NOT NULLTown ID of the vaccination site
site_namevarchar(255)NOT NULLName of the vaccination site
latitudedecimal(9,6)NOT NULLLatitude coordinate of the site
longitudedecimal(9,6)NOT NULLLongitude coordinate of the site
event_typeenum('FIXED','OUTREACH')NOT NULLType of vaccination event
entry_datedateNOT NULLDate of the entry
entry_timetimeNOT NULLTime of the entry
created_atdatetimeNOT NULL, DEFAULT CURRENT_TIMESTAMPTimestamp when the record was created
modified_atdatetimeNOT NULL, DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMPTimestamp when the record was last updated
coverage_mrint(11)NOT NULLNumber of children vaccinated for MR
coverage_opvint(11)NOT NULLNumber of children vaccinated for OPV
onsitetinyint(4)NOT NULLFlag indicating whether the vaccination was conducted onsite (1 = yes, 0 = no)

Indexes

  1. PRIMARY - Primary key on id
  2. fk_vaccinator_idx - Index on vaccinator_id

Foreign Key Relations

  1. fk_vaccinatorvaccinator.mappedId
    • Links each vaccination entry to the vaccinator responsible

Usage Notes

  • Captures MR and OPV vaccination campaign data, including location and coverage.
  • event_type distinguishes between fixed and outreach events.
  • latitude and longitude allow geographic tracking of vaccination sites.
  • Indexed by vaccinator_id for quick reporting of vaccinator-specific performance.