{"action":"created","comment":{"url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/comments/157148429","pull_request_review_id":83744840,"id":157148429,"diff_hunk":"@@ -20,27 +25,67 @@ export class DependantViewComponent implements OnInit, OnDestroy {\n     private dependantSubscription: Subscription;\n     public modalRef: BsModalRef;\n     public newUserDetails: User;\n+    public preferredName: string;\n     public address: string;\n     public email: string;\n-    public phoneNumber: string;\n+    public mobilePhoneNumber: string;\n+    public homePhoneNumber: string;\n+    public workPhoneNumber: string;\n+    public gp: GP[];\n+    //public gpInstance: GP;\n+    public gpPractice: GPPractice[];\n+    public gpID: number;\n+    public gpName: string;\n+    public gpPracticNames: string [];\n+    public gpPracName: string;\n     private HTTPService: DataService;\n+    public toStr= JSON.stringify;\n+    \n \n     constructor(private data: DataService, private switchboard: SwitchBoardService, private modalService: BsModalService) {\n         this.HTTPService = data;\n+        \n     }\n \n-    ngOnInit() {\n+   ngOnInit() {\n         //Called after the constructor, initializing input properties, and the first call to ngOnChanges.\n         //Add 'implements O nInit' to the class.\n         this.newUserDetails = new User();\n+\n+        \n         this.dependantSubscription = this.switchboard.viewingDependant$.subscribe(\n             dependant => {\n                 this.viewingDependant = dependant;\n+                this.preferredName = this.viewingDependant.preferredName;\n                 this.address = this.viewingDependant.address;\n                 this.email = this.viewingDependant.email;\n-                this.phoneNumber = this.viewingDependant.phoneNumber;}\n-        );\n+                this.mobilePhoneNumber = this.viewingDependant.mobilePhoneNumber;\n+                this.homePhoneNumber = this.viewingDependant.homePhoneNumber;\n+                this.workPhoneNumber = this.viewingDependant.workPhoneNumber;\n+                this.gp = [];\n+                this.gpID = this.viewingDependant.gpID;\n \n+                //this.gpName = this.viewingDependant.gpFullName;\n+                console.log(\"gpName\"+this.gpName);\n+                \n+                this.gpPracName = this.viewingDependant.gpPracticeName;\n+                this.gpPractice = [];\n+                //this.gpInstance.gpFullName = this.viewingDependant.gpFullName;","path":"client/src/app/components/dependant-view/dependant-view.component.ts","position":71,"original_position":71,"commit_id":"6e8621adeba3834abd2aafb8827e6eb0f74ecbe2","original_commit_id":"6e8621adeba3834abd2aafb8827e6eb0f74ecbe2","user":{"login":"siona","id":6794531,"avatar_url":"https://avatars1.githubusercontent.com/u/6794531?v=4","gravatar_id":"","url":"https://api.github.com/users/siona","html_url":"https://github.com/siona","followers_url":"https://api.github.com/users/siona/followers","following_url":"https://api.github.com/users/siona/following{/other_user}","gists_url":"https://api.github.com/users/siona/gists{/gist_id}","starred_url":"https://api.github.com/users/siona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siona/subscriptions","organizations_url":"https://api.github.com/users/siona/orgs","repos_url":"https://api.github.com/users/siona/repos","events_url":"https://api.github.com/users/siona/events{/privacy}","received_events_url":"https://api.github.com/users/siona/received_events","type":"User","site_admin":false},"body":"Remove all this commented code if not required","created_at":"2017-12-15T08:51:24Z","updated_at":"2017-12-15T09:00:30Z","html_url":"https://github.com/kainos-training/evolve-patient-portal/pull/84#discussion_r157148429","pull_request_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/84","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/comments/157148429"},"html":{"href":"https://github.com/kainos-training/evolve-patient-portal/pull/84#discussion_r157148429"},"pull_request":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/84","id":158444804,"html_url":"https://github.com/kainos-training/evolve-patient-portal/pull/84","diff_url":"https://github.com/kainos-training/evolve-patient-portal/pull/84.diff","patch_url":"https://github.com/kainos-training/evolve-patient-portal/pull/84.patch","issue_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues/84","number":84,"state":"open","locked":false,"title":"Feature/009/edit personal info","user":{"login":"DeaglanMarken","id":22614823,"avatar_url":"https://avatars0.githubusercontent.com/u/22614823?v=4","gravatar_id":"","url":"https://api.github.com/users/DeaglanMarken","html_url":"https://github.com/DeaglanMarken","followers_url":"https://api.github.com/users/DeaglanMarken/followers","following_url":"https://api.github.com/users/DeaglanMarken/following{/other_user}","gists_url":"https://api.github.com/users/DeaglanMarken/gists{/gist_id}","starred_url":"https://api.github.com/users/DeaglanMarken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeaglanMarken/subscriptions","organizations_url":"https://api.github.com/users/DeaglanMarken/orgs","repos_url":"https://api.github.com/users/DeaglanMarken/repos","events_url":"https://api.github.com/users/DeaglanMarken/events{/privacy}","received_events_url":"https://api.github.com/users/DeaglanMarken/received_events","type":"User","site_admin":false},"body":"Merged conflicts and modal view available for user and dependant.","created_at":"2017-12-14T19:38:37Z","updated_at":"2017-12-15T09:00:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"163277a008531671790d9bbae63f86af27b73368","assignee":{"login":"siona","id":6794531,"avatar_url":"https://avatars1.githubusercontent.com/u/6794531?v=4","gravatar_id":"","url":"https://api.github.com/users/siona","html_url":"https://github.com/siona","followers_url":"https://api.github.com/users/siona/followers","following_url":"https://api.github.com/users/siona/following{/other_user}","gists_url":"https://api.github.com/users/siona/gists{/gist_id}","starred_url":"https://api.github.com/users/siona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siona/subscriptions","organizations_url":"https://api.github.com/users/siona/orgs","repos_url":"https://api.github.com/users/siona/repos","events_url":"https://api.github.com/users/siona/events{/privacy}","received_events_url":"https://api.github.com/users/siona/received_events","type":"User","site_admin":false},"assignees":[{"login":"siona","id":6794531,"avatar_url":"https://avatars1.githubusercontent.com/u/6794531?v=4","gravatar_id":"","url":"https://api.github.com/users/siona","html_url":"https://github.com/siona","followers_url":"https://api.github.com/users/siona/followers","following_url":"https://api.github.com/users/siona/following{/other_user}","gists_url":"https://api.github.com/users/siona/gists{/gist_id}","starred_url":"https://api.github.com/users/siona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siona/subscriptions","organizations_url":"https://api.github.com/users/siona/orgs","repos_url":"https://api.github.com/users/siona/repos","events_url":"https://api.github.com/users/siona/events{/privacy}","received_events_url":"https://api.github.com/users/siona/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/84/commits","review_comments_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/84/comments","review_comment_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues/84/comments","statuses_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/statuses/6e8621adeba3834abd2aafb8827e6eb0f74ecbe2","head":{"label":"kainos-training:feature/009/edit-personal-info","ref":"feature/009/edit-personal-info","sha":"6e8621adeba3834abd2aafb8827e6eb0f74ecbe2","user":{"login":"kainos-training","id":13449892,"avatar_url":"https://avatars0.githubusercontent.com/u/13449892?v=4","gravatar_id":"","url":"https://api.github.com/users/kainos-training","html_url":"https://github.com/kainos-training","followers_url":"https://api.github.com/users/kainos-training/followers","following_url":"https://api.github.com/users/kainos-training/following{/other_user}","gists_url":"https://api.github.com/users/kainos-training/gists{/gist_id}","starred_url":"https://api.github.com/users/kainos-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kainos-training/subscriptions","organizations_url":"https://api.github.com/users/kainos-training/orgs","repos_url":"https://api.github.com/users/kainos-training/repos","events_url":"https://api.github.com/users/kainos-training/events{/privacy}","received_events_url":"https://api.github.com/users/kainos-training/received_events","type":"Organization","site_admin":false},"repo":{"id":102006638,"name":"evolve-patient-portal","full_name":"kainos-training/evolve-patient-portal","owner":{"login":"kainos-training","id":13449892,"avatar_url":"https://avatars0.githubusercontent.com/u/13449892?v=4","gravatar_id":"","url":"https://api.github.com/users/kainos-training","html_url":"https://github.com/kainos-training","followers_url":"https://api.github.com/users/kainos-training/followers","following_url":"https://api.github.com/users/kainos-training/following{/other_user}","gists_url":"https://api.github.com/users/kainos-training/gists{/gist_id}","starred_url":"https://api.github.com/users/kainos-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kainos-training/subscriptions","organizations_url":"https://api.github.com/users/kainos-training/orgs","repos_url":"https://api.github.com/users/kainos-training/repos","events_url":"https://api.github.com/users/kainos-training/events{/privacy}","received_events_url":"https://api.github.com/users/kainos-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kainos-training/evolve-patient-portal","description":"Repository for TDP 2017 collaboration with Evolve","fork":false,"url":"https://api.github.com/repos/kainos-training/evolve-patient-portal","forks_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/forks","keys_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/teams","hooks_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/hooks","issue_events_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues/events{/number}","events_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/events","assignees_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/assignees{/user}","branches_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/branches{/branch}","tags_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/tags","blobs_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/languages","stargazers_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/stargazers","contributors_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/contributors","subscribers_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/subscribers","subscription_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/subscription","commits_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/contents/{+path}","compare_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/merges","archive_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/downloads","issues_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues{/number}","pulls_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/labels{/name}","releases_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/releases{/id}","deployments_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/deployments","created_at":"2017-08-31T14:00:02Z","updated_at":"2017-12-04T17:30:04Z","pushed_at":"2017-12-14T23:34:09Z","git_url":"git://github.com/kainos-training/evolve-patient-portal.git","ssh_url":"git@github.com:kainos-training/evolve-patient-portal.git","clone_url":"https://github.com/kainos-training/evolve-patient-portal.git","svn_url":"https://github.com/kainos-training/evolve-patient-portal","homepage":null,"size":2775,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":1,"open_issues":7,"watchers":1,"default_branch":"develop"}},"base":{"label":"kainos-training:develop","ref":"develop","sha":"960fd8e1ea54c33783399b6962843560d5a56a23","user":{"login":"kainos-training","id":13449892,"avatar_url":"https://avatars0.githubusercontent.com/u/13449892?v=4","gravatar_id":"","url":"https://api.github.com/users/kainos-training","html_url":"https://github.com/kainos-training","followers_url":"https://api.github.com/users/kainos-training/followers","following_url":"https://api.github.com/users/kainos-training/following{/other_user}","gists_url":"https://api.github.com/users/kainos-training/gists{/gist_id}","starred_url":"https://api.github.com/users/kainos-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kainos-training/subscriptions","organizations_url":"https://api.github.com/users/kainos-training/orgs","repos_url":"https://api.github.com/users/kainos-training/repos","events_url":"https://api.github.com/users/kainos-training/events{/privacy}","received_events_url":"https://api.github.com/users/kainos-training/received_events","type":"Organization","site_admin":false},"repo":{"id":102006638,"name":"evolve-patient-portal","full_name":"kainos-training/evolve-patient-portal","owner":{"login":"kainos-training","id":13449892,"avatar_url":"https://avatars0.githubusercontent.com/u/13449892?v=4","gravatar_id":"","url":"https://api.github.com/users/kainos-training","html_url":"https://github.com/kainos-training","followers_url":"https://api.github.com/users/kainos-training/followers","following_url":"https://api.github.com/users/kainos-training/following{/other_user}","gists_url":"https://api.github.com/users/kainos-training/gists{/gist_id}","starred_url":"https://api.github.com/users/kainos-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kainos-training/subscriptions","organizations_url":"https://api.github.com/users/kainos-training/orgs","repos_url":"https://api.github.com/users/kainos-training/repos","events_url":"https://api.github.com/users/kainos-training/events{/privacy}","received_events_url":"https://api.github.com/users/kainos-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kainos-training/evolve-patient-portal","description":"Repository for TDP 2017 collaboration with Evolve","fork":false,"url":"https://api.github.com/repos/kainos-training/evolve-patient-portal","forks_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/forks","keys_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/teams","hooks_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/hooks","issue_events_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues/events{/number}","events_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/events","assignees_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/assignees{/user}","branches_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/branches{/branch}","tags_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/tags","blobs_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/languages","stargazers_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/stargazers","contributors_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/contributors","subscribers_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/subscribers","subscription_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/subscription","commits_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/contents/{+path}","compare_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/merges","archive_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/downloads","issues_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues{/number}","pulls_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/labels{/name}","releases_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/releases{/id}","deployments_url":"https://api.github.com/repos/kainos-training/evolve-patient-portal/deployments","created_at":"2017-08-31T14:00:02Z","updated_at":"2017-12-04T17:30:04Z","pushed_at":"2017-12-14T23:34:09Z","git_url":"git://github.com/kainos-training/evolve-patient-portal.git","ssh_url":"git@github.com:kainos-training/evolve-patient-portal.git","clone_url":"https://github.com/kainos-training/evolve-patient-portal.git","svn_url":"https://github.com/kainos-training/evolve-patient-portal","homepage":null,"size":2775,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":1,"open_issues":7,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/84"},"html":{"href":"https://github.com/kainos-training/evolve-patient-portal/pull/84"},"issue":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues/84"},"comments":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/kainos-training/evolve-patient-portal/statuses/6e8621adeba3834abd2aafb8827e6eb0f74ecbe2"}},"author_association":"NONE"}}
{"actor":{"display_login":"siona"}}