Description Usage Arguments Author(s) References Examples
Estimates mortality of community-acquired pneumonia to help determine inpatient vs. outpatient treatment.
1 2 3 4 5 6 7 | curb65(
confusion = "no",
BUN = 17,
systolic.blood.pressure = 120,
diastolic.blood.pressure = 80,
respiratory.rate = 16
)
|
confusion |
Accepts a string value. The value should be 'yes' if the patient has altered mental status and 'no' if the patient does not have altered mental status. Please use the clinical criteria of altered mental status. Please use lower case for the input. |
BUN |
Accepts a numerical or integer value. The value should be the measured serum BUN reported in a lab test such as a BMP or CMP. |
systolic.blood.pressure |
Integer or numerical value corresponding to the patient's systolic blood pressure. |
diastolic.blood.pressure |
Integer or numerical value corresponding to the patient's diastolic blood pressure. |
respiratory.rate |
Integer or numerical value corresponding to the patient's breaths per minute. |
Carlos C Vera Recio
Lim, W S et al. “Defining community acquired pneumonia severity on presentation to hospital: an international derivation and validation study.” Thorax vol. 58,5 (2003): 377-82. doi:10.1136/thorax.58.5.377
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | curb65(
confusion = "no",
BUN = 17,
systolic.blood.pressure = 120,
diastolic.blood.pressure = 80,
respiratory.rate = 16
)
## The function is currently defined as
function (confusion = "no", BUN = 17, systolic.blood.pressure = 120,
diastolic.blood.pressure = 80, respiratory.rate = 16)
{
guide = list(`high risk, 27.8% 30-day mortality` = 4, `Severe risk group: 14.0% 30-day mortality.` = 3,
`Moderate risk group: 6.8% 30-day mortality.` = 2, `Low risk group: 2.7% 30-day mortality.` = 1,
`Low risk group: 0.6% 30-day mortality.` = 0)
curb.score = 0
if (confusion == "yes") {
curb.score = curb.score + 1
}
if (BUN > 17) {
curb.score = curb.score + 1
}
if (respiratory.rate > 29) {
curb.score = curb.score + 1
}
if (systolic.blood.pressure < 90 | diastolic.blood.pressure <
61) {
curb.score = curb.score + 1
}
res = list(`curb score` = curb.score, interpretation = names(guide[guide ==
curb.score]))
return(res)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.