BloodDonor: Bombing out unused html stuff
parent
cf91666c52
commit
f250b2e396
|
@ -30,11 +30,6 @@ my %typeMap = (
|
|||
'B' => 'B,O',
|
||||
);
|
||||
|
||||
sub table_data {
|
||||
my ($label, $value) = @_;
|
||||
return "<tr><td class='text--secondary'>$label</td><td class='text--primary'>$value</td></tr>";
|
||||
}
|
||||
|
||||
handle remainder => sub {
|
||||
|
||||
return unless ($_ =~ /^(O|A|B|AB)(\-|\+)$/i);
|
||||
|
@ -56,13 +51,9 @@ handle remainder => sub {
|
|||
}
|
||||
}
|
||||
|
||||
my $output = '';
|
||||
my $html = "<table class='blooddonor'>";
|
||||
|
||||
my $idealStr = join(' or ', @idealResults);
|
||||
my $criticalStr = join(' or ', @criticalResults);
|
||||
|
||||
|
||||
my %record_data = (
|
||||
"Ideal donor" => uc($_),
|
||||
"Other donors" => $idealStr,
|
||||
|
@ -75,10 +66,10 @@ handle remainder => sub {
|
|||
}
|
||||
|
||||
sub to_text
|
||||
{
|
||||
my ($data, $keys) = @_;
|
||||
return join "\n", map {"$_: $data->{$_}";} @{$keys};
|
||||
}
|
||||
{
|
||||
my ($data, $keys) = @_;
|
||||
return join "\n", map {"$_: $data->{$_}";} @{$keys};
|
||||
}
|
||||
|
||||
return to_text(\%record_data, \@record_keys), structured_answer => {
|
||||
id => 'BloodDonor',
|
||||
|
|
Loading…
Reference in New Issue