[Navigation]

Attachments and Windows Integration


Sections

  • Assemble for printing

    Attachments

    You can attach any sort of document, text, imaged, picture, word document etc. to the animal record card using the 'Attachments' option (Write) on the management card.

    The supported document types are configured by the practice, so you can fine tune the options available to suit your needs, and will be explained in the next section.

    When 'W'rite is pressed the menu will show:


    Document Types

    Documents attached to record cards are give a 'Document Type', this is based on the MIME attachments you may be familiar with if you use E-Mail. Some of the file type are:

          audio/mpg          ;  An MPG audio file
          audio/wav          ;  A .WAV audio file
          application/msword ;  Microsoft Word Document
          application/msexcel;  Microsoft Excel
          application/pdf    ;  Acrobat PDF file
          text/html          ;  HTML Document
          text/plain         ;  Vanilla Ascii text
          graphics/view      ;  Graphics image
    	  

    Up until now the only document type supported has been text/plain which is the documents generated by the vet system and the editors that are included.

    Note: With Anita version 5, the document type is not required. You should however use it as it is needed for other emulators.

    The document type are contained in a text file called 'filecap' in various locations. These files can be customised as required. The format is:

       application/msword ; \
          "C:\Program Files\MicroSoft Office\Office\word.exe" %s ; \
           test windows
       text/html ; "C:\Program Files\Internet explorer\iexplore.exe" %s ; \
           Description="Hypertext Markup" ; test windows
       text/html ; lynx %s ; Description="Hypertext Markup" 
       text/plain ; C:\Windows\Notepad %s ; Description="Notepad Files" test windows
       text/plain ; ste %s ; Description="Text Files" ; print lp -s -c %s 
       

    There should be an entry for every type you wish to be supported.

    Each 'section' (field) is separated via a semi-colon (;) and lines can be continued if they end with a back slash (\).

    The 1st two fields are mandatory and they should be:

    Look at the 'text/html' options above, there are two lines, one if you are running windows (test windows) and will call the Windows Web Browser (IE4) and the other will call the unix character based browser 'lynx'.

    If no test option is present then the document type will be included for all screens.

    Edit/Add entries as required, there is no hard and fast rule for naming file types, you could have vet/legal if you want. As long as there is a corresponding command in filecap so the system knows what to do with it.

    To allow you to automatically adjust the settings for you, your terminal and your location the file 'filecap' is checked for in the following locations:

    Your Home directory e.g. /u/tom/filecap
    Vet System + your name e.g. /u/vetdata/filecap.tom
    Vet System + Terminal e.g. /u/vetdata/filecap.3
    Vet System e.g. /u/vetdata/filecap

    The earlier entries WILL take precedence over the later ones. That is, if 'text/plain' is mentioned in both filecap.tom and filecap then the one in filecap.tom will be used, the other ignored.


    Attach Utility

    To enable documents to be automatically attached to record cards e.g. lab results, e-mail messages etc. a new stand alone option can be used to automate this.

    vet -p attach Original_name Animal_number Premvet_name Type

    The 1st two options are mandatory and should be the location of the attachment and the 2nd is the animal record number. The other options are optional:

    So to attach the document /tmp/lab.txt to record 100 you would specify:

                  vet -p attach /tmp/lab.txt 100
    			

    or a PDF Cardiac report to the same client.

                  vet -p attach /u/windows/xyz.pdf 100 cardiac.pdf application/pdf
    			  

    (Note: The Original_name and Premvet_name cannot contain spaces and original name must be readable by user 'vet')

    See also: The FAQ - Attach Lab Results

    Normally vet -p attach will give the attachment the description 'Automatic Attachment'. If the environment variable 'Attach' is set then the text contained in it will be used instead.

    There may be times where you wish to add a clinical comment to an animal's card whenever you use the stand-alone attachment utility. You can use the script /u/source/scripts/attach.sh.

    You pass a few arguments to attach.sh and it will automatically add the required text. The arguments are:

           
          Usage:   attach.sh Update Client Analysis Text text Text ..
                               $1     $2     $3      $4   $5   .. ..
    

    If
    $1 If this is set to Update then call vet -p integrate to force the integrate
    $2 Client number
    $3 Analysis Code
    text Text to add

    So to add the text 'Lab work - See W option' to animal 12 with analysis code 100 and force an update you would use

     /u/source/scripts/attach.sh Update 12 100 "Lab Work - See W Option"
    

    If you want to wait until a later time to integrate the lines (you may have multiple attachments to do) change the word 'Update' to anything else - do not leave it blank.

    Note: This option may not work on the older versions of OSR 5. Will work on OSR 5.0.5 and higher.


    Top Classic New-Style Chapters Sections Index Search