{"action":"opened","number":1822,"pull_request":{"url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/1822","id":166611015,"html_url":"https://github.com/uwcirg/true_nth_usa_portal/pull/1822","diff_url":"https://github.com/uwcirg/true_nth_usa_portal/pull/1822.diff","patch_url":"https://github.com/uwcirg/true_nth_usa_portal/pull/1822.patch","issue_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/1822","number":1822,"state":"open","locked":false,"title":"TN-605 Practitioner module","user":{"login":"OptimusRhine","id":838805,"avatar_url":"https://avatars0.githubusercontent.com/u/838805?v=4","gravatar_id":"","url":"https://api.github.com/users/OptimusRhine","html_url":"https://github.com/OptimusRhine","followers_url":"https://api.github.com/users/OptimusRhine/followers","following_url":"https://api.github.com/users/OptimusRhine/following{/other_user}","gists_url":"https://api.github.com/users/OptimusRhine/gists{/gist_id}","starred_url":"https://api.github.com/users/OptimusRhine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OptimusRhine/subscriptions","organizations_url":"https://api.github.com/users/OptimusRhine/orgs","repos_url":"https://api.github.com/users/OptimusRhine/repos","events_url":"https://api.github.com/users/OptimusRhine/events{/privacy}","received_events_url":"https://api.github.com/users/OptimusRhine/received_events","type":"User","site_admin":false},"body":"* added Practitioner class\r\n  * stores first/last names, phone, and external identifiers (via 'practitioner_identifiers' table)\r\n  * FHIR-compliant\r\n* added Practitioner API endpoints (search, POST, PUT, GET)\r\n  * for PUT and GET, objects can be accessed EITHER by their internal ID (`/api/practitioner/<id>`), OR by external identifier (`/api/practitioner/<value>?system=<system>`)\r\n* added `practitioner_id` field to User model\r\n  * read/writes to FHIR output/input via the 'careProvider' element, which now takes Organizations and/or a Practitioner\r\n* added internal and external id References for Practitioner\r\n  * internal works as normal (`[Pp]ractitioner/<id>`)\r\n  * external expect `[Pp]ractitioner/<value>?system=<system>`\r\n    * this logic is also now what Organization external identifier References use, instead of the previous `Organization/<system>/<value>`\r\n* added relevant migrations\r\n* added extensive unit tests for all the above, update some existing tests to match new logic","created_at":"2018-02-01T18:04:55Z","updated_at":"2018-02-01T18:04:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/1822/commits","review_comments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/1822/comments","review_comment_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/1822/comments","statuses_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/statuses/88c814ad74de9122987b6ae39f4c30fa35d1fe4f","head":{"label":"uwcirg:feature/practitioner-module","ref":"feature/practitioner-module","sha":"88c814ad74de9122987b6ae39f4c30fa35d1fe4f","user":{"login":"uwcirg","id":4440514,"avatar_url":"https://avatars1.githubusercontent.com/u/4440514?v=4","gravatar_id":"","url":"https://api.github.com/users/uwcirg","html_url":"https://github.com/uwcirg","followers_url":"https://api.github.com/users/uwcirg/followers","following_url":"https://api.github.com/users/uwcirg/following{/other_user}","gists_url":"https://api.github.com/users/uwcirg/gists{/gist_id}","starred_url":"https://api.github.com/users/uwcirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwcirg/subscriptions","organizations_url":"https://api.github.com/users/uwcirg/orgs","repos_url":"https://api.github.com/users/uwcirg/repos","events_url":"https://api.github.com/users/uwcirg/events{/privacy}","received_events_url":"https://api.github.com/users/uwcirg/received_events","type":"Organization","site_admin":false},"repo":{"id":37150258,"name":"true_nth_usa_portal","full_name":"uwcirg/true_nth_usa_portal","owner":{"login":"uwcirg","id":4440514,"avatar_url":"https://avatars1.githubusercontent.com/u/4440514?v=4","gravatar_id":"","url":"https://api.github.com/users/uwcirg","html_url":"https://github.com/uwcirg","followers_url":"https://api.github.com/users/uwcirg/followers","following_url":"https://api.github.com/users/uwcirg/following{/other_user}","gists_url":"https://api.github.com/users/uwcirg/gists{/gist_id}","starred_url":"https://api.github.com/users/uwcirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwcirg/subscriptions","organizations_url":"https://api.github.com/users/uwcirg/orgs","repos_url":"https://api.github.com/users/uwcirg/repos","events_url":"https://api.github.com/users/uwcirg/events{/privacy}","received_events_url":"https://api.github.com/users/uwcirg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwcirg/true_nth_usa_portal","description":"TrueNTH USA Portal / Shared Services, primary codebase","fork":false,"url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal","forks_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/forks","keys_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/teams","hooks_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/hooks","issue_events_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/events{/number}","events_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/events","assignees_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/assignees{/user}","branches_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/branches{/branch}","tags_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/tags","blobs_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/statuses/{sha}","languages_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/languages","stargazers_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/stargazers","contributors_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/contributors","subscribers_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/subscribers","subscription_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/subscription","commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/contents/{+path}","compare_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/merges","archive_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/downloads","issues_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues{/number}","pulls_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls{/number}","milestones_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/milestones{/number}","notifications_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/labels{/name}","releases_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/releases{/id}","deployments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/deployments","created_at":"2015-06-09T18:25:47Z","updated_at":"2017-01-15T10:11:57Z","pushed_at":"2018-02-01T17:56:05Z","git_url":"git://github.com/uwcirg/true_nth_usa_portal.git","ssh_url":"git@github.com:uwcirg/true_nth_usa_portal.git","clone_url":"https://github.com/uwcirg/true_nth_usa_portal.git","svn_url":"https://github.com/uwcirg/true_nth_usa_portal","homepage":"","size":49552,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":3,"open_issues":2,"watchers":1,"default_branch":"develop"}},"base":{"label":"uwcirg:develop","ref":"develop","sha":"18608968e49304dfeaf3d4624e3ad04df63349f4","user":{"login":"uwcirg","id":4440514,"avatar_url":"https://avatars1.githubusercontent.com/u/4440514?v=4","gravatar_id":"","url":"https://api.github.com/users/uwcirg","html_url":"https://github.com/uwcirg","followers_url":"https://api.github.com/users/uwcirg/followers","following_url":"https://api.github.com/users/uwcirg/following{/other_user}","gists_url":"https://api.github.com/users/uwcirg/gists{/gist_id}","starred_url":"https://api.github.com/users/uwcirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwcirg/subscriptions","organizations_url":"https://api.github.com/users/uwcirg/orgs","repos_url":"https://api.github.com/users/uwcirg/repos","events_url":"https://api.github.com/users/uwcirg/events{/privacy}","received_events_url":"https://api.github.com/users/uwcirg/received_events","type":"Organization","site_admin":false},"repo":{"id":37150258,"name":"true_nth_usa_portal","full_name":"uwcirg/true_nth_usa_portal","owner":{"login":"uwcirg","id":4440514,"avatar_url":"https://avatars1.githubusercontent.com/u/4440514?v=4","gravatar_id":"","url":"https://api.github.com/users/uwcirg","html_url":"https://github.com/uwcirg","followers_url":"https://api.github.com/users/uwcirg/followers","following_url":"https://api.github.com/users/uwcirg/following{/other_user}","gists_url":"https://api.github.com/users/uwcirg/gists{/gist_id}","starred_url":"https://api.github.com/users/uwcirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwcirg/subscriptions","organizations_url":"https://api.github.com/users/uwcirg/orgs","repos_url":"https://api.github.com/users/uwcirg/repos","events_url":"https://api.github.com/users/uwcirg/events{/privacy}","received_events_url":"https://api.github.com/users/uwcirg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwcirg/true_nth_usa_portal","description":"TrueNTH USA Portal / Shared Services, primary codebase","fork":false,"url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal","forks_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/forks","keys_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/teams","hooks_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/hooks","issue_events_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/events{/number}","events_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/events","assignees_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/assignees{/user}","branches_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/branches{/branch}","tags_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/tags","blobs_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/statuses/{sha}","languages_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/languages","stargazers_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/stargazers","contributors_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/contributors","subscribers_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/subscribers","subscription_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/subscription","commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/contents/{+path}","compare_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/merges","archive_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/downloads","issues_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues{/number}","pulls_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls{/number}","milestones_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/milestones{/number}","notifications_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/labels{/name}","releases_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/releases{/id}","deployments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/deployments","created_at":"2015-06-09T18:25:47Z","updated_at":"2017-01-15T10:11:57Z","pushed_at":"2018-02-01T17:56:05Z","git_url":"git://github.com/uwcirg/true_nth_usa_portal.git","ssh_url":"git@github.com:uwcirg/true_nth_usa_portal.git","clone_url":"https://github.com/uwcirg/true_nth_usa_portal.git","svn_url":"https://github.com/uwcirg/true_nth_usa_portal","homepage":"","size":49552,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":3,"open_issues":2,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/1822"},"html":{"href":"https://github.com/uwcirg/true_nth_usa_portal/pull/1822"},"issue":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/1822"},"comments":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/1822/comments"},"review_comments":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/1822/comments"},"review_comment":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/1822/commits"},"statuses":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/statuses/88c814ad74de9122987b6ae39f4c30fa35d1fe4f"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":19,"additions":854,"deletions":40,"changed_files":10}}
{"actor":{"display_login":"OptimusRhine"}}