Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.laborimport.bioanalytica
Class Groups

java.lang.Object
  extended by ch.elexis.laborimport.bioanalytica.Groups

public class Groups
extends java.lang.Object

This class provides the groups and codes used by the lab Bioanalytica. Important: Each public method must run init() to make sure data is loaded.

Author:
Daniel Lutz

Constructor Summary
Groups()
           
 
Method Summary
static java.lang.String getCodeName(java.lang.String key)
          Get the code's name
static java.lang.String getCodeOrderByGroupName(java.lang.String groupName, Kontakt labor)
          Determine a priority by consulting the existing prios of the group.
static java.lang.String getGroupNameOfCode(java.lang.String key)
          Get the group's name of a given code
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Groups

public Groups()
Method Detail

main

public static void main(java.lang.String[] args)

getGroupNameOfCode

public static java.lang.String getGroupNameOfCode(java.lang.String key)
Get the group's name of a given code

Parameters:
code -
Returns:

getCodeName

public static java.lang.String getCodeName(java.lang.String key)
Get the code's name

Parameters:
key - the code
Returns:
the name of the code

getCodeOrderByGroupName

public static java.lang.String getCodeOrderByGroupName(java.lang.String groupName,
                                                       Kontakt labor)
Determine a priority by consulting the existing prios of the group. We don't consider prios with string length < 3 (to make things easier). We start at prio 001.

Parameters:
groupName - the gorup's name this labitem is part of
labor - the labor this labitem is part of
Returns:
the next free priority

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis