The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

xDT::Object - Instances of this module are collections of xDT records.

VERSION

Version 1.00

SYNOPSIS

Instances should be used to aggregate records for a single patient. Each object should starts and ends with respective record types of the used xDT version.

    use xDT::Object;

    my @records = (); # should be an array of xDT::Record instances
    my $object  = xDT::Object->new();
    $object->addRecord(@records);

    say 'Patient number: '. $object->getValue('patientNumber');
    say 'Birthdate: '. $object->getValue('birthdate');

ATTRIBUTES

records An ArrayRef to xDT::Record instances.

SUBROUTINES/METHODS

isEmpty Checks if this object has any records.

get($accessor) This function returns all records of the object with have the given accessor.

getValue($accessor) In contrast to xDT::Object->get(), this function returns the values of records, returned by xDT::Object->get().

getRecords Corresponse to the elements function.

addRecord Corresponse to the push function.

mapRecords Corresponse to the map function.

recordCount Correpsonse to the count function.

sortedRecords Corresponse to the sort function.

nextRecord Corresponse to the shift function.

AUTHOR

Christoph Beger, <christoph.beger at imise.uni-leipzig.de>

BUGS

Please report any bugs or feature requests to bug-xdt-parser at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=xDT-Parser. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc xDT::Object

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2017 Christoph Beger.

This program is released under the following license: MIT