Advertisement
k-joseph

Untitled

Jun 25th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. /**
  2. * Version 1.0 (the "License"); you may not use this file except in
  3. * compliance with the License. You may obtain a copy of the License at
  4. * http://license.openmrs.org
  5. *
  6. * Software distributed under the License is distributed on an "AS IS"
  7. * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  8. * License for the specific language governing rights and limitations
  9. * under the License.
  10. *
  11. * Copyright (C) OpenMRS, LLC. All Rights Reserved.
  12. */
  13.  
  14. package org.openmrs.module.chartsearch.categories;
  15.  
  16. import java.io.Serializable;
  17.  
  18. import org.openmrs.BaseOpenmrsObject;
  19.  
  20. /**
  21. * This class Filters returned results by category items such as; diagnosis, labs, meds, orders,
  22. * Others, reports, vitals plus other custom defined categories by the user from the
  23. * manageCategories page
  24. */
  25. public class CategoryFilter extends BaseOpenmrsObject implements Serializable {
  26.  
  27. private static final long serialVersionUID = 1L;
  28.  
  29. private String categoryName;
  30.  
  31. private String categoryUuid;
  32.  
  33. private Integer categoryId;
  34.  
  35. private String categoryDescription;
  36.  
  37. private String filterQuery;
  38.  
  39. public String getCategoryName() {
  40. return categoryName;
  41. }
  42.  
  43. public void setCategoryName(String catName) {
  44. this.categoryName = catName;
  45. }
  46.  
  47. public String getCategoryUuid() {
  48. return categoryUuid;
  49. }
  50.  
  51. public void setCategoryUuid(String catUuid) {
  52. this.categoryUuid = catUuid;
  53. }
  54.  
  55. public Integer getCategoryId() {
  56. return categoryId;
  57. }
  58.  
  59. public void setCategoryId(Integer catId) {
  60. this.categoryId = catId;
  61. }
  62.  
  63. public String getCategoryDescription() {
  64. return categoryDescription;
  65. }
  66.  
  67. public void setCategoryDescription(String catDescription) {
  68. this.categoryDescription = catDescription;
  69. }
  70.  
  71. @Override
  72. public Integer getId() {
  73. return getCategoryId();
  74. }
  75.  
  76. @Override
  77. public void setId(Integer id) {
  78. setCategoryId(id);
  79. }
  80.  
  81. public String getFilterQuery() {
  82. return filterQuery;
  83. }
  84.  
  85. public void setFilterQuery(String filterQuery) {
  86. this.filterQuery = filterQuery;
  87. }
  88.  
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement