ch.elexis.befunde.xchange
Class XChangeContributor
java.lang.Object
ch.elexis.befunde.xchange.XChangeContributor
- All Implemented Interfaces:
- IExchangeContributor
public class XChangeContributor
- extends java.lang.Object
- implements IExchangeContributor
Plug into the elexis xChange model. Since we have that slightly weird model
of finding definition in this elexis-befunde-Plugin, this is more complicated
as in other plugins. First we need to figure out the Names of the Tabs in the
FindingsView. These are encoded in the hashtable as value of the Item
"Setup". We can retrieve this item with the call to Messwert.getSetup(); Its
Befunde-Member holds a hashtable that encodes all finding items. The names of
the items are listet as hash value with the key "names", a String separated
by SETUP_SEPARATOR The fields of each item are listed as hash values with the
key [name]_FIELDS. Each is a String separated by SETUP_SEPARATOR. Every field
contains a name and a multiline-indicator, separated by SETUP_CHECKSEPARATOR.
The name can, optionally, contain a script definition. In that case it ist a
String of the form result=script
We create from every finding item an xChange:BefundeItem and from every
finding entry an xChange:BefundElement. Thus if we have a tab "Cardio"
defined, with the elements RRSyst,RRDiast,HR, there will be three
FindingElements called Cardio:RRSyst, Cardio:RRDiast, Cardio:HR
- Author:
- Gerry
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XChangeContributor
public XChangeContributor()
setPatient
public void setPatient(Patient pat)
getResults
public java.util.List<Messwert> getResults(java.lang.String name)
getResult
public java.util.HashMap<java.lang.String,java.lang.String> getResult(java.lang.String name,
java.lang.String date)
exportHook
public void exportHook(MedicalElement me)
- Description copied from interface:
IExchangeContributor
- An Element is to be exported. The method can contribute its own data
- Specified by:
exportHook
in interface IExchangeContributor
importHook
public void importHook(XChangeContainer container,
PersistentObject context)
- Description copied from interface:
IExchangeContributor
- An Element ist to be imported. The method can fetch data it can handle
- Specified by:
importHook
in interface IExchangeContributor
- Parameters:
container
- the source container
init
public boolean init(MedicalElement me,
boolean export)
- Description copied from interface:
IExchangeContributor
- Perform any needed initialization before the first call
- Specified by:
init
in interface IExchangeContributor
- Parameters:
me
- : The Medical into/from wich the transfer will happenexport
- : true: export is about to begin. False: import is about to begin
- Returns:
- false: skip me. True: ok, go on
setInitializationData
public void setInitializationData(IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
throws CoreException
- Throws:
CoreException
Copyright 2005-2011 by Gerry Weirich, Elexis