{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/smart-on-fhir/client-js/pulls/10","id":55381180,"html_url":"https://github.com/smart-on-fhir/client-js/pull/10","diff_url":"https://github.com/smart-on-fhir/client-js/pull/10.diff","patch_url":"https://github.com/smart-on-fhir/client-js/pull/10.patch","issue_url":"https://api.github.com/repos/smart-on-fhir/client-js/issues/10","number":10,"state":"open","locked":false,"title":"Allow passing patientId on query string without overwriting OAuth token","user":{"login":"porterfc","id":7965406,"avatar_url":"https://avatars.githubusercontent.com/u/7965406?v=3","gravatar_id":"","url":"https://api.github.com/users/porterfc","html_url":"https://github.com/porterfc","followers_url":"https://api.github.com/users/porterfc/followers","following_url":"https://api.github.com/users/porterfc/following{/other_user}","gists_url":"https://api.github.com/users/porterfc/gists{/gist_id}","starred_url":"https://api.github.com/users/porterfc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porterfc/subscriptions","organizations_url":"https://api.github.com/users/porterfc/orgs","repos_url":"https://api.github.com/users/porterfc/repos","events_url":"https://api.github.com/users/porterfc/events{/privacy}","received_events_url":"https://api.github.com/users/porterfc/received_events","type":"User","site_admin":false},"body":"If patientId was passed on the query string the OAuth tokenResponse was being overwritten with the \"fake\" token that only contained the patient id and lost the access token.\r\n\r\nThe change I propose is to save the patient as a client parameter and add it to the token response instead or replacing the token response. This allows launching with the patientId in either the URL or the token and does not overwrite the patient if it is passed in the token.","created_at":"2016-01-07T19:46:27Z","updated_at":"2016-01-07T19:46:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/smart-on-fhir/client-js/pulls/10/commits","review_comments_url":"https://api.github.com/repos/smart-on-fhir/client-js/pulls/10/comments","review_comment_url":"https://api.github.com/repos/smart-on-fhir/client-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smart-on-fhir/client-js/issues/10/comments","statuses_url":"https://api.github.com/repos/smart-on-fhir/client-js/statuses/7c72b3ef381b7e53b9aeca5a3235584f0150d663","head":{"label":"dukemedicine:master","ref":"master","sha":"7c72b3ef381b7e53b9aeca5a3235584f0150d663","user":{"login":"dukemedicine","id":8090729,"avatar_url":"https://avatars.githubusercontent.com/u/8090729?v=3","gravatar_id":"","url":"https://api.github.com/users/dukemedicine","html_url":"https://github.com/dukemedicine","followers_url":"https://api.github.com/users/dukemedicine/followers","following_url":"https://api.github.com/users/dukemedicine/following{/other_user}","gists_url":"https://api.github.com/users/dukemedicine/gists{/gist_id}","starred_url":"https://api.github.com/users/dukemedicine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dukemedicine/subscriptions","organizations_url":"https://api.github.com/users/dukemedicine/orgs","repos_url":"https://api.github.com/users/dukemedicine/repos","events_url":"https://api.github.com/users/dukemedicine/events{/privacy}","received_events_url":"https://api.github.com/users/dukemedicine/received_events","type":"Organization","site_admin":false},"repo":{"id":49074420,"name":"client-js","full_name":"dukemedicine/client-js","owner":{"login":"dukemedicine","id":8090729,"avatar_url":"https://avatars.githubusercontent.com/u/8090729?v=3","gravatar_id":"","url":"https://api.github.com/users/dukemedicine","html_url":"https://github.com/dukemedicine","followers_url":"https://api.github.com/users/dukemedicine/followers","following_url":"https://api.github.com/users/dukemedicine/following{/other_user}","gists_url":"https://api.github.com/users/dukemedicine/gists{/gist_id}","starred_url":"https://api.github.com/users/dukemedicine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dukemedicine/subscriptions","organizations_url":"https://api.github.com/users/dukemedicine/orgs","repos_url":"https://api.github.com/users/dukemedicine/repos","events_url":"https://api.github.com/users/dukemedicine/events{/privacy}","received_events_url":"https://api.github.com/users/dukemedicine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dukemedicine/client-js","description":"JavaScript client for FHIR","fork":true,"url":"https://api.github.com/repos/dukemedicine/client-js","forks_url":"https://api.github.com/repos/dukemedicine/client-js/forks","keys_url":"https://api.github.com/repos/dukemedicine/client-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dukemedicine/client-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dukemedicine/client-js/teams","hooks_url":"https://api.github.com/repos/dukemedicine/client-js/hooks","issue_events_url":"https://api.github.com/repos/dukemedicine/client-js/issues/events{/number}","events_url":"https://api.github.com/repos/dukemedicine/client-js/events","assignees_url":"https://api.github.com/repos/dukemedicine/client-js/assignees{/user}","branches_url":"https://api.github.com/repos/dukemedicine/client-js/branches{/branch}","tags_url":"https://api.github.com/repos/dukemedicine/client-js/tags","blobs_url":"https://api.github.com/repos/dukemedicine/client-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dukemedicine/client-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dukemedicine/client-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/dukemedicine/client-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dukemedicine/client-js/statuses/{sha}","languages_url":"https://api.github.com/repos/dukemedicine/client-js/languages","stargazers_url":"https://api.github.com/repos/dukemedicine/client-js/stargazers","contributors_url":"https://api.github.com/repos/dukemedicine/client-js/contributors","subscribers_url":"https://api.github.com/repos/dukemedicine/client-js/subscribers","subscription_url":"https://api.github.com/repos/dukemedicine/client-js/subscription","commits_url":"https://api.github.com/repos/dukemedicine/client-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/dukemedicine/client-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/dukemedicine/client-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/dukemedicine/client-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/dukemedicine/client-js/contents/{+path}","compare_url":"https://api.github.com/repos/dukemedicine/client-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dukemedicine/client-js/merges","archive_url":"https://api.github.com/repos/dukemedicine/client-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dukemedicine/client-js/downloads","issues_url":"https://api.github.com/repos/dukemedicine/client-js/issues{/number}","pulls_url":"https://api.github.com/repos/dukemedicine/client-js/pulls{/number}","milestones_url":"https://api.github.com/repos/dukemedicine/client-js/milestones{/number}","notifications_url":"https://api.github.com/repos/dukemedicine/client-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dukemedicine/client-js/labels{/name}","releases_url":"https://api.github.com/repos/dukemedicine/client-js/releases{/id}","created_at":"2016-01-05T15:30:40Z","updated_at":"2016-01-05T15:30:41Z","pushed_at":"2016-01-07T19:28:34Z","git_url":"git://github.com/dukemedicine/client-js.git","ssh_url":"git@github.com:dukemedicine/client-js.git","clone_url":"https://github.com/dukemedicine/client-js.git","svn_url":"https://github.com/dukemedicine/client-js","homepage":null,"size":3754,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"smart-on-fhir:master","ref":"master","sha":"e13e69b164a5818077eda13fddcc09e400f68f69","user":{"login":"smart-on-fhir","id":7401080,"avatar_url":"https://avatars.githubusercontent.com/u/7401080?v=3","gravatar_id":"","url":"https://api.github.com/users/smart-on-fhir","html_url":"https://github.com/smart-on-fhir","followers_url":"https://api.github.com/users/smart-on-fhir/followers","following_url":"https://api.github.com/users/smart-on-fhir/following{/other_user}","gists_url":"https://api.github.com/users/smart-on-fhir/gists{/gist_id}","starred_url":"https://api.github.com/users/smart-on-fhir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smart-on-fhir/subscriptions","organizations_url":"https://api.github.com/users/smart-on-fhir/orgs","repos_url":"https://api.github.com/users/smart-on-fhir/repos","events_url":"https://api.github.com/users/smart-on-fhir/events{/privacy}","received_events_url":"https://api.github.com/users/smart-on-fhir/received_events","type":"Organization","site_admin":false},"repo":{"id":20245642,"name":"client-js","full_name":"smart-on-fhir/client-js","owner":{"login":"smart-on-fhir","id":7401080,"avatar_url":"https://avatars.githubusercontent.com/u/7401080?v=3","gravatar_id":"","url":"https://api.github.com/users/smart-on-fhir","html_url":"https://github.com/smart-on-fhir","followers_url":"https://api.github.com/users/smart-on-fhir/followers","following_url":"https://api.github.com/users/smart-on-fhir/following{/other_user}","gists_url":"https://api.github.com/users/smart-on-fhir/gists{/gist_id}","starred_url":"https://api.github.com/users/smart-on-fhir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smart-on-fhir/subscriptions","organizations_url":"https://api.github.com/users/smart-on-fhir/orgs","repos_url":"https://api.github.com/users/smart-on-fhir/repos","events_url":"https://api.github.com/users/smart-on-fhir/events{/privacy}","received_events_url":"https://api.github.com/users/smart-on-fhir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smart-on-fhir/client-js","description":"JavaScript client for FHIR","fork":true,"url":"https://api.github.com/repos/smart-on-fhir/client-js","forks_url":"https://api.github.com/repos/smart-on-fhir/client-js/forks","keys_url":"https://api.github.com/repos/smart-on-fhir/client-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smart-on-fhir/client-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smart-on-fhir/client-js/teams","hooks_url":"https://api.github.com/repos/smart-on-fhir/client-js/hooks","issue_events_url":"https://api.github.com/repos/smart-on-fhir/client-js/issues/events{/number}","events_url":"https://api.github.com/repos/smart-on-fhir/client-js/events","assignees_url":"https://api.github.com/repos/smart-on-fhir/client-js/assignees{/user}","branches_url":"https://api.github.com/repos/smart-on-fhir/client-js/branches{/branch}","tags_url":"https://api.github.com/repos/smart-on-fhir/client-js/tags","blobs_url":"https://api.github.com/repos/smart-on-fhir/client-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smart-on-fhir/client-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smart-on-fhir/client-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/smart-on-fhir/client-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smart-on-fhir/client-js/statuses/{sha}","languages_url":"https://api.github.com/repos/smart-on-fhir/client-js/languages","stargazers_url":"https://api.github.com/repos/smart-on-fhir/client-js/stargazers","contributors_url":"https://api.github.com/repos/smart-on-fhir/client-js/contributors","subscribers_url":"https://api.github.com/repos/smart-on-fhir/client-js/subscribers","subscription_url":"https://api.github.com/repos/smart-on-fhir/client-js/subscription","commits_url":"https://api.github.com/repos/smart-on-fhir/client-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/smart-on-fhir/client-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/smart-on-fhir/client-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/smart-on-fhir/client-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/smart-on-fhir/client-js/contents/{+path}","compare_url":"https://api.github.com/repos/smart-on-fhir/client-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smart-on-fhir/client-js/merges","archive_url":"https://api.github.com/repos/smart-on-fhir/client-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smart-on-fhir/client-js/downloads","issues_url":"https://api.github.com/repos/smart-on-fhir/client-js/issues{/number}","pulls_url":"https://api.github.com/repos/smart-on-fhir/client-js/pulls{/number}","milestones_url":"https://api.github.com/repos/smart-on-fhir/client-js/milestones{/number}","notifications_url":"https://api.github.com/repos/smart-on-fhir/client-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smart-on-fhir/client-js/labels{/name}","releases_url":"https://api.github.com/repos/smart-on-fhir/client-js/releases{/id}","created_at":"2014-05-28T05:02:31Z","updated_at":"2015-12-02T19:50:29Z","pushed_at":"2016-01-07T19:46:27Z","git_url":"git://github.com/smart-on-fhir/client-js.git","ssh_url":"git@github.com:smart-on-fhir/client-js.git","clone_url":"https://github.com/smart-on-fhir/client-js.git","svn_url":"https://github.com/smart-on-fhir/client-js","homepage":null,"size":4065,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":2,"forks":20,"open_issues":2,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smart-on-fhir/client-js/pulls/10"},"html":{"href":"https://github.com/smart-on-fhir/client-js/pull/10"},"issue":{"href":"https://api.github.com/repos/smart-on-fhir/client-js/issues/10"},"comments":{"href":"https://api.github.com/repos/smart-on-fhir/client-js/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/smart-on-fhir/client-js/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/smart-on-fhir/client-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smart-on-fhir/client-js/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/smart-on-fhir/client-js/statuses/7c72b3ef381b7e53b9aeca5a3235584f0150d663"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":43,"deletions":38,"changed_files":7}}