{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/comments/149909441","pull_request_review_id":75377115,"id":149909441,"diff_hunk":"@@ -0,0 +1,99 @@\n+package org.smartregister.tbr;\n+\n+import android.content.Context;\n+import android.database.Cursor;\n+import android.util.Log;\n+import android.view.LayoutInflater;\n+import android.view.View;\n+import android.widget.TextView;\n+\n+import org.apache.commons.lang3.StringUtils;\n+import org.joda.time.DateTime;\n+import org.smartregister.commonregistry.CommonPersonObjectClient;\n+import org.smartregister.cursoradapter.SmartRegisterCLientsProviderForCursorAdapter;\n+import org.smartregister.util.DateUtil;\n+import org.smartregister.view.contract.SmartRegisterClient;\n+import org.smartregister.view.contract.SmartRegisterClients;\n+import org.smartregister.view.dialog.FilterOption;\n+import org.smartregister.view.dialog.ServiceModeOption;\n+import org.smartregister.view.dialog.SortOption;\n+import org.smartregister.view.viewholder.OnClickFormLauncher;\n+\n+import util.TbrConstants;\n+\n+import static org.smartregister.util.Utils.fillValue;\n+import static org.smartregister.util.Utils.getName;\n+import static org.smartregister.util.Utils.getValue;\n+\n+/**\n+ * Created by samuelgithengi on 11/8/17.\n+ */\n+\n+public class PatientRegisterProvider implements SmartRegisterCLientsProviderForCursorAdapter {\n+    private final LayoutInflater inflater;\n+    private final Context context;","path":"opensrp-tbr/src/main/java/org/smartregister/tbr/PatientRegisterProvider.java","position":34,"original_position":34,"commit_id":"b652f973db6291ab899a53811ca983ebcaa9f8e6","original_commit_id":"b652f973db6291ab899a53811ca983ebcaa9f8e6","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Perhaps 'context' could be replaced by a local variable.](https://www.codacy.com/app/OpenSRP/opensrp-client-tbr/pullRequest?prid=1053860)","created_at":"2017-11-09T09:50:34Z","updated_at":"2017-11-09T09:50:34Z","html_url":"https://github.com/OpenSRP/opensrp-client-tbr/pull/33#discussion_r149909441","pull_request_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/33","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/comments/149909441"},"html":{"href":"https://github.com/OpenSRP/opensrp-client-tbr/pull/33#discussion_r149909441"},"pull_request":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/33","id":151148837,"html_url":"https://github.com/OpenSRP/opensrp-client-tbr/pull/33","diff_url":"https://github.com/OpenSRP/opensrp-client-tbr/pull/33.diff","patch_url":"https://github.com/OpenSRP/opensrp-client-tbr/pull/33.patch","issue_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues/33","number":33,"state":"open","locked":false,"title":"Implement the user configurable Presumptive Patients Register","user":{"login":"githengi","id":25123762,"avatar_url":"https://avatars1.githubusercontent.com/u/25123762?v=4","gravatar_id":"","url":"https://api.github.com/users/githengi","html_url":"https://github.com/githengi","followers_url":"https://api.github.com/users/githengi/followers","following_url":"https://api.github.com/users/githengi/following{/other_user}","gists_url":"https://api.github.com/users/githengi/gists{/gist_id}","starred_url":"https://api.github.com/users/githengi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/githengi/subscriptions","organizations_url":"https://api.github.com/users/githengi/orgs","repos_url":"https://api.github.com/users/githengi/repos","events_url":"https://api.github.com/users/githengi/events{/privacy}","received_events_url":"https://api.github.com/users/githengi/received_events","type":"User","site_admin":false},"body":"Implement the user configurable Presumptive Patients Register","created_at":"2017-11-07T15:43:55Z","updated_at":"2017-11-09T09:50:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ed420779a2d459780bb6dbd9c7495b4b696d51f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/33/commits","review_comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/33/comments","review_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues/33/comments","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/statuses/b652f973db6291ab899a53811ca983ebcaa9f8e6","head":{"label":"OpenSRP:issue25","ref":"issue25","sha":"b652f973db6291ab899a53811ca983ebcaa9f8e6","user":{"login":"OpenSRP","id":7898027,"avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"repo":{"id":90995053,"name":"opensrp-client-tbr","full_name":"OpenSRP/opensrp-client-tbr","owner":{"login":"OpenSRP","id":7898027,"avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSRP/opensrp-client-tbr","description":null,"fork":false,"url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr","forks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/forks","keys_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/teams","hooks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/hooks","issue_events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/events","assignees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/tags","blobs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/languages","stargazers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/stargazers","contributors_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/contributors","subscribers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/subscribers","subscription_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/subscription","commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/merges","archive_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/downloads","issues_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/labels{/name}","releases_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/releases{/id}","deployments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/deployments","created_at":"2017-05-11T15:29:49Z","updated_at":"2017-08-24T09:41:10Z","pushed_at":"2017-11-09T09:46:55Z","git_url":"git://github.com/OpenSRP/opensrp-client-tbr.git","ssh_url":"git@github.com:OpenSRP/opensrp-client-tbr.git","clone_url":"https://github.com/OpenSRP/opensrp-client-tbr.git","svn_url":"https://github.com/OpenSRP/opensrp-client-tbr","homepage":null,"size":2011,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":23,"forks":1,"open_issues":23,"watchers":1,"default_branch":"master"}},"base":{"label":"OpenSRP:master","ref":"master","sha":"7bc989730d1a685dfbda379ae3abf38bab28c38a","user":{"login":"OpenSRP","id":7898027,"avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"repo":{"id":90995053,"name":"opensrp-client-tbr","full_name":"OpenSRP/opensrp-client-tbr","owner":{"login":"OpenSRP","id":7898027,"avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSRP/opensrp-client-tbr","description":null,"fork":false,"url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr","forks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/forks","keys_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/teams","hooks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/hooks","issue_events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/events","assignees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/tags","blobs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/languages","stargazers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/stargazers","contributors_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/contributors","subscribers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/subscribers","subscription_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/subscription","commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/merges","archive_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/downloads","issues_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/labels{/name}","releases_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/releases{/id}","deployments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/deployments","created_at":"2017-05-11T15:29:49Z","updated_at":"2017-08-24T09:41:10Z","pushed_at":"2017-11-09T09:46:55Z","git_url":"git://github.com/OpenSRP/opensrp-client-tbr.git","ssh_url":"git@github.com:OpenSRP/opensrp-client-tbr.git","clone_url":"https://github.com/OpenSRP/opensrp-client-tbr.git","svn_url":"https://github.com/OpenSRP/opensrp-client-tbr","homepage":null,"size":2011,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":23,"forks":1,"open_issues":23,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/33"},"html":{"href":"https://github.com/OpenSRP/opensrp-client-tbr/pull/33"},"issue":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues/33"},"comments":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-tbr/statuses/b652f973db6291ab899a53811ca983ebcaa9f8e6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}