Advertisement
Guest User

Untitled

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