• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-core / 15568331211

10 Jun 2025 07:18PM UTC coverage: 64.988% (-0.01%) from 65.001%
15568331211

push

github

web-flow
TRUNK-6354: Add the ProviderRole domain object to core (#5069)

* TRUNK-6354: Add the ProviderRole domain object to core

* add liquibase changesets for provider role

* Update Liquibase changesets to use int instead of int(11)

* Add fix as requested in reviews

* remove the module prefix

* use a more meaningful name for the foreign key

* remove defaultvaluenumeric=0 from creator column

3 of 12 new or added lines in 2 files covered. (25.0%)

2 existing lines in 2 files now uncovered.

23354 of 35936 relevant lines covered (64.99%)

0.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/api/src/main/java/org/openmrs/ProviderRole.java
1
/**
2
 * This Source Code Form is subject to the terms of the Mozilla Public License,
3
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
 * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
5
 * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
 *
7
 * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
8
 * graphic logo is a trademark of OpenMRS Inc.
9
 */
10
package org.openmrs;
11

12
import java.io.Serializable;
13

14
/**
15
 * Used to store the possible provider roles.  A Provide can only have a single role (though a single person
16
 * could be associated with more than one Provider object).
17
 * <p>
18
 * A provider role specifies what Provider/Patient relationships a provider with that role can support,
19
 * as well as the provider roles that another provider role can provider oversight for.
20
 * <p>
21
 * For example, a "Community Health Worker" role might support an "Accompagnateur" relationship,
22
 * and "Head Surgeon" role might be able to oversee a person with Provider Role of "Surgeon".
23
 * 
24
 * @since 2.8.0
25
 */
NEW
26
public class ProviderRole extends BaseOpenmrsMetadata implements Serializable {
×
27

28
        private static final long serialVersionUID = 1L;
29

30
        private Integer providerRoleId;
31

32
        @Override
33
        public Integer getId() {
NEW
34
                return providerRoleId;
×
35
        }
36

37
        @Override
38
        public void setId(Integer id) {
NEW
39
                this.providerRoleId = id;
×
NEW
40
        }
×
41

42
        public Integer getProviderRoleId() {
NEW
43
                return providerRoleId;
×
44
        }
45

46
        public void setProviderRoleId(Integer id) {
NEW
47
                this.providerRoleId = id;
×
NEW
48
        }
×
49

50
        @Override
51
        public String toString() {
NEW
52
                return "ProviderRole{" +
×
53
                        "providerRoleId=" + providerRoleId +
NEW
54
                        ", name=" + this.getName() +
×
55
                        '}';
56
        }
57
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc