Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 3397

Show
Ignore:
Timestamp:
02/15/08 13:32:44 (11 months ago)
Author:
tmdugan
Message:

-- dss

* changed DssElement to store rule result as an openmrs logic result instead of a text string

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/dss/metadata/config.xml

    r3386 r3397  
    77        <id>dss</id> 
    88        <name>Dss</name> 
    9         <version>2.04</version> 
     9        <version>2.05</version> 
    1010        <package>org.openmrs.module.@MODULE_ID@</package> 
    1111        <author>Vibha Anand and Tammy Dugan</author> 
  • openmrs-modules/dss/src/org/openmrs/module/dss/DssElement.java

    r3386 r3397  
    33 */ 
    44package org.openmrs.module.dss; 
     5 
     6import org.openmrs.logic.result.Result; 
    57 
    68/** 
     
    1012public class DssElement 
    1113{ 
    12         private String text = null; 
     14        private Result result = null; 
    1315        private Integer ruleId = null; 
    1416        private Integer fieldId = null; 
     
    1820         * @param ruleId 
    1921         */ 
    20         public DssElement(String text, int ruleId) 
     22        public DssElement(Result result, int ruleId) 
    2123        { 
    22                 this.text = text; 
     24                this.result = result; 
    2325                this.ruleId = ruleId; 
    2426        } 
    2527 
    2628        /** 
    27          * @return the tex
     29         * @return the resul
    2830         */ 
    29         public String getText() 
     31        public Result getResult() 
    3032        { 
    31                 return this.text; 
     33                return this.result; 
    3234        } 
    3335 
  • openmrs-modules/dss/src/org/openmrs/module/dss/DssManager.java

    r3386 r3397  
    9494                                if (currResult != null) 
    9595                                { 
    96                                         currDssElement = new DssElement(currResult.toString()
     96                                        currDssElement = new DssElement(currResult
    9797                                                        currRule.getRuleId()); 
    9898                                        dssElements.add(currDssElement);