Class: ODDB::State::Admin::PatinfoDeprivedSequences

Inherits:
Global show all
Includes:
Interval
Defined in:
src/state/admin/root.rb,
src/state/admin/patinfo_deprived_sequences.rb

Constant Summary

VIEW =
View::Admin::PatinfoDeprivedSequences
PERSISTENT_RANGE =
true
DIRECT_EVENT =
:patinfo_deprived_sequences

Constants included from Interval

FILTER_THRESHOLD, PERSISTENT_RANGE, RANGE_PATTERNS

Constants inherited from Global

HOME_STATE, ZONE

Constants inherited from Global

DIRECT_EVENT, GLOBAL_MAP, HOME_STATE, LIMITED, PRINT_STATES, READONLY_STATES, RESOLVE_STATES, REVERSE_MAP, VIEW, ZONE_NAVIGATION

Constants included from UmlautSort

FILTER_PAIRS

Instance Method Summary (collapse)

Methods included from Interval

#default_interval, #filter_interval, #get_intervals, #interval, #intervals, #range_patterns, #user_range

Methods inherited from Global

#zone_navigation

Methods inherited from Global

#_search_drugs, #_search_drugs_state, #_trigger, #add_to_interaction_basket, #allowed?, #atc_chooser, #checkout, #clear_interaction_basket, #creditable?, #direct_request_path, #doctorlist, #download, #export_csv, #extend, #fachinfo, #feedbacks, #help_navigation, #home_navigation, #home_state, #hospitallist, #interaction_basket, #limit_state, #limited?, #logout, #navigation, #notify, #password_reset, #paypal_return, #powerlink, #print, #proceed_download, #proceed_poweruser, #resolve, #resolve_state, #rss, #search, #show, #snapback_event, #sort, #sponsorlink, #suggest_address, #switch, #unique_email, #user_input, #user_navigation, #ywesee_contact, #zone_navigation, #zones

Methods included from LoginMethods

#autologin, #login

Methods included from UmlautSort

#sort_model, #umlaut_filter

Instance Method Details

- (Object) init



16
17
18
# File 'src/state/admin/patinfo_deprived_sequences.rb', line 16

def init
  filter_interval
end

- (Object) select_seq



19
20
21
22
23
24
25
26
27
28
29
# File 'src/state/admin/patinfo_deprived_sequences.rb', line 19

def select_seq
  keys = [:pointer, :state_id]
  values = user_input(keys, keys)
  if(error?)
    self
  else
    pointer = values[:pointer]
    seq =  pointer.resolve(@session.app)
    State::Admin::AssignDeprivedSequence.new(@session, seq)
  end
end

- (Object) shadow_pattern



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'src/state/admin/patinfo_deprived_sequences.rb', line 30

def shadow_pattern
  begin
    if(str = @session.user_input(:pattern))
      pattern = Regexp.new(str)
      @session.each_sequence { |seq|
        if(pattern.match(seq.name_base))
          @session.app.update(seq.pointer, {:patinfo_shadow => true}, unique_email)
        end
      }
      patinfo_deprived_sequences
    else
      self
    end
  rescue RegexpError
    self
  end
end

- (Object) symbol



47
48
49
# File 'src/state/admin/patinfo_deprived_sequences.rb', line 47

def symbol
  :name
end