Skip to main content

women

Table Name: women

The women table stores demographic, marital, and enrollment-related information about women. It plays a crucial role in tracking data for programs such as maternal health, vaccination, and other social initiatives.


Columns

Column NameData TypeConstraintsDescription
mappedIdint(11)Primary Key, Not NullA unique identifier for each woman.
firstNamevarchar(30)NullableFirst name of the woman.
middleNamevarchar(30)NullableMiddle name of the woman.
lastNamevarchar(30)NullableLast name of the woman.
birthdatedatetimeNullableBirthdate of the woman.
estimatedBirthdatetinyint(1)NullableIndicates whether the birthdate is estimated (1 for true, 0 for false).
fatherFirstNamevarchar(30)NullableFirst name of the woman's father.
fatherLastNamevarchar(30)NullableLast name of the woman's father.
fatherMiddleNamevarchar(30)NullableMiddle name of the woman's father.
husbandFirstNamevarchar(30)NullableFirst name of the woman's husband (if married).
husbandLastNamevarchar(30)NullableLast name of the woman's husband (if married).
husbandMiddleNamevarchar(30)NullableMiddle name of the woman's husband (if married).
maritalStatusvarchar(30)NullableMarital status of the woman (e.g., Single, Married, Divorced).
nicvarchar(20)NullableNational identification card (NIC) number of the woman.
nicOwnerFirstNamevarchar(30)NullableFirst name of the NIC owner (if not the woman).
nicOwnerLastNamevarchar(30)NullableLast name of the NIC owner.
nicOwnerRelationvarchar(50)NullableRelationship between the NIC owner and the woman.
domicilevarchar(30)NullableDomicile of the woman.
dateEnrolleddatetimeNullableDate when the woman was enrolled in the program.
dateOfCompletiondatetimeNullableDate when the woman completed the program.
terminationDatedatetimeNullableDate when the woman's enrollment was terminated.
terminationReasonvarchar(255)NullableReason for termination of enrollment.
statusvarchar(20)Not Null, Default 'ENROLLMENT'Current status of the woman in the program (e.g., ENROLLMENT, TERMINATED).
enrollmentVaccineIdsmallint(6)Nullable, Foreign KeyLinks to the vaccine table to indicate the vaccine associated with enrollment.
descriptionvarchar(255)NullableAdditional descriptive information about the woman.
createdByUserIdint(11)Nullable, Foreign KeyLinks to the user table, identifying the user who created the record.
createdDatedatetimeNullableDate when the record was created.
lastEditedByUserIdint(11)Nullable, Foreign KeyLinks to the user table, identifying the user who last edited the record.
lastEditedDatedatetimeNullableDate when the record was last edited.
pregnantStatusvarchar(45)NullableIndicates the pregnancy status of the woman.
isRegistryEnrollmenttinyint(1)Nullable, Default 0Indicates whether the woman is enrolled in a registry (1 for true, 0 for false).
motherTonguevarchar(45)NullableThe primary language spoken by the woman.
medicalRecordNumbervarchar(30)NullableMedical record number associated with the woman.
isConvertedtoBirthRegistrytinyint(1)Nullable, Default 0Indicates if the woman’s data has been converted to a birth registry.

Indexes

  1. Primary Key:
    • mappedId: Ensures uniqueness for each record.
  2. Foreign Key Indexes:
    • women_lastEditedByUserId_user_mappedId_FK: Optimizes lookups for lastEditedByUserId and enforces the relationship with the user table.
    • women_createdByUserId_user_mappedId_FK: Optimizes lookups for createdByUserId and enforces the relationship with the user table.
    • women_enrVaccId_vaccine_vaccId_idx: Links enrollmentVaccineId to the vaccine table.

Foreign Key Relationships

  1. user table:
    • createdByUserId: Links to the user who created the record.
    • lastEditedByUserId: Links to the user who last edited the record.
  2. vaccine table:
    • enrollmentVaccineId: Links to the vaccine associated with the woman's enrollment.

Usage Notes

  • Purpose:
    • The women table provides a comprehensive data structure for tracking personal, medical, and program-related information about women in health programs.
    • Key fields such as status, pregnantStatus, and enrollmentVaccineId facilitate monitoring and reporting.
  • Data Quality:
    • Ensure standardization in fields like maritalStatus and pregnantStatus by using predefined values.
    • Verify consistency of nic and related owner information for proper identification.
  • Query Optimization:
    • Indexes on createdByUserId, lastEditedByUserId, and enrollmentVaccineId support efficient querying and relationship traversal.