From e99145dce7acc303e49c48d6574cd2f4af0309af Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sun, 17 Aug 2014 11:44:41 -0400 Subject: [PATCH] Have UserId be an array ref in NCIP::User. Adjust the LookupUserResponse.inc template, and add text to POD in NCIP::User explaining the fields. Signed-off-by: Jason Stephenson --- lib/NCIP/User.pm | 4 ++++ templates/includes/LookupUserResponse.inc | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/NCIP/User.pm b/lib/NCIP/User.pm index 79f0b76..7e1b204 100644 --- a/lib/NCIP/User.pm +++ b/lib/NCIP/User.pm @@ -34,8 +34,12 @@ User - An object for user information =head2 UserId +An array ref of NCIP::User::Id objects. + =head2 UserOptionalFields +A single NCIP::User::OptionalFields object. + =cut diff --git a/templates/includes/LookupUserResponse.inc b/templates/includes/LookupUserResponse.inc index fa2af36..e7e620c 100644 --- a/templates/includes/LookupUserResponse.inc +++ b/templates/includes/LookupUserResponse.inc @@ -1,18 +1,20 @@ +[% FOREACH id IN data.UserId -%] -[% data.UserId.UserIdentifierValue | xml %] +[% id.UserIdentifierValue | xml %] -[% IF data.UserId.UserIdentifierType -%] +[% IF id.UserIdentifierType -%] -[% data.UserId.UserIdentifierType | xml %] +[% id.UserIdentifierType | xml %] [% END -%] -[% IF data.UserId.AgencyId -%] +[% IF id.AgencyId -%] -[% data.UserId.AgencyId %] +[% id.AgencyId %] [% END -%] +[% END -%] [% IF data.UserOptionalFields -%] [% IF data.UserOptionalFields.NameInformation -%] -- 2.43.2