{"action":"created","comment":{"url":"https://api.github.com/repos/motech/modules/pulls/comments/62177725","id":62177725,"diff_hunk":"@@ -0,0 +1,12 @@\n+package org.motechproject.openmrs19.resource;\n+\n+import org.motechproject.openmrs19.config.Config;\n+import org.motechproject.openmrs19.domain.ProgramEnrollment;\n+\n+/**\n+ * Initerface for programs enrollment management.\n+ */\n+public interface ProgramEnrollmentResource {\n+\n+    ProgramEnrollment createProgramEnrollment(Config config, ProgramEnrollment programEnrollment);","path":"openmrs-19/src/main/java/org/motechproject/openmrs19/resource/ProgramEnrollmentResource.java","position":11,"original_position":11,"commit_id":"768cd2d2ff760d6076b21decc499fb2cbaa2de35","original_commit_id":"768cd2d2ff760d6076b21decc499fb2cbaa2de35","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":"javadoc here","created_at":"2016-05-05T11:55:41Z","updated_at":"2016-05-05T11:55:41Z","html_url":"https://github.com/motech/modules/pull/259#discussion_r62177725","pull_request_url":"https://api.github.com/repos/motech/modules/pulls/259","_links":{"self":{"href":"https://api.github.com/repos/motech/modules/pulls/comments/62177725"},"html":{"href":"https://github.com/motech/modules/pull/259#discussion_r62177725"},"pull_request":{"href":"https://api.github.com/repos/motech/modules/pulls/259"}}},"pull_request":{"url":"https://api.github.com/repos/motech/modules/pulls/259","id":68226060,"html_url":"https://github.com/motech/modules/pull/259","diff_url":"https://github.com/motech/modules/pull/259.diff","patch_url":"https://github.com/motech/modules/pull/259.patch","issue_url":"https://api.github.com/repos/motech/modules/issues/259","number":259,"state":"open","locked":false,"title":"MOTECH-2420 Add task action: Enroll Patient in Program","user":{"login":"martokarski","id":15088085,"avatar_url":"https://avatars.githubusercontent.com/u/15088085?v=3","gravatar_id":"","url":"https://api.github.com/users/martokarski","html_url":"https://github.com/martokarski","followers_url":"https://api.github.com/users/martokarski/followers","following_url":"https://api.github.com/users/martokarski/following{/other_user}","gists_url":"https://api.github.com/users/martokarski/gists{/gist_id}","starred_url":"https://api.github.com/users/martokarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martokarski/subscriptions","organizations_url":"https://api.github.com/users/martokarski/orgs","repos_url":"https://api.github.com/users/martokarski/repos","events_url":"https://api.github.com/users/martokarski/events{/privacy}","received_events_url":"https://api.github.com/users/martokarski/received_events","type":"User","site_admin":false},"body":"I added new task action Create Program Enrollment. Program Enrollment informs about patient being enrolled in program and keeps history of patient states.\r\n\r\nThis action is only available with 1.10 and higher version of openmrs. I tested it on OpenMRS 1.11.6 with rest 2.14 module.\r\n\r\nI also moved .json files to proper directories to clean up.","created_at":"2016-04-28T14:05:39Z","updated_at":"2016-05-05T11:55:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c485c6c69aac722f19798a377060c45110ed1d5a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/motech/modules/pulls/259/commits","review_comments_url":"https://api.github.com/repos/motech/modules/pulls/259/comments","review_comment_url":"https://api.github.com/repos/motech/modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/motech/modules/issues/259/comments","statuses_url":"https://api.github.com/repos/motech/modules/statuses/768cd2d2ff760d6076b21decc499fb2cbaa2de35","head":{"label":"martokarski:dev/EnrollPatientInPorgram","ref":"dev/EnrollPatientInPorgram","sha":"768cd2d2ff760d6076b21decc499fb2cbaa2de35","user":{"login":"martokarski","id":15088085,"avatar_url":"https://avatars.githubusercontent.com/u/15088085?v=3","gravatar_id":"","url":"https://api.github.com/users/martokarski","html_url":"https://github.com/martokarski","followers_url":"https://api.github.com/users/martokarski/followers","following_url":"https://api.github.com/users/martokarski/following{/other_user}","gists_url":"https://api.github.com/users/martokarski/gists{/gist_id}","starred_url":"https://api.github.com/users/martokarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martokarski/subscriptions","organizations_url":"https://api.github.com/users/martokarski/orgs","repos_url":"https://api.github.com/users/martokarski/repos","events_url":"https://api.github.com/users/martokarski/events{/privacy}","received_events_url":"https://api.github.com/users/martokarski/received_events","type":"User","site_admin":false},"repo":{"id":44174090,"name":"modules","full_name":"martokarski/modules","owner":{"login":"martokarski","id":15088085,"avatar_url":"https://avatars.githubusercontent.com/u/15088085?v=3","gravatar_id":"","url":"https://api.github.com/users/martokarski","html_url":"https://github.com/martokarski","followers_url":"https://api.github.com/users/martokarski/followers","following_url":"https://api.github.com/users/martokarski/following{/other_user}","gists_url":"https://api.github.com/users/martokarski/gists{/gist_id}","starred_url":"https://api.github.com/users/martokarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martokarski/subscriptions","organizations_url":"https://api.github.com/users/martokarski/orgs","repos_url":"https://api.github.com/users/martokarski/repos","events_url":"https://api.github.com/users/martokarski/events{/privacy}","received_events_url":"https://api.github.com/users/martokarski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/martokarski/modules","description":" Mobile Technology for Community Health - Modules","fork":true,"url":"https://api.github.com/repos/martokarski/modules","forks_url":"https://api.github.com/repos/martokarski/modules/forks","keys_url":"https://api.github.com/repos/martokarski/modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/martokarski/modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/martokarski/modules/teams","hooks_url":"https://api.github.com/repos/martokarski/modules/hooks","issue_events_url":"https://api.github.com/repos/martokarski/modules/issues/events{/number}","events_url":"https://api.github.com/repos/martokarski/modules/events","assignees_url":"https://api.github.com/repos/martokarski/modules/assignees{/user}","branches_url":"https://api.github.com/repos/martokarski/modules/branches{/branch}","tags_url":"https://api.github.com/repos/martokarski/modules/tags","blobs_url":"https://api.github.com/repos/martokarski/modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/martokarski/modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/martokarski/modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/martokarski/modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/martokarski/modules/statuses/{sha}","languages_url":"https://api.github.com/repos/martokarski/modules/languages","stargazers_url":"https://api.github.com/repos/martokarski/modules/stargazers","contributors_url":"https://api.github.com/repos/martokarski/modules/contributors","subscribers_url":"https://api.github.com/repos/martokarski/modules/subscribers","subscription_url":"https://api.github.com/repos/martokarski/modules/subscription","commits_url":"https://api.github.com/repos/martokarski/modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/martokarski/modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/martokarski/modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/martokarski/modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/martokarski/modules/contents/{+path}","compare_url":"https://api.github.com/repos/martokarski/modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/martokarski/modules/merges","archive_url":"https://api.github.com/repos/martokarski/modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/martokarski/modules/downloads","issues_url":"https://api.github.com/repos/martokarski/modules/issues{/number}","pulls_url":"https://api.github.com/repos/martokarski/modules/pulls{/number}","milestones_url":"https://api.github.com/repos/martokarski/modules/milestones{/number}","notifications_url":"https://api.github.com/repos/martokarski/modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/martokarski/modules/labels{/name}","releases_url":"https://api.github.com/repos/martokarski/modules/releases{/id}","deployments_url":"https://api.github.com/repos/martokarski/modules/deployments","created_at":"2015-10-13T12:17:08Z","updated_at":"2016-01-12T08:52:15Z","pushed_at":"2016-04-28T13:53:51Z","git_url":"git://github.com/martokarski/modules.git","ssh_url":"git@github.com:martokarski/modules.git","clone_url":"https://github.com/martokarski/modules.git","svn_url":"https://github.com/martokarski/modules","homepage":"http://modules.motechproject.org","size":32808,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"motech:master","ref":"master","sha":"6367e3695a2a254534873f289f663c3aa2dbf3c8","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-03-01T02:21:35Z","pushed_at":"2016-05-05T09:06:04Z","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":38895,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":10,"forks":35,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/motech/modules/pulls/259"},"html":{"href":"https://github.com/motech/modules/pull/259"},"issue":{"href":"https://api.github.com/repos/motech/modules/issues/259"},"comments":{"href":"https://api.github.com/repos/motech/modules/issues/259/comments"},"review_comments":{"href":"https://api.github.com/repos/motech/modules/pulls/259/comments"},"review_comment":{"href":"https://api.github.com/repos/motech/modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/motech/modules/pulls/259/commits"},"statuses":{"href":"https://api.github.com/repos/motech/modules/statuses/768cd2d2ff760d6076b21decc499fb2cbaa2de35"}}}}