{"action":"created","comment":{"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/comments/205775610","pull_request_review_id":141115778,"id":205775610,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTc3NTYxMA==","diff_hunk":"@@ -0,0 +1,548 @@\n+<?php\n+/*\n+ *  add.php - Interface and processing file for Add Vacation/Holiday feature in Calendar\n+ *\n+ * Copyright (C) 2018 Apoorv Choubey < theapoorvs1@gmail.com >\n+ *\n+ * LICENSE: This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.\n+ * See the Mozilla Public License for more details.\n+ * If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.\n+ *\n+ * @package LibreHealth EHR\n+ * @author Apoorv Choubey < theapoorvs1@gmail.com >\n+ * @link http://librehealth.io\n+ *\n+ * Please help the overall project by sending changes you make to the author and to the LibreHealth EHR community.\n+ *\n+ */\n+\n+require_once(\"../../interface/globals.php\");\n+require_once(\"$srcdir/headers.inc.php\");\n+require_once(\"$srcdir/htmlspecialchars.inc.php\");\n+require_once(\"$srcdir/patient.inc\");\n+require_once(\"$srcdir/formatting.inc.php\");\n+require_once(\"$srcdir/calendar.inc\");\n+require_once(\"$srcdir/encounter_events.inc.php\");\n+require_once(\"$srcdir/appointments.inc.php\");\n+\n+$dateFormat = DateFormatRead();\n+call_required_libraries(array(\"jquery-min-3-1-1\",\"bootstrap\",\"datepicker\"));\n+\n+// create event slots according to:\n+\n+// 1. Provider Vacation dates\n+if ($_POST['form_action'] == \"vacation_submit\") {\n+  // check if there is an appt. (either recurring or non-recurring) b/w (or on) start & end dates of vacation\n+  $start_date = $_POST['startDate'];\n+  $end_date = $_POST['endDate'];\n+  $fetchedEvents = fetchAllEvents($start_date, $end_date, $_POST['provider_id']); // returns an array of events b/w start and end dates for selected provider\n+  if (!empty($fetchedEvents)) {\n+    // don't make requested event slots,\n+    // alert user and close \"Add Vacation/Holiday\" dialog box\n+    $alert_close_box = '<script type=\"text/javascript\">\n+                          alert(\"There are already some events b/w requested start and end dates. Please try again.\");\n+                          var addDialogBox = top.$(\".dialogIframe\"); // select dialog box element\n+                          var windowCloseBtn = addDialogBox.find(\".closeDlgIframe\"); // find close button element\n+                          windowCloseBtn.trigger(\"click\"); // simulate \"click\" event on button\n+                        </script>';\n+    echo $alert_close_box;\n+    exit();\n+  }\n+\n+  $event_date = $_POST['startDate'];  // Vacation starts at this date\n+  $event_end_date = $_POST['endDate'];  // Vacation ends at this date\n+  $starttime = \"{$GLOBALS['schedule_start']}:00:00\";\n+  $endtime = \"{$GLOBALS['schedule_end']}:00:00\";\n+  $provider = $_POST['provider_id'];\n+\n+  // Event location specifications\n+  $locationspecs = array( \"event_location\" => \"\",\n+                          \"event_street1\" => \"\",\n+                          \"event_street2\" => \"\",\n+                          \"event_city\" => \"\",\n+                          \"event_state\" => \"\",\n+                          \"event_postal\" => \"\" );\n+  $locationspec = serialize($locationspecs);\n+\n+  // Recurring event specifications\n+  $recurrspec = array( \"event_repeat_freq\" => \"1\", // every\n+                       \"event_repeat_freq_type\" => \"0\",  // day\n+                       \"event_repeat_on_num\" => \"1\",\n+                       \"event_repeat_on_day\" => \"0\",\n+                       \"event_repeat_on_freq\" => \"0\",\n+                       \"exdate\" => \"\" );\n+  $args = array();\n+    // specify values needed for the INSERT into table - libreehr_postcalendar_events - columns\n+    $args['form_category'] = \"4\";  // Vacation\n+    $args['new_multiple_value'] = \"\";\n+    $args['form_provider'] = $provider;  // selected provider\n+    $args['form_title'] = \"Vacation\";\n+    $args['form_comments'] = \"\";\n+    $args['event_date'] = $event_date;\n+    $args['form_enddate'] = $event_end_date;\n+    $args['duration'] = 0;  // no duration in provider events\n+    $args['form_repeat'] = \"1\";  // Repeats box checked\n+    $args['recurrspec'] = $recurrspec;\n+    $args['starttime'] = $starttime;\n+    $args['endtime'] = $endtime;\n+    $args['form_allday'] = 0;\n+    $args['form_apptstatus'] = \"-\";  // None\n+    $args['form_prefcat'] = \"0\";  // None\n+    $args['locationspec'] = $locationspec;\n+\n+    $def_facility = sqlFetchArray(sqlStatement( \"SELECT u.facility_id\n+                                                 FROM users u\n+                                                 LEFT JOIN facility f on (u.facility_id = f.id)\n+                                                 WHERE u.id = ?\", array($_SESSION['authId']) ));\n+    // default_user_facility denotes id of default facility of logged in user\n+    $default_user_facility = $def_facility['facility_id'];\n+    // Taking facility & billing facility as default facility of logged in user\n+    $args['facility'] = $default_user_facility;\n+    $args['billing_facility'] = $default_user_facility;\n+\n+  // Insert events - Vacation event starts at some date and repeats till end date,\n+  // covering Calendar slots over entire clinic hours under selected provider.\n+  InsertEvent($args);\n+  refreshCalendar(); // after \"Add vacation\" process is complete\n+}\n+\n+// 2. Clinic Holiday dates\n+if ($_POST['form_action'] == \"holiday_submit\") {\n+  if ($_POST['holiday_action'] == \"Delete Holiday\") {\n+    // user requests to delete a set of holidays\n+    $dateAndType = json_decode($_POST['jsonData'], true);  // convert JSON string to an associative array\n+    // this associative array contains elements in form of \"date\" => array(\"day type\", \"facility id\")\n+    foreach ($dateAndType as $date => $value) {\n+      // for each set of date and facility, delete holiday event under all providers\n+      // no need to iterate through providers in this case\n+      sqlStatement(\"DELETE FROM libreehr_postcalendar_events WHERE pc_eventDate = ? AND pc_facility = ?\", array($date, $value[1]));\n+    }\n+  } elseif ($_POST['holiday_action'] == \"Add Holiday\") {\n+    // user requests to add a set of holidays\n+    // check if there is an appt. (either recurring or non-recurring) on at least one of selected holiday dates\n+    $dateAndType = json_decode($_POST['jsonData'], true);  // convert JSON string to an associative array\n+    // this associative array contains elements in form of \"date\" => array(\"day type\", \"facility id\")\n+    foreach ($dateAndType as $date => $value) {\n+      // check each selected date\n+      $fetchedEvents = fetchAllEvents($date, $date); // returns an array of events on $date or including $date (in case of recurring appts.)\n+      if (!empty($fetchedEvents)) {\n+        foreach ($fetchedEvents as $event) {\n+          // check if event is a patient event\n+          if (event['pc_pid'] > 0) {","path":"modules/calendar/add.php","position":131,"original_position":131,"commit_id":"9da0aa0e9584768940538dbe4c7409b2a9a104ef","original_commit_id":"9da0aa0e9584768940538dbe4c7409b2a9a104ef","user":{"login":"teryhill","id":4655366,"node_id":"MDQ6VXNlcjQ2NTUzNjY=","avatar_url":"https://avatars1.githubusercontent.com/u/4655366?v=4","gravatar_id":"","url":"https://api.github.com/users/teryhill","html_url":"https://github.com/teryhill","followers_url":"https://api.github.com/users/teryhill/followers","following_url":"https://api.github.com/users/teryhill/following{/other_user}","gists_url":"https://api.github.com/users/teryhill/gists{/gist_id}","starred_url":"https://api.github.com/users/teryhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teryhill/subscriptions","organizations_url":"https://api.github.com/users/teryhill/orgs","repos_url":"https://api.github.com/users/teryhill/repos","events_url":"https://api.github.com/users/teryhill/events{/privacy}","received_events_url":"https://api.github.com/users/teryhill/received_events","type":"User","site_admin":false},"body":"If one facility needs to close it should not be prevented by another facilities appointments. They are separate. You can wait until customers bring up issues if you want.","created_at":"2018-07-27T13:40:16Z","updated_at":"2018-07-27T13:40:17Z","html_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1183#discussion_r205775610","pull_request_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1183","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/comments/205775610"},"html":{"href":"https://github.com/LibreHealthIO/lh-ehr/pull/1183#discussion_r205775610"},"pull_request":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1183"}},"in_reply_to_id":205638309},"pull_request":{"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1183","id":195378368,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1Mzc4MzY4","html_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1183","diff_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1183.diff","patch_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1183.patch","issue_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1183","number":1183,"state":"open","locked":false,"title":"Managing vacation/holidays in bulk","user":{"login":"apooravc","id":25399108,"node_id":"MDQ6VXNlcjI1Mzk5MTA4","avatar_url":"https://avatars3.githubusercontent.com/u/25399108?v=4","gravatar_id":"","url":"https://api.github.com/users/apooravc","html_url":"https://github.com/apooravc","followers_url":"https://api.github.com/users/apooravc/followers","following_url":"https://api.github.com/users/apooravc/following{/other_user}","gists_url":"https://api.github.com/users/apooravc/gists{/gist_id}","starred_url":"https://api.github.com/users/apooravc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apooravc/subscriptions","organizations_url":"https://api.github.com/users/apooravc/orgs","repos_url":"https://api.github.com/users/apooravc/repos","events_url":"https://api.github.com/users/apooravc/events{/privacy}","received_events_url":"https://api.github.com/users/apooravc/received_events","type":"User","site_admin":false},"body":"This first commit adds the interface for this feature where user can enter holidays, vacations in bulk without going to the dates on the calendar to do it. Calendar now has an _add_ button as shown below:\r\n![add](https://user-images.githubusercontent.com/25399108/41508393-aa5ab190-7261-11e8-9f34-60ba5bcee633.JPG)\r\n\r\nClicking on this button would open a dialog modal having two tab views/forms:\r\n\r\nAdd Vacation form\r\n![vac](https://user-images.githubusercontent.com/25399108/41508397-cea56c2a-7261-11e8-842a-20585c2089f0.JPG)\r\n\r\nFunctionality:\r\nIn this tab, user can select a range of consecutive dates of vacation for a selected provider from _Start Date_ to _End Date_. Upon submitting this form, vacation slot would be booked for specified dates and specified provider.\r\n\r\n\r\nAdd Holiday form\r\n![holid](https://user-images.githubusercontent.com/25399108/41508399-d95d5cc2-7261-11e8-934c-32082969c581.JPG)\r\n\r\nFunctionality:\r\nIn this tab, user can select and _add_ disjoint dates of holiday (which will be shown under _Selected dates_ column) for a particular clinic/facility. Upon submitting this form, holiday slot would be booked for specified dates and all providers related with that clinic/facility.\r\n\r\n@teryhill Please have a look.\r\n","created_at":"2018-06-17T13:46:08Z","updated_at":"2018-07-27T13:40:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef122886434d07b07a8129dd8dc1b5b0ca678ae5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":561365537,"node_id":"MDU6TGFiZWw1NjEzNjU1Mzc=","url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/labels/Feature:%20Calendar","name":"Feature: Calendar","color":"ffffff","default":false},{"id":778233493,"node_id":"MDU6TGFiZWw3NzgyMzM0OTM=","url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/labels/GSoC2018","name":"GSoC2018","color":"fbca04","default":false},{"id":408985089,"node_id":"MDU6TGFiZWw0MDg5ODUwODk=","url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1183/commits","review_comments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1183/comments","review_comment_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1183/comments","statuses_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/statuses/9da0aa0e9584768940538dbe4c7409b2a9a104ef","head":{"label":"apooravc:manage-holidays","ref":"manage-holidays","sha":"9da0aa0e9584768940538dbe4c7409b2a9a104ef","user":{"login":"apooravc","id":25399108,"node_id":"MDQ6VXNlcjI1Mzk5MTA4","avatar_url":"https://avatars3.githubusercontent.com/u/25399108?v=4","gravatar_id":"","url":"https://api.github.com/users/apooravc","html_url":"https://github.com/apooravc","followers_url":"https://api.github.com/users/apooravc/followers","following_url":"https://api.github.com/users/apooravc/following{/other_user}","gists_url":"https://api.github.com/users/apooravc/gists{/gist_id}","starred_url":"https://api.github.com/users/apooravc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apooravc/subscriptions","organizations_url":"https://api.github.com/users/apooravc/orgs","repos_url":"https://api.github.com/users/apooravc/repos","events_url":"https://api.github.com/users/apooravc/events{/privacy}","received_events_url":"https://api.github.com/users/apooravc/received_events","type":"User","site_admin":false},"repo":{"id":121752588,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE3NTI1ODg=","name":"LibreEHR","full_name":"apooravc/LibreEHR","owner":{"login":"apooravc","id":25399108,"node_id":"MDQ6VXNlcjI1Mzk5MTA4","avatar_url":"https://avatars3.githubusercontent.com/u/25399108?v=4","gravatar_id":"","url":"https://api.github.com/users/apooravc","html_url":"https://github.com/apooravc","followers_url":"https://api.github.com/users/apooravc/followers","following_url":"https://api.github.com/users/apooravc/following{/other_user}","gists_url":"https://api.github.com/users/apooravc/gists{/gist_id}","starred_url":"https://api.github.com/users/apooravc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apooravc/subscriptions","organizations_url":"https://api.github.com/users/apooravc/orgs","repos_url":"https://api.github.com/users/apooravc/repos","events_url":"https://api.github.com/users/apooravc/events{/privacy}","received_events_url":"https://api.github.com/users/apooravc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apooravc/LibreEHR","description":"LibreHealth EHR - Free Open Source Electronic Health Records based on OpenEMR","fork":true,"url":"https://api.github.com/repos/apooravc/LibreEHR","forks_url":"https://api.github.com/repos/apooravc/LibreEHR/forks","keys_url":"https://api.github.com/repos/apooravc/LibreEHR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apooravc/LibreEHR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apooravc/LibreEHR/teams","hooks_url":"https://api.github.com/repos/apooravc/LibreEHR/hooks","issue_events_url":"https://api.github.com/repos/apooravc/LibreEHR/issues/events{/number}","events_url":"https://api.github.com/repos/apooravc/LibreEHR/events","assignees_url":"https://api.github.com/repos/apooravc/LibreEHR/assignees{/user}","branches_url":"https://api.github.com/repos/apooravc/LibreEHR/branches{/branch}","tags_url":"https://api.github.com/repos/apooravc/LibreEHR/tags","blobs_url":"https://api.github.com/repos/apooravc/LibreEHR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apooravc/LibreEHR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apooravc/LibreEHR/git/refs{/sha}","trees_url":"https://api.github.com/repos/apooravc/LibreEHR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apooravc/LibreEHR/statuses/{sha}","languages_url":"https://api.github.com/repos/apooravc/LibreEHR/languages","stargazers_url":"https://api.github.com/repos/apooravc/LibreEHR/stargazers","contributors_url":"https://api.github.com/repos/apooravc/LibreEHR/contributors","subscribers_url":"https://api.github.com/repos/apooravc/LibreEHR/subscribers","subscription_url":"https://api.github.com/repos/apooravc/LibreEHR/subscription","commits_url":"https://api.github.com/repos/apooravc/LibreEHR/commits{/sha}","git_commits_url":"https://api.github.com/repos/apooravc/LibreEHR/git/commits{/sha}","comments_url":"https://api.github.com/repos/apooravc/LibreEHR/comments{/number}","issue_comment_url":"https://api.github.com/repos/apooravc/LibreEHR/issues/comments{/number}","contents_url":"https://api.github.com/repos/apooravc/LibreEHR/contents/{+path}","compare_url":"https://api.github.com/repos/apooravc/LibreEHR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apooravc/LibreEHR/merges","archive_url":"https://api.github.com/repos/apooravc/LibreEHR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apooravc/LibreEHR/downloads","issues_url":"https://api.github.com/repos/apooravc/LibreEHR/issues{/number}","pulls_url":"https://api.github.com/repos/apooravc/LibreEHR/pulls{/number}","milestones_url":"https://api.github.com/repos/apooravc/LibreEHR/milestones{/number}","notifications_url":"https://api.github.com/repos/apooravc/LibreEHR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apooravc/LibreEHR/labels{/name}","releases_url":"https://api.github.com/repos/apooravc/LibreEHR/releases{/id}","deployments_url":"https://api.github.com/repos/apooravc/LibreEHR/deployments","created_at":"2018-02-16T13:15:34Z","updated_at":"2018-03-26T06:38:02Z","pushed_at":"2018-07-22T17:28:13Z","git_url":"git://github.com/apooravc/LibreEHR.git","ssh_url":"git@github.com:apooravc/LibreEHR.git","clone_url":"https://github.com/apooravc/LibreEHR.git","svn_url":"https://github.com/apooravc/LibreEHR","homepage":"","size":274066,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LibreHealthIO:master","ref":"master","sha":"c57f3ab65bf86f2d695f9c880557b7299d0f9b4a","user":{"login":"LibreHealthIO","id":19714529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NzE0NTI5","avatar_url":"https://avatars3.githubusercontent.com/u/19714529?v=4","gravatar_id":"","url":"https://api.github.com/users/LibreHealthIO","html_url":"https://github.com/LibreHealthIO","followers_url":"https://api.github.com/users/LibreHealthIO/followers","following_url":"https://api.github.com/users/LibreHealthIO/following{/other_user}","gists_url":"https://api.github.com/users/LibreHealthIO/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreHealthIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreHealthIO/subscriptions","organizations_url":"https://api.github.com/users/LibreHealthIO/orgs","repos_url":"https://api.github.com/users/LibreHealthIO/repos","events_url":"https://api.github.com/users/LibreHealthIO/events{/privacy}","received_events_url":"https://api.github.com/users/LibreHealthIO/received_events","type":"Organization","site_admin":false},"repo":{"id":63452821,"node_id":"MDEwOlJlcG9zaXRvcnk2MzQ1MjgyMQ==","name":"lh-ehr","full_name":"LibreHealthIO/lh-ehr","owner":{"login":"LibreHealthIO","id":19714529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NzE0NTI5","avatar_url":"https://avatars3.githubusercontent.com/u/19714529?v=4","gravatar_id":"","url":"https://api.github.com/users/LibreHealthIO","html_url":"https://github.com/LibreHealthIO","followers_url":"https://api.github.com/users/LibreHealthIO/followers","following_url":"https://api.github.com/users/LibreHealthIO/following{/other_user}","gists_url":"https://api.github.com/users/LibreHealthIO/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreHealthIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreHealthIO/subscriptions","organizations_url":"https://api.github.com/users/LibreHealthIO/orgs","repos_url":"https://api.github.com/users/LibreHealthIO/repos","events_url":"https://api.github.com/users/LibreHealthIO/events{/privacy}","received_events_url":"https://api.github.com/users/LibreHealthIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LibreHealthIO/lh-ehr","description":"LibreHealth EHR - Free Open Source Electronic Health Records","fork":false,"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr","forks_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/forks","keys_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/teams","hooks_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/hooks","issue_events_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/events{/number}","events_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/events","assignees_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/assignees{/user}","branches_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/branches{/branch}","tags_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/tags","blobs_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/refs{/sha}","trees_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/statuses/{sha}","languages_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/languages","stargazers_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/stargazers","contributors_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/contributors","subscribers_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/subscribers","subscription_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/subscription","commits_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/commits{/sha}","git_commits_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/commits{/sha}","comments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/comments{/number}","issue_comment_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/comments{/number}","contents_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/contents/{+path}","compare_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/merges","archive_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/downloads","issues_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues{/number}","pulls_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls{/number}","milestones_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/milestones{/number}","notifications_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/labels{/name}","releases_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/releases{/id}","deployments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/deployments","created_at":"2016-07-15T21:50:55Z","updated_at":"2018-07-27T11:18:09Z","pushed_at":"2018-07-27T02:35:38Z","git_url":"git://github.com/LibreHealthIO/lh-ehr.git","ssh_url":"git@github.com:LibreHealthIO/lh-ehr.git","clone_url":"https://github.com/LibreHealthIO/lh-ehr.git","svn_url":"https://github.com/LibreHealthIO/lh-ehr","homepage":"","size":272933,"stargazers_count":70,"watchers_count":70,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":135,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":103,"open_issues":135,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1183"},"html":{"href":"https://github.com/LibreHealthIO/lh-ehr/pull/1183"},"issue":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1183"},"comments":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1183/comments"},"review_comments":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1183/comments"},"review_comment":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1183/commits"},"statuses":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/statuses/9da0aa0e9584768940538dbe4c7409b2a9a104ef"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"teryhill"}}