Context
stringclasses 3
values | Purpose
stringclasses 3
values |
---|---|
CREATE TABLE `tblregisteredwomen` (
`UserId` varchar(20) DEFAULT NULL,
`WomanId` varchar(20) DEFAULT NULL,
`regPregnantorMother` tinyint DEFAULT NULL,
`regWomenImage` longblob,
`regUIDNo` varchar(100) DEFAULT NULL,
`regUIDType` varchar(10) DEFAULT NULL,
`regUIDDate` varchar(20) DEFAULT NULL,
`regCountNo` int DEFAULT NULL,
`regWomanName` varchar(50) DEFAULT NULL,
`regNickName` varchar(20) DEFAULT NULL,
`regRegistrationType` int DEFAULT NULL,
`regRegistrationDate` varchar(20) DEFAULT NULL,
`regFinancialYear` varchar(10) DEFAULT NULL,
`regPlaceOfReg` varchar(15) DEFAULT NULL,
`regpregormotheratreg` tinyint(1) DEFAULT NULL,
`regHusbandName` varchar(20) DEFAULT NULL,
`regDateofBirth` varchar(20) DEFAULT NULL,
`regAge` int DEFAULT NULL,
`regCategory` varchar(15) DEFAULT NULL,
`regCaste` varchar(50) DEFAULT NULL,
`regAPLBPL` varchar(3) DEFAULT NULL,
`regReligion` varchar(15) DEFAULT NULL,
`regWhoseMobileNo` varchar(15) DEFAULT NULL,
`regPhoneNumber` varchar(20) DEFAULT NULL,
`regLMPNotKnown` tinyint(1) DEFAULT NULL,
`regLMP` varchar(10) DEFAULT NULL,
`regEDD` varchar(10) DEFAULT NULL,
`regStatusWhileRegistration` varchar(50) DEFAULT NULL,
`regADDate` varchar(20) DEFAULT NULL,
`regHusbandAge` varchar(4) DEFAULT NULL,
`regHusAgeatMarriage` varchar(4) DEFAULT NULL,
`regWifeAgeatMarriage` varchar(4) DEFAULT NULL,
`regMarriageDate` varchar(10) DEFAULT NULL,
`regEducationHus` varchar(20) DEFAULT NULL,
`regEducationWife` varchar(20) DEFAULT NULL,
`regheightUnit` tinyint DEFAULT NULL,
`regHeight` varchar(6) DEFAULT NULL,
`regWomanWeight` varchar(6) DEFAULT NULL,
`regBloodGroup` int DEFAULT NULL,
`regGravida` tinyint DEFAULT NULL,
`regPara` tinyint DEFAULT NULL,
`regLiveChildren` tinyint DEFAULT NULL,
`regAbortions` tinyint DEFAULT NULL,
`regChildMortPreg` tinyint DEFAULT NULL,
`regChildMortDel` tinyint DEFAULT NULL,
`regNoofHomeDeliveries` tinyint DEFAULT NULL,
`regLastChildAge` varchar(4) DEFAULT NULL,
`regLastChildGender` varchar(10) DEFAULT NULL,
`regLastChildWeight` int DEFAULT NULL,
`regState` varchar(20) DEFAULT NULL,
`regDistrict` varchar(20) DEFAULT NULL,
`regSubDistrict` varchar(20) DEFAULT NULL,
`regFacility` varchar(40) DEFAULT NULL,
`regFacilityType` varchar(15) DEFAULT NULL,
`regVillage` int DEFAULT NULL,
`regAreaName` varchar(100) DEFAULT NULL,
`regAddress` varchar(101) DEFAULT NULL,
`regPincode` varchar(10) DEFAULT NULL,
`regGPSLocation` varchar(50) DEFAULT NULL,
`regGPSPhoto` blob,
`regNotinRegionReason` varchar(100) DEFAULT NULL,
`regAadharCard` varchar(20) DEFAULT NULL,
`regBankName` varchar(60) DEFAULT NULL,
`regBranchName` varchar(40) DEFAULT NULL,
`regAccountNo` varchar(20) DEFAULT NULL,
`regIFSCCode` varchar(20) DEFAULT NULL,
`regRationCard` varchar(20) DEFAULT NULL,
`regVoterId` varchar(20) DEFAULT NULL,
`regJSY` int DEFAULT NULL,
`regCurrHealthRiskFactors` varchar(300) DEFAULT NULL,
`regPrevHealthRiskFactors` varchar(800) DEFAULT NULL,
`regFamilyHistoryRiskFactors` varchar(300) DEFAULT NULL,
`regOtherhealthissue` varchar(200) DEFAULT NULL,
`regOtherfamilyhistory` varchar(200) DEFAULT NULL,
`regOthersprevpreg` varchar(200) DEFAULT NULL,
`regAmberOrRedColorCode` int DEFAULT NULL,
`regInDanger` int DEFAULT NULL,
`regComplicatedpreg` int DEFAULT NULL,
`regPrematureBirth` int DEFAULT NULL,
`regriskFactors` varchar(1000) DEFAULT NULL,
`regCHriskfactors` varchar(500) DEFAULT NULL,
`regPHriskfactors` varchar(800) DEFAULT NULL,
`regrecommendedPlaceOfDelivery` varchar(200) DEFAULT NULL,
`regComments` varchar(200) DEFAULT NULL,
`LastServiceListNumber` int DEFAULT NULL,
`CurrentWomenStatus` varchar(20) DEFAULT NULL,
`DateTransferred` varchar(20) DEFAULT NULL,
`DateExpired` varchar(20) DEFAULT NULL,
`DateAborted` varchar(20) DEFAULT NULL,
`DateDeactivated` varchar(20) DEFAULT NULL,
`ReasonforDeactivation` varchar(50) DEFAULT NULL,
`OtherDeactivationReason` varchar(150) DEFAULT NULL,
`DeacComments` varchar(650) DEFAULT NULL,
`IsCompl` varchar(5) DEFAULT NULL,
`LastAncVisitDate` varchar(15) DEFAULT NULL,
`LastPncVisitDate` varchar(15) DEFAULT NULL,
`IsReferred` varchar(5) DEFAULT NULL,
`regEligibleCoupleNo` varchar(15) DEFAULT NULL,
`transId` int DEFAULT NULL,
`regUserType` varchar(10) DEFAULT NULL,
`RecordCreatedDate` varchar(16) DEFAULT NULL,
`isLMPConfirmed` int DEFAULT NULL,
`regNoofStillBirth` int DEFAULT NULL,
`regRiskFactorsByCC` varchar(800) DEFAULT NULL,
`regOtherRiskByCC` varchar(500) DEFAULT NULL,
`regCCConfirmRisk` varchar(500) DEFAULT NULL,
`regPregnancyCount` int DEFAULT NULL,
`regIsAdolescent` varchar(10) DEFAULT NULL,
`regAdolId` varchar(20) DEFAULT NULL,
`regWMortalityCapturedAt` varchar(50) DEFAULT NULL,
`RecordUpdatedDate` varchar(16) DEFAULT NULL,
`ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ;
| CREATE TABLE tblregisteredwomen
Purpose: The table stores registration details for women with information on their pregnancy/motherhood status, identification, demographics, health risks, and other related fields.
Fields:
Identifiers and User Info:
UserId: varchar(20) - User’s unique ID.
WomanId: varchar(20) - Unique ID for the woman.
regPregnantorMother: tinyint - Indicator for pregnancy or motherhood status.
regWomenImage: longblob - Stores the woman’s image.
regUIDNo: varchar(100) - Unique ID number, e.g., government ID.
regUIDType: varchar(10) - Type of unique ID (e.g., Aadhar, PAN).
Demographic and Personal Info:
regWomanName, regNickName: varchar - Full name and nickname.
regHusbandName: varchar(20) - Name of the husband (if applicable).
regDateofBirth: varchar(20) - Date of birth.
regAge: int - Age of the woman.
regCategory, regCaste: varchar - Category and caste details.
regReligion: varchar(15) - Religion.
Health & Pregnancy Information:
regBloodGroup: int - Blood group.
regGravida: tinyint - Number of pregnancies.
regPara: tinyint - Number of viable births.
regAbortions: tinyint - Number of abortions.
regHeight, regWomanWeight: varchar - Height and weight of the woman.
regLMP, regEDD: varchar(10) - Last menstrual period and estimated due date.
Contact Information:
regPhoneNumber: varchar(20) - Woman’s phone number.
regWhoseMobileNo: varchar(15) - Relationship for contact mobile (e.g., self, spouse).
Address and Location:
regState, regDistrict, regSubDistrict: varchar - State, district, and sub-district.
regVillage: int - Village identifier.
regAddress: varchar(101) - Complete address.
regPincode: varchar(10) - Postal code.
regGPSLocation, regGPSPhoto: varchar(50), blob - GPS location and photo.
Banking & ID Information:
regBankName, regBranchName: varchar - Bank and branch details.
regAccountNo, regIFSCCode: varchar - Account number and IFSC code.
regAadharCard: varchar(20) - Aadhar card number.
regVoterId: varchar(20) - Voter ID.
Health Risk Factors:
regCurrHealthRiskFactors: varchar(300) - Current health risk factors.
regPrevHealthRiskFactors: varchar(800) - Previous health risks.
regFamilyHistoryRiskFactors: varchar(300) - Family health history.
Status and Conditions:
regStatusWhileRegistration: varchar(50) - Status at registration.
regInDanger: int - Danger risk indicator.
regComplicatedpreg: int - Indicator for complicated pregnancy.
Administrative Fields:
RecordCreatedDate, RecordUpdatedDate: varchar(16) - Creation and update dates.
ServerCreatedDate, ServerUpdatedDate: timestamp - Timestamps for server operations, auto-updated. |
CREATE TABLE `tblfacilitydetails` ( `AutoId` int NOT NULL, `UserId` varchar(20) DEFAULT NULL, `FacilityName` varchar(100) DEFAULT NULL, `LocalName` varchar(250) DEFAULT NULL, `ANMName` varchar(45) DEFAULT NULL, `ANMContactNo` varchar(10) DEFAULT NULL, `BEmOCType` varchar(15) DEFAULT NULL, `BEmOCName` varchar(100) DEFAULT NULL, `BEmOCDoctor` varchar(45) DEFAULT NULL, `BEmOCContactNumber` varchar(10) DEFAULT NULL, `BEmOCDistance` varchar(100) DEFAULT NULL, `CEmOCType` varchar(25) DEFAULT NULL, `CEmOCName` varchar(100) DEFAULT NULL, `CEmOCDoctor` varchar(45) DEFAULT NULL, `CEmOCContactNumber` varchar(10) DEFAULT NULL, `CEmOCDistance` varchar(100) DEFAULT NULL, `Country` varchar(45) DEFAULT NULL, `State` varchar(45) DEFAULT NULL, `District` varchar(45) DEFAULT NULL, `Subdistrict` varchar(45) DEFAULT NULL, `PHCName` varchar(100) DEFAULT NULL, `SCName` varchar(100) DEFAULT NULL, `PanchayathName` varchar(100) DEFAULT NULL, `datecreated` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `createdby` varchar(50) DEFAULT NULL, `dateupdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updatedby` varchar(50) DEFAULT NULL, PRIMARY KEY (`AutoId`) ) ; | CREATE TABLE tblfacilitydetails
• Purpose: This table stores details of village/hamlet/ or sometime refer as facility, including contact details, geographical location, and emergency services information.
Fields:
• Identifiers:
o AutoId: int - Unique identifier for each facility record (primary key).
o UserId: varchar(20) - User ID associated with the facility record.
• Facility Details:
o FacilityName: varchar(100) - Name of the village.
o LocalName: varchar(250) - Local name or colloquial name of the facility.
• Health Worker Information:
o ANMName: varchar(45) - Name of the ANM associated with the facility.
o ANMContactNo: varchar(10) - Contact number of the ANM.
• Basic Emergency Obstetric Care (BEmOC):
o BEmOCType: varchar(15) - Type of BEmOC services available like PHC or CHC.
o BEmOCName: varchar(100) - Name of the BEmOC facility or department.
o BEmOCDoctor: varchar(45) - Doctor responsible for BEmOC services.
o BEmOCContactNumber: varchar(10) - Contact number for BEmOC facility.
o BEmOCDistance: varchar(100) - Distance to the BEmOC facility.
• Comprehensive Emergency Obstetric Care (CEmOC):
o CEmOCType: varchar(25) - Type of CEmOC services available.
o CEmOCName: varchar(100) - Name of the CEmOC facility or department.
o CEmOCDoctor: varchar(45) - Doctor responsible for CEmOC services.
o CEmOCContactNumber: varchar(10) - Contact number for the CEmOC facility.
o CEmOCDistance: varchar(100) - Distance to the CEmOC facility.
• Geographical Information:
o Country: varchar(45) - Country where the village is located.
o State: varchar(45) - State of the village.
o District: varchar(45) - District in which the village resides.
o Subdistrict: varchar(45) - Subdistrict of the village.
o PHCName: varchar(100) - Primary Health Center (PHC) associated with the village.
o SCName: varchar(100) - Sub-center name associated with the village.
o PanchayathName: varchar(100) - Name of the Panchayat.
• Administrative Information:
o datecreated: timestamp - Timestamp for when the record was created (default is current timestamp).
o createdby: varchar(50) - User ID or name of the creator.
o dateupdated: timestamp - Timestamp for the last update to the record (auto-updates on modification).
o updatedby: varchar(50) - User ID or name of the last updater.
|
CREATE TABLE `tblvisitheader` ( `AutoId` varchar(20) DEFAULT NULL, `UserId` varchar(20) DEFAULT NULL, `WomanId` varchar(20) DEFAULT NULL, `VisitNum` varchar(10) DEFAULT NULL, `visHVisitType` varchar(10) DEFAULT NULL, `visHVisitDate` varchar(20) DEFAULT NULL, `visHStatusAtVisit` varchar(10) DEFAULT NULL, `visHVisitIsAdviseGiven` varchar(5) DEFAULT NULL, `visHVisitParacetamolGiven` varchar(5) DEFAULT NULL, `visHVisitParacetamolQty` varchar(5) DEFAULT NULL, `visHVisitParacetamolNotGivenReason` varchar(20) DEFAULT NULL, `visHVisitIFAGiven` varchar(5) DEFAULT NULL, `visHVisitIFAQty` varchar(5) DEFAULT NULL, `visHVisitIFANotGivenReason` varchar(20) DEFAULT NULL, `visHVisitAlbendazoleGiven` varchar(5) DEFAULT NULL, `visHVisitAlbendazoleQty` varchar(5) DEFAULT NULL, `visHVisitAlbendazoleNotGivenReason` varchar(20) DEFAULT NULL, `visHVisitFSFAGiven` varchar(5) DEFAULT NULL, `visHVisitFSFAQty` varchar(5) DEFAULT NULL, `visHVisitFSFANotGivenReason` varchar(20) DEFAULT NULL, `visHWeight` varchar(6) DEFAULT NULL, `visHWeightDate` varchar(15) DEFAULT NULL, `visHPulse` varchar(10) DEFAULT NULL, `visHPulseDate` varchar(15) DEFAULT NULL, `visHBP` varchar(10) DEFAULT NULL, `visHBPDate` varchar(15) DEFAULT NULL, `visHTemperature` varchar(5) DEFAULT NULL, `visHTemperatureDate` varchar(15) DEFAULT NULL, `visHUrineprotein` varchar(10) DEFAULT NULL, `visHUrineproteinDate` varchar(15) DEFAULT NULL, `visHHb` varchar(5) DEFAULT NULL, `visHHbDate` varchar(15) DEFAULT NULL, `visHVisitIsReferred` varchar(10) DEFAULT NULL, `visHVisitReferredToFacilityType` varchar(50) DEFAULT NULL, `visHVisitReferredToFacilityName` varchar(100) DEFAULT NULL, `visHReferralSlipNumber` varchar(10) DEFAULT NULL, `visHVisitComments` varchar(100) DEFAULT NULL, `visHCompl` varchar(5) DEFAULT NULL, `visHResult` varchar(5000) DEFAULT NULL, `visHAdvise` varchar(2500) DEFAULT NULL, `visHUserType` varchar(10) DEFAULT NULL, `visHChildSymptoms` varchar(2000) DEFAULT NULL, `transId` int DEFAULT NULL, `visHStatus` varchar(45) DEFAULT NULL, `Recordcreateddate` varchar(16) DEFAULT NULL, `Recordupdateddate` varchar(16) DEFAULT NULL, `vishjointUsers` varchar(22) DEFAULT NULL, `vishjointUsersOthers` varchar(100) DEFAULT NULL, `userName` varchar(45) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | CREATE TABLE tblvisitheader
• Purpose: This table records details for each visit associated with a user and a woman, tracking health parameters, visit outcomes, and any administered medications.
Fields:
• Identifiers:
o AutoId: varchar(20) - Unique identifier for the visit record.
o UserId: varchar(20) - Identifier of the user associated with the visit.
o WomanId: varchar(20) - Identifier of the woman associated with the visit.
• Visit Information:
o VisitNum: varchar(10) - The visit number or sequence.
o visHVisitType: varchar(10) - Type of the beneficiary to whom the visit done (e.g ANC or PNC).
o visHVisitDate: varchar(20) - Date of the visit.
o visHStatusAtVisit: varchar(10) - Status of the woman at the time of the visit.
o visHVisitIsAdviseGiven: varchar(5) - Whether any advice was given (Y/N).
• Medication and Supplement Details:
o visHVisitParacetamolGiven: varchar(5) - Whether paracetamol was given (Y/N).
o visHVisitParacetamolQty: varchar(5) - Quantity of paracetamol given.
o visHVisitParacetamolNotGivenReason: varchar(20) - Reason if paracetamol was not given.
o visHVisitIFAGiven: varchar(5) - Whether IFA (Iron and Folic Acid) was given(Y/N).
o visHVisitIFAQty: varchar(5) - Quantity of IFA given.
o visHVisitIFANotGivenReason: varchar(20) - Reason if IFA was not given.
o visHVisitAlbendazoleGiven: varchar(5) - Whether Albendazole was given (Y/N).
o visHVisitAlbendazoleQty: varchar(5) - Quantity of Albendazole given.
o visHVisitAlbendazoleNotGivenReason: varchar(20) - Reason if Albendazole was not given.
o visHVisitFSFAGiven: varchar(5) - Whether FSFA (Folic Supplement) was given.
o visHVisitFSFAQty: varchar(5) - Quantity of FSFA given.
o visHVisitFSFANotGivenReason: varchar(20) - Reason if FSFA was not given.
• Health Parameters:
o visHWeight: varchar(6) - Weight of the woman at the visit.
o visHWeightDate: varchar(15) - Date when weight was measured.
o visHPulse: varchar(10) - Pulse rate at the visit.
o visHPulseDate: varchar(15) - Date when pulse was recorded.
o visHBP: varchar(10) - Blood pressure reading at the visit.
o visHBPDate: varchar(15) - Date when blood pressure was recorded.
o visHTemperature: varchar(5) - Temperature recorded at the visit.
o visHTemperatureDate: varchar(15) - Date when temperature was recorded.
o visHUrineprotein: varchar(10) - Urine protein level.
o visHUrineproteinDate: varchar(15) - Date for urine protein test.
o visHHb: varchar(5) - Hemoglobin (Hb) level.
o visHHbDate: varchar(15) - Date for Hb test.
• Referral Information:
o visHVisitIsReferred: varchar(10) - If the woman was referred (Y/N).
o visHVisitReferredToFacilityType: varchar(50) - Type of the facility referred to.
o visHVisitReferredToFacilityName: varchar(100) - Name of the facility referred to.
o visHReferralSlipNumber: varchar(10) - Referral slip number, if provided.
• Additional Details:
o visHVisitComments: varchar(100) - Any additional comments from the visit.
o visHCompl: varchar(5) - Specific complaints noted during the visit (Y/N).
o visHResult: varchar(5000) - Visit results or outcomes.
o visHAdvise: varchar(2500) - Advice given to the woman at the visit.
o visHUserType: varchar(10) - Type of the user conducting the visit.
o visHChildSymptoms: varchar(2000) - Symptoms observed in the child (if applicable).
• Transaction & Record Information:
o transId: int - Transaction ID associated with the visit.
o visHStatus: varchar(45) - Status of the visit record.
o Recordcreateddate: varchar(16) - Date when the record was initially created.
o Recordupdateddate: varchar(16) - Date when the record was last updated.
o vishjointUsers: varchar(22) - Joint users associated with the visit.
o vishjointUsersOthers: varchar(100) - Other joint users, if any.
• Administrative Information:
o userName: varchar(45) - Name of the user conducting the visit.
o ServerCreatedDate: timestamp - Server timestamp when the record was created (default is current timestamp).
o ServerUpdatedDate: timestamp - Server timestamp for last update (auto-updates on modification).
|
No dataset card yet
- Downloads last month
- 3