line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::HL7::Compare::Parser::Subcomponent; |
2
|
|
|
|
|
|
|
$App::HL7::Compare::Parser::Subcomponent::VERSION = '0.002'; |
3
|
4
|
|
|
4
|
|
48
|
use v5.10; |
|
4
|
|
|
|
|
14
|
|
4
|
4
|
|
|
4
|
|
28
|
use strict; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
76
|
|
5
|
4
|
|
|
4
|
|
23
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
85
|
|
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
24
|
use Moo; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
21
|
|
8
|
4
|
|
|
4
|
|
1373
|
use Mooish::AttributeBuilder -standard; |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
24
|
|
9
|
4
|
|
|
4
|
|
447
|
use Types::Standard qw(Str); |
|
4
|
|
|
|
|
19
|
|
|
4
|
|
|
|
|
23
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has field 'value' => ( |
12
|
|
|
|
|
|
|
isa => Str, |
13
|
|
|
|
|
|
|
lazy => 1, |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
with qw( |
17
|
|
|
|
|
|
|
App::HL7::Compare::Parser::Role::Part |
18
|
|
|
|
|
|
|
App::HL7::Compare::Parser::Role::RequiresInput |
19
|
|
|
|
|
|
|
App::HL7::Compare::Parser::Role::Stringifies |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub _build_value |
23
|
|
|
|
|
|
|
{ |
24
|
38
|
|
|
38
|
|
334
|
my ($self) = @_; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# TODO: unescape HL7 parts |
27
|
38
|
|
|
|
|
86
|
return $self->consume_input; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub to_string |
31
|
|
|
|
|
|
|
{ |
32
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
# TODO: escape HL7 parts |
35
|
0
|
|
|
|
|
|
return $self->value; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|