File Coverage

blib/lib/SemanticWeb/Schema/MedicalOrganization.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1 1     1   526 use utf8;
  1         2  
  1         5  
2              
3             package SemanticWeb::Schema::MedicalOrganization;
4              
5             # ABSTRACT: A medical organization (physical or not)
6              
7 1     1   44 use Moo;
  1         2  
  1         5  
8              
9             extends qw/ SemanticWeb::Schema::Organization /;
10              
11              
12 1     1   304 use MooX::JSON_LD 'MedicalOrganization';
  1         2  
  1         6  
13 1     1   2035 use Ref::Util qw/ is_plain_hashref /;
  1         2  
  1         60  
14             # RECOMMEND PREREQ: Ref::Util::XS
15              
16 1     1   7 use namespace::autoclean;
  1         2  
  1         5  
17              
18             our $VERSION = 'v15.0.0';
19              
20              
21             has health_plan_network_id => (
22             is => 'rw',
23             predicate => '_has_health_plan_network_id',
24             json_ld => 'healthPlanNetworkId',
25             );
26              
27              
28              
29             has is_accepting_new_patients => (
30             is => 'rw',
31             predicate => '_has_is_accepting_new_patients',
32             json_ld => 'isAcceptingNewPatients',
33             );
34              
35              
36              
37             has medical_specialty => (
38             is => 'rw',
39             predicate => '_has_medical_specialty',
40             json_ld => 'medicalSpecialty',
41             );
42              
43              
44              
45              
46              
47             1;
48              
49             __END__
50              
51             =pod
52              
53             =encoding UTF-8
54              
55             =head1 NAME
56              
57             SemanticWeb::Schema::MedicalOrganization - A medical organization (physical or not)
58              
59             =head1 VERSION
60              
61             version v15.0.0
62              
63             =head1 DESCRIPTION
64              
65             A medical organization (physical or not), such as hospital, institution or
66             clinic.
67              
68             =head1 ATTRIBUTES
69              
70             =head2 C<health_plan_network_id>
71              
72             C<healthPlanNetworkId>
73              
74             Name or unique ID of network. (Networks are often reused across different
75             insurance plans.)
76              
77             A health_plan_network_id should be one of the following types:
78              
79             =over
80              
81             =item C<Str>
82              
83             =back
84              
85             =head2 C<_has_health_plan_network_id>
86              
87             A predicate for the L</health_plan_network_id> attribute.
88              
89             =head2 C<is_accepting_new_patients>
90              
91             C<isAcceptingNewPatients>
92              
93             Whether the provider is accepting new patients.
94              
95             A is_accepting_new_patients should be one of the following types:
96              
97             =over
98              
99             =item C<Bool>
100              
101             =back
102              
103             =head2 C<_has_is_accepting_new_patients>
104              
105             A predicate for the L</is_accepting_new_patients> attribute.
106              
107             =head2 C<medical_specialty>
108              
109             C<medicalSpecialty>
110              
111             A medical specialty of the provider.
112              
113             A medical_specialty should be one of the following types:
114              
115             =over
116              
117             =item C<InstanceOf['SemanticWeb::Schema::MedicalSpecialty']>
118              
119             =back
120              
121             =head2 C<_has_medical_specialty>
122              
123             A predicate for the L</medical_specialty> attribute.
124              
125             =head1 SEE ALSO
126              
127             L<SemanticWeb::Schema::Organization>
128              
129             =head1 SOURCE
130              
131             The development version is on github at L<https://github.com/robrwo/SemanticWeb-Schema>
132             and may be cloned from L<git://github.com/robrwo/SemanticWeb-Schema.git>
133              
134             =head1 BUGS
135              
136             Please report any bugs or feature requests on the bugtracker website
137             L<https://github.com/robrwo/SemanticWeb-Schema/issues>
138              
139             When submitting a bug or request, please include a test-file or a
140             patch to an existing test-file that illustrates the bug or desired
141             feature.
142              
143             =head1 AUTHOR
144              
145             Robert Rothenberg <rrwo@cpan.org>
146              
147             =head1 COPYRIGHT AND LICENSE
148              
149             This software is Copyright (c) 2018-2022 by Robert Rothenberg.
150              
151             This is free software, licensed under:
152              
153             The Artistic License 2.0 (GPL Compatible)
154              
155             =cut