2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to you under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  package org.apache.shale.usecases.validator;
19  
20  public class Procedure {
21  
22      /***
23       * <p>Current Procedural Terminology Code</p>
24       */
25      private String cpt = null;
26  
27      /***
28       * <p>Description of the CPT code.</p>
29       */
30      private String descr = null;
31  
32      /***
33       * <p>Minimum allowable amount for the procedure.</p>
34       */
35      private double minAmt = 0;
36  
37      /***
38       * <p>Maximum allowable amount for the procedure.</p>
39       */
40      private double maxAmt = 0;
41  
42      /***
43       * <p>Billed amount for the procedure.</p>
44       */
45      private double billedAmt = 0;
46  
47      /***
48       * @param cpt procedure code
49       * @param descr procedure description
50       * @param minAmt minimum allowable amount
51       * @param maxAmt maximum allowable amount
52       */
53      public Procedure(String cpt, String descr, double minAmt, double maxAmt) {
54          this.cpt = cpt;
55          this.descr = descr;
56          this.minAmt = minAmt;
57          this.maxAmt = maxAmt;
58      }
59      
60      private int priority;
61      
62      public void setPriority(int newValue) {
63          priority = newValue;
64      }
65      
66      public int getPriority() {
67          return priority;
68      }
69      
70      /***
71       * @return procedure code
72       */
73      public String getCpt() {
74          return cpt;
75      }
76  
77      /***
78       * @param cpt procedure code
79       */
80      public void setCpt(String cpt) {
81          this.cpt = cpt;
82      }
83  
84      /***
85       * @return procedure description
86       */
87      public String getDescr() {
88          return descr;
89      }
90  
91      /***
92       * @param descr procedure description
93       */
94      public void setDescr(String descr) {
95          this.descr = descr;
96      }
97  
98      /***
99       * @return Maximum allowable amount for the procedure
100      */
101     public double getMaxAmt() {
102         return maxAmt;
103     }
104 
105     /***
106      * @param maxAmt Maximum allowable amount for the procedure
107      */
108     public void setMaxAmt(double maxAmt) {
109         this.maxAmt = maxAmt;
110     }
111 
112     /***
113      * @return Minimum allowable amount for the procedure
114      */
115     public double getMinAmt() {
116         return minAmt;
117     }
118 
119     /***
120      * @param minAmt minimum allowable amount for the procedure
121      */
122     public void setMinAmt(double minAmt) {
123         this.minAmt = minAmt;
124     }
125 
126     /***
127      * @return actual billed amount
128      */
129     public double getBilledAmt() {
130         return billedAmt;
131     }
132 
133     /***
134      * @param billedAmt actual billed amount
135      */
136     public void setBilledAmt(double billedAmt) {
137         this.billedAmt = billedAmt;
138     }
139 
140 }