{"action":"created","comment":{"url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/comments/193698953","pull_request_review_id":126720785,"id":193698953,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzY5ODk1Mw==","diff_hunk":"@@ -11,13 +12,48 @@\n  * Used for managing attachments\n  */\n public interface AttachmentsService {\n-\t\n+\n+\n+\t/**\n+\t * Get all attachments for given patient.\n+\t *\n+\t * @param patient the patient whose attachment to get\n+\t * @param includeRetired\n+\t * @return matching attachments\n+\t * @throws APIException","path":"api/src/main/java/org/openmrs/module/attachments/AttachmentsService.java","position":23,"original_position":21,"commit_id":"bfc450de57f1f5b449cda3bb84876f756843ab12","original_commit_id":"bfc450de57f1f5b449cda3bb84876f756843ab12","user":{"login":"mks-d","id":12812196,"node_id":"MDQ6VXNlcjEyODEyMTk2","avatar_url":"https://avatars0.githubusercontent.com/u/12812196?v=4","gravatar_id":"","url":"https://api.github.com/users/mks-d","html_url":"https://github.com/mks-d","followers_url":"https://api.github.com/users/mks-d/followers","following_url":"https://api.github.com/users/mks-d/following{/other_user}","gists_url":"https://api.github.com/users/mks-d/gists{/gist_id}","starred_url":"https://api.github.com/users/mks-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mks-d/subscriptions","organizations_url":"https://api.github.com/users/mks-d/orgs","repos_url":"https://api.github.com/users/mks-d/repos","events_url":"https://api.github.com/users/mks-d/events{/privacy}","received_events_url":"https://api.github.com/users/mks-d/received_events","type":"User","site_admin":false},"body":"You should say _when_ an API exception is thrown.","created_at":"2018-06-07T10:29:06Z","updated_at":"2018-06-07T10:33:03Z","html_url":"https://github.com/openmrs/openmrs-module-attachments/pull/19#discussion_r193698953","pull_request_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/19","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/comments/193698953"},"html":{"href":"https://github.com/openmrs/openmrs-module-attachments/pull/19#discussion_r193698953"},"pull_request":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/19","id":190695202,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNjk1MjAy","html_url":"https://github.com/openmrs/openmrs-module-attachments/pull/19","diff_url":"https://github.com/openmrs/openmrs-module-attachments/pull/19.diff","patch_url":"https://github.com/openmrs/openmrs-module-attachments/pull/19.patch","issue_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/issues/19","number":19,"state":"open","locked":false,"title":"ATT-24 (work in progress)","user":{"login":"ridmal","id":18748482,"node_id":"MDQ6VXNlcjE4NzQ4NDgy","avatar_url":"https://avatars0.githubusercontent.com/u/18748482?v=4","gravatar_id":"","url":"https://api.github.com/users/ridmal","html_url":"https://github.com/ridmal","followers_url":"https://api.github.com/users/ridmal/followers","following_url":"https://api.github.com/users/ridmal/following{/other_user}","gists_url":"https://api.github.com/users/ridmal/gists{/gist_id}","starred_url":"https://api.github.com/users/ridmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridmal/subscriptions","organizations_url":"https://api.github.com/users/ridmal/orgs","repos_url":"https://api.github.com/users/ridmal/repos","events_url":"https://api.github.com/users/ridmal/events{/privacy}","received_events_url":"https://api.github.com/users/ridmal/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-25T21:12:31Z","updated_at":"2018-06-07T10:33:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53dce72813122a65164ba43d6ba205b90d147367","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/19/commits","review_comments_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/19/comments","review_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/issues/19/comments","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/statuses/bfc450de57f1f5b449cda3bb84876f756843ab12","head":{"label":"ridmal:ATT-24","ref":"ATT-24","sha":"bfc450de57f1f5b449cda3bb84876f756843ab12","user":{"login":"ridmal","id":18748482,"node_id":"MDQ6VXNlcjE4NzQ4NDgy","avatar_url":"https://avatars0.githubusercontent.com/u/18748482?v=4","gravatar_id":"","url":"https://api.github.com/users/ridmal","html_url":"https://github.com/ridmal","followers_url":"https://api.github.com/users/ridmal/followers","following_url":"https://api.github.com/users/ridmal/following{/other_user}","gists_url":"https://api.github.com/users/ridmal/gists{/gist_id}","starred_url":"https://api.github.com/users/ridmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridmal/subscriptions","organizations_url":"https://api.github.com/users/ridmal/orgs","repos_url":"https://api.github.com/users/ridmal/repos","events_url":"https://api.github.com/users/ridmal/events{/privacy}","received_events_url":"https://api.github.com/users/ridmal/received_events","type":"User","site_admin":false},"repo":{"id":124952182,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ5NTIxODI=","name":"openmrs-module-attachments","full_name":"ridmal/openmrs-module-attachments","owner":{"login":"ridmal","id":18748482,"node_id":"MDQ6VXNlcjE4NzQ4NDgy","avatar_url":"https://avatars0.githubusercontent.com/u/18748482?v=4","gravatar_id":"","url":"https://api.github.com/users/ridmal","html_url":"https://github.com/ridmal","followers_url":"https://api.github.com/users/ridmal/followers","following_url":"https://api.github.com/users/ridmal/following{/other_user}","gists_url":"https://api.github.com/users/ridmal/gists{/gist_id}","starred_url":"https://api.github.com/users/ridmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridmal/subscriptions","organizations_url":"https://api.github.com/users/ridmal/orgs","repos_url":"https://api.github.com/users/ridmal/repos","events_url":"https://api.github.com/users/ridmal/events{/privacy}","received_events_url":"https://api.github.com/users/ridmal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ridmal/openmrs-module-attachments","description":"UI components and backend web services to upload, view and manage attachments within OpenMRS.","fork":true,"url":"https://api.github.com/repos/ridmal/openmrs-module-attachments","forks_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/forks","keys_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/teams","hooks_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/hooks","issue_events_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/issues/events{/number}","events_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/events","assignees_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/assignees{/user}","branches_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/branches{/branch}","tags_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/tags","blobs_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/git/refs{/sha}","trees_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/statuses/{sha}","languages_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/languages","stargazers_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/stargazers","contributors_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/contributors","subscribers_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/subscribers","subscription_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/subscription","commits_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/commits{/sha}","git_commits_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/git/commits{/sha}","comments_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/comments{/number}","issue_comment_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/issues/comments{/number}","contents_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/contents/{+path}","compare_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/merges","archive_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/downloads","issues_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/issues{/number}","pulls_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/pulls{/number}","milestones_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/milestones{/number}","notifications_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/labels{/name}","releases_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/releases{/id}","deployments_url":"https://api.github.com/repos/ridmal/openmrs-module-attachments/deployments","created_at":"2018-03-12T21:12:00Z","updated_at":"2018-03-12T21:12:02Z","pushed_at":"2018-06-05T17:40:46Z","git_url":"git://github.com/ridmal/openmrs-module-attachments.git","ssh_url":"git@github.com:ridmal/openmrs-module-attachments.git","clone_url":"https://github.com/ridmal/openmrs-module-attachments.git","svn_url":"https://github.com/ridmal/openmrs-module-attachments","homepage":"","size":1262,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openmrs:master","ref":"master","sha":"75b6dc2bdf4ff723a6a2cc9417e25801affe516e","user":{"login":"openmrs","id":860776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860776?v=4","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"repo":{"id":55615630,"node_id":"MDEwOlJlcG9zaXRvcnk1NTYxNTYzMA==","name":"openmrs-module-attachments","full_name":"openmrs/openmrs-module-attachments","owner":{"login":"openmrs","id":860776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860776?v=4","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmrs/openmrs-module-attachments","description":"UI components and backend web services to upload, view and manage attachments within OpenMRS.","fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-module-attachments","forks_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/releases{/id}","deployments_url":"https://api.github.com/repos/openmrs/openmrs-module-attachments/deployments","created_at":"2016-04-06T15:03:00Z","updated_at":"2018-04-06T08:57:51Z","pushed_at":"2018-06-05T17:40:48Z","git_url":"git://github.com/openmrs/openmrs-module-attachments.git","ssh_url":"git@github.com:openmrs/openmrs-module-attachments.git","clone_url":"https://github.com/openmrs/openmrs-module-attachments.git","svn_url":"https://github.com/openmrs/openmrs-module-attachments","homepage":"","size":1181,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":16,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/19"},"html":{"href":"https://github.com/openmrs/openmrs-module-attachments/pull/19"},"issue":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/issues/19"},"comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/openmrs/openmrs-module-attachments/statuses/bfc450de57f1f5b449cda3bb84876f756843ab12"}},"author_association":"NONE"}}
{"actor":{"display_login":"mks-d"}}