{"action":"created","comment":{"url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/comments/79140512","id":79140512,"diff_hunk":"@@ -87,13 +91,27 @@ public FieldAdapter(Group group, Context context) {\n             } else if (field.getType().equals(RowTypes.INTEGER.name())) {\n                 rows.add(new IntegerRow(inflater, field));\n             } else if (field.getType().equals(RowTypes.INTEGER_ZERO_OR_POSITIVE.name())) {\n-                rows.add(new PosOrZeroIntegerRow(inflater, field));\n+                //Changed from the others to support grouping of Diseases\n+                //Specific test case for eidsr form\n+                if(i ==0 ) {\n+                    holdRow.add(field);\n+                    id = field.getDataElement();\n+                }else if(i > 0 && field.getDataElement().equals(id)){\n+                    holdRow.add(field);\n+                }else if(i > 0 && !field.getDataElement().equals(id)){\n+                    id = field.getDataElement();\n+                    rows.add(new PosOrZeroIntegerRow2(inflater, holdRow.get(holdRow.size()-4),holdRow.get(holdRow.size()-3),\n+                        holdRow.get(holdRow.size()-2),holdRow.get(holdRow.size()-1)));\n+                        holdRow.add(field);\n+                }\n             } else if (field.getType().equals(RowTypes.INTEGER_POSITIVE.name())) {\n                 rows.add(new PosIntegerRow(inflater, field));\n             } else if (field.getType().equals(RowTypes.INTEGER_NEGATIVE.name())) {\n                 rows.add(new NegativeIntegerRow(inflater, field));\n             } else if (field.getType().equals(RowTypes.BOOLEAN.name())) {\n-                rows.add(new BooleanRow(inflater, field));\n+                if(!field.getDataElement().equals(\"BpG5Yq4EWMT\")){","path":"dhis2-android-app/src/main/java/org/dhis2/mobile/ui/adapters/dataEntry/FieldAdapter.java","position":null,"original_position":61,"commit_id":"83350653871fe3c4e7b7a39b13f4653ef418c4b0","original_commit_id":"0e2a84b960950f4315c9e21fd9df8ea56f50c97a","user":{"login":"zewolfe","id":16115642,"avatar_url":"https://avatars.githubusercontent.com/u/16115642?v=3","gravatar_id":"","url":"https://api.github.com/users/zewolfe","html_url":"https://github.com/zewolfe","followers_url":"https://api.github.com/users/zewolfe/followers","following_url":"https://api.github.com/users/zewolfe/following{/other_user}","gists_url":"https://api.github.com/users/zewolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/zewolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zewolfe/subscriptions","organizations_url":"https://api.github.com/users/zewolfe/orgs","repos_url":"https://api.github.com/users/zewolfe/repos","events_url":"https://api.github.com/users/zewolfe/events{/privacy}","received_events_url":"https://api.github.com/users/zewolfe/received_events","type":"User","site_admin":false},"body":"Has been made a constant.","created_at":"2016-09-16T10:04:46Z","updated_at":"2016-09-16T10:04:46Z","html_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture/pull/8#discussion_r79140512","pull_request_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/comments/79140512"},"html":{"href":"https://github.com/eHealthAfrica/dhis2-android-datacapture/pull/8#discussion_r79140512"},"pull_request":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/8","id":84281101,"html_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture/pull/8","diff_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture/pull/8.diff","patch_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture/pull/8.patch","issue_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues/8","number":8,"state":"open","locked":false,"title":"Added timely report check","user":{"login":"zewolfe","id":16115642,"avatar_url":"https://avatars.githubusercontent.com/u/16115642?v=3","gravatar_id":"","url":"https://api.github.com/users/zewolfe","html_url":"https://github.com/zewolfe","followers_url":"https://api.github.com/users/zewolfe/followers","following_url":"https://api.github.com/users/zewolfe/following{/other_user}","gists_url":"https://api.github.com/users/zewolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/zewolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zewolfe/subscriptions","organizations_url":"https://api.github.com/users/zewolfe/orgs","repos_url":"https://api.github.com/users/zewolfe/repos","events_url":"https://api.github.com/users/zewolfe/events{/privacy}","received_events_url":"https://api.github.com/users/zewolfe/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-07T11:14:28Z","updated_at":"2016-09-16T10:04:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1f1488c939ecf958e06166687ca62d7c597d931","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/8/commits","review_comments_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/8/comments","review_comment_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues/8/comments","statuses_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/statuses/83350653871fe3c4e7b7a39b13f4653ef418c4b0","head":{"label":"eHealthAfrica:feature/george/timely2","ref":"feature/george/timely2","sha":"83350653871fe3c4e7b7a39b13f4653ef418c4b0","user":{"login":"eHealthAfrica","id":3214042,"avatar_url":"https://avatars.githubusercontent.com/u/3214042?v=3","gravatar_id":"","url":"https://api.github.com/users/eHealthAfrica","html_url":"https://github.com/eHealthAfrica","followers_url":"https://api.github.com/users/eHealthAfrica/followers","following_url":"https://api.github.com/users/eHealthAfrica/following{/other_user}","gists_url":"https://api.github.com/users/eHealthAfrica/gists{/gist_id}","starred_url":"https://api.github.com/users/eHealthAfrica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eHealthAfrica/subscriptions","organizations_url":"https://api.github.com/users/eHealthAfrica/orgs","repos_url":"https://api.github.com/users/eHealthAfrica/repos","events_url":"https://api.github.com/users/eHealthAfrica/events{/privacy}","received_events_url":"https://api.github.com/users/eHealthAfrica/received_events","type":"Organization","site_admin":false},"repo":{"id":65467004,"name":"dhis2-android-datacapture","full_name":"eHealthAfrica/dhis2-android-datacapture","owner":{"login":"eHealthAfrica","id":3214042,"avatar_url":"https://avatars.githubusercontent.com/u/3214042?v=3","gravatar_id":"","url":"https://api.github.com/users/eHealthAfrica","html_url":"https://github.com/eHealthAfrica","followers_url":"https://api.github.com/users/eHealthAfrica/followers","following_url":"https://api.github.com/users/eHealthAfrica/following{/other_user}","gists_url":"https://api.github.com/users/eHealthAfrica/gists{/gist_id}","starred_url":"https://api.github.com/users/eHealthAfrica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eHealthAfrica/subscriptions","organizations_url":"https://api.github.com/users/eHealthAfrica/orgs","repos_url":"https://api.github.com/users/eHealthAfrica/repos","events_url":"https://api.github.com/users/eHealthAfrica/events{/privacy}","received_events_url":"https://api.github.com/users/eHealthAfrica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture","description":"Data capture for DHIS 2","fork":true,"url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture","forks_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/forks","keys_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/teams","hooks_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/hooks","issue_events_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues/events{/number}","events_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/events","assignees_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/assignees{/user}","branches_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/branches{/branch}","tags_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/tags","blobs_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/refs{/sha}","trees_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/statuses/{sha}","languages_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/languages","stargazers_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/stargazers","contributors_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/contributors","subscribers_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/subscribers","subscription_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/subscription","commits_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/commits{/sha}","git_commits_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/commits{/sha}","comments_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/comments{/number}","issue_comment_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues/comments{/number}","contents_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/contents/{+path}","compare_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/merges","archive_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/downloads","issues_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues{/number}","pulls_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls{/number}","milestones_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/milestones{/number}","notifications_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/labels{/name}","releases_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/releases{/id}","deployments_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/deployments","created_at":"2016-08-11T12:19:15Z","updated_at":"2016-08-11T12:19:17Z","pushed_at":"2016-09-16T10:04:16Z","git_url":"git://github.com/eHealthAfrica/dhis2-android-datacapture.git","ssh_url":"git@github.com:eHealthAfrica/dhis2-android-datacapture.git","clone_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture.git","svn_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture","homepage":"","size":2134,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"eHealthAfrica:develop","ref":"develop","sha":"362a40b2b91dc857d3444ba5ccdf5a810a97c098","user":{"login":"eHealthAfrica","id":3214042,"avatar_url":"https://avatars.githubusercontent.com/u/3214042?v=3","gravatar_id":"","url":"https://api.github.com/users/eHealthAfrica","html_url":"https://github.com/eHealthAfrica","followers_url":"https://api.github.com/users/eHealthAfrica/followers","following_url":"https://api.github.com/users/eHealthAfrica/following{/other_user}","gists_url":"https://api.github.com/users/eHealthAfrica/gists{/gist_id}","starred_url":"https://api.github.com/users/eHealthAfrica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eHealthAfrica/subscriptions","organizations_url":"https://api.github.com/users/eHealthAfrica/orgs","repos_url":"https://api.github.com/users/eHealthAfrica/repos","events_url":"https://api.github.com/users/eHealthAfrica/events{/privacy}","received_events_url":"https://api.github.com/users/eHealthAfrica/received_events","type":"Organization","site_admin":false},"repo":{"id":65467004,"name":"dhis2-android-datacapture","full_name":"eHealthAfrica/dhis2-android-datacapture","owner":{"login":"eHealthAfrica","id":3214042,"avatar_url":"https://avatars.githubusercontent.com/u/3214042?v=3","gravatar_id":"","url":"https://api.github.com/users/eHealthAfrica","html_url":"https://github.com/eHealthAfrica","followers_url":"https://api.github.com/users/eHealthAfrica/followers","following_url":"https://api.github.com/users/eHealthAfrica/following{/other_user}","gists_url":"https://api.github.com/users/eHealthAfrica/gists{/gist_id}","starred_url":"https://api.github.com/users/eHealthAfrica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eHealthAfrica/subscriptions","organizations_url":"https://api.github.com/users/eHealthAfrica/orgs","repos_url":"https://api.github.com/users/eHealthAfrica/repos","events_url":"https://api.github.com/users/eHealthAfrica/events{/privacy}","received_events_url":"https://api.github.com/users/eHealthAfrica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture","description":"Data capture for DHIS 2","fork":true,"url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture","forks_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/forks","keys_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/teams","hooks_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/hooks","issue_events_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues/events{/number}","events_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/events","assignees_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/assignees{/user}","branches_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/branches{/branch}","tags_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/tags","blobs_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/refs{/sha}","trees_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/statuses/{sha}","languages_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/languages","stargazers_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/stargazers","contributors_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/contributors","subscribers_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/subscribers","subscription_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/subscription","commits_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/commits{/sha}","git_commits_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/git/commits{/sha}","comments_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/comments{/number}","issue_comment_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues/comments{/number}","contents_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/contents/{+path}","compare_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/merges","archive_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/downloads","issues_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues{/number}","pulls_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls{/number}","milestones_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/milestones{/number}","notifications_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/labels{/name}","releases_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/releases{/id}","deployments_url":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/deployments","created_at":"2016-08-11T12:19:15Z","updated_at":"2016-08-11T12:19:17Z","pushed_at":"2016-09-16T10:04:16Z","git_url":"git://github.com/eHealthAfrica/dhis2-android-datacapture.git","ssh_url":"git@github.com:eHealthAfrica/dhis2-android-datacapture.git","clone_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture.git","svn_url":"https://github.com/eHealthAfrica/dhis2-android-datacapture","homepage":"","size":2134,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/8"},"html":{"href":"https://github.com/eHealthAfrica/dhis2-android-datacapture/pull/8"},"issue":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues/8"},"comments":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/eHealthAfrica/dhis2-android-datacapture/statuses/83350653871fe3c4e7b7a39b13f4653ef418c4b0"}}}}
{"actor":{"display_login":"zewolfe"}}