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

openmrs / openmrs-core / 15208146780

23 May 2025 10:27AM UTC coverage: 65.074% (-0.009%) from 65.083%
15208146780

push

github

web-flow
Removed unused imports & fields in ConceptServiceTest (#5033)

23376 of 35922 relevant lines covered (65.07%)

0.65 hits per line

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

63.64
/api/src/main/java/org/openmrs/ConceptClass.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 javax.persistence.Cacheable;
13
import javax.persistence.Column;
14
import javax.persistence.Entity;
15
import javax.persistence.GeneratedValue;
16
import javax.persistence.GenerationType;
17
import javax.persistence.Id;
18
import javax.persistence.Table;
19

20
import org.hibernate.annotations.GenericGenerator;
21
import org.hibernate.annotations.Parameter;
22
import org.hibernate.envers.Audited;
23

24
/**
25
 * ConceptClass
26
 */
27
@Entity
28
@Table(name = "concept_class")
29
@Audited
30
@Cacheable
31
public class ConceptClass extends BaseChangeableOpenmrsMetadata {
32
        
33
        public static final long serialVersionUID = 33473L;
34
        
35
        //UUIDs for core concept classes
36
        
37
        public static final String TEST_UUID = "8d4907b2-c2cc-11de-8d13-0010c6dffd0f";
38
        
39
        public static final String PROCEDURE_UUID = "8d490bf4-c2cc-11de-8d13-0010c6dffd0f";
40
        
41
        public static final String DRUG_UUID = "8d490dfc-c2cc-11de-8d13-0010c6dffd0f";
42
        
43
        public static final String DIAGNOSIS_UUID = "8d4918b0-c2cc-11de-8d13-0010c6dffd0f";
44
        
45
        public static final String FINDING_UUID = "8d491a9a-c2cc-11de-8d13-0010c6dffd0f";
46
        
47
        public static final String ANATOMY_UUID = "8d491c7a-c2cc-11de-8d13-0010c6dffd0f";
48
        
49
        public static final String QUESTION_UUID = "8d491e50-c2cc-11de-8d13-0010c6dffd0f";
50
        
51
        public static final String LABSET_UUID = "8d492026-c2cc-11de-8d13-0010c6dffd0f";
52
        
53
        public static final String MEDSET_UUID = "8d4923b4-c2cc-11de-8d13-0010c6dffd0f";
54
        
55
        public static final String CONVSET_UUID = "8d492594-c2cc-11de-8d13-0010c6dffd0f";
56
        
57
        public static final String MISC_UUID = "8d492774-c2cc-11de-8d13-0010c6dffd0f";
58
        
59
        public static final String SYMPTOM_UUID = "8d492954-c2cc-11de-8d13-0010c6dffd0f";
60
        
61
        public static final String SYMPTOM_FINDING_UUID = "8d492b2a-c2cc-11de-8d13-0010c6dffd0f";
62
        
63
        public static final String SPECIMEN_UUID = "8d492d0a-c2cc-11de-8d13-0010c6dffd0f";
64
        
65
        public static final String MISC_ORDER_UUID = "8d492ee0-c2cc-11de-8d13-0010c6dffd0f";
66
        
67
        public static final String ORDER_SET_UUID = "baa7a1b8-a1ba-11e0-9616-705ab6a580e0";
68
        
69
        public static final String FREQUENCY_UUID = "8e071bfe-520c-44c0-a89b-538e9129b42a";
70
        
71
        // Fields
72
        @Id
73
        @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "concept_class_id_seq")
74
        @GenericGenerator(
75
                        name = "concept_class_id_seq",
76
                        strategy = "native",
77
                        parameters = @Parameter(name = "sequence", value = "concept_class_concept_class_id_seq")
78
        )
79
        @Column(name = "concept_class_id", nullable = false)
80
        private Integer conceptClassId;
81
        
82
        // Constructors
83
        
84
        /** default constructor */
85
        public ConceptClass() {
1✔
86
        }
1✔
87
        
88
        /** constructor with id */
89
        public ConceptClass(Integer conceptClassId) {
1✔
90
                this.conceptClassId = conceptClassId;
1✔
91
        }
1✔
92
        
93
        // Property accessors
94
        
95
        public Integer getConceptClassId() {
96
                return this.conceptClassId;
1✔
97
        }
98
        
99
        public void setConceptClassId(Integer conceptClassId) {
100
                this.conceptClassId = conceptClassId;
×
101
        }
×
102
        
103
        /**
104
         * @since 1.5
105
         * @see org.openmrs.OpenmrsObject#getId()
106
         */
107
        @Override
108
        public Integer getId() {
109
                return getConceptClassId();
1✔
110
        }
111
        
112
        /**
113
         * @since 1.5
114
         * @see org.openmrs.OpenmrsObject#setId(java.lang.Integer)
115
         */
116
        @Override
117
        public void setId(Integer id) {
118
                setConceptClassId(id);
×
119
                
120
        }
×
121
        
122
}
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