-
Notifications
You must be signed in to change notification settings - Fork 33
Added teleconsultation extra field #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
1b6d989
b115e60
aa5bd5e
04b53dd
f40ce74
64cc5b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,9 +147,14 @@ public class V_Userservicerolemapping { | |
| @Transient | ||
| private String[] villageName; | ||
|
|
||
| /* | ||
| * @Expose | ||
| * | ||
| * @Column(name="isSanjeevani") private Boolean isSanjeevani; | ||
| */ | ||
| @Expose | ||
| @Column(name="isSanjeevani") | ||
| private Boolean isSanjeevani; | ||
| @Column(name="teleConsultation") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment says isSanjeevani but the boolean is teleConsultation. |
||
| private String teleConsultation; | ||
|
|
||
| public Integer getProviderServiceMapID() { | ||
| return providerServiceMapID; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -992,23 +992,22 @@ public ArrayList<V_Userservicerolemapping> getMappedRole(Integer serviceProvider | |
| } else { | ||
| mapping.setVillageName(new String[0]); | ||
| } | ||
| if (mapping.getServiceID()!=null) { | ||
| if (mapping.getServiceID() != null) { | ||
| mapping.setBlockID(mapping.getBlockID()); | ||
| mapping.setBlockName(mapping.getBlockName()); | ||
| mapping.setVillageID(mapping.getVillageID()); | ||
| mapping.setVillageName(mapping.getVillageName()); | ||
| if(null != mapping.getIsSanjeevani()) | ||
| mapping.setIsSanjeevani(mapping.getIsSanjeevani()); | ||
|
|
||
| } else { | ||
| mapping.setBlockID(null); | ||
| mapping.setBlockName(null); | ||
| mapping.setVillageID(null); | ||
| mapping.setVillageName(null); | ||
| mapping.setVillageidDb(null); | ||
| mapping.setVillageNameDb(null); | ||
| mapping.setIsSanjeevani(false); | ||
|
|
||
| } | ||
| if(null != mapping.getTeleConsultation()) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are there some curly braces missing here {}
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we are not adding curly braces{} this condition will apply for next line alone.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm. That sort of conditional statement is awful for readability. |
||
| mapping.setTeleConsultation(mapping.getTeleConsultation()); | ||
| mappedRoles.add(mapping); | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,8 @@ public class Priveleges1097_2 { | |
| private Integer roleID; | ||
| private Boolean inbound; | ||
| private Boolean outbound; | ||
| private Boolean isSanjeevani; | ||
| //private Boolean isSanjeevani; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the impact of removing this?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes we are removing this column from table also |
||
| private String teleConsultation; | ||
|
|
||
| public Integer getRoleID() { | ||
| return roleID; | ||
|
|
@@ -46,11 +47,11 @@ public Boolean getOutbound() { | |
| public void setOutbound(Boolean outbound) { | ||
| this.outbound = outbound; | ||
| } | ||
| public Boolean getIsSanjeevani() { | ||
| return isSanjeevani; | ||
| public String getTeleConsultation() { | ||
| return teleConsultation; | ||
| } | ||
| public void setIsSanjeevani(Boolean isSanjeevani) { | ||
| this.isSanjeevani = isSanjeevani; | ||
| public void setTeleConsultation(String teleConsultation) { | ||
| this.teleConsultation = teleConsultation; | ||
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent