{"action":"created","comment":{"url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/comments/33475046","id":33475046,"diff_hunk":"@@ -107,4 +107,30 @@ public void saveVariable(final AbstractVariable variable)\n         fLogger.debug(\"Getting all RiskModels.\");\n         return fRiskModelDao.getAllRiskModels();\n     }\n+    \n+    @Override\n+    @Transactional(readOnly = true)\n+    public RiskModel getRiskModelForId(final int modelId)\n+    {        \n+        fLogger.debug(\"Getting RiskModel for {}.\", modelId);\n+        return fRiskModelDao.getRiskModelForId( modelId );\n+    }\n+\n+    /**\n+     * Saves the {@link RiskModel} \n+     */\n+    @Override\n+    @Transactional\n+    public void saveRiskModel( final RiskModel model ) \n+    {    \t\n+        if( getRiskModelForId( model.getId() ) == null ) ","path":"srcalc/src/main/java/gov/va/med/srcalc/service/DefaultAdminService.java","position":20,"original_position":20,"commit_id":"b421714542a21ffc5cda191562ec1e55ee603ecf","original_commit_id":"b421714542a21ffc5cda191562ec1e55ee603ecf","user":{"login":"gregoryhull","id":13005329,"avatar_url":"https://avatars.githubusercontent.com/u/13005329?v=3","gravatar_id":"","url":"https://api.github.com/users/gregoryhull","html_url":"https://github.com/gregoryhull","followers_url":"https://api.github.com/users/gregoryhull/followers","following_url":"https://api.github.com/users/gregoryhull/following{/other_user}","gists_url":"https://api.github.com/users/gregoryhull/gists{/gist_id}","starred_url":"https://api.github.com/users/gregoryhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregoryhull/subscriptions","organizations_url":"https://api.github.com/users/gregoryhull/orgs","repos_url":"https://api.github.com/users/gregoryhull/repos","events_url":"https://api.github.com/users/gregoryhull/events{/privacy}","received_events_url":"https://api.github.com/users/gregoryhull/received_events","type":"User","site_admin":false},"body":"Shouldn't happen since there is currently no way for the user create or add new Ids.\r\nIts just a sanity check / warning.\r\n","created_at":"2015-06-29T15:21:52Z","updated_at":"2015-06-29T15:21:52Z","html_url":"https://github.com/VHAINNOVATIONS/ASRCM/pull/89#discussion_r33475046","pull_request_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/89","_links":{"self":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/comments/33475046"},"html":{"href":"https://github.com/VHAINNOVATIONS/ASRCM/pull/89#discussion_r33475046"},"pull_request":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/89"}}},"pull_request":{"url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/89","id":38277502,"html_url":"https://github.com/VHAINNOVATIONS/ASRCM/pull/89","diff_url":"https://github.com/VHAINNOVATIONS/ASRCM/pull/89.diff","patch_url":"https://github.com/VHAINNOVATIONS/ASRCM/pull/89.patch","issue_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues/89","number":89,"state":"open","locked":false,"title":"Asrc 289","user":{"login":"gregoryhull","id":13005329,"avatar_url":"https://avatars.githubusercontent.com/u/13005329?v=3","gravatar_id":"","url":"https://api.github.com/users/gregoryhull","html_url":"https://github.com/gregoryhull","followers_url":"https://api.github.com/users/gregoryhull/followers","following_url":"https://api.github.com/users/gregoryhull/following{/other_user}","gists_url":"https://api.github.com/users/gregoryhull/gists{/gist_id}","starred_url":"https://api.github.com/users/gregoryhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregoryhull/subscriptions","organizations_url":"https://api.github.com/users/gregoryhull/orgs","repos_url":"https://api.github.com/users/gregoryhull/repos","events_url":"https://api.github.com/users/gregoryhull/events{/privacy}","received_events_url":"https://api.github.com/users/gregoryhull/received_events","type":"User","site_admin":false},"body":"289 for review\r\n","created_at":"2015-06-22T21:16:54Z","updated_at":"2015-06-29T15:21:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3664bfc2c4fdbcdd1a3c14f66735efc4e9244d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/89/commits","review_comments_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/89/comments","review_comment_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues/89/comments","statuses_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/statuses/b421714542a21ffc5cda191562ec1e55ee603ecf","head":{"label":"VHAINNOVATIONS:ASRC-289","ref":"ASRC-289","sha":"b421714542a21ffc5cda191562ec1e55ee603ecf","user":{"login":"VHAINNOVATIONS","id":1252476,"avatar_url":"https://avatars.githubusercontent.com/u/1252476?v=3","gravatar_id":"","url":"https://api.github.com/users/VHAINNOVATIONS","html_url":"https://github.com/VHAINNOVATIONS","followers_url":"https://api.github.com/users/VHAINNOVATIONS/followers","following_url":"https://api.github.com/users/VHAINNOVATIONS/following{/other_user}","gists_url":"https://api.github.com/users/VHAINNOVATIONS/gists{/gist_id}","starred_url":"https://api.github.com/users/VHAINNOVATIONS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VHAINNOVATIONS/subscriptions","organizations_url":"https://api.github.com/users/VHAINNOVATIONS/orgs","repos_url":"https://api.github.com/users/VHAINNOVATIONS/repos","events_url":"https://api.github.com/users/VHAINNOVATIONS/events{/privacy}","received_events_url":"https://api.github.com/users/VHAINNOVATIONS/received_events","type":"Organization","site_admin":false},"repo":{"id":26819438,"name":"ASRCM","full_name":"VHAINNOVATIONS/ASRCM","owner":{"login":"VHAINNOVATIONS","id":1252476,"avatar_url":"https://avatars.githubusercontent.com/u/1252476?v=3","gravatar_id":"","url":"https://api.github.com/users/VHAINNOVATIONS","html_url":"https://github.com/VHAINNOVATIONS","followers_url":"https://api.github.com/users/VHAINNOVATIONS/followers","following_url":"https://api.github.com/users/VHAINNOVATIONS/following{/other_user}","gists_url":"https://api.github.com/users/VHAINNOVATIONS/gists{/gist_id}","starred_url":"https://api.github.com/users/VHAINNOVATIONS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VHAINNOVATIONS/subscriptions","organizations_url":"https://api.github.com/users/VHAINNOVATIONS/orgs","repos_url":"https://api.github.com/users/VHAINNOVATIONS/repos","events_url":"https://api.github.com/users/VHAINNOVATIONS/events{/privacy}","received_events_url":"https://api.github.com/users/VHAINNOVATIONS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/VHAINNOVATIONS/ASRCM","description":"The Automated Surgical Risk Calculator for Mortality Innovation is a project to develop a tool from CPRS through the “Tools” drop down that will auto-fill pertinent information into the developed risk calculator.  The Automated Risk Calculator will utilize the generated data and allow for the user to manually input required information to support clinical decision-making regarding perioperative risk.  The tool will then allow for information to be written back to the patients file in CPRS.  In addition, a secondary tool will be created to store and develop a repository for research of risk calculations developed.  ","fork":false,"url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM","forks_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/forks","keys_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/teams","hooks_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/hooks","issue_events_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues/events{/number}","events_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/events","assignees_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/assignees{/user}","branches_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/branches{/branch}","tags_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/tags","blobs_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/refs{/sha}","trees_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/statuses/{sha}","languages_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/languages","stargazers_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/stargazers","contributors_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/contributors","subscribers_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/subscribers","subscription_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/subscription","commits_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/commits{/sha}","git_commits_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/commits{/sha}","comments_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/comments{/number}","issue_comment_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues/comments{/number}","contents_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/contents/{+path}","compare_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/merges","archive_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/downloads","issues_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues{/number}","pulls_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls{/number}","milestones_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/milestones{/number}","notifications_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/labels{/name}","releases_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/releases{/id}","created_at":"2014-11-18T16:48:50Z","updated_at":"2015-05-08T20:09:42Z","pushed_at":"2015-06-29T13:48:13Z","git_url":"git://github.com/VHAINNOVATIONS/ASRCM.git","ssh_url":"git@github.com:VHAINNOVATIONS/ASRCM.git","clone_url":"https://github.com/VHAINNOVATIONS/ASRCM.git","svn_url":"https://github.com/VHAINNOVATIONS/ASRCM","homepage":null,"size":10684,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"VHAINNOVATIONS:master","ref":"master","sha":"54dbc160f9d8bc5b24469390b6f36e7f53db5a98","user":{"login":"VHAINNOVATIONS","id":1252476,"avatar_url":"https://avatars.githubusercontent.com/u/1252476?v=3","gravatar_id":"","url":"https://api.github.com/users/VHAINNOVATIONS","html_url":"https://github.com/VHAINNOVATIONS","followers_url":"https://api.github.com/users/VHAINNOVATIONS/followers","following_url":"https://api.github.com/users/VHAINNOVATIONS/following{/other_user}","gists_url":"https://api.github.com/users/VHAINNOVATIONS/gists{/gist_id}","starred_url":"https://api.github.com/users/VHAINNOVATIONS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VHAINNOVATIONS/subscriptions","organizations_url":"https://api.github.com/users/VHAINNOVATIONS/orgs","repos_url":"https://api.github.com/users/VHAINNOVATIONS/repos","events_url":"https://api.github.com/users/VHAINNOVATIONS/events{/privacy}","received_events_url":"https://api.github.com/users/VHAINNOVATIONS/received_events","type":"Organization","site_admin":false},"repo":{"id":26819438,"name":"ASRCM","full_name":"VHAINNOVATIONS/ASRCM","owner":{"login":"VHAINNOVATIONS","id":1252476,"avatar_url":"https://avatars.githubusercontent.com/u/1252476?v=3","gravatar_id":"","url":"https://api.github.com/users/VHAINNOVATIONS","html_url":"https://github.com/VHAINNOVATIONS","followers_url":"https://api.github.com/users/VHAINNOVATIONS/followers","following_url":"https://api.github.com/users/VHAINNOVATIONS/following{/other_user}","gists_url":"https://api.github.com/users/VHAINNOVATIONS/gists{/gist_id}","starred_url":"https://api.github.com/users/VHAINNOVATIONS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VHAINNOVATIONS/subscriptions","organizations_url":"https://api.github.com/users/VHAINNOVATIONS/orgs","repos_url":"https://api.github.com/users/VHAINNOVATIONS/repos","events_url":"https://api.github.com/users/VHAINNOVATIONS/events{/privacy}","received_events_url":"https://api.github.com/users/VHAINNOVATIONS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/VHAINNOVATIONS/ASRCM","description":"The Automated Surgical Risk Calculator for Mortality Innovation is a project to develop a tool from CPRS through the “Tools” drop down that will auto-fill pertinent information into the developed risk calculator.  The Automated Risk Calculator will utilize the generated data and allow for the user to manually input required information to support clinical decision-making regarding perioperative risk.  The tool will then allow for information to be written back to the patients file in CPRS.  In addition, a secondary tool will be created to store and develop a repository for research of risk calculations developed.  ","fork":false,"url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM","forks_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/forks","keys_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/teams","hooks_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/hooks","issue_events_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues/events{/number}","events_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/events","assignees_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/assignees{/user}","branches_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/branches{/branch}","tags_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/tags","blobs_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/refs{/sha}","trees_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/statuses/{sha}","languages_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/languages","stargazers_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/stargazers","contributors_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/contributors","subscribers_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/subscribers","subscription_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/subscription","commits_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/commits{/sha}","git_commits_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/git/commits{/sha}","comments_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/comments{/number}","issue_comment_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues/comments{/number}","contents_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/contents/{+path}","compare_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/merges","archive_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/downloads","issues_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues{/number}","pulls_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls{/number}","milestones_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/milestones{/number}","notifications_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/labels{/name}","releases_url":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/releases{/id}","created_at":"2014-11-18T16:48:50Z","updated_at":"2015-05-08T20:09:42Z","pushed_at":"2015-06-29T13:48:13Z","git_url":"git://github.com/VHAINNOVATIONS/ASRCM.git","ssh_url":"git@github.com:VHAINNOVATIONS/ASRCM.git","clone_url":"https://github.com/VHAINNOVATIONS/ASRCM.git","svn_url":"https://github.com/VHAINNOVATIONS/ASRCM","homepage":null,"size":10684,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/89"},"html":{"href":"https://github.com/VHAINNOVATIONS/ASRCM/pull/89"},"issue":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues/89"},"comments":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/VHAINNOVATIONS/ASRCM/statuses/b421714542a21ffc5cda191562ec1e55ee603ecf"}}}}