Advertisement
Guest User

Untitled

a guest
May 28th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.99 KB | None | 0 0
  1. /**
  2. * The contents of this file are subject to the OpenMRS Public License
  3. * Version 1.0 (the "License"); you may not use this file except in
  4. * compliance with the License. You may obtain a copy of the License at
  5. * http://license.openmrs.org
  6. *
  7. * Software distributed under the License is distributed on an "AS IS"
  8. * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  9. * License for the specific language governing rights and limitations
  10. * under the License.
  11. *
  12. * Copyright (C) OpenMRS, LLC. All Rights Reserved.
  13. */
  14. package org.openmrs.util;
  15.  
  16. import org.openmrs.annotation.AddOnStartup;
  17. import org.openmrs.annotation.HasAddOnStartupPrivileges;
  18.  
  19. /**
  20. * Contains all privilege names and their descriptions. Some of privilege names may be marked with
  21. * AddOnStartup annotation.
  22. *
  23. * @see org.openmrs.annotation.AddOnStartup
  24. * @since 1.8
  25. */
  26. @HasAddOnStartupPrivileges
  27. public class PrivilegeConstants {
  28.  
  29. @AddOnStartup(description = "Able to get concept entries")
  30. public static final String GET_CONCEPTS = "Get Concepts";
  31.  
  32. @AddOnStartup(description = "Able to get concept proposals to the system")
  33. public static final String GET_CONCEPT_PROPOSALS = "Get Concept Proposals";
  34.  
  35. @AddOnStartup(description = "Able to get users in OpenMRS")
  36. public static final String GET_USERS = "Get Users";
  37.  
  38. @AddOnStartup(description = "Able to get patient encounters")
  39. public static final String GET_ENCOUNTERS = "Get Encounters";
  40.  
  41. @AddOnStartup(description = "Able to get encounter types")
  42. public static final String GET_ENCOUNTER_TYPES = "Get Encounter Types";
  43.  
  44. @AddOnStartup(description = "Able to get locations")
  45. public static final String GET_LOCATIONS = "Get Locations";
  46.  
  47. @AddOnStartup(description = "Able to get patient observations")
  48. public static final String GET_OBS = "Get Observations";
  49.  
  50. @AddOnStartup(description = "Able to get patients")
  51. public static final String GET_PATIENTS = "Get Patients";
  52.  
  53. @AddOnStartup(description = "Able to get patient identifiers")
  54. public static final String GET_PATIENT_IDENTIFIERS = "Get Patient Identifiers";
  55.  
  56. @AddOnStartup(description = "Able to get patient cohorts")
  57. public static final String GET_PATIENT_COHORTS = "Get Patient Cohorts";
  58.  
  59. @AddOnStartup(description = "Able to get orders")
  60. public static final String GET_ORDERS = "Get Orders";
  61.  
  62. @AddOnStartup(description = "Able to get forms")
  63. public static final String GET_FORMS = "Get Forms";
  64.  
  65. @AddOnStartup(description = "Able to get patient identifier types")
  66. public static final String GET_IDENTIFIER_TYPES = "Get Identifier Types";
  67.  
  68. @AddOnStartup(description = "Able to get concept classes")
  69. public static final String GET_CONCEPT_CLASSES = "Get Concept Classes";
  70.  
  71. @AddOnStartup(description = "Able to get concept datatypes")
  72. public static final String GET_CONCEPT_DATATYPES = "Get Concept Datatypes";
  73.  
  74. @AddOnStartup(description = "Able to get user privileges")
  75. public static final String GET_PRIVILEGES = "Get Privileges";
  76.  
  77. @AddOnStartup(description = "Able to get user roles")
  78. public static final String GET_ROLES = "Get Roles";
  79.  
  80. @AddOnStartup(description = "Able to get field types")
  81. public static final String GET_FIELD_TYPES = "Get Field Types";
  82.  
  83. @AddOnStartup(description = "Able to get order types")
  84. public static final String GET_ORDER_TYPES = "Get Order Types";
  85.  
  86. @AddOnStartup(description = "Able to get relationship types")
  87. public static final String GET_RELATIONSHIP_TYPES = "Get Relationship Types";
  88.  
  89. @AddOnStartup(description = "Able to get concept sources")
  90. public static final String GET_CONCEPT_SOURCES = "Get Concept Sources";
  91.  
  92. @AddOnStartup(description = "Able to get concept map types")
  93. public static final String GET_CONCEPT_MAP_TYPES = "Get Concept Map Types";
  94.  
  95. @AddOnStartup(description = "Able to get concept reference terms")
  96. public static final String GET_CONCEPT_REFERENCE_TERMS = "Get Concept Reference Terms";
  97.  
  98. @AddOnStartup(description = "Able to get patient programs")
  99. public static final String GET_PROGRAMS = "Get Programs";
  100.  
  101. @AddOnStartup(description = "Able to get which programs that patients are in")
  102. public static final String GET_PATIENT_PROGRAMS = "Get Patient Programs";
  103.  
  104. @AddOnStartup(description = "Able to delete program_workflow_state from the system")
  105. public static final String DELETE_PROGRAM_WORKFLOW_STATE = "Delete Program Workflow State";
  106.  
  107. @AddOnStartup(description = "Able to get global properties on the administration screen")
  108. public static final String GET_GLOBAL_PROPERTIES = "Get Global Properties";
  109.  
  110. @AddOnStartup(description = "Able to get person attribute types")
  111. public static final String GET_PERSON_ATTRIBUTE_TYPES = "Get Person Attribute Types";
  112.  
  113. @AddOnStartup(description = "Able to get person objects")
  114. public static final String GET_PERSONS = "Get People";
  115.  
  116. @AddOnStartup(description = "Able to get relationships")
  117. public static final String GET_RELATIONSHIPS = "Get Relationships";
  118.  
  119. @AddOnStartup(description = "Able to get database changes from the admin screen")
  120. public static final String GET_DATABASE_CHANGES = "Get Database Changes";
  121.  
  122. @AddOnStartup(description = "Able to get problems")
  123. public static final String GET_PROBLEMS = "Get Problems";
  124.  
  125. @AddOnStartup(description = "Able to get allergies")
  126. public static final String GET_ALLERGIES = "Get Allergies";
  127.  
  128. @AddOnStartup(description = "Able to add/edit/delete HL7 messages")
  129. public static final String MANAGE_HL7_MESSAGES = "Manage HL7 Messages";
  130.  
  131. public static final String PURGE_HL7_MESSAGES = "Purge HL7 Messages";
  132.  
  133. @AddOnStartup(description = "Able to get an HL7 Source")
  134. public static final String GET_HL7_SOURCE = "Get HL7 Source";
  135.  
  136. @AddOnStartup(description = "Able to get an HL7 Queue item")
  137. public static final String GET_HL7_IN_QUEUE = "Get HL7 Inbound Queue";
  138.  
  139. @AddOnStartup(description = "Able to get an HL7 archive item")
  140. public static final String GET_HL7_IN_ARCHIVE = "Get HL7 Inbound Archive";
  141.  
  142. @AddOnStartup(description = "Able to get an HL7 error item")
  143. public static final String GET_HL7_IN_EXCEPTION = "Get HL7 Inbound Exception";
  144.  
  145. @AddOnStartup(description = "Able to get visit types")
  146. public static final String GET_VISIT_TYPES = "Get Visit Types";
  147.  
  148. @AddOnStartup(description = "Able to get visits")
  149. public static final String GET_VISITS = "Get Visits";
  150.  
  151. @AddOnStartup(description = "Able to get visit attribute types")
  152. public static final String GET_VISIT_ATTRIBUTE_TYPES = "Get Visit Attribute Types";
  153.  
  154. @AddOnStartup(description = "Able to get location attribute types")
  155. public static final String GET_LOCATION_ATTRIBUTE_TYPES = "Get Location Attribute Types";
  156.  
  157. @AddOnStartup(description = "Able to get Provider")
  158. public static final String GET_PROVIDERS = "Get Providers";
  159.  
  160. @AddOnStartup(description = "Able to get encounter roles")
  161. public static final String GET_ENCOUNTER_ROLES = "Get Encounter Roles";
  162.  
  163. /**
  164. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_CONCEPTS
  165. */
  166. @Deprecated
  167. @AddOnStartup(description = "Able to view concept entries")
  168. public static final String VIEW_CONCEPTS = GET_CONCEPTS;
  169.  
  170. @AddOnStartup(description = "Able to add/edit/delete concept entries")
  171. public static final String MANAGE_CONCEPTS = "Manage Concepts";
  172.  
  173. public static final String PURGE_CONCEPTS = "Purge Concepts";
  174.  
  175. @AddOnStartup(description = "Able to add/edit/delete concept name tags")
  176. public static final String MANAGE_CONCEPT_NAME_TAGS = "Manage Concept Name tags";
  177.  
  178. /**
  179. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_CONCEPT_PROPOSALS
  180. */
  181. @Deprecated
  182. @AddOnStartup(description = "Able to view concept proposals to the system")
  183. public static final String VIEW_CONCEPT_PROPOSALS = GET_CONCEPT_PROPOSALS;
  184.  
  185. @AddOnStartup(description = "Able to add concept proposals to the system")
  186. public static final String ADD_CONCEPT_PROPOSALS = "Add Concept Proposals";
  187.  
  188. @AddOnStartup(description = "Able to edit concept proposals in the system")
  189. public static final String EDIT_CONCEPT_PROPOSALS = "Edit Concept Proposals";
  190.  
  191. @AddOnStartup(description = "Able to delete concept proposals from the system")
  192. public static final String DELETE_CONCEPT_PROPOSALS = "Delete Concept Proposals";
  193.  
  194. public static final String PURGE_CONCEPT_PROPOSALS = "Purge Concept Proposals";
  195.  
  196. /**
  197. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_USERS
  198. */
  199. @Deprecated
  200. @AddOnStartup(description = "Able to view users in OpenMRS")
  201. public static final String VIEW_USERS = GET_USERS;
  202.  
  203. @AddOnStartup(description = "Able to add users to OpenMRS")
  204. public static final String ADD_USERS = "Add Users";
  205.  
  206. @AddOnStartup(description = "Able to edit users in OpenMRS")
  207. public static final String EDIT_USERS = "Edit Users";
  208.  
  209. @AddOnStartup(description = "Able to delete users in OpenMRS")
  210. public static final String DELETE_USERS = "Delete Users";
  211.  
  212. public static final String PURGE_USERS = "Purge Users";
  213.  
  214. @AddOnStartup(description = "Able to change the passwords of users in OpenMRS")
  215. public static final String EDIT_USER_PASSWORDS = "Edit User Passwords";
  216.  
  217. /**
  218. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_ENCOUNTERS
  219. */
  220. @Deprecated
  221. @AddOnStartup(description = "Able to view patient encounters")
  222. public static final String VIEW_ENCOUNTERS = GET_ENCOUNTERS;
  223.  
  224. @AddOnStartup(description = "Able to add patient encounters")
  225. public static final String ADD_ENCOUNTERS = "Add Encounters";
  226.  
  227. @AddOnStartup(description = "Able to edit patient encounters")
  228. public static final String EDIT_ENCOUNTERS = "Edit Encounters";
  229.  
  230. @AddOnStartup(description = "Able to delete patient encounters")
  231. public static final String DELETE_ENCOUNTERS = "Delete Encounters";
  232.  
  233. public static final String PURGE_ENCOUNTERS = "Purge Encounters";
  234.  
  235. /**
  236. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_ENCOUNTER_TYPES
  237. */
  238. @Deprecated
  239. @AddOnStartup(description = "Able to view encounter types")
  240. public static final String VIEW_ENCOUNTER_TYPES = GET_ENCOUNTER_TYPES;
  241.  
  242. @AddOnStartup(description = "Able to add/edit/retire encounter types")
  243. public static final String MANAGE_ENCOUNTER_TYPES = "Manage Encounter Types";
  244.  
  245. public static final String PURGE_ENCOUNTER_TYPES = "Purge Encounter Types";
  246.  
  247. @AddOnStartup(description = "Able to choose encounter visit handler and enable/disable encounter visits")
  248. public static final String CONFIGURE_VISITS = "Configure Visits";
  249.  
  250. /**
  251. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_LOCATIONS
  252. */
  253. @Deprecated
  254. @AddOnStartup(description = "Able to view locations")
  255. public static final String VIEW_LOCATIONS = GET_LOCATIONS;
  256.  
  257. @AddOnStartup(description = "Able to add/edit/delete locations")
  258. public static final String MANAGE_LOCATIONS = "Manage Locations";
  259.  
  260. public static final String PURGE_LOCATIONS = "Purge Locations";
  261.  
  262. @AddOnStartup(description = "Able to add/edit/delete location tags")
  263. public static final String MANAGE_LOCATION_TAGS = "Manage Location Tags";
  264.  
  265. @AddOnStartup(description = "Able to add/edit/delete address templates")
  266. public static final String MANAGE_ADDRESS_TEMPLATES = "Manage Address Templates";
  267.  
  268. public static final String PURGE_LOCATION_TAGS = "Purge Location Tags";
  269.  
  270. /**
  271. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_OBS
  272. */
  273. @Deprecated
  274. @AddOnStartup(description = "Able to view patient observations")
  275. public static final String VIEW_OBS = GET_OBS;
  276.  
  277. @AddOnStartup(description = "Able to add patient observations")
  278. public static final String ADD_OBS = "Add Observations";
  279.  
  280. @AddOnStartup(description = "Able to edit patient observations")
  281. public static final String EDIT_OBS = "Edit Observations";
  282.  
  283. @AddOnStartup(description = "Able to delete patient observations")
  284. public static final String DELETE_OBS = "Delete Observations";
  285.  
  286. public static final String PURGE_OBS = "Purge Observations";
  287.  
  288. /**
  289. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PATIENTS
  290. */
  291. @Deprecated
  292. @AddOnStartup(description = "Able to view patients")
  293. public static final String VIEW_PATIENTS = GET_PATIENTS;
  294.  
  295. @AddOnStartup(description = "Able to add patients")
  296. public static final String ADD_PATIENTS = "Add Patients";
  297.  
  298. @AddOnStartup(description = "Able to edit patients")
  299. public static final String EDIT_PATIENTS = "Edit Patients";
  300.  
  301. @AddOnStartup(description = "Able to delete patients")
  302. public static final String DELETE_PATIENTS = "Delete Patients";
  303.  
  304. public static final String PURGE_PATIENTS = "Purge Patients";
  305.  
  306. /**
  307. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PATIENT_IDENTIFIERS
  308. */
  309. @Deprecated
  310. @AddOnStartup(description = "Able to view patient identifiers")
  311. public static final String VIEW_PATIENT_IDENTIFIERS = GET_PATIENT_IDENTIFIERS;
  312.  
  313. @AddOnStartup(description = "Able to add patient identifiers")
  314. public static final String ADD_PATIENT_IDENTIFIERS = "Add Patient Identifiers";
  315.  
  316. @AddOnStartup(description = "Able to edit patient identifiers")
  317. public static final String EDIT_PATIENT_IDENTIFIERS = "Edit Patient Identifiers";
  318.  
  319. @AddOnStartup(description = "Able to delete patient identifiers")
  320. public static final String DELETE_PATIENT_IDENTIFIERS = "Delete Patient Identifiers";
  321.  
  322. public static final String PURGE_PATIENT_IDENTIFIERS = "Purge Patient Identifiers";
  323.  
  324. /**
  325. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PATIENT_COHORTS
  326. */
  327. @Deprecated
  328. @AddOnStartup(description = "Able to view patient cohorts")
  329. public static final String VIEW_PATIENT_COHORTS = GET_PATIENT_COHORTS;
  330.  
  331. @AddOnStartup(description = "Able to add a cohort to the system")
  332. public static final String ADD_COHORTS = "Add Cohorts";
  333.  
  334. @AddOnStartup(description = "Able to add a cohort to the system")
  335. public static final String EDIT_COHORTS = "Edit Cohorts";
  336.  
  337. @AddOnStartup(description = "Able to add a cohort to the system")
  338. public static final String DELETE_COHORTS = "Delete Cohorts";
  339.  
  340. public static final String PURGE_COHORTS = "Purge Cohorts";
  341.  
  342. /**
  343. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_ORDERS
  344. */
  345. @Deprecated
  346. @AddOnStartup(description = "Able to view orders")
  347. public static final String VIEW_ORDERS = GET_ORDERS;
  348.  
  349. @AddOnStartup(description = "Able to add orders")
  350. public static final String ADD_ORDERS = "Add Orders";
  351.  
  352. @AddOnStartup(description = "Able to edit orders")
  353. public static final String EDIT_ORDERS = "Edit Orders";
  354.  
  355. @AddOnStartup(description = "Able to delete orders")
  356. public static final String DELETE_ORDERS = "Delete Orders";
  357.  
  358. public static final String PURGE_ORDERS = "Purge Orders";
  359.  
  360. /**
  361. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_FORMS
  362. */
  363. @Deprecated
  364. @AddOnStartup(description = "Able to view forms")
  365. public static final String VIEW_FORMS = GET_FORMS;
  366.  
  367. @AddOnStartup(description = "Able to add/edit/delete forms")
  368. public static final String MANAGE_FORMS = "Manage Forms";
  369.  
  370. public static final String PURGE_FORMS = "Purge Forms";
  371.  
  372. // This name is historic, since that's what it was originally called in the
  373. // infopath formentry module
  374. @AddOnStartup(description = "Able to fill out forms")
  375. public static final String FORM_ENTRY = "Form Entry";
  376.  
  377. @AddOnStartup(description = "Able to add/edit/retire patient identifier types")
  378. public static final String MANAGE_IDENTIFIER_TYPES = "Manage Identifier Types";
  379.  
  380. /**
  381. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_IDENTIFIER_TYPES
  382. */
  383. @Deprecated
  384. @AddOnStartup(description = "Able to view patient identifier types")
  385. public static final String VIEW_IDENTIFIER_TYPES = GET_IDENTIFIER_TYPES;
  386.  
  387. public static final String PURGE_IDENTIFIER_TYPES = "Purge Identifier Types";
  388.  
  389. /**
  390. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_CONCEPT_CLASSES
  391. */
  392. @Deprecated
  393. @AddOnStartup(description = "Able to view concept classes")
  394. public static final String VIEW_CONCEPT_CLASSES = GET_CONCEPT_CLASSES;
  395.  
  396. @AddOnStartup(description = "Able to add/edit/retire concept classes")
  397. public static final String MANAGE_CONCEPT_CLASSES = "Manage Concept Classes";
  398.  
  399. public static final String PURGE_CONCEPT_CLASSES = "Purge Concept Classes";
  400.  
  401. /**
  402. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_CONCEPT_DATATYPES
  403. */
  404. @Deprecated
  405. @AddOnStartup(description = "Able to view concept datatypes")
  406. public static final String VIEW_CONCEPT_DATATYPES = GET_CONCEPT_DATATYPES;
  407.  
  408. @AddOnStartup(description = "Able to add/edit/retire concept datatypes")
  409. public static final String MANAGE_CONCEPT_DATATYPES = "Manage Concept Datatypes";
  410.  
  411. public static final String PURGE_CONCEPT_DATATYPES = "Purge Concept Datatypes";
  412.  
  413. /**
  414. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PRIVILEGES
  415. */
  416. @Deprecated
  417. @AddOnStartup(description = "Able to view user privileges")
  418. public static final String VIEW_PRIVILEGES = GET_PRIVILEGES;
  419.  
  420. @AddOnStartup(description = "Able to add/edit/delete privileges")
  421. public static final String MANAGE_PRIVILEGES = "Manage Privileges";
  422.  
  423. public static final String PURGE_PRIVILEGES = "Purge Privileges";
  424.  
  425. /**
  426. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_ROLES
  427. */
  428. @Deprecated
  429. @AddOnStartup(description = "Able to view user roles")
  430. public static final String VIEW_ROLES = GET_ROLES;
  431.  
  432. @AddOnStartup(description = "Able to add/edit/delete user roles")
  433. public static final String MANAGE_ROLES = "Manage Roles";
  434.  
  435. public static final String PURGE_ROLES = "Purge Roles";
  436.  
  437. /**
  438. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_FIELD_TYPES
  439. */
  440. @Deprecated
  441. @AddOnStartup(description = "Able to view field types")
  442. public static final String VIEW_FIELD_TYPES = GET_FIELD_TYPES;
  443.  
  444. @AddOnStartup(description = "Able to add/edit/retire field types")
  445. public static final String MANAGE_FIELD_TYPES = "Manage Field Types";
  446.  
  447. public static final String PURGE_FIELD_TYPES = "Purge Field Types";
  448.  
  449. /**
  450. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_ORDER_TYPES
  451. */
  452. @Deprecated
  453. @AddOnStartup(description = "Able to view order types")
  454. public static final String VIEW_ORDER_TYPES = GET_ORDER_TYPES;
  455.  
  456. @AddOnStartup(description = "Able to add/edit/retire order types")
  457. public static final String MANAGE_ORDER_TYPES = "Manage Order Types";
  458.  
  459. public static final String PURGE_ORDER_TYPES = "Purge Order Types";
  460.  
  461. /**
  462. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_RELATIONSHIP_TYPES
  463. */
  464. @Deprecated
  465. @AddOnStartup(description = "Able to view relationship types")
  466. public static final String VIEW_RELATIONSHIP_TYPES = GET_RELATIONSHIP_TYPES;
  467.  
  468. @AddOnStartup(description = "Able to add/edit/retire relationship types")
  469. public static final String MANAGE_RELATIONSHIP_TYPES = "Manage Relationship Types";
  470.  
  471. public static final String PURGE_RELATIONSHIP_TYPES = "Purge Relationship Types";
  472.  
  473. @AddOnStartup(description = "Able to add/edit/delete user alerts")
  474. public static final String MANAGE_ALERTS = "Manage Alerts";
  475.  
  476. @AddOnStartup(description = "Able to add/edit/delete concept sources")
  477. public static final String MANAGE_CONCEPT_SOURCES = "Manage Concept Sources";
  478.  
  479. /**
  480. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_CONCEPT_SOURCES
  481. */
  482. @Deprecated
  483. @AddOnStartup(description = "Able to view concept sources")
  484. public static final String VIEW_CONCEPT_SOURCES = GET_CONCEPT_SOURCES;
  485.  
  486. /**
  487. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_CONCEPT_MAP_TYPES
  488. */
  489. @Deprecated
  490. @AddOnStartup(description = "Able to view concept map types")
  491. public static final String VIEW_CONCEPT_MAP_TYPES = GET_CONCEPT_MAP_TYPES;
  492.  
  493. @AddOnStartup(description = "Able to add/edit/retire concept map types")
  494. public static final String MANAGE_CONCEPT_MAP_TYPES = "Manage Concept Map Types";
  495.  
  496. public static final String PURGE_CONCEPT_MAP_TYPES = "Purge Concept Map Types";
  497.  
  498. /**
  499. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_CONCEPT_REFERENCE_TERMS
  500. */
  501. @Deprecated
  502. @AddOnStartup(description = "Able to view concept reference terms")
  503. public static final String VIEW_CONCEPT_REFERENCE_TERMS = GET_CONCEPT_REFERENCE_TERMS;
  504.  
  505. @AddOnStartup(description = "Able to add/edit/retire reference terms")
  506. public static final String MANAGE_CONCEPT_REFERENCE_TERMS = "Manage Concept Reference Terms";
  507.  
  508. public static final String CREATE_REFERENCE_TERMS_WHILE_EDITING_CONCEPTS = "Create Reference Terms While Editing Concepts";
  509.  
  510. public static final String PURGE_CONCEPT_REFERENCE_TERMS = "Purge Concept Reference Terms";
  511.  
  512. public static final String PURGE_CONCEPT_SOURCES = "Purge Concept Sources";
  513.  
  514. @AddOnStartup(description = "Able to view the navigation menu (Home, View Patients, Dictionary, Administration, My Profile")
  515. public static final String VIEW_NAVIGATION_MENU = "View Navigation Menu";
  516.  
  517. @AddOnStartup(description = "Able to view the 'Administration' link in the navigation bar")
  518. public static final String VIEW_ADMIN_FUNCTIONS = "View Administration Functions";
  519.  
  520. @AddOnStartup(description = "Able to view and fill out unpublished forms")
  521. public static final String VIEW_UNPUBLISHED_FORMS = "View Unpublished Forms";
  522.  
  523. /**
  524. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PROGRAMS
  525. */
  526. @Deprecated
  527. @AddOnStartup(description = "Able to view patient programs")
  528. public static final String VIEW_PROGRAMS = GET_PROGRAMS;
  529.  
  530. @AddOnStartup(description = "Able to add/view/delete patient programs")
  531. public static final String MANAGE_PROGRAMS = "Manage Programs";
  532.  
  533. /**
  534. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PATIENT_PROGRAMS
  535. */
  536. @Deprecated
  537. @AddOnStartup(description = "Able to see which programs that patients are in")
  538. public static final String VIEW_PATIENT_PROGRAMS = GET_PATIENT_PROGRAMS;
  539.  
  540. @AddOnStartup(description = "Able to add patients to programs")
  541. public static final String ADD_PATIENT_PROGRAMS = "Add Patient Programs";
  542.  
  543. @AddOnStartup(description = "Able to edit patients in programs")
  544. public static final String EDIT_PATIENT_PROGRAMS = "Edit Patient Programs";
  545.  
  546. @AddOnStartup(description = "Able to delete patients from programs")
  547. public static final String DELETE_PATIENT_PROGRAMS = "Delete Patient Programs";
  548.  
  549. public static final String PURGE_PATIENT_PROGRAMS = "Purge Patient Programs";
  550.  
  551. /**
  552. * @deprecated Use org.openmrs.web.ApplicationPrivilegeConstants.DASHBOARD_OVERVIEW
  553. */
  554. @Deprecated
  555. @AddOnStartup(description = "Able to view the 'Overview' tab on the patient dashboard")
  556. public static final String DASHBOARD_OVERVIEW = "Patient Dashboard - View Overview Section";
  557.  
  558. /**
  559. * @deprecated Use org.openmrs.web.ApplicationPrivilegeConstants.DASHBOARD_REGIMEN
  560. */
  561. @Deprecated
  562. @AddOnStartup(description = "Able to view the 'Regimen' tab on the patient dashboard")
  563. public static final String DASHBOARD_REGIMEN = "Patient Dashboard - View Regimen Section";
  564.  
  565. /**
  566. * @deprecated Use org.openmrs.web.ApplicationPrivilegeConstants.DASHBOARD_ENCOUNTERS
  567. */
  568. @Deprecated
  569. @AddOnStartup(description = "Able to view the 'Encounters' tab on the patient dashboard")
  570. public static final String DASHBOARD_ENCOUNTERS = "Patient Dashboard - View Encounters Section";
  571.  
  572. /**
  573. * @deprecated Use org.openmrs.web.ApplicationPrivilegeConstants.DASHBOARD_DEMOGRAPHICS
  574. */
  575. @Deprecated
  576. @AddOnStartup(description = "Able to view the 'Demographics' tab on the patient dashboard")
  577. public static final String DASHBOARD_DEMOGRAPHICS = "Patient Dashboard - View Demographics Section";
  578.  
  579. /**
  580. * @deprecated Use org.openmrs.web.ApplicationPrivilegeConstants.DASHBOARD_GRAPHS
  581. */
  582. @Deprecated
  583. @AddOnStartup(description = "Able to view the 'Graphs' tab on the patient dashboard")
  584. public static final String DASHBOARD_GRAPHS = "Patient Dashboard - View Graphs Section";
  585.  
  586. /**
  587. * @deprecated Use org.openmrs.web.ApplicationPrivilegeConstants.DASHBOARD_FORMS
  588. */
  589. @Deprecated
  590. @AddOnStartup(description = "Able to view the 'Forms' tab on the patient dashboard")
  591. public static final String DASHBOARD_FORMS = "Patient Dashboard - View Forms Section";
  592.  
  593. /**
  594. * @deprecated Use org.openmrs.web.ApplicationPrivilegeConstants.DASHBOARD_SUMMARY
  595. */
  596. @Deprecated
  597. @AddOnStartup(description = "Able to view the 'Summary' tab on the patient dashboard")
  598. public static final String DASHBOARD_SUMMARY = "Patient Dashboard - View Patient Summary";
  599.  
  600. /**
  601. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_GLOBAL_PROPERTIES
  602. */
  603. @Deprecated
  604. @AddOnStartup(description = "Able to view global properties on the administration screen")
  605. public static final String VIEW_GLOBAL_PROPERTIES = GET_GLOBAL_PROPERTIES;
  606.  
  607. @AddOnStartup(description = "Able to add/edit global properties")
  608. public static final String MANAGE_GLOBAL_PROPERTIES = "Manage Global Properties";
  609.  
  610. public static final String PURGE_GLOBAL_PROPERTIES = "Purge Global Properties";
  611.  
  612. @AddOnStartup(description = "Able to add/remove modules to the system")
  613. public static final String MANAGE_MODULES = "Manage Modules";
  614.  
  615. @AddOnStartup(description = "Able to add/edit/remove scheduled tasks")
  616. public static final String MANAGE_SCHEDULER = "Manage Scheduler";
  617.  
  618. /**
  619. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PERSON_ATTRIBUTE_TYPES
  620. */
  621. @Deprecated
  622. @AddOnStartup(description = "Able to view person attribute types")
  623. public static final String VIEW_PERSON_ATTRIBUTE_TYPES = GET_PERSON_ATTRIBUTE_TYPES;
  624.  
  625. @AddOnStartup(description = "Able to add/edit/retire person attribute types")
  626. public static final String MANAGE_PERSON_ATTRIBUTE_TYPES = "Manage Person Attribute Types";
  627.  
  628. public static final String PURGE_PERSON_ATTRIBUTE_TYPES = "Purge Person Attribute Types";
  629.  
  630. /**
  631. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PERSONS
  632. */
  633. @Deprecated
  634. @AddOnStartup(description = "Able to view person objects")
  635. public static final String VIEW_PERSONS = GET_PERSONS;
  636.  
  637. @AddOnStartup(description = "Able to add person objects")
  638. public static final String ADD_PERSONS = "Add People";
  639.  
  640. @AddOnStartup(description = "Able to add person objects")
  641. public static final String EDIT_PERSONS = "Edit People";
  642.  
  643. @AddOnStartup(description = "Able to delete objects")
  644. public static final String DELETE_PERSONS = "Delete People";
  645.  
  646. public static final String PURGE_PERSONS = "Purge People";
  647.  
  648. /**
  649. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_RELATIONSHIPS
  650. */
  651. @Deprecated
  652. @AddOnStartup(description = "Able to view relationships")
  653. public static final String VIEW_RELATIONSHIPS = GET_RELATIONSHIPS;
  654.  
  655. @AddOnStartup(description = "Able to add relationships")
  656. public static final String ADD_RELATIONSHIPS = "Add Relationships";
  657.  
  658. @AddOnStartup(description = "Able to edit relationships")
  659. public static final String EDIT_RELATIONSHIPS = "Edit Relationships";
  660.  
  661. @AddOnStartup(description = "Able to delete relationships")
  662. public static final String DELETE_RELATIONSHIPS = "Delete Relationships";
  663.  
  664. public static final String PURGE_RELATIONSHIPS = "Purge Relationships";
  665.  
  666. /**
  667. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_DATABASE_CHANGES
  668. */
  669. @Deprecated
  670. @AddOnStartup(description = "Able to view database changes from the admin screen")
  671. public static final String VIEW_DATABASE_CHANGES = GET_DATABASE_CHANGES;
  672.  
  673. @AddOnStartup(description = "Able to view/add/edit the implementation id for the system")
  674. public static final String MANAGE_IMPLEMENTATION_ID = "Manage Implementation Id";
  675.  
  676. public static final String SQL_LEVEL_ACCESS = "SQL Level Access";
  677.  
  678. /**
  679. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PROBLEMS
  680. */
  681. @Deprecated
  682. @AddOnStartup(description = "Able to view problems")
  683. public static final String VIEW_PROBLEMS = GET_PROBLEMS;
  684.  
  685. @AddOnStartup(description = "Add problems")
  686. public static final String ADD_PROBLEMS = "Add Problems";
  687.  
  688. @AddOnStartup(description = "Able to edit problems")
  689. public static final String EDIT_PROBLEMS = "Edit Problems";
  690.  
  691. @AddOnStartup(description = "Remove problems")
  692. public static final String DELETE_PROBLEMS = "Remove Problems";
  693.  
  694. /**
  695. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_ALLERGIES
  696. */
  697. @Deprecated
  698. @AddOnStartup(description = "Able to view allergies")
  699. public static final String VIEW_ALLERGIES = GET_ALLERGIES;
  700.  
  701. @AddOnStartup(description = "Add allergies")
  702. public static final String ADD_ALLERGIES = "Add Allergies";
  703.  
  704. @AddOnStartup(description = "Able to edit allergies")
  705. public static final String EDIT_ALLERGIES = "Edit Allergies";
  706.  
  707. @AddOnStartup(description = "Remove allergies")
  708. public static final String DELETE_ALLERGIES = "Remove Allergies";
  709.  
  710. @AddOnStartup(description = "Able to view/add/remove the concept stop words")
  711. public static final String MANAGE_CONCEPT_STOP_WORDS = "Manage Concept Stop Words";
  712.  
  713. @AddOnStartup(description = "Able to add an HL7 Source")
  714. public static final String PRIV_ADD_HL7_SOURCE = "Add HL7 Source";
  715.  
  716. /**
  717. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_HL7_SOURCE
  718. */
  719. @Deprecated
  720. @AddOnStartup(description = "Able to view an HL7 Source")
  721. public static final String PRIV_VIEW_HL7_SOURCE = GET_HL7_SOURCE;
  722.  
  723. @AddOnStartup(description = "Able to update an HL7 Source")
  724. public static final String PRIV_UPDATE_HL7_SOURCE = "Update HL7 Source";
  725.  
  726. public static final String PRIV_PURGE_HL7_SOURCE = "Purge HL7 Source";
  727.  
  728. @AddOnStartup(description = "Able to add an HL7 Queue item")
  729. public static final String PRIV_ADD_HL7_IN_QUEUE = "Add HL7 Inbound Queue";
  730.  
  731. /**
  732. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_HL7_IN_QUEUE
  733. */
  734. @Deprecated
  735. @AddOnStartup(description = "Able to view an HL7 Queue item")
  736. public static final String PRIV_VIEW_HL7_IN_QUEUE = GET_HL7_IN_QUEUE;
  737.  
  738. @AddOnStartup(description = "Able to update an HL7 Queue item")
  739. public static final String PRIV_UPDATE_HL7_IN_QUEUE = "Update HL7 Inbound Queue";
  740.  
  741. @AddOnStartup(description = "Able to delete an HL7 Queue item")
  742. public static final String PRIV_DELETE_HL7_IN_QUEUE = "Delete HL7 Inbound Queue";
  743.  
  744. public static final String PRIV_PURGE_HL7_IN_QUEUE = "Purge HL7 Inbound Queue";
  745.  
  746. @AddOnStartup(description = "Able to add an HL7 archive item")
  747. public static final String PRIV_ADD_HL7_IN_ARCHIVE = "Add HL7 Inbound Archive";
  748.  
  749. /**
  750. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_HL7_IN_ARCHIVE
  751. */
  752. @Deprecated
  753. @AddOnStartup(description = "Able to view an HL7 archive item")
  754. public static final String PRIV_VIEW_HL7_IN_ARCHIVE = GET_HL7_IN_ARCHIVE;
  755.  
  756. @AddOnStartup(description = "Able to update an HL7 archive item")
  757. public static final String PRIV_UPDATE_HL7_IN_ARCHIVE = "Update HL7 Inbound Archive";
  758.  
  759. @AddOnStartup(description = "Able to delete/retire an HL7 archive item")
  760. public static final String PRIV_DELETE_HL7_IN_ARCHIVE = "Delete HL7 Inbound Archive";
  761.  
  762. public static final String PRIV_PURGE_HL7_IN_ARCHIVE = "Purge HL7 Inbound Archive";
  763.  
  764. @AddOnStartup(description = "Able to add an HL7 error item")
  765. public static final String PRIV_ADD_HL7_IN_EXCEPTION = "Add HL7 Inbound Exception";
  766.  
  767. /**
  768. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_HL7_IN_EXCEPTION
  769. */
  770. @Deprecated
  771. @AddOnStartup(description = "Able to view an HL7 archive item")
  772. public static final String PRIV_VIEW_HL7_IN_EXCEPTION = GET_HL7_IN_EXCEPTION;
  773.  
  774. @AddOnStartup(description = "Able to update an HL7 archive item")
  775. public static final String PRIV_UPDATE_HL7_IN_EXCEPTION = "Update HL7 Inbound Exception";
  776.  
  777. @AddOnStartup(description = "Able to delete an HL7 archive item")
  778. public static final String PRIV_DELETE_HL7_IN_EXCEPTION = "Delete HL7 Inbound Exception";
  779.  
  780. public static final String PRIV_PURGE_HL7_IN_EXCEPTION = "Purge HL7 Inbound Exception";
  781.  
  782. /**
  783. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_VISIT_TYPES
  784. */
  785. @Deprecated
  786. @AddOnStartup(description = "Able to view visit types")
  787. public static final String VIEW_VISIT_TYPES = GET_VISIT_TYPES;
  788.  
  789. @AddOnStartup(description = "Able to add/edit/delete visit types")
  790. public static final String MANAGE_VISIT_TYPES = "Manage Visit Types";
  791.  
  792. /**
  793. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_VISITS
  794. */
  795. @Deprecated
  796. @AddOnStartup(description = "Able to view visits")
  797. public static final String VIEW_VISITS = GET_VISITS;
  798.  
  799. @AddOnStartup(description = "Able to add visits")
  800. public static final String ADD_VISITS = "Add Visits";
  801.  
  802. @AddOnStartup(description = "Able to edit visits")
  803. public static final String EDIT_VISITS = "Edit Visits";
  804.  
  805. @AddOnStartup(description = "Able to delete visits")
  806. public static final String DELETE_VISITS = "Delete Visits";
  807.  
  808. public static final String PURGE_VISITS = "Purge Visits";
  809.  
  810. /**
  811. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_VISIT_ATTRIBUTE_TYPES
  812. */
  813. @Deprecated
  814. @AddOnStartup(description = "Able to view visit attribute types")
  815. public static final String VIEW_VISIT_ATTRIBUTE_TYPES = GET_VISIT_ATTRIBUTE_TYPES;
  816.  
  817. @AddOnStartup(description = "Able to add/edit/retire visit attribute types")
  818. public static final String MANAGE_VISIT_ATTRIBUTE_TYPES = "Manage Visit Attribute Types";
  819.  
  820. public static final String PURGE_VISIT_ATTRIBUTE_TYPES = "Purge Visit Attribute Types";
  821.  
  822. /**
  823. * @deprecated Use org.openmrs.web.ApplicationPrivilegeConstants.DASHBOARD_VISITS
  824. */
  825. @Deprecated
  826. @AddOnStartup(description = "Able to view the 'Visits' tab on the patient dashboard")
  827. public static final String DASHBOARD_VISITS = "Patient Dashboard - View Visits Section";
  828.  
  829. @AddOnStartup(description = "Able to view order sets")
  830. public static final String VIEW_ORDER_SETS = "View Order Sets";
  831.  
  832. @AddOnStartup(description = "Able to add/edit/retire order sets")
  833. public static final String MANAGE_ORDER_SETS = "Manage Order Sets";
  834.  
  835. /**
  836. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_LOCATION_ATTRIBUTE_TYPES
  837. */
  838. @Deprecated
  839. @AddOnStartup(description = "Able to view location attribute types")
  840. public static final String VIEW_LOCATION_ATTRIBUTE_TYPES = GET_LOCATION_ATTRIBUTE_TYPES;
  841.  
  842. @AddOnStartup(description = "Able to add/edit/retire location attribute types")
  843. public static final String MANAGE_LOCATION_ATTRIBUTE_TYPES = "Manage Location Attribute Types";
  844.  
  845. public static final String PURGE_LOCATION_ATTRIBUTE_TYPES = "Purge Location Attribute Types";
  846.  
  847. /**
  848. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_PROVIDERS
  849. */
  850. @Deprecated
  851. @AddOnStartup(description = "Able to view Provider")
  852. public static final String VIEW_PROVIDERS = GET_PROVIDERS;
  853.  
  854. @AddOnStartup(description = "Able to edit Provider")
  855. public static final String MANAGE_PROVIDERS = "Manage Providers";
  856.  
  857. public static final String PURGE_PROVIDERS = "Purge Providers";
  858.  
  859. /**
  860. * @deprecated Use org.openmrs.util.PrivilegeConstants.GET_ENCOUNTER_ROLES
  861. */
  862. @Deprecated
  863. @AddOnStartup(description = "Able to view encounter roles")
  864. public static final String VIEW_ENCOUNTER_ROLES = GET_ENCOUNTER_ROLES;
  865.  
  866. public static final String PURGE_ENCOUNTER_ROLES = "Purge Encounter Roles";
  867.  
  868. @AddOnStartup(description = "Able to add/edit/retire encounter roles")
  869. public static final String MANAGE_ENCOUNTER_ROLES = "Manage Encounter Roles";
  870. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement