Class: ODDB::LookandfeelMyMedi

Inherits:
SBSM::LookandfeelWrapper show all
Defined in:
src/custom/lookandfeelwrapper.rb

Constant Summary

ENABLED =
[
  :explain_sort,
  :compare_backbutton,
  :custom_tab_navigation,
  :external_css,
  :ajax,
  :home_drugs,
  :help_link,
  :faq_link,
  :patinfos,
  :sequences,
  :ywesee_contact,
]
DISABLED =
[ :atc_ddd, :legal_note, :navigation, :price_request ]
DICTIONARIES =
{
  'de'  => {
    :explain_ddd_price_url    =>  'http://www.mymedi.ch/de/tk.htm',
    :explain_generic          => 'Blau = Generikum',
    :explain_sort             =>  'Klicken Sie auf einen der untenstehenden Begriffe um die zugehörige Spalte auf- oder absteigend zu sortieren.',
    :price_compare            =>  "Für den Direktvergleich klicken Sie bitte auf das für Sie rezeptierte Medikament.",
    :sequences                =>  'Medikamente A-Z',
  },
  'fr'  => {
    :explain_generic          => 'bleu = générique',
    :explain_ddd_price_url    =>  'http://www.mymedi.ch/fr/tk.htm',
    :explain_sort             =>  "Clickez sur un des mot-clé ci-dessous pour accéder au menu déroulant.",
    :price_compare            =>  'Afin d\'avoir une comparaison, clickez s.v.p. sur le médicament qui vous a été prescrit.',
    :sequences                =>  'Médicaments A-Z',
  },
  'en'  => {
    :explain_generic          => 'Blue = Generic Drug',
    :sequences                =>  'Drugs A-Z',
  },
}
HTML_ATTRIBUTES =
{
  :explain_ddd_price => {'target' => '_parent'},
}
RESOURCES =
{
  :external_css =>  'http://www.mymedi.ch/css/oddb.css',
}

Constants inherited from SBSM::LookandfeelWrapper

RESULT_FILTER

Instance Method Summary (collapse)

Methods inherited from SBSM::LookandfeelWrapper

#format_price, #has_result_filter?, #result_filter

Instance Method Details

- (Object) compare_list_components



825
826
827
828
829
830
831
832
833
834
835
836
837
# File 'src/custom/lookandfeelwrapper.rb', line 825

def compare_list_components
  {
    [0,0] =>  :name_base,
    [1,0] =>  :company_name,
    [2,0] =>  :most_precise_dose,
    [3,0] =>  :comparable_size,
    [4,0] =>  :compositions,
    [5,0] =>  :price_public,
    [6,0] =>  :ddd_price, 
    [7,0] =>  :price_difference, 
    [8,0] =>  :deductible, 
  }  
end

- (Object) explain_result_components



838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
# File 'src/custom/lookandfeelwrapper.rb', line 838

def explain_result_components
  {
    [0,1] =>  :explain_original,
    [0,2] =>  :explain_generic,
    [0,3] =>  'explain_expired',
    [0,4] =>  'explain_pbp',
    [0,5] =>  :explain_deductible,
    [0,6] =>  :explain_ddd_price,
    [1,0] =>  :explain_patinfo,
    [1,1] =>  :explain_limitation,
    [1,2] =>  :explain_complementary,
    [1,3] =>  'explain_sl',
    [1,4] =>  'explain_slo',
    [1,5] =>  'explain_slg',
    [1,6] =>  :explain_lppv,
  }
end

- (Object) result_list_components



855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'src/custom/lookandfeelwrapper.rb', line 855

def result_list_components
  {
    [0,0]   => :limitation_text,
    [1,0]   => :patinfo,
    [2,0,0] =>  'result_item_start',
    [2,0,1] =>  :name_base,
    [2,0,2] =>  'result_item_end',
    [3,0]   => :deductible,
    [4,0]   => :galenic_form,
    [5,0]   => :most_precise_dose,
    [6,0]   => :comparable_size,
    [7,0]   => :price_public,
    [8,0]   => :ddd_price,
    [9,0]   => 'nbsp',
    [10,0]  => :company_name,
    [11,0]  => :ikscat,
  }
end

- (Object) search_type_selection



873
874
875
876
# File 'src/custom/lookandfeelwrapper.rb', line 873

def search_type_selection
  ['st_oddb', 'st_sequence', 'st_substance', 'st_company',
    'st_indication']
end

- (Object) section_style



877
878
879
# File 'src/custom/lookandfeelwrapper.rb', line 877

def section_style
  'font-size: 16px; margin-top: 8px; line-height: 1.4em; max-width: 600px'
end

- (Object) sequence_list_components



880
881
882
883
884
885
886
887
# File 'src/custom/lookandfeelwrapper.rb', line 880

def sequence_list_components
  {
    [0,0] =>  :iksnr,
    [1,0] =>  :patinfo,
    [2,0] =>  :name_base,
    [3,0] =>  :compositions,
  }
end

- (Object) zones



888
889
890
# File 'src/custom/lookandfeelwrapper.rb', line 888

def zones
  [ State::Drugs::Sequences ]
end