http://127.0.0.1:8001/searchdrug.html

Discussion in 'Chickenfoot Scripts' started by Graham, Nov 3, 2006.

  1. Graham

    Graham Developer Staff Member

    This is a sample script to use on the above link that comes up when you click on the firefox icon in the prescribing module. It brings up a page on rxlist.com where you can display drug information, patient handouts etc.
    <pre id="pre">// Search for drug on rxlist.com
    drugname = find(/Drugname: (.*)/).groups[1];
    go("http://www.rxlist.com/");
    enter("search for a drug name", drugname);
    click("Drug Information Search");
    </pre>
  2. Jason

    Jason Developer / Handyman Staff Member

    [quote user="Graham"]

    This is a sample script to use on the above link that comes up when you click on the firefox icon in the prescribing module. It brings up a page on rxlist.com where you can display drug information, patient handouts etc.
    <pre id="pre">// Search for drug on rxlist.com
    drugname = find(/Drugname: (.*)/).groups[1];
    go("http://www.rxlist.com/");
    enter("search for a drug name", drugname);
    click("Drug Information Search");
    </pre>

    [/quote]

    Dont think this still works.
  3. Graham

    Graham Developer Staff Member

    They've changed their website.

    Try this<blockquote><pre id="pre">// Search for drug on rxlist.com
    drugname = find(/Drugname: (.*)/).groups[1];
    go("http://www.rxlist.com/");
    enter("Find a Drug", drugname);
    click("Search");</pre></blockquote>

  4. Jason

    Jason Developer / Handyman Staff Member

    Doesn't work for me.
  5. Jason

    Jason Developer / Handyman Staff Member

    Can you send the drug name to this site for me ?



    http://cpe0013211b4c6d-cm0014e88ee7a4.cpe.net.cable.rogers.com/dpdonline/startup.do



    Just send drug to the <label for="activeIngredient">Active Ingredient:</label>
    box ?

    I seem quite lame at this chicken scripting thus far.

  6. Graham

    Graham Developer Staff Member

    enter("Active Ingredient", "penicillin");


    click("First Button");
  7. Jason

    Jason Developer / Handyman Staff Member

    :) Thanks.

    How about this ?

    The idea here is that most people (if readily available) would like to be able to look up drug stuff on many sites.

    American docs might want to check online with what drugs Blue Cross Covers ... etc.

    For me:

    I would want to check for drug information on

    (1) rxlist


    (2) Health Canada's website


    (3) Canadian Medical Association

    (4) a few of my online subscription websites ...

    (5) ... etc.



    Attached Files:

  8. Graham

    Graham Developer Staff Member

    Go for it! [:D]
  9. Graham

    Graham Developer Staff Member

    Actually it would be better if I linked to the wiki where people could enter their own scripts.

    There is a limit to how much a single person can do ...

  10. Jason

    Jason Developer / Handyman Staff Member

  11. Jason

    Jason Developer / Handyman Staff Member



    I still want this.

    I got the medication box working for my CMA drugs (Lexi Drugs ...) it is great !




    Note: there is a description and video on how to ADD chickenscripts to your Synapse / FireFox duo !
  12. Graham

    Graham Developer Staff Member

    I guess if you knew enuff about chicken scripting it might be possible to open up three windows and execute different scripts ...

Share This Page