{"action":"created","comment":{"url":"https://api.github.com/repos/motech/modules/pulls/comments/94148630","pull_request_review_id":14679241,"id":94148630,"diff_hunk":"@@ -186,4 +197,39 @@ private void validateEncounter(Encounter encounter) {\n \n         return result;\n     }\n+\n+    private List<Observation> createNestedObservations(String configName, Encounter encounter, List<Observation> observationList) {\n+        List<Observation> createdObservations = new ArrayList<>();\n+        Observation observationToCreate;\n+\n+        for (Observation observation : observationList) {","path":"openmrs/src/main/java/org/motechproject/openmrs/service/impl/OpenMRSEncounterServiceImpl.java","position":68,"original_position":68,"commit_id":"d34e5cb673c71f9a8bf426ec88a631b7d76eb3ae","original_commit_id":"d34e5cb673c71f9a8bf426ec88a631b7d76eb3ae","user":{"login":"kmadej","id":9861925,"avatar_url":"https://avatars.githubusercontent.com/u/9861925?v=3","gravatar_id":"","url":"https://api.github.com/users/kmadej","html_url":"https://github.com/kmadej","followers_url":"https://api.github.com/users/kmadej/followers","following_url":"https://api.github.com/users/kmadej/following{/other_user}","gists_url":"https://api.github.com/users/kmadej/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadej/subscriptions","organizations_url":"https://api.github.com/users/kmadej/orgs","repos_url":"https://api.github.com/users/kmadej/repos","events_url":"https://api.github.com/users/kmadej/events{/privacy}","received_events_url":"https://api.github.com/users/kmadej/received_events","type":"User","site_admin":false},"body":"observationList can be null, please handle this in getObs() getter in Encounter","created_at":"2016-12-29T15:41:45Z","updated_at":"2016-12-29T15:42:19Z","html_url":"https://github.com/motech/modules/pull/511#discussion_r94148630","pull_request_url":"https://api.github.com/repos/motech/modules/pulls/511","_links":{"self":{"href":"https://api.github.com/repos/motech/modules/pulls/comments/94148630"},"html":{"href":"https://github.com/motech/modules/pull/511#discussion_r94148630"},"pull_request":{"href":"https://api.github.com/repos/motech/modules/pulls/511"}}},"pull_request":{"url":"https://api.github.com/repos/motech/modules/pulls/511","id":99444725,"html_url":"https://github.com/motech/modules/pull/511","diff_url":"https://github.com/motech/modules/pull/511.diff","patch_url":"https://github.com/motech/modules/pull/511.patch","issue_url":"https://api.github.com/repos/motech/modules/issues/511","number":511,"state":"open","locked":false,"title":"MOTECH-3080: Fixed observations group","user":{"login":"mkruszynski","id":19724590,"avatar_url":"https://avatars.githubusercontent.com/u/19724590?v=3","gravatar_id":"","url":"https://api.github.com/users/mkruszynski","html_url":"https://github.com/mkruszynski","followers_url":"https://api.github.com/users/mkruszynski/followers","following_url":"https://api.github.com/users/mkruszynski/following{/other_user}","gists_url":"https://api.github.com/users/mkruszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/mkruszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkruszynski/subscriptions","organizations_url":"https://api.github.com/users/mkruszynski/orgs","repos_url":"https://api.github.com/users/mkruszynski/repos","events_url":"https://api.github.com/users/mkruszynski/events{/privacy}","received_events_url":"https://api.github.com/users/mkruszynski/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-27T13:28:10Z","updated_at":"2016-12-29T15:42:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e967ebb3985daf114d192248f608d6635152e044","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/motech/modules/pulls/511/commits","review_comments_url":"https://api.github.com/repos/motech/modules/pulls/511/comments","review_comment_url":"https://api.github.com/repos/motech/modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/motech/modules/issues/511/comments","statuses_url":"https://api.github.com/repos/motech/modules/statuses/d34e5cb673c71f9a8bf426ec88a631b7d76eb3ae","head":{"label":"mkruszynski:MOTECH-3080","ref":"MOTECH-3080","sha":"d34e5cb673c71f9a8bf426ec88a631b7d76eb3ae","user":{"login":"mkruszynski","id":19724590,"avatar_url":"https://avatars.githubusercontent.com/u/19724590?v=3","gravatar_id":"","url":"https://api.github.com/users/mkruszynski","html_url":"https://github.com/mkruszynski","followers_url":"https://api.github.com/users/mkruszynski/followers","following_url":"https://api.github.com/users/mkruszynski/following{/other_user}","gists_url":"https://api.github.com/users/mkruszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/mkruszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkruszynski/subscriptions","organizations_url":"https://api.github.com/users/mkruszynski/orgs","repos_url":"https://api.github.com/users/mkruszynski/repos","events_url":"https://api.github.com/users/mkruszynski/events{/privacy}","received_events_url":"https://api.github.com/users/mkruszynski/received_events","type":"User","site_admin":false},"repo":{"id":60323418,"name":"modules","full_name":"mkruszynski/modules","owner":{"login":"mkruszynski","id":19724590,"avatar_url":"https://avatars.githubusercontent.com/u/19724590?v=3","gravatar_id":"","url":"https://api.github.com/users/mkruszynski","html_url":"https://github.com/mkruszynski","followers_url":"https://api.github.com/users/mkruszynski/followers","following_url":"https://api.github.com/users/mkruszynski/following{/other_user}","gists_url":"https://api.github.com/users/mkruszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/mkruszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkruszynski/subscriptions","organizations_url":"https://api.github.com/users/mkruszynski/orgs","repos_url":"https://api.github.com/users/mkruszynski/repos","events_url":"https://api.github.com/users/mkruszynski/events{/privacy}","received_events_url":"https://api.github.com/users/mkruszynski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkruszynski/modules","description":" Mobile Technology for Community Health - Modules","fork":true,"url":"https://api.github.com/repos/mkruszynski/modules","forks_url":"https://api.github.com/repos/mkruszynski/modules/forks","keys_url":"https://api.github.com/repos/mkruszynski/modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkruszynski/modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkruszynski/modules/teams","hooks_url":"https://api.github.com/repos/mkruszynski/modules/hooks","issue_events_url":"https://api.github.com/repos/mkruszynski/modules/issues/events{/number}","events_url":"https://api.github.com/repos/mkruszynski/modules/events","assignees_url":"https://api.github.com/repos/mkruszynski/modules/assignees{/user}","branches_url":"https://api.github.com/repos/mkruszynski/modules/branches{/branch}","tags_url":"https://api.github.com/repos/mkruszynski/modules/tags","blobs_url":"https://api.github.com/repos/mkruszynski/modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkruszynski/modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkruszynski/modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkruszynski/modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkruszynski/modules/statuses/{sha}","languages_url":"https://api.github.com/repos/mkruszynski/modules/languages","stargazers_url":"https://api.github.com/repos/mkruszynski/modules/stargazers","contributors_url":"https://api.github.com/repos/mkruszynski/modules/contributors","subscribers_url":"https://api.github.com/repos/mkruszynski/modules/subscribers","subscription_url":"https://api.github.com/repos/mkruszynski/modules/subscription","commits_url":"https://api.github.com/repos/mkruszynski/modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkruszynski/modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkruszynski/modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkruszynski/modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkruszynski/modules/contents/{+path}","compare_url":"https://api.github.com/repos/mkruszynski/modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkruszynski/modules/merges","archive_url":"https://api.github.com/repos/mkruszynski/modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkruszynski/modules/downloads","issues_url":"https://api.github.com/repos/mkruszynski/modules/issues{/number}","pulls_url":"https://api.github.com/repos/mkruszynski/modules/pulls{/number}","milestones_url":"https://api.github.com/repos/mkruszynski/modules/milestones{/number}","notifications_url":"https://api.github.com/repos/mkruszynski/modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkruszynski/modules/labels{/name}","releases_url":"https://api.github.com/repos/mkruszynski/modules/releases{/id}","deployments_url":"https://api.github.com/repos/mkruszynski/modules/deployments","created_at":"2016-06-03T06:21:04Z","updated_at":"2016-06-03T06:21:12Z","pushed_at":"2016-12-29T15:26:15Z","git_url":"git://github.com/mkruszynski/modules.git","ssh_url":"git@github.com:mkruszynski/modules.git","clone_url":"https://github.com/mkruszynski/modules.git","svn_url":"https://github.com/mkruszynski/modules","homepage":"http://modules.motechproject.org","size":35073,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"motech:master","ref":"master","sha":"21c91ebad8061331f12432a39d39a77f1c27a7c1","user":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"repo":{"id":19785525,"name":"modules","full_name":"motech/modules","owner":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/motech/modules","description":" Mobile Technology for Community Health - Modules","fork":false,"url":"https://api.github.com/repos/motech/modules","forks_url":"https://api.github.com/repos/motech/modules/forks","keys_url":"https://api.github.com/repos/motech/modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motech/modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motech/modules/teams","hooks_url":"https://api.github.com/repos/motech/modules/hooks","issue_events_url":"https://api.github.com/repos/motech/modules/issues/events{/number}","events_url":"https://api.github.com/repos/motech/modules/events","assignees_url":"https://api.github.com/repos/motech/modules/assignees{/user}","branches_url":"https://api.github.com/repos/motech/modules/branches{/branch}","tags_url":"https://api.github.com/repos/motech/modules/tags","blobs_url":"https://api.github.com/repos/motech/modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motech/modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motech/modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/motech/modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motech/modules/statuses/{sha}","languages_url":"https://api.github.com/repos/motech/modules/languages","stargazers_url":"https://api.github.com/repos/motech/modules/stargazers","contributors_url":"https://api.github.com/repos/motech/modules/contributors","subscribers_url":"https://api.github.com/repos/motech/modules/subscribers","subscription_url":"https://api.github.com/repos/motech/modules/subscription","commits_url":"https://api.github.com/repos/motech/modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/motech/modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/motech/modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/motech/modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/motech/modules/contents/{+path}","compare_url":"https://api.github.com/repos/motech/modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motech/modules/merges","archive_url":"https://api.github.com/repos/motech/modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motech/modules/downloads","issues_url":"https://api.github.com/repos/motech/modules/issues{/number}","pulls_url":"https://api.github.com/repos/motech/modules/pulls{/number}","milestones_url":"https://api.github.com/repos/motech/modules/milestones{/number}","notifications_url":"https://api.github.com/repos/motech/modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motech/modules/labels{/name}","releases_url":"https://api.github.com/repos/motech/modules/releases{/id}","deployments_url":"https://api.github.com/repos/motech/modules/deployments","created_at":"2014-05-14T15:41:17Z","updated_at":"2016-10-25T10:08:56Z","pushed_at":"2016-12-29T15:26:17Z","git_url":"git://github.com/motech/modules.git","ssh_url":"git@github.com:motech/modules.git","clone_url":"https://github.com/motech/modules.git","svn_url":"https://github.com/motech/modules","homepage":"http://modules.motechproject.org","size":35012,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":10,"forks":56,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/motech/modules/pulls/511"},"html":{"href":"https://github.com/motech/modules/pull/511"},"issue":{"href":"https://api.github.com/repos/motech/modules/issues/511"},"comments":{"href":"https://api.github.com/repos/motech/modules/issues/511/comments"},"review_comments":{"href":"https://api.github.com/repos/motech/modules/pulls/511/comments"},"review_comment":{"href":"https://api.github.com/repos/motech/modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/motech/modules/pulls/511/commits"},"statuses":{"href":"https://api.github.com/repos/motech/modules/statuses/d34e5cb673c71f9a8bf426ec88a631b7d76eb3ae"}}}}
{"actor":{"display_login":"kmadej"}}