Preparing Phase II assessments in your database using 
      Clinical Assessment Layout Manager (CALM) 
-----------------------------------------------------

Before being able to use the hooked Phase2 assessments under 
HID web app version 1.5.2, you need to follow the following steps.

1) Get the latest CALM from the CVS

cvs checkout BIRN/cas_layout


2) Edit your $CAS_LAYOUT_HOME/con/caslayout.properties file for
database connection information. For example for UCSD, they are

db_url=jdbc:oracle:thin:@fmri-gpop.nbirn.net:1521:fbirn1
db_schema=UCSD_FMRI
user=UCSD_FMRI
pwd=<a password>


3) run ant to build CALM

cd $CAS_LAYOUT_HOME
ant

4) In $CAS_LAYOUT_HOME/conf, copy log4j.properties.example to log4j.properties
and replace ${DEST_PATH} with the directory pointed by $CAS_LAYOUT_HOME

5) Set CALM_HOME environment variable to $CAS_LAYOUT_HOME (for example
/home/myusername/BIRN/cas_layout)

   export CALM_HOME=/home/myusername/BIRN/cas_layout

6) Prepare the CALM invokation script by

   cd  $CAS_LAYOUT_HOME/bin
   cp calm.sh.example calm.sh
   chmod og+x calm.sh

7) run CALM

  calm.sh

8) From File Menu->Load , load one of the XML Layout files in the
$CAS_LAYOUT_HOME/phase2 directory.

9) From Tools Menu select Save Assessment to DB option and press Yes Button in
the Saving Assessment Dialog Box to start saving the assessment meta-data to
your database.

10) Repeat steps 8 & 9 for all the phase2 assessments in the
$CAS_LAYOUT_HOME/phase2 directory.


