Activity #3324
Updated by Thara S Pillai over 1 year ago
check feasibility of the following for role-based feature access and study filtering for radiologists *1. 1. Institution Management* Management Database Setup: Maintain a lookup table with institution details: CREATE TABLE institutions ( id SERIAL PRIMARY KEY, name VARCHAR(255), address TEXT, …….. other_details JSONB ); Keycloak Group Management: • Create Keycloak Groups for each institution using Keycloak APIs. • Map Institution IDs from the database to the corresponding Keycloak Group IDs for backend integration. Create a db record and Keycloak group for NIMHANS, Bangalore and assign user to the group. *2. 2. Role-Based feature Access Control* Control • Roles to be Created in Keycloak: o basic-viewer: Provides basic viewing permissions. (default features and tools of OHIF viewer) o ai-segmentation: Grants access to AI-based segmentation features. o ai-llm-diagnosis: Enables AI-based diagnostic tools. • Role Mapping: o Assign roles to users through Keycloak Admin Console or Keycloak API. o A user interface in application to create/modify users with roles. (future vesions) *3. 3. Front-End Role Management* Management • Decode Authentication on the front-end to extract roles and institutional details from the token payload. • Implement feature gating based on the decoded roles (enable/disable of AI based feature icons based on roles) *4. 4. Patient List Filtering & Study Assignment:* Assignment: • Store Metadata in the Database during image upload or assignment to a radiologist: CREATE TABLE image_metadata ( id SERIAL PRIMARY KEY, user_id INT REFERENCES users(id), -- Assigned radiologist patient_id VARCHAR(255), patient_name VARCHAR(255), study_instance_uid VARCHAR(255), study_date DATE, dicom_study_url TEXT, -- URL to fetch series from PACS modality VARCHAR(50), ….. created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); • Patient List Rendering: Fetch patient list from the image_metadata table for the logged-in radiologist • On patient selection, use the dicom_study_url to query the PACS for multiple modality series. (Assuming: All modalities under one study are assigned to one radiologist. Modality/series wise assignment not considered.) *Create detailed sub-level activities for development and assign resources.*