-
Notifications
You must be signed in to change notification settings - Fork 32
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 all 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 |
|---|---|---|
|
|
@@ -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); | ||
| } | ||
| } | ||
|
|
||
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.
Comment says isSanjeevani but the boolean is teleConsultation.
Also the attribute isSanjeevani is not needed?
If you are adding new attributes, can you also raise a PR for AMRIT-DB