ICD10/Graph.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ICD10/Parser.pm ↑ Summary ICD10/Term.pm »
1 package Medical::ICD10::Graph;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use Graph::Directed;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 Medical::ICD10::Graph - ICD10 Graph object
11  
12 =head1 METHODS
13  
14 =head2 new
15  
16 Creates a new graph object with a single edge, the root.
17
18 Do not use this module directly, this is for the sole purpose
19 of manipulating the internal graph that stores the ontology.
20  
21 =cut
22  
23 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
24 2 my $class = shift;
25
26 2 my $self = Graph::Directed->new();
27 2 $self->add_vertex( 'root' );
28 2 $self->set_vertex_attribute('root', 'description', 'This is the root node.' );
29
30 2 return $self;
31 }
32  
33  
34 =head1 AUTHOR
35  
36 Spiros Denaxas, C<< <s.denaxas at gmail.com> >>
37  
38 =head1 BUGS
39  
40 Please report any bugs or feature requests to C<bug-medical-icd10 at rt.cpan.org>, or through
41 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Medical-ICD10>. I will be notified, and then you'll
42 automatically be notified of progress on your bug as I make changes.
43  
44 =head1 SOURCE CODE
45  
46 The source code can be found on github L<https://github.com/spiros/Medical-ICD10>
47  
48 =head1 SUPPORT
49  
50 You can find documentation for this module with the perldoc command.
51  
52 perldoc Medical::ICD10
53  
54  
55 You can also look for information at:
56  
57 =over 4
58  
59 =item * RT: CPAN's request tracker
60  
61 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Medical-ICD10>
62  
63 =item * AnnoCPAN: Annotated CPAN documentation
64  
65 L<http://annocpan.org/dist/Medical-ICD10>
66  
67 =item * CPAN Ratings
68  
69 L<http://cpanratings.perl.org/d/Medical-ICD10>
70  
71 =item * Search CPAN
72  
73 L<http://search.cpan.org/dist/Medical-ICD10/>
74  
75 =back
76  
77 =head1 LICENSE AND COPYRIGHT
78  
79 Copyright 2011 Spiros Denaxas.
80  
81 This program is free software; you can redistribute it and/or modify it
82 under the terms of either: the GNU General Public License as published
83 by the Free Software Foundation; or the Artistic License.
84  
85 See http://dev.perl.org/licenses/ for more information.
86  
87  
88 =cut
89  
90  
91 4 1;
« ICD10/Parser.pm ↑ Summary ICD10/Term.pm »