Wednesday, November 3, 2010

Controller: Drugs

Create /app/controllers/drugs_controller.php
<?php
class DrugsController extends AppController {
    var $name = 'Drugs';
    var $scaffold;
}
?>
Upload the file and browse to http://drug-ed.com/drugs to verify it works. Again the defined relationship to reminders should cause action links to show. Add a drug.
NameBrand NameIndicationsAdverse ReactionsCounseling PointsNotes
Diclofenac NaCataflamDiclofenac is used to relieve pain, tenderness, swelling, and stiffness caused by osteoarthritis, rheumatoid arthritis, ankylosing spondylitis, painful menstrual periods and pain from other causes.diarrhea, constipation, gas or bloating, headache, dizziness, ringing in the earsNSAIDs such as diclofenac may cause ulcers, bleeding, or holes in the stomach or intestine. People who take nonsteroidal anti-inflammatory drugs (NSAIDs) (other than aspirin) such as diclofenac may have a higher risk of having a heart attack or a stroke than people who do not take these medications.Diclofenac is in the class of Non-Steroidal Anti-Inflammatory Drugs (NSAIDs)

No comments:

Post a Comment