wiki:genvasc_labels

Version 3 (modified by Nick Holden, 12 years ago) ( diff )

--

This is a custom-built drupal module to generate a GENVASC unique participant ID, and print participant labels for it.

Version 1.0 installed on the drupal test machine (uhlbriccsapp04.xuhl-tr.nhs.uk) on 17 Sept 2012.

Installation process is simple: unzip into the site's modules folder (often /sites/all/modules), use the administration panel to enable the module, then the blocks panel to enable the block, then the permissions panel to grant permission to use the block to the relevant user role. The label format is fixed, but the printer IP and port, and the number of labels per ID are configurable. The number of IDs to generate (1 - 10) is set by the end user.

See IdLabelPrinting for the BRICCS ID label printing configurations, and underlying set-up.

The drupal schema for the the MySQL table for 'genvasc_ids' is very simple:

  $schema['genvasc_ids'] =  array(

    'description' => 'The table for used GENVASC IDs.',
    'fields' => array(
      'genvasc_id' => array(
        'description' => 'GENVASC IDs already used.',
        'type' => 'varchar',
        'length' => 16,
        'not null' => TRUE,
        'default' => '0'),
      ),
    'primary key' => array('genvasc_id'),
  );
Note: See TracWiki for help on using the wiki.