Project

General

Profile

Actions

Activity #3613

closed

Feature #63: DigiPatho Web -- Development, Validation, Certification and Deployment

Feature #3602: Development of DigiPatho.Global Application

Filter villages based on LSG

Added by Thara S Pillai about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Start date:
05/19/2025
Due date:
% Done:

100%

Estimated time:
Planned Due Date:
05/21/2025

Files

public_mas_village_lsg_mapping.sql (162 KB) public_mas_village_lsg_mapping.sql Thara S Pillai, 05/21/2025 09:43 AM
Actions #1

Updated by Chris Elsa John about 1 year ago

as of now no lg_code in mas_lsg table matches with the lg_code in mas_village

Actions #2

Updated by Chris Elsa John about 1 year ago

  • Status changed from New to Feedback

as of now no lg_code in mas_lsg table matches with the lg_code in mas_village. so as of now the entire village is being listed.

Actions #3

Updated by Thara S Pillai about 1 year ago

Create a table mapping village and lsg as follows :

CREATE TABLE public.mas_village_lsg_mapping (
village_id INTEGER NOT NULL,
lsg_id INTEGER NOT NULL,
last_chg_by INTEGER,
last_chg_dt TIMESTAMP WITHOUT TIME ZONE DEFAULT now(),
status VARCHAR DEFAULT 'y'::character varying,
CONSTRAINT mas_village_lsg_mapping_pkey PRIMARY KEY,
CONSTRAINT fk_mas_village_lsg_village_id FOREIGN KEY (village_id)
REFERENCES public.mas_village(village_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT fk_ph_ward_village_last_chg_by FOREIGN KEY (last_chg_by)
REFERENCES public.users(user_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;

ALTER TABLE public.mas_village_lsg_mapping
OWNER TO postgres;

Import data for the table
Attached...change schema name from public to dp. and make changes to insert sctipt as needed for import.

Use the village-lsg mapping table for filtering villages based on selected LSG.

Actions #4

Updated by Thara S Pillai about 1 year ago

  • Status changed from Feedback to In Progress
Actions #5

Updated by Thara S Pillai about 1 year ago

Data level correction to map district ID of village-lsg table

Actions #6

Updated by Thara S Pillai about 1 year ago

  • % Done changed from 0 to 90

Testing pending

Actions #7

Updated by Thara S Pillai about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF