rbtagger 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/COPYING +21 -0
  2. data/History.txt +4 -0
  3. data/LICENSE +21 -0
  4. data/License.txt +20 -0
  5. data/Manifest.txt +75 -0
  6. data/PostInstall.txt +7 -0
  7. data/README +7 -0
  8. data/README.txt +53 -0
  9. data/Rakefile +33 -0
  10. data/config/hoe.rb +74 -0
  11. data/config/requirements.rb +15 -0
  12. data/ext/rule_tagger/bool.h +38 -0
  13. data/ext/rule_tagger/darray.c +292 -0
  14. data/ext/rule_tagger/darray.h +125 -0
  15. data/ext/rule_tagger/darrayP.h +50 -0
  16. data/ext/rule_tagger/extconf.rb +14 -0
  17. data/ext/rule_tagger/lex.c +170 -0
  18. data/ext/rule_tagger/lex.h +49 -0
  19. data/ext/rule_tagger/memory.c +127 -0
  20. data/ext/rule_tagger/memory.h +20 -0
  21. data/ext/rule_tagger/rbtagger.c +252 -0
  22. data/ext/rule_tagger/registry.c +326 -0
  23. data/ext/rule_tagger/registry.h +129 -0
  24. data/ext/rule_tagger/registryP.h +46 -0
  25. data/ext/rule_tagger/ruby-compat.h +20 -0
  26. data/ext/rule_tagger/rules.c +525 -0
  27. data/ext/rule_tagger/rules.h +42 -0
  28. data/ext/rule_tagger/sysdep.h +20 -0
  29. data/ext/rule_tagger/tagger.c +110 -0
  30. data/ext/rule_tagger/tagger.h +46 -0
  31. data/ext/rule_tagger/useful.c +44 -0
  32. data/ext/rule_tagger/useful.h +51 -0
  33. data/ext/word_tagger/extconf.rb +7 -0
  34. data/ext/word_tagger/porter_stemmer.c +430 -0
  35. data/ext/word_tagger/porter_stemmer.h +19 -0
  36. data/ext/word_tagger/rtagger.cc +83 -0
  37. data/ext/word_tagger/tagger.cc +153 -0
  38. data/ext/word_tagger/tagger.h +27 -0
  39. data/ext/word_tagger/tagger.rb +8 -0
  40. data/ext/word_tagger/test/Makefile +22 -0
  41. data/ext/word_tagger/test/doc.txt +87 -0
  42. data/ext/word_tagger/test/test.cc +107 -0
  43. data/ext/word_tagger/test.rb +31 -0
  44. data/lib/brill/tagger.rb +225 -0
  45. data/lib/rbtagger/version.rb +9 -0
  46. data/lib/rbtagger.rb +6 -0
  47. data/script/console +10 -0
  48. data/script/destroy +14 -0
  49. data/script/generate +14 -0
  50. data/script/txt2html +82 -0
  51. data/setup.rb +1585 -0
  52. data/tasks/deployment.rake +34 -0
  53. data/tasks/environment.rake +7 -0
  54. data/tasks/website.rake +17 -0
  55. data/test/CONTEXTUALRULEFILE +284 -0
  56. data/test/LEXICALRULEFILE +148 -0
  57. data/test/LEXICON +93696 -0
  58. data/test/docs/doc0.txt +20 -0
  59. data/test/docs/doc1.txt +11 -0
  60. data/test/docs/doc2.txt +52 -0
  61. data/test/docs/doc3.txt +128 -0
  62. data/test/docs/doc4.txt +337 -0
  63. data/test/docs/doc5.txt +497 -0
  64. data/test/docs/doc6.txt +116 -0
  65. data/test/docs/doc7.txt +101 -0
  66. data/test/docs/doc8.txt +25 -0
  67. data/test/docs/doc9.txt +84 -0
  68. data/test/tagger_test.rb +60 -0
  69. data/test/test_helper.rb +2 -0
  70. data/tools/rakehelp.rb +113 -0
  71. data/website/index.html +113 -0
  72. data/website/index.txt +53 -0
  73. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  74. data/website/stylesheets/screen.css +138 -0
  75. data/website/template.html.erb +48 -0
  76. metadata +155 -0
@@ -0,0 +1,20 @@
1
+ Take an active role in your care
2
+ When it comes to making decisions about the goals and direction of treatment, don't sit back. Work closely and actively with your oncologist and the rest of your medical team.
3
+ Dont overlook clinical trials
4
+ If youre eligible to enroll in clinical trials, select an oncologist who participates in them. Patients who enroll in clinical studies receive closer follow-up, the highest standard-of-care treatment and access to experimental therapies at no extra cost.
5
+ Maximize your nutrition strategy
6
+ Doing your best to eat a healthy, well-balanced diet is vital to prompt healing after surgery and for recovery from radiation or chemotherapy. Many oncology practices employ registered dieticians who can help you optimize your nutrition.
7
+ Steer clear of "natural cures"
8
+ Before trying nutritional supplements or herbal remedies, be sure to discuss your plans with a doctor. Most have not been tested in clinical studies, and some may actually interfere with your treatment.
9
+ Build a stronger body
10
+ Even walking regularly is can help you minimize long-term muscle weakness caused by illness or de-conditioning.
11
+ Focus on overall health
12
+ Patients may be cured of cancer but still face life-threatening medical problems that are underemphasized during cancer treatments, such as diabetes, high blood pressure and heart disease. Continue to monitor your overall health.
13
+ Put the fire out for good
14
+ Smoking impairs healing after surgery and radiation and increases your risk of cardiovascular disease and many types of cancers. Ask your doctor for help identifying and obtaining the most appropriate cessation aids.
15
+ Map a healthy future
16
+ Once youve completed treatment, discuss appropriate follow-up plans with your doctor and keep track of them yourself. Intensified screening over many years is frequently recommended to identify and treat a recurrence early on.
17
+ Share your feelings
18
+ Allow yourself time to discuss the emotional consequences of your illness and treatment with family, friends, your doctor and, if necessary, a professional therapist. Many patients also find antidepressants helpful during treatment.
19
+ Stay connected
20
+ Although many newly diagnosed patients fear they will not be able to keep working during treatment, this is usually not the case. Working, even at a reduced schedule, helps you maintain valuable social connections and weekly structure.
@@ -0,0 +1,11 @@
1
+ Breast Cancer Q&A: Cancer Pain
2
+
3
+ I have metastatic breast cancer and often have a lot of pain. Is there any way I can manage this pain?
4
+
5
+ You are not alone; about 90 percent of patients with advanced cancer say pain is the most distressing symptom of their disease. The good news is that your pain can be controlled. Although most cancer pain is a result of a tumor pressing on bones, nerves or organs, pain can also occur as a consequence of surgery, chemotherapy or radiation therapy.
6
+
7
+ Most often, cancer pain is treated with medicine usually given by a medical oncologist. However, surgery, radiation therapy and other treatments such as nerve blocks and psychological methods can be used along with medicine to provide the best possible pain relief.
8
+
9
+ Pain from other conditions can be treated along with cancer pain. Since many patients have multiple causes and types of pain, an accurate diagnosis of the cause of pain can be challenging, and effective pain management can be complex. Your best solution is to find a treatment center that uses state-of-the-art therapies to treat cancer pain.
10
+
11
+ (C)Copyright 1995-2007 The Cleveland Clinic Foundation. All rights reserved
@@ -0,0 +1,52 @@
1
+ Topic Overview
2
+
3
+ What is actinic keratosis, and what causes it?
4
+
5
+ Actinic keratosis, also called solar or senile keratosis, is a precancerous skin condition that develops in sun-exposed skin, especially on the face, hands, forearms, and the neck. It is seen most often in pale-skinned, fair-haired, light-eyed people, beginning at age 30 or 40 and becoming more common with age.
6
+
7
+ What are the symptoms?
8
+
9
+ Actinic keratoses are small and noticeable red, brown, or skin-colored patches that don't go away. They commonly occur on the head, neck, or hands but can be found on other areas of the body. Usually more than one is present. They may:
10
+
11
+ Have a rough texture.
12
+ Itch, burn, or sting.
13
+ Range in size from 1 to 3 mm or larger (about the size of a small pea).
14
+ Be numerous, with several patches close together.
15
+ Be surrounded by red, irritated skin.
16
+ Actinic keratosis needs to be evaluated by a health professional, especially if the keratoses become painful, bleed, become open sores, become infected, or increase in size.
17
+
18
+ How is actinic keratosis diagnosed?
19
+
20
+ Actinic keratosis is diagnosed through a skin examination. Your health professional may use a bright light or magnifying lens to look for growths, moles, or lesions. The scalp is examined by parting the hair. If there is a possibility of cancer, your health professional may take a sample of your skin and test ( biopsy ) it.
21
+
22
+ How is it treated?
23
+
24
+ Early treatment of actinic keratosis is recommended to stop the possible progression to a type of skin cancer ( squamous cell carcinoma ). Treatment may include:
25
+
26
+ Freezing the skin growth with liquid nitrogen (cryotherapy) to destroy it. Cryotherapy can cause mild pain that can last up to 3 days. Healing generally takes 7 to 14 days, and there is little or no scarring, though some people with darker skin have permanent skin color lightening. This procedure can be done in your health professional's office.
27
+ Scraping and using electric current (curettage and electrosurgery). The skin is numbed, and the growth is scraped off using a spoon-shaped instrument (curet). After scraping, electrosurgery may be done to control bleeding and destroy any remaining abnormal cells. Curettage is a quick treatment, but it can cause scarring. Occasionally a thick scar, or keloid, develops after curettage treatment. A keloid can be itchy or grow larger over time but it doesn't require medical treatment.
28
+ Fluorouracil (5-FU), a medication that you put directly on the keratoses.
29
+ Imiquimod cream (Aldara), a medication that has recently been approved for treating actinic keratosis. The cream changes the body's response to sun exposure, helping to prevent the formation of keratoses.
30
+ Will actinic keratosis progress to cancer?
31
+
32
+ If you have actinic keratosis, you may have an increased risk of developing squamous cell carcinoma. There is no way to determine whether actinic keratosis will progress to squamous cell carcinoma or how fast this might occur. Keratoses on the ear and lip are at the highest risk of developing into cancer because of the sensitivity of the ear and lip to sun exposure.
33
+
34
+ How can I prevent actinic keratosis?
35
+
36
+ You can help prevent actinic keratosis by staying out of the sun and using sunscreen when you are in the sun. You should also examine your skin for the condition and other suspicious growths once a month, especially if you spend a lot of time in the sun.
37
+
38
+ Skin protection
39
+
40
+ To protect your skin:
41
+
42
+ Limit your exposure to the sun, especially from 10:00 a.m. to 4:00 p.m.ahours of peak ultraviolet (UV) exposure.
43
+ Wear protective clothing, including a wide-brimmed hat, a long-sleeved shirt, and pants.
44
+ Wear sunglasses that block out UV rays.
45
+ Use a sunscreen that blocks ultraviolet rays (both UVA and UVB) and has a sun protection factor (SPF) of at least 15 every day, all year, even when it is cloudy.
46
+ Avoid tanning booths and sunlamps, which emit UV radiation and can cause skin damage and increase the risk of skin cancer.
47
+ Related Information
48
+
49
+ Seborrheic Keratosis
50
+ Skin Cancer, Melanoma
51
+ Skin Cancer, Nonmelanoma
52
+ Skin Changes
@@ -0,0 +1,128 @@
1
+ When you have heart failure , it is very important to exercise regularly. If you are not already active, your doctor may want you to begin an exercise program. Of course, a safe level of exercise will depend on your specific diagnosis and stage of heart failure. But even if you can only do a small amount of exercise, it is better than not doing any exercise at all.
2
+
3
+ Key points
4
+
5
+ Have a checkup before beginning an exercise program. Your doctor probably will do an electrocardiogram (EKG or ECG) and possibly an exercise stress test to see how much activity your heart can safely handle.
6
+ Your doctor may recommend a supervised cardiac rehabilitation program at a local hospital or clinic. For more information, see the topic Cardiac Rehabilitation .
7
+ Start out slowly, exercising for only a few minutes at a comfortable rate. Then each day, try gradually to increase the length of time and the intensity of your workout.
8
+ You should not exercise during times when your heart failure is not under control.
9
+ Set goals that you can reach. If you expect too much, you are likely to become discouraged and to stop exercising.
10
+ What do I need to know about exercise and heart failure?
11
+ Why do I need a regular exercise program?
12
+ How can I get started on an exercise program?
13
+ Where to go from here
14
+
15
+ Return to topic:
16
+
17
+ Heart Failure
18
+
19
+ What do I need to know about exercise and heart failure?
20
+
21
+ Do not start exercising until you have talked with your doctor. The American Heart Association recommends that your exercise program include activities that you can do at least 3 to 5 times a week.1 You may need a day of rest between sessions. Exercise programs usually include:
22
+
23
+ Stretching for 10 to 15 minutes, which helps warm up muscles before exercising. Beginning yoga or tai chi exercises might help increase your flexibility.
24
+ Walking, cycling on a stationary bike, using a treadmill, doing low- or no-impact aerobics, and swimming, which all are exercises that strengthen your muscles, help you keep your balance, and improve your conditioning. Exercising for 20 to 30 minutes is recommended by the American Heart Association.
25
+ Strength-building exercises using light weights, which helps increase the tone and strength of your muscles.
26
+ A cool-down period. This means gradually stopping your exercise, such as walking at a slower pace for 5 to 10 minutes.
27
+ Test Your Knowledge
28
+
29
+ Your exercise program may include walking, riding a stationary exercise bicycle, using a treadmill, doing low-impact aerobics, and swimming.
30
+
31
+ True
32
+
33
+ False
34
+
35
+ Continue to Why do I need a regular exercise program?
36
+ Return to Activity and exercise for heart failure
37
+
38
+ Why do I need a regular exercise program?
39
+
40
+ Exercising 3 or 4 times a week consistently is important because it takes only a short period without activity to weaken your muscles and your cardiovascular system.
41
+
42
+ Regular exercise also helps reduce:
43
+
44
+ Chest pain ( angina ) and symptoms of heart failure.
45
+ Cholesterol , especially when combined with lifestyle changes, such as eating a balanced diet, not smoking, and reducing stress.
46
+ Blood pressure. When combined with other lifestyle changes, such as eating a balanced diet and learning to handle stress, regular exercise can decrease your risk for coronary artery disease .
47
+ Your weight, or it can help control your weight, which can decrease your risk for coronary artery disease and diabetes .
48
+ Blood sugar levels, which can lower your risk for diabetes.
49
+ Stress. It also helps lift your mood and decreases depression and anxiety.
50
+ Test Your Knowledge
51
+
52
+ Regular exercise will help me control my stress and depression.
53
+
54
+ True
55
+
56
+ False
57
+
58
+ Continue to How can I get started on an exercise program?
59
+ Return to Activity and exercise for heart failure
60
+
61
+ How can I get started on an exercise program?
62
+
63
+ You can get started by doing the following:
64
+
65
+ Have a thorough physical exam before starting any exercise program. Your doctor may do an electrocardiogram (EKG or ECG) and possibly an exercise stress test to see what level of activity your heart can handle.
66
+ Make a list of questions to discuss with your doctor. Do this before your appointment. For some general questions, see the exercise planning sheet (What is a PDF document?).
67
+ Make an exercise plan together with your doctor. An exercise program usually consists of stretching, activities that increase your heart rate (aerobic exercise), and strength training (lifting light weights). Visit a library or bookstore for information on exercise programs. Join a health club, walking group, or YMCA. Many cities have senior centers that offer inexpensive exercise programs. See the Other Places to Get Help section of the topic Heart Failure for additional resources.
68
+ Learn how to check your heart rate. See taking a pulse . Your doctor can tell you how fast your pulse (target heart rate) should be when you exercise.
69
+ Start out slowly. Try parking farther away from the store or walk the mall before shopping. Over time, you will increase your ability to do more.
70
+ Keep a record of your daily exercise. It is okay to skip a day occasionally or to cut back on your exercise if you are too tired or not feeling well.
71
+ Tips for exercise success
72
+
73
+ Set realistic goals. If you expect too much, you are likely to become discouraged and to stop exercising.
74
+ Choose a type of exercise that you enjoy.
75
+ Give yourself time. It can take months to get into the habit of exercising. After a few months, you may find that you are looking forward to it.
76
+ Stay with it. It can be hard to stick with an exercise plan. Try exercising with a friendait is much easier to continue an exercise program if you are exercising with someone else.
77
+ Reward yourself. Build in rewards along the way that help you continue your program.
78
+ When starting an exercise program, keep the following precautions in mind:
79
+
80
+ Pace yourself by alternating exercises. Rotate light workouts, such as short walks, with more strenuous exercises, such as low-impact aerobics or swimming.
81
+ Avoid exercising outdoors in extreme temperatures or high humidity. When the weather is bad, try exercising indoors at a gym or walking at a mall.
82
+ Avoid exercises that require or encourage holding your breath, such as push-ups, sit-ups, and isometric exercises. Also avoid heavy lifting.
83
+ If you develop palpitations, chest pain, difficulty breathing, or dizziness or lightheadedness, stop exercising and rest. Call your doctor if these symptoms don't go away.
84
+ Do not take hot or cold showers or sauna baths after exercising. Moderate temperatures are bestavery hot or very cold temperatures can be dangerous.
85
+ Ask your doctor about continuing your exercise program if your medicines change. New medicines can affect how fast your heart beats and how you feel when you exercise.
86
+ Don't take naps or lie down after exercise because that reduces exercise tolerance. Instead, sit down to rest.
87
+ Take your pulse frequently or wear a heart rate monitor and keep your pulse within the range your doctor sets. Watch your pulse when walking up hills or stairs.
88
+ Be aware of how you feel while exercising. You should be able to talk easily without being out of breath.
89
+ Make sure you adjust your exercise program if it is interrupted for more than just a couple of days. Gradually increase to your regular activity level as tolerated.
90
+ Test Your Knowledge
91
+
92
+ I may need one or more tests before I start an exercise program.
93
+
94
+ True
95
+
96
+ False
97
+
98
+ Continue to Where to go from here
99
+ Return to Activity and exercise for heart failure
100
+
101
+ Where to go from here
102
+
103
+ Now that you have read this information, you are ready to plan the exercise program that suits you.
104
+
105
+ Talk with your health professional
106
+
107
+ If you have questions about this information, take it with you when you visit your doctor. You may want to use a highlighter to mark areas or make notes in the margins of pages where you have questions.
108
+
109
+ If you would like more information on heart failure, the following resource is available:
110
+
111
+ Organization
112
+
113
+ American Heart Association (AHA)
114
+ 7272 Greenville Avenue
115
+ Dallas, TX 75231
116
+ Phone: 1-800-AHA-USA1 (1-800-242-8721)
117
+ Web Address: www.americanheart.org
118
+ Call the American Heart Association (AHA) to find your nearest local or state AHA group. The AHA can provide brochures and information on support groups and community programs, including Mended Hearts, a nationwide organization whose members visit heart patients and provide information and support. AHA's Web site also has health information on various heart-related conditions.
119
+
120
+
121
+
122
+ Return to Activity and exercise for heart failure
123
+
124
+ References
125
+
126
+ Citations
127
+
128
+ Pina IL, et al. (2003). Exercise and heart failure: A statement from the American Heart Association Committee on Exercise, Rehabilitation, and Prevention. Circulation, 107(8): 1210a1225.
@@ -0,0 +1,337 @@
1
+ Topic Overview
2
+
3
+ Is this topic for you?
4
+
5
+ This topic is about acute bronchitis in people who don't have other health problems. Acute bronchitis may be treated differently if you have a long-term lung disease, such as chronic obstructive pulmonary disease (COPD) . For more information, see the topics Chronic Obstructive Pulmonary Disease (COPD) and Pneumonia .
6
+
7
+ What is bronchitis?
8
+
9
+ Bronchitis means that the tubes that carry air to the lungs (the bronchial tubes) are inflamed and irritated. When this happens, the tubes swell and produce mucus . This makes you cough.
10
+
11
+ There are two types of bronchitis:
12
+
13
+ Acute bronchitis usually comes on quickly and gets better after 2 to 3 weeks. Most healthy people who get acute bronchitis get better without any problems. See a picture of acute bronchitis .
14
+ Chronic bronchitis keeps coming back and can last a long time, especially in people who smoke. Chronic bronchitis means you have a cough with mucus most days of the month for 3 months of the year for at least 2 years in a row.
15
+ This topic focuses on acute bronchitis. Both children and adults can get acute bronchitis.
16
+
17
+ What causes acute bronchitis?
18
+
19
+ Acute bronchitis is usually caused by a virus . Often a person gets acute bronchitis after having an upper respiratory tract infection such as a cold or the flu. In rare cases, acute bronchitis is caused by bacteria .
20
+
21
+ Acute bronchitis also can be caused by breathing in things that irritate the bronchial tubes, such as smoke. It also can happen if a person inhales food or vomit into the lungs.
22
+
23
+ What are the symptoms?
24
+
25
+ The most common symptom of acute bronchitis is a cough that is dry and hacking at first. After a few days, the cough may bring up mucus. You may have a low fever and feel tired.
26
+
27
+ Acute bronchitis symptoms usually start 3 or 4 days after an upper respiratory tract infection. Most people get better in 2 to 3 weeks. But some people continue to have a cough for more than 4 weeks.
28
+
29
+ Pneumonia can have symptoms like acute bronchitis. Because pneumonia can be serious, it is important to know the differences between the two illnesses. Symptoms of pneumonia can include a high fever, shaking chills, and shortness of breath.
30
+
31
+ How is acute bronchitis diagnosed?
32
+
33
+ Your doctor will ask you about your symptoms and examine you. This usually gives the doctor enough information to find out if you have acute bronchitis.
34
+
35
+ In some cases, the doctor may take a chest X-ray to make sure that you don't have pneumonia or another lung problem.
36
+
37
+ How is it treated?
38
+
39
+ Most people can treat symptoms of acute bronchitis at home. Drink plenty of fluids. Use an over-the-counter cough medicine with an expectorant if your doctor recommends it. This can help you bring up mucus when you cough. Suck on cough drops or hard candies to soothe a dry or sore throat. Cough drops won't stop your cough, but they may make your throat feel better.
40
+
41
+ Most people don't need antibiotics for acute bronchitis.
42
+
43
+ Check with your doctor if you have heart or lung disease, such as heart failure , COPD, or asthma . You may need more treatment.
44
+
45
+ Frequently Asked Questions
46
+
47
+ Learning about acute bronchitis:
48
+
49
+ What is acute bronchitis?
50
+ What causes acute bronchitis?
51
+ Can I prevent acute bronchitis?
52
+ What are the symptoms?
53
+ What happens in acute bronchitis?
54
+ What increases my risk for acute bronchitis?
55
+ Being diagnosed:
56
+
57
+ Who can diagnose acute bronchitis?
58
+ How is acute bronchitis diagnosed?
59
+ Getting treatment:
60
+
61
+ How is acute bronchitis treated?
62
+ What medicines will I need to take?
63
+ Should I take antibiotics for acute bronchitis?
64
+ When should I call my doctor?
65
+ Taking care of yourself
66
+
67
+ What can I do to treat acute bronchitis at home?
68
+ Health Tools
69
+
70
+ Health tools help you make wise health decisions or take action to improve your health.
71
+
72
+
73
+ Decision Points focus on key medical care decisions that are important to many health problems.
74
+ Should I take antibiotics for acute bronchitis?
75
+ Cause
76
+
77
+ Acute bronchitis is usually caused by a virus . It is more common during the winter months and often develops after an upper respiratory illness such as influenza (flu) or a cold caused by a virus such as coronavirus, adenovirus, or a rhinovirus. Respiratory syncytial virus (RSV) may be a cause, especially in adults older than 65. About 10% of the time, acute bronchitis is caused by bacteria .1
78
+
79
+ Acute bronchitis can also be caused by exposure to smoke, chemicals, or air pollution, all of which can irritate the bronchial tubes. It can also develop from accidentally inhaling (aspirating) food or vomit.
80
+
81
+ See an illustration of acute bronchitis .
82
+
83
+ How acute bronchitis is spread
84
+
85
+ Acute bronchitis is spread when an infected person coughs, sneezes, or talks and liquid droplets containing virus particles or bacteria that may trigger the condition are released into the air and onto objects. Then you may:
86
+
87
+ Breathe air that contains the virus particles or bacteria.
88
+ Touch an object that has been touched by an infected person and then touch your eyes, nose, or mouth without washing your hands.
89
+ Symptoms
90
+
91
+ Symptoms of acute bronchitis usually begin 3 to 4 days after an upper respiratory infection , such as a cold or influenza (flu) . Symptoms usually include:
92
+
93
+ A cough, which is the main symptom of acute bronchitis. It may be dry at first (does not produce mucus ) and after a few days may bring up mucus from the lungs (productive cough). The mucus may be clear, yellow, or green. Occasionally, small streaks of blood may be present.
94
+ A mild fever, usually less than 101 F. A higher fever may indicate pneumonia .
95
+ A general feeling of tiredness.
96
+ A sensation of tightness, burning, or dull pain in the chest under the breastbone that usually is worse when breathing deeply or coughing.
97
+ Whistling noises ( wheezing ) when breathing, especially during physical exertion.
98
+ Hoarseness.
99
+ Most cases of acute bronchitis in otherwise healthy people last only 2 to 3 weeks. However, more than 20% of people with acute bronchitis have a cough that lasts more than 4 weeks.2
100
+
101
+ Often it is hard to tell the difference between viral and bacterial forms of acute bronchitis , and many conditions have symptoms similar to acute bronchitis , such as asthma and pneumonia . Because pneumonia can be a serious complication, it is important to know the differences between acute bronchitis and pneumonia, such as a fast heart rate with pneumonia.
102
+
103
+ What Happens
104
+
105
+ Acute bronchitis is inflammation of the tubes that carry air to the lungs (bronchial tubes). It is usually caused by a virus and follows an upper respiratory tract infection such as a cold or influenza (flu) . The infection moves from the nose, mouth, and throat to the bronchial tubes, causing the tubes to swell and mucus production to increase.
106
+
107
+ At first, a dry, hacking cough is present. After a few days, the cough may bring up mucus from the lungs. The swollen tubes and increase in mucus may make it more difficult for you to breathe.
108
+
109
+ See an illustration of acute bronchitis .
110
+
111
+ Most cases of acute bronchitis in otherwise healthy people last only 2 to 3 weeks. However, more than 20% of people with acute bronchitis have a cough that lasts more than 4 weeks.2
112
+
113
+ How soon you get better depends on several things, including:
114
+
115
+ Your age and health.
116
+ The organism causing the infection. Acute bronchitis from a viral cause is usually less severe than from a bacterial cause.
117
+ Whether you smoke.
118
+ Complications
119
+
120
+ Most people get better without developing complications. If complications occur, they include:
121
+
122
+ Pneumonia . Acute bronchitis that gets worse (increased fatigue, high fever, chest pain, and increased shortness of breath) usually indicates that pneumonia has developed.
123
+ Repeated episodes of bacterial acute bronchitis. This condition commonly occurs in people who smoke and in people with immune system problems, such as HIV infection , cystic fibrosis , and cancer.
124
+ If you have a long-term (chronic) respiratory disease, such as asthma , acute bronchitis can lead to worsening of your coughing and wheezing and can increase the risk of developing complications. In this case, acute bronchitis is a more serious problem and may be treated differently.
125
+
126
+ Children and older adults are most at risk for complications .
127
+
128
+ Children who have repeated bouts of acute bronchitis need to be evaluated to see whether they may have a foreign object in the air passage. Children may also be evaluated for asthma or other respiratory tract problems, such as:
129
+
130
+ Cystic fibrosis , an inherited disease that results in the production of thick mucus in the lungs.
131
+ Bronchiectasis , a lung condition in which the airways of the lungs are damaged, get bigger, and are frequently infected. A common symptom is a cough that brings up mucus.
132
+ Allergies, which are an immune system reaction to usually harmless substances. Symptoms include cough and difficulty breathing. Allergic rhinitis (hay fever) is a common allergy.
133
+ Sinusitis , an infection of the mucous membranes that line the inside of the nose and facial sinuses. Symptoms include pain and a chronic cough that produces mucus.
134
+ Adenoiditis , an inflammation of the adenoids , which are small masses of tissue at the back of the nose and throat.
135
+ What Increases Your Risk
136
+
137
+ The following factors increase your risk for acute bronchitis .
138
+
139
+ Risk factors you cannot change
140
+
141
+ These include:
142
+
143
+ Chronic medical conditions, especially lung (pulmonary) diseases such as chronic obstructive pulmonary disease (COPD) , cystic fibrosis , or asthma . In this case, acute bronchitis may be a more serious problem and may be treated differently.
144
+ Some conditions that cause immune system problems , such as diabetes and HIV infection . An impaired immune system weakens the body's ability to fight infection.
145
+ A history of recent upper respiratory infection , particularly sinusitis , a cold, or influenza (flu) . An upper respiratory infection can spread to the lungs.
146
+ Allergies, such as allergic rhinitis .
147
+ An injury to the chest wall, such as a rib fracture.
148
+ Risk factors you can change
149
+
150
+ These include:
151
+
152
+ Smoking or living with someone who smokes. Smoking or breathing secondhand smoke makes the respiratory system less effective at removing organisms from the lower airways.
153
+ Living or working in an area with high levels of air pollution, chemicals, or dust. Breathing in these irritants may make the respiratory system less effective at removing organisms from the lower airways.
154
+ When To Call a Doctor
155
+
156
+ Call 911 or other emergency services immediately if:
157
+
158
+ You have chest pain that is crushing or squeezing, is increasing in intensity, or occurs with any other symptoms of a heart attack .
159
+ You have severe difficulty breathing.
160
+ You are coughing up large amounts of blood (more than streaks of blood or blood mixed with mucus ).
161
+ Call your health professional today if you:
162
+
163
+ Feel short of breath, even when at rest.
164
+ Notice new or increasing whistling sounds when breathing ( wheezing ) or difficulty breathing, even at rest.
165
+ Have a cough that frequently produces yellow or green sputum from the lungs (not postnasal drainage), lasts longer than 2 days, and occurs along with a fever of 101 F or higher.
166
+ Are coughing up small streaks of blood.
167
+ Develop symptoms of acute bronchitis and you have a chronic lung disease such as asthma or chronic obstructive pulmonary disease (COPD) .
168
+ Call your health professional in 1 to 2 days if you:
169
+
170
+ Notice increased shortness of breath after any physical activity.
171
+ Have a cough that causes you to vomit frequently.
172
+ Have a cough that has lasted longer than 4 weeks.
173
+ Are being treated for acute bronchitis and your symptoms have not improved after 14 days of treatment.
174
+ Watchful Waiting
175
+
176
+ Watchful waiting is a period of time during which you and your health professional observe your symptoms or condition without using medical treatment. Watchful waiting is often appropriate in otherwise healthy people with acute bronchitis unless you have:
177
+
178
+ A persistent cough and increasing amounts of mucus being coughed up from the lungs (especially if the mucus is becoming thicker and has more color).
179
+ Shortness of breath.
180
+ Pain in the chest.
181
+ Ongoing fever or fever that gets worse.
182
+ Who To See
183
+
184
+ Acute bronchitis can be diagnosed and treated by most health professionals, including:
185
+
186
+ Family medicine doctors .
187
+ General practitioners .
188
+ Internists .
189
+ Pediatricians .
190
+ Nurse practitioners .
191
+ Physician assistants .
192
+ If you have complications, such as pneumonia or repeated episodes of acute bronchitis caused by bacteria, you may go to a pulmonologist for diagnosis and treatment. Complications rarely occur.
193
+
194
+ To prepare for your appointment, see the topic Making the Most of Your Appointment
195
+
196
+ Exams and Tests
197
+
198
+ There are no routine tests to diagnose acute bronchitis . Diagnosis is usually based on your medical history , including your symptoms, and a physical examination. Your health professional will make sure you do not have pneumonia or risk factors for more serious diseases, such as chronic obstructive pulmonary disease (COPD) , that may affect treatment.
199
+
200
+ If your health professional feels that your acute bronchitis is caused by:
201
+
202
+ A virus, then no more testing is needed in most cases.
203
+ Bacteria, then more testing may be done and antibiotics may be prescribed.
204
+ More testing may be necessary for infants and people older than 65, or if:
205
+
206
+ Acute bronchitis does not clear up in 2 to 3 weeks.
207
+ Pneumonia , heart failure , or tuberculosis is suspected or has been recently diagnosed.
208
+ Your immune system is not functioning well ( impaired immune system ). People with immune problems are more likely to develop complications, such as pneumonia .
209
+ You have a chronic respiratory disease, such as asthma or chronic obstructive pulmonary disease (COPD) .
210
+ You do not get better with antibiotic therapy, or you require hospitalization.
211
+ You have a heart rate greater than 100 beats per minute, a respiratory rate greater than 24 breaths per minute, and a fever greater than 100.4 F.
212
+ Whooping cough , a bacterial infection of the upper respiratory system , is suspected.
213
+ Influenza (flu) , a viral upper respiratory illness, is suspected.
214
+ Sometimes other tests may be needed. Possible tests include:
215
+
216
+ Chest X-ray . The result of a chest X-ray of people who have acute bronchitis is usually normal.
217
+ Gram stain and culture and sensitivity of the mucus from the lungs. These tests may help determine if bacteria are causing the infection and which antibiotic will be effective.
218
+ Other tests , including tests to measure blood oxygen levels. These tests can help identify bacteria and viruses and can determine whether acute bronchitis is seriously harming lung function.
219
+ Treatment Overview
220
+
221
+ Treatment for acute bronchitis in otherwise healthy people usually includes taking steps to reduce cough, fever, and pain. Prescription medications, such as antibiotics, generally are not beneficial. If you already have a disease, such as chronic obstructive pulmonary disease (COPD) , heart failure , or asthma , evaluation and treatment may be more extensive.
222
+
223
+ Most cases of acute bronchitis go away in 2 to 3 weeks, but some may last more than 4 weeks. Home treatment to relieve symptoms is usually all that is necessary. This includes:
224
+
225
+ Relieving your cough by drinking fluids, using cough drops, and avoiding lung irritants. You may also use nonprescription cough suppressants, which may help you to stop coughing, and expectorants, which may make coughing easier so you can bring up mucus . Research on cough suppressants and expectorants does not show that they stop a cough, but some people might find them helpful. Do not give cough and cold medicines to a child younger than 2 unless your childas doctor has told you to. If your childas doctor tells you to give a medicine, be sure to follow what he or she tells you to do.
226
+ Avoiding caffeine and alcohol, which cause you to lose extra fluid from your body and may lead to dehydration .
227
+ Stopping smoking, if you smoke.
228
+ Getting enough rest so your body has the energy needed to fight the infection. Generally, you feel better sooner if you rest more than usual while you have acute bronchitis.
229
+ Using nonprescription medication, such as acetaminophen, ibuprofen, or aspirin, to relieve fever and body aches. Do not give aspirin to anyone younger than age 20.
230
+ Breathing moist air from a humidifier, hot shower, or sink filled with hot water. The heat and moisture can help keep mucus in your airways moist so it can be coughed out easily.
231
+ If prescription medications are required, they may include:
232
+
233
+ Inhaled beta , which enlarge (dilate) the airways and may relieve coughing in people who have a hard time breathing. However, the possible benefit should be weighed against possible side effects of shaking, tremor, and nervousness.
234
+ Antibiotics , which may be used to treat people who are at increased risk for complications from acute bronchitis. They may also be used if symptoms do not improve after using a beta2-agonist and home treatment. For acute bronchitis in otherwise healthy people, antibiotics generally are not beneficial. For more information, see:
235
+ Should I take antibiotics for acute bronchitis?
236
+ What To Think About
237
+
238
+ Most cases of acute bronchitis are caused by viruses, which are not affected by antibiotics. Using antibiotics when they are not needed is expensive, it can lead to side effects from antibiotic therapy, and some bacteria may become resistant to the antibiotic. This resistance may make the antibiotic less effective the next time it is used. Talk to your health professional about antibiotics; find out whether they are necessary and what their benefits and risks are in treating acute bronchitis.
239
+
240
+ It is important to seek medical care if you have a long-term (chronic) lung disease such as asthma or chronic obstructive pulmonary disease (COPD) and you develop signs of acute bronchitis. Early treatment of acute bronchitis may prevent complications, such as pneumonia or repeated episodes of acute bronchitis caused by bacteria. This commonly occurs in people who smoke and in people with immune system problems, such as HIV infection, cystic fibrosis , and cancer.
241
+
242
+ Prevention
243
+
244
+ You can help prevent acute bronchitis by:
245
+
246
+ Avoiding cigarette smoke. If you smoke, stop. People who smoke or are around others who smoke have more frequent bouts of acute bronchitis. Smoke (including secondhand smoke) reduces the body's ability to remove bacteria and viruses that can cause infections in the lungs.
247
+ Wearing a face mask while working around irritants, such as dust. Specially designed masks are available to filter out dangerous chemicals or dust.
248
+ Avoiding contact with those who have an upper respiratory tract infection , such as a cold, especially if you have an impaired immune system or another medical condition. Wash your hands often during the cold and flu season. If you catch a cold or influenza (flu) , you are at an even higher risk for developing bronchitis.
249
+ Discussing with your health professional whether you should get a vaccine for the flu.
250
+ If you have had acute bronchitis in the past, you can help avoid getting it again by:
251
+
252
+ Avoiding air pollution and other irritants in the air. Stay indoors with the doors and windows closed if air pollution is at a high level.
253
+ Avoiding the use of wood-burning stoves in the winter, if possible.
254
+ Avoiding situations that may trigger an allergic reaction if you have an allergy.
255
+ If you have an upper respiratory tract infection, it never hurts to:
256
+
257
+ Get plenty of rest.
258
+ Drink enough liquids to avoid getting dehydrated .
259
+ Home Treatment
260
+
261
+ Most cases of acute bronchitis go away in 2 to 3 weeks. Home treatment may help you feel better.
262
+
263
+ Home treatment may include:
264
+
265
+ Relieving your cough by drinking fluids, using cough drops, and avoiding lung irritants. You may also use nonprescription cough suppressants, which help you stop coughing, and expectorants, which make coughing easier so you can bring up mucus . Research on cough suppressants and expectorants does not show that they stop a cough, but some people might find them helpful. Do not give cough and cold medicines to a child younger than 2 unless your childas doctor has told you to. If your childas doctor tells you to give a medicine, be sure to follow what he or she tells you to do.
266
+ Avoiding caffeine and alcohol, which cause you to lose extra fluid from your body and may lead to dehydration .
267
+ Cutting back or stopping smoking, if you smoke.
268
+ Getting enough rest so your body has the energy needed to fight the infection. Generally, you feel better sooner if you rest more than usual while you have acute bronchitis.
269
+ Using nonprescription medication, such as acetaminophen, ibuprofen, or aspirin, to relieve fever and body aches. Do not give aspirin to anyone younger than age 20.
270
+ Breathing moist air from a humidifier, hot shower, or sink filled with hot water. The heat and moisture can help keep mucus in your airways moist so it can be coughed out easily.
271
+ Contact your health professional if your acute bronchitis gets worse, because this may indicate pneumonia . Signs of worsening acute bronchitis include:
272
+
273
+ A persistent cough and increasing amounts of mucus being coughed up from the lungs (especially if the mucus is becoming thicker and has more color).
274
+ Shortness of breath.
275
+ Pain in the chest wall.
276
+ Ongoing fever or fever that gets worse.
277
+ Medications
278
+
279
+ Most cases of acute bronchitis in otherwise healthy people go away in 2 to 3 weeks. You generally only need nonprescription medications to treat your symptoms. Most people do not need to use prescription medications, such as antibiotics.
280
+
281
+ Medication Choices
282
+
283
+ Nonprescription cough suppressants, which may help relieve coughing , and expectorants, which may make coughing easier so you can bring up mucus . Do not give cough and cold medicines to a child younger than 2 unless your childas doctor has told you to. If your childas doctor tells you to give a medicine, be sure to follow what he or she tells you to do.
284
+ Nonprescription pain relievers and fever reducers, such as aspirin, ibuprofen, or acetaminophen. Do not give aspirin to anyone younger than age 20.
285
+ Your health professional may prescribe:
286
+
287
+ Inhaled beta , such as albuterol, which enlarge the airways and may relieve coughing in people who have a hard time breathing. However, the possible benefits should be weighed against possible side effects of shaking, tremor, and nervousness.
288
+ Antibiotics , which may be used to treat people who are at increased risk for complications from acute bronchitis. For acute bronchitis in otherwise healthy people, antibiotics generally are not beneficial. For more information, see:
289
+ Should I take antibiotics for acute bronchitis?
290
+ What To Think About
291
+
292
+ Most cases of acute bronchitis are caused by viruses, which are not affected by antibiotics. Using antibiotics when they are not needed is expensive, it can lead to side effects from antibiotic therapy, and some bacteria may become resistant to the antibiotic. This resistance may make the antibiotic less effective the next time it is used. Talk to your health professional about antibiotics; find out whether they are necessary and what their benefits and risks are in treating acute bronchitis.
293
+
294
+ If your health professional prescribes antibiotics, take the entire prescription. Don't stop taking the medication when you start to feel better. If you do not take the entire prescription, the bacteria causing the infection may not be entirely destroyed.
295
+
296
+ Corticosteroids , which may help relieve difficulty breathing, frequent wheezing, or a persistent cough, may be prescribed if other medical conditions such as chronic obstructive pulmonary disease (COPD) or asthma are present.
297
+
298
+ Other medications may be prescribed to treat complications, such as pneumonia . The medication used depends on the complication.
299
+
300
+ Surgery
301
+
302
+ There is no surgical treatment for acute bronchitis .
303
+
304
+ Other Treatment
305
+
306
+ Rest, fluids, and home treatment are all that is needed to treat most cases of acute bronchitis in otherwise healthy people. People who have certain chronic respiratory diseases, such as chronic obstructive pulmonary disease (COPD) , may need additional treatment.
307
+
308
+ Other Places To Get Help
309
+
310
+ Organization
311
+
312
+ American Lung Association
313
+ 61 Broadway, 6th Floor
314
+ New York, NY 10006
315
+ Phone: 1-800-LUNG-USA (1-800-586-4872)
316
+ 1-800-548-8252 (to speak with a lung professional)
317
+ (212) 315-8700
318
+ Web Address: www.lungusa.org
319
+ The American Lung Association, along with its medical branch, the American Thoracic Society, provides programs of education, community service, and advocacy. Some of the topics available include asthma, tobacco control, emphysema, asbestos, carbon monoxide, radon, and ozone.
320
+
321
+
322
+ Related Information
323
+
324
+ Asthma in Teens and Adults
325
+ Chronic Obstructive Pulmonary Disease (COPD)
326
+ Cystic Fibrosis
327
+ Influenza
328
+ Pneumonia
329
+ References
330
+
331
+ Citations
332
+
333
+ Gonzales RG, et al. (2001). Principles of appropriate antibiotic use for treatment of uncomplicated acute bronchitis: Background. Annals of Internal Medicine, 134(6): 521a529.
334
+ Simon HB (2004). Acute bronchitis section of Pneumonia and other pulmonary infections. In DC Dale, DD Federman, eds., ACP Medicine, section 7, chap. 20. New York: WebMD.
335
+ Other Works Consulted
336
+
337
+ Knutson D, Braun C (2002). Diagnosis and management of acute bronchitis. American Family Physician, 65(10): 2039a2044.