Class: ODDB::LookandfeelSwissMedInfo

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

Constant Summary

ENABLED =
[
  :home_drugs,
  :help_link,
  :faq_link,
  :patinfos,
  :sequences,
  :ywesee_contact,
]
DISABLED =
[ :atc_ddd ]

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



902
903
904
905
906
907
908
909
910
911
912
913
914
# File 'src/custom/lookandfeelwrapper.rb', line 902

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] =>  :price_difference, 
    [7,0] =>  :ddd_price, 
    [8,0] =>  :ikscat,
  }  
end

- (Object) explain_result_components



915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
# File 'src/custom/lookandfeelwrapper.rb', line 915

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

- (Object) result_list_components



933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
# File 'src/custom/lookandfeelwrapper.rb', line 933

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

- (Object) section_style



953
954
955
# File 'src/custom/lookandfeelwrapper.rb', line 953

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