def get_above_table_items(self): prof = self.get_professional() if self.should_show_assigned(): button_name = 'Show Unassigned Patients' button_link = reverse('accounts:manage-professionals-patients', args=[prof.id]) options = [ GenesisDropdownOption( 'Unassign Patients', reverse( 'accounts:manage-professionals-patients-batch-unassign', args=[prof.id])) ] else: button_name = 'Show Assigned Patients' button_link = reverse( 'accounts:manage-professionals-patients-assigned', args=[prof.id]) options = [ GenesisDropdownOption( 'Assign Patients', reverse( 'accounts:manage-professionals-patients-batch-assign', args=[prof.id])) ] return [ GenesisAboveTableButton(button_name, button_link), GenesisAboveTableDropdown(options) ]
def get_above_table_items(self): group = self.get_group() if group is None: return [] if self.request.user.is_admin(): add_url = reverse('accounts:manage-groups-professionals-create', args=[group.id]) delete_url = reverse( 'accounts:manage-groups-professionals-batch-delete', args=[group.id]) import_url = reverse('accounts:manage-groups-professionals-import', args=[group.id]) else: add_url = reverse('accounts:manage-professionals-create') delete_url = reverse('accounts:manage-professionals-batch-delete') import_url = reverse('accounts:manage-professionals-import') items = [ GenesisAboveTableButton('Add Professional', add_url), GenesisAboveTableButton('Import Professionals', import_url) ] if self.request.user.is_admin(): items.append( GenesisAboveTableDropdown( [GenesisDropdownOption('Delete', delete_url)])) return items
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption('Hide From Log', reverse('logs:audit-qa-hide')) ]) ]
def get_above_table_items(self): group = self.get_group() if group: if self.request.user.is_admin(): import_link = 'accounts:manage-groups-payors-import' add_link = 'accounts:manage-groups-payors-create' del_link = 'accounts:manage-groups-payors-batch-delete' link_args = [group.id] else: import_link = 'accounts:manage-payors-import' add_link = 'accounts:manage-payors-create' del_link = 'accounts:manage-payors-batch-delete' link_args = [] add_url = reverse(add_link, args=link_args) import_url = reverse(import_link, args=link_args) del_url = reverse(del_link, args=link_args) above_table_content_items = [ GenesisAboveTableButton('Add Payor/TPA', add_url), GenesisAboveTableButton('Import Payors/TPA', import_url), GenesisAboveTableDropdown( [GenesisDropdownOption('Delete', del_url)], required_user_types=['admin']) ] else: above_table_content_items = [] return above_table_content_items
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption( 'Inspect Devices', reverse('gdrives:batch-inspect-reworked')) ]) ]
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption('Migrate Readings', reverse('logs:audit-orphaned-convert')), GenesisDropdownOption('Hide From Log', reverse('logs:audit-orphaned-hide')) ]) ]
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption( 'Remove from Watch List', reverse('accounts:batch-remove-from-watch-list') ) ]) ]
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption( 'Convert and Migrate to Patient', reverse('logs:audit-control-log-convert')), GenesisDropdownOption('Hide From Log', reverse('logs:audit-control-log-hide')) ]) ]
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption( 'Recover Readings', reverse('gdrives:batch-recover-readings')) ]), GenesisAboveTableButton( 'RMA Determination Report', reverse('gdrives:configure-rma-summary-report')) ]
def get_above_table_items(self): return [ GenesisAboveTableButton('Add Alert', reverse('alerts:alerts-new')), GenesisAboveTableDropdown([ GenesisDropdownOption('Enable', reverse('alerts:batch-enable')), GenesisDropdownOption('Disable', reverse('alerts:batch-disable')), GenesisDropdownOption('Delete', reverse('alerts:batch-delete')) ]) ]
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption( 'Add to Watch List', reverse('accounts:batch-add-to-watch-list')), GenesisDropdownOption( 'Remove from Watch List', reverse('accounts:batch-remove-from-watch-list')), ]), CaregiverQueryItem() ]
def get_above_table_items(self): group = self.get_group() if group: add_link = reverse('accounts:manage-groups-demo-create', args=[group.id]) del_link = reverse('accounts:manage-groups-demo-batch-delete', args=[group.id]) return [ GenesisAboveTableButton('Add Demo Patient', add_link), GenesisAboveTableDropdown( [GenesisDropdownOption('Delete', del_link)]) ] return []
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption( 'Recover Readings', reverse('gdrives:batch-recover-readings')), GenesisDropdownOption( 'Mark Failed Delivery', reverse('gdrives:batch-mark-failed-delivery')), GenesisDropdownOption( 'Assign to Rx Partner', reverse('gdrives:batch-assign-rx-partner')) ]) ]
def get_above_table_items(self): return [ GenesisAboveTableDropdown([ GenesisDropdownOption( 'Assign to API Partner', reverse('gdrives:batch-assign-apipartner')), GenesisDropdownOption( 'Assign to Rx Partner', reverse('gdrives:batch-assign-rx-partner')) ]), GenesisAboveTableButton('Assign by CSV', reverse('gdrives:assign-by-csv')), GenesisAboveTableButton('Build Carton', reverse('gdrives:add-warehouse-carton')) ]
def get_above_table_items(self): return [ GenesisAboveTableButton( 'Add Warehouse Carton', reverse('gdrives:add-warehouse-carton') ), GenesisAboveTableButton( 'Generate Barcodes', reverse('gdrives:generate-warehouse-carton-labels')), GenesisAboveTableDropdown( [GenesisDropdownOption( 'Assign to Partner', reverse('gdrives:batch-assign-carton-to-rx'))] ) ]
def get_above_table_items(self): items = [] group = self.get_group() user = self.get_user() filter_options = [ GenesisDropdownOption('Assigned', 'assigned'), GenesisDropdownOption('Unassigned', 'unassigned') ] dropdown_options = [] if user.is_admin(): filter_options.extend([ GenesisDropdownOption('Demo', 'demo'), GenesisDropdownOption('Partner', 'partner') ]) dropdown_options.extend([ GenesisDropdownOption('Assign to Group', reverse('gdrives:batch-assign')), GenesisDropdownOption('Unassign From Group', reverse('gdrives:batch-unassign')), GenesisDropdownOption( 'Assign to API Partner', reverse('gdrives:batch-assign-apipartner')), GenesisDropdownOption( 'Recover Readings', reverse('gdrives:batch-recover-readings')) ]) if group: add_link_name = 'accounts:manage-groups-devices-create' add_link_args = [group.id] import_link_name = 'accounts:manage-groups-devices-import-csv' import_link_args = [group.id] else: add_link_name = 'gdrives:new' add_link_args = [] import_link_name = 'gdrives:import' import_link_args = [] add_link = reverse(add_link_name, args=add_link_args) import_link = reverse(import_link_name, args=import_link_args) items.extend([ GenesisAboveTableButton('Add Device', add_link), GenesisAboveTableButton('Import Devices CSV', import_link) ]) dropdown_options.append( GenesisDropdownOption('Delete', reverse('gdrives:batch-delete'))) items.append(GenesisAboveTableDropdown(dropdown_options)) items.append(GenesisAboveTableRadio(filter_options)) return items
def get_above_table_items(self): group = self.get_group() if self.request.user.is_admin(): add_link_name = 'accounts:manage-groups-companies-create' del_link_name = 'accounts:manage-groups-companies-batch-delete' import_link_name = 'accounts:manage-groups-companies-import' link_args = [group.id] else: add_link_name = 'accounts:manage-companies-create' del_link_name = 'accounts:manage-companies-batch-delete' import_link_name = 'accounts:manage-companies-import' link_args = [] add_link = reverse(add_link_name, args=link_args) del_link = reverse(del_link_name, args=link_args) import_link = reverse(import_link_name, args=link_args) return [ GenesisAboveTableButton('Add Company', add_link), GenesisAboveTableButton('Import Companies', import_link), GenesisAboveTableDropdown( [GenesisDropdownOption('Delete', del_link)] ) ]
def get_above_table_items(self): options = [ GenesisDropdownOption( 'Assign to API Partner', reverse( 'accounts:manage-patients-batch-assign-api-partner') ), GenesisDropdownOption( 'Unassign from API Partner', reverse( 'accounts:manage-patients-batch-unassign-api-partner') ), GenesisDropdownOption( 'Migrate Readings', reverse( 'accounts:manage-patients-migrate-patient-readings') ), GenesisDropdownOption( 'Recover Past Readings', reverse('accounts:manage-patients-recover-readings') ), GenesisDropdownOption( 'Export to CSV', reverse('accounts:batch-csv-export'), direct_link=True ), GenesisDropdownOption( 'Activate Patients', reverse('accounts:batch-activate-patients') ), GenesisDropdownOption( 'Deactivate Patients', reverse('accounts:batch-deactivate-patients') ) ] atc = [] group = self.get_group() if group: add_link = reverse( 'accounts:manage-groups-patients-create', args=[group.id]) import_link = reverse( 'accounts:manage-groups-patients-import', args=[group.id]) atc.extend([ GenesisAboveTableButton('Add Patient', add_link), GenesisAboveTableButton('Import Patients', import_link), ]) if self.should_show_assigned(): option_label = 'Unassign Patient' button_label = 'Show Unassigned' option_link = reverse( 'accounts:manage-groups-patients-batch-unassign', args=[group.id]) button_link = reverse( 'accounts:manage-groups-patients', args=[group.id]) else: option_label = 'Assign Patient' button_label = 'Show Assigned' option_link = reverse( 'accounts:manage-groups-patients-batch-assign', args=[group.id]) button_link = reverse( 'accounts:manage-groups-patients-assigned', args=[group.id]) options.append( GenesisDropdownOption( option_label, option_link, no_redirect=True) ) atc.append( GenesisAboveTableButton(button_label, button_link) ) atc.append(GenesisAboveTableDropdown(options)) return atc