| 1 | #!/usr/bin/env perl | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 2 | ▶ | use 5.010; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | package Medical::Growth::NHANES_2000::BMI_for_Age::Child::Female; | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 2 | our ($VERSION) = '1.00'; | |||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 2 | ▶ | use Moo::Lax; # Vanilla Moo considered harmful | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 2 | extends 'Medical::Growth::NHANES_2000::Base'; | |||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 2 | __PACKAGE__->_declare_params_LMS; | |||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | # Inlined rather than in a base class - too small to merit reading | ||||||||||||||||||||||||||||
| 18 | # another file | ||||||||||||||||||||||||||||
| 19 | 5 | ▶ | sub bmi { | ||||||||||||||||||||||||||
|
Subroutine
bmi: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||
| 20 | 5 | my ( $self, $wt_kg, $ht_cm ) = @_; | |||||||||||||||||||||||||||
| 21 | 5 | ▶ | return unless $ht_cm and $wt_kg; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$ht_cm and $wt_kg
MC/DC100%2/2
$ht_cm and $wt_kg
$ht_cm
$wt_kg
Truth table100%3/3
A and B
A= $ht_cmB= $wt_kg
| |||||||||||||||||||||||||||||
| 22 | 3 | return 10000 * $wt_kg / $ht_cm**2; | |||||||||||||||||||||||||||
| 23 | } | ||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | 2 | 1; | |||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | # bmiagerev, sex = 2 | ||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | __DATA__ | ||||||||||||||||||||||||||||