Question: Using python his scoring algorithm can be found here on the MDCalc website. You will need a function called priest() with the following input parameters.
Using python his scoring algorithm can be found here on the MDCalc website. You will need a function called priest() with the following input parameters. Sex (Gender assigned at birth) Age in years Respiratory rate in breaths per minute Oxygen saturation as a percent between 0 and 1 Heart rate in beats per minute Systolic BP in mmHg Temperature in degrees C Alertness as a string description Inspired Oxygen as as string description Performance Status as a string description The function will need to follow the algorithm provided on the MDCalc website to compute a risk percentage that should be returned as a numeric value between 0 and 1. Be sure to use docstring documentation and at least three built-in docstring test cases. Assume that the input values that are strings could be any combination of upper or lower case. For example: 'male', 'Male', 'MALE', 'MalE' should all be interpretted by your code as male. If any of the inputs are invalid (for example a sex value that is not recognizable as male or female) your code should return None. NOTES: In the final step there is a table that translates from PRIEST Score to 30-day probability of an outcome but the last two probabilities are shown as ranges (59-88% and >99%). Our code needs to output a single number, however. For our code, use the following rule: If PRIEST score is between 17 and 25, the probability you return should be 0.59 If PRIEST score is greater than or equal to 26, the probability you return should be 0.99 [ ]
Step by Step Solution
There are 3 Steps involved in it
QUESTION Using python his scoring algorithm can be found here on the MDCalc website You will need a function called priest with the following input parameters Sex Gender assigned at birth Age in years ... View full answer
Get step-by-step solutions from verified subject matter experts
