view · edit · sidebar · attach · print · history

< Niklaus.20131218-integrate-epha-interaction-6 | 2013 | Niklaus.20131216-fix-oddb2-csv-error >>

20131217-fix-sequences-00

Summary

  • Remove sequences 00 where there are other sequences
  • integrate a simple interface to display the interaction from EPHA

Commits

Index

---

Remove sequences 00 where there are other sequences

We have the following problems:

  1. SL Flag missing at Xeljanz at correct sequence (01).
  2. There are products with sequence 00. Do they all don't have any other valid sequences

integrate a simple interface to display the interaction from EPHA

Continue work. Example is still interaction is between Marcoumar and Aspirin. Open problems are:

  • interaction_chooser should work items having more than one ATC-code
  • import of epha_interactions should collect references, too.
  • should allow direct access to results via URL
  • unit-test
  • Ratings (german only) fix coded in src/view/interactions/interaction_chooser.rb.
  • Same for html color codes
  • Text is still "Medikamente wählen und dann die Interaktion in 3D anzeigen"

Example at matrix.epha.org is:

  • Losartan Mepha
  • Metoprolol-Teva Reta
  • Nolvadex
  • Paroxetin-Mepha

Example from Zeno

  • Marcoumar
  • Aspirin cardio
  • Inderal
  • Ponstan
  • Viagra

The following changes to the UI are requested:

  1. Title and directions of interactions must be bold
  2. Interactions should be below line with FI and use the full width of the browser
  3. Deleting an item from the list must work. (Zeno has seen duplicated frames)

It is not so simple to add a new row. Why? Experimented with adding a test/test_add_row.rb to my htmlgrid checkout and made it work using @grid.add_row. See Attach:test_add_row.rb.txt. First try has now everything with a single column.

Zeno pointed me to have a look at the results of drugs. Turns out that this override the compose_list and the compose_header methods of htmlgrid. Which explains partly my woes on how to achieve this effect by just using htmlgrid!

Changing the interaction_chooser to add into the same HtmlGrid::List two different models made it accessing in htmlgrid/composite.rb the nil varible @grid when calling to_html. Also noticed that HtmlGrid::Div is not been tested in htmlgrid.

Decided to make unit-tests for the working example teraction_chooser and then trying to add different entites or override compose_list/header.

view · edit · sidebar · attach · print · history
Page last modified on January 06, 2014, at 10:33 AM