Skip to content

Commit 49edee1

Browse files
authored
Merge pull request #101 from samuelowino/master
MUZIMA-860 Form Tags
2 parents a533ce5 + b7955f8 commit 49edee1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

api/src/main/java/org/openmrs/module/muzima/model/MuzimaForm.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class MuzimaForm extends BaseOpenmrsMetadata {
2121
private String form; ///uuid to form table
2222
private Set<MuzimaFormTag> tags = new HashSet<MuzimaFormTag>();
2323
private Form formDefinition;
24-
private EncounterType encounterType;
2524

2625
public MuzimaForm() {
2726
} // used by hibernate
@@ -52,8 +51,6 @@ public void setId(Integer id) {
5251

5352
public EncounterType getEncounterType() { return formDefinition.getEncounterType(); }
5453

55-
public void setEncounterType(EncounterType encounterType){ this.encounterType = formDefinition.getEncounterType(); }
56-
5754
public String getName() {
5855
return formDefinition.getName() == null ? "" : formDefinition.getName();
5956
}
@@ -151,8 +148,8 @@ public int hashCode() {
151148
result = 31 * result + (getForm() != null ? getForm().hashCode() : 0);
152149
result = 31 * result + (getDiscriminator() != null ? getDiscriminator().hashCode() : 0);
153150
result = 31 * result + (getFormDefinition().getDescription() != null ? getFormDefinition().getDescription().hashCode() : 0);
154-
result = 31 * result + (tags != null ? tags.hashCode() : 0);
155151
result = 31 * result + (getFormDefinition().getEncounterType() != null ? getFormDefinition().getEncounterType().hashCode() : 0);
152+
result = 31 * result + (tags != null ? tags.hashCode() : 0);
156153
return result;
157154
}
158155

@@ -164,11 +161,10 @@ public String toString() {
164161
", form='" + getForm() + '\'' +
165162
", discriminator='" + getDiscriminator() + '\'' +
166163
", tags=" + tags +
167-
", encounterType"+getFormDefinition().getEncounterType()+
168164
'}';
169165
}
170166

171167
public String getVersion() {
172168
return formDefinition.getVersion() == null ? "" : formDefinition.getVersion();
173169
}
174-
}
170+
}

0 commit comments

Comments
 (0)