42 lines
1.6 KiB
Text
42 lines
1.6 KiB
Text
[
|
||
// Apgar Score
|
||
{
|
||
"name": "Apgar Score",
|
||
"description": r"""
|
||
Newborn health assessment scoring system performed at 1 and 5 minutes after birth.
|
||
|
||
The Apgar score sums five categories (0–2 points each):
|
||
1. Heart rate
|
||
2. Respiratory effort
|
||
3. Muscle tone
|
||
4. Reflex response
|
||
5. Color
|
||
|
||
Total score ranges from 0 to 10. Higher scores indicate better newborn condition.
|
||
|
||
""",
|
||
"input": [
|
||
{"name": "HeartRate", "values": ["Absent", "< 100 bpm>", "> 100 bpm"]},
|
||
{"name": "Breathing", "values": ["Absent", "Weak, irregular", "Strong, robust cry"]},
|
||
{"name": "MuscleTone", "values": ["None", "Some", "Flexed arms/leg, resists extension"]},
|
||
{"name": "Reflexes", "values": ["No response", "Grimace on aggressive stimulation", "Cry on stimulation"]},
|
||
{"name": "SkinColor", "values": ["Blue or pale", "Blue extremities, pink body", "Pink"]}
|
||
],
|
||
"output": {"name": "Result", "unit": "string"},
|
||
"d4rtCode": """
|
||
var total = indexOf("HeartRate") + indexOf("Breathing") + indexOf("MuscleTone") + indexOf("Reflexes") + indexOf("SkinColor");
|
||
late var interpretation;
|
||
if( total < 4 ) {
|
||
interpretation = 'Critical condition';
|
||
}
|
||
else if( total < 7 ){
|
||
interpretation = 'Needs assistance';
|
||
}
|
||
else {
|
||
interpretation = 'Normal';
|
||
}
|
||
Result = 'Score: \$total - \$interpretation';
|
||
""",
|
||
"tags": ["medical", "pediatrics", "assessment"]
|
||
}
|
||
]
|