1 # ---------------------------------------------------------------
2 # Copyright © 2014 Jason J.A. Stephenson <jason@sigio.com>
4 # This file is part of NCIPServer.
6 # NCIPServer is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # NCIPServer is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with NCIPServer. If not, see <http://www.gnu.org/licenses/>.
18 # ---------------------------------------------------------------
19 package NCIP::StructuredPersonalUserName;
21 use parent qw(Class::Accessor);
23 # The name of this class is a bit unwieldy, but comes directly from
24 # the standard. I wonder if we shouldn't rename for our own sanity.
28 StructuredPersonalUserName - Object to hold name information
38 The fields are text strings.
42 Optional field to hold the user's name prefix.
46 Optional field to hold the user's given, or first, name.
50 Required field to hold the user's surname. This is the user's family
53 This field is required by the standard and also so the code may tell
54 the difference from an unstructured name if we ever support it.
58 Optional field for the user's name initials.
62 Optional field for the user's name suffix, if any.
66 NCIP::StructuredPersonalUserName->mk_accessors(
67 qw(Prefix GivenName Surname Initials Suffix)