Reply To: Perl over SMAT – The search begins

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Perl over SMAT – The search begins Reply To: Perl over SMAT – The search begins

#58197
Richard Hart
Participant

    Tony.

    I have a Perl script that parses SMAT files with usage below.

    If you can code Perl, this can easily be changed.

    Usage: /hci/InfoHEALTH/bin/smatList.sh  [-v] [-h] [-p] [-fp] [-a] [-fa] [-m] [-fm] -o [file2] …

    Where -h          help!

         -v          verbose mode

         -o    the output file. See Note below

         -p  the Patient Code (MRN). This can be repeated

         -fp   a file containing Patient Codes (MRN), one per line

         -a  the Account Number. This can be repeated

         -fa   a file containing Account Numbers, one per line

         -m  the Medical Staff ID or GP Code (for Master File Updates). This can be repeated

         -fm   a file containing Medical Staff codes, one per line

         file1       is a Cloverleaf SMAT file, compressed or uncompressed

        The output file supplied will have a suffix _xxx.dat, where

        xxx is the file number in the range 1 through 999.

        Each file will contain  a maximum of 1000 records.