Activity #3324
closedModule #3142: Development
check feasibility .. role-based feature access and study filtering for radiologists
50%
Description
check feasibility of the following for role-based feature access and study filtering for radiologists
1. Institution Management
Database Setup: Maintain a lookup table with institution details:
CREATE TABLE institutions (
id SERIAL PRIMARY KEY,
name VARCHAR,
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. Role-Based feature Access 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. Front-End Role 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. Patient List Filtering & Study 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,
patient_name VARCHAR,
study_instance_uid VARCHAR,
study_date DATE,
dicom_study_url TEXT, -- URL to fetch series from PACS
modality VARCHAR,
…..
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.
Updated by Kiran Raj over 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 50