{"action":"created","comment":{"url":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/comments/185519987","pull_request_review_id":116925114,"id":185519987,"diff_hunk":"@@ -5,6 +5,7 @@ class Medication < Entry\n   # Bonnie displays this as 'dosage'.\n   field :dose, type: Hash\n   field :supply, type: Hash\n+  field :refills, type: Hash","path":"lib/health-data-standards/models/medication.rb","position":9,"original_position":4,"commit_id":"47efe1320f141b04efdfc74641f23066cd974c9f","original_commit_id":"3ad8120ed336bcb8785dc5ecc94eef5d3e1098fd","user":{"login":"mayerm94","id":3967953,"avatar_url":"https://avatars3.githubusercontent.com/u/3967953?v=4","gravatar_id":"","url":"https://api.github.com/users/mayerm94","html_url":"https://github.com/mayerm94","followers_url":"https://api.github.com/users/mayerm94/followers","following_url":"https://api.github.com/users/mayerm94/following{/other_user}","gists_url":"https://api.github.com/users/mayerm94/gists{/gist_id}","starred_url":"https://api.github.com/users/mayerm94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayerm94/subscriptions","organizations_url":"https://api.github.com/users/mayerm94/orgs","repos_url":"https://api.github.com/users/mayerm94/repos","events_url":"https://api.github.com/users/mayerm94/events{/privacy}","received_events_url":"https://api.github.com/users/mayerm94/received_events","type":"User","site_admin":false},"body":"'refills': {unit: '', scalar: 5} ends up being a cql.Quantity in BONNIE. Tested here https://github.com/projecttacoma/cql_qdm_patientapi/blob/05e24c98bd724681026d60e76630452f71a31c81/spec/javascripts/datatypes/medication_spec.js.coffee","created_at":"2018-05-02T14:40:42Z","updated_at":"2018-05-02T14:40:42Z","html_url":"https://github.com/projectcypress/health-data-standards/pull/572#discussion_r185519987","pull_request_url":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/572","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/comments/185519987"},"html":{"href":"https://github.com/projectcypress/health-data-standards/pull/572#discussion_r185519987"},"pull_request":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/572"}},"in_reply_to_id":185474405},"pull_request":{"url":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/572","id":185269087,"html_url":"https://github.com/projectcypress/health-data-standards/pull/572","diff_url":"https://github.com/projectcypress/health-data-standards/pull/572.diff","patch_url":"https://github.com/projectcypress/health-data-standards/pull/572.patch","issue_url":"https://api.github.com/repos/projectcypress/health-data-standards/issues/572","number":572,"state":"open","locked":false,"title":"Add refills to medication","user":{"login":"mayerm94","id":3967953,"avatar_url":"https://avatars3.githubusercontent.com/u/3967953?v=4","gravatar_id":"","url":"https://api.github.com/users/mayerm94","html_url":"https://github.com/mayerm94","followers_url":"https://api.github.com/users/mayerm94/followers","following_url":"https://api.github.com/users/mayerm94/following{/other_user}","gists_url":"https://api.github.com/users/mayerm94/gists{/gist_id}","starred_url":"https://api.github.com/users/mayerm94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayerm94/subscriptions","organizations_url":"https://api.github.com/users/mayerm94/orgs","repos_url":"https://api.github.com/users/mayerm94/repos","events_url":"https://api.github.com/users/mayerm94/events{/privacy}","received_events_url":"https://api.github.com/users/mayerm94/received_events","type":"User","site_admin":false},"body":"Add refills support to medication datatype to align with model info.\r\nPull requests into Health Data Standards require the following. Submitter and reviewer should :white_check_mark: when done. For items that are not-applicable, note it's not-applicable (\"N/A\") and :white_check_mark:.\r\n \r\n**Submitter:**\r\n- [x] This pull request describes why these changes were made.\r\n- [x] This PR is into the correct branch.\r\n- [x] Internal ticket for this PR: https://jira.mitre.org/browse/BONNIE-1460\r\n- [x] Internal ticket links back to this PR\r\n- [x] Code diff has been done and been reviewed (it **does not** contain: additional white space, not applicable code changes, debug statements, etc.)\r\n- [x] Tests are included and test edge cases NA\r\n- [x] Tests have been run locally and pass\r\n- [x] Code coverage has not gone down and all code touched or added is covered.\r\n     * In rare situations, this may not be possible or applicable to a PR. In those situations:\r\n         1. Note why this could not be done or is not applicable here:\r\n         2. Add TODOs in the code noting that it requires a test\r\n         3. Add a JIRA task to add the test and link it here:\r\n \r\n**Cypress Reviewer:**\r\n \r\nName: @okeefm\r\n- [ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose\r\n- [ ] The tests appropriately test the new code, including edge cases\r\n- [ ] You have tried to break the code\r\n \r\n**Bonnie Reviewer:**\r\n \r\nName: @hossenlopp\r\n- [x] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose\r\n- [x] The tests appropriately test the new code, including edge cases\r\n- [ ] You have tried to break the code\r\n","created_at":"2018-05-01T20:33:58Z","updated_at":"2018-05-02T14:40:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19efa75aa68d247182b02dee8f614ce46cb6ae51","assignee":null,"assignees":[],"requested_reviewers":[{"login":"okeefm","id":49001,"avatar_url":"https://avatars1.githubusercontent.com/u/49001?v=4","gravatar_id":"","url":"https://api.github.com/users/okeefm","html_url":"https://github.com/okeefm","followers_url":"https://api.github.com/users/okeefm/followers","following_url":"https://api.github.com/users/okeefm/following{/other_user}","gists_url":"https://api.github.com/users/okeefm/gists{/gist_id}","starred_url":"https://api.github.com/users/okeefm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okeefm/subscriptions","organizations_url":"https://api.github.com/users/okeefm/orgs","repos_url":"https://api.github.com/users/okeefm/repos","events_url":"https://api.github.com/users/okeefm/events{/privacy}","received_events_url":"https://api.github.com/users/okeefm/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/572/commits","review_comments_url":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/572/comments","review_comment_url":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectcypress/health-data-standards/issues/572/comments","statuses_url":"https://api.github.com/repos/projectcypress/health-data-standards/statuses/47efe1320f141b04efdfc74641f23066cd974c9f","head":{"label":"projectcypress:frequency_refills","ref":"frequency_refills","sha":"47efe1320f141b04efdfc74641f23066cd974c9f","user":{"login":"projectcypress","id":1188796,"avatar_url":"https://avatars2.githubusercontent.com/u/1188796?v=4","gravatar_id":"","url":"https://api.github.com/users/projectcypress","html_url":"https://github.com/projectcypress","followers_url":"https://api.github.com/users/projectcypress/followers","following_url":"https://api.github.com/users/projectcypress/following{/other_user}","gists_url":"https://api.github.com/users/projectcypress/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcypress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcypress/subscriptions","organizations_url":"https://api.github.com/users/projectcypress/orgs","repos_url":"https://api.github.com/users/projectcypress/repos","events_url":"https://api.github.com/users/projectcypress/events{/privacy}","received_events_url":"https://api.github.com/users/projectcypress/received_events","type":"Organization","site_admin":false},"repo":{"id":2980040,"name":"health-data-standards","full_name":"projectcypress/health-data-standards","owner":{"login":"projectcypress","id":1188796,"avatar_url":"https://avatars2.githubusercontent.com/u/1188796?v=4","gravatar_id":"","url":"https://api.github.com/users/projectcypress","html_url":"https://github.com/projectcypress","followers_url":"https://api.github.com/users/projectcypress/followers","following_url":"https://api.github.com/users/projectcypress/following{/other_user}","gists_url":"https://api.github.com/users/projectcypress/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcypress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcypress/subscriptions","organizations_url":"https://api.github.com/users/projectcypress/orgs","repos_url":"https://api.github.com/users/projectcypress/repos","events_url":"https://api.github.com/users/projectcypress/events{/privacy}","received_events_url":"https://api.github.com/users/projectcypress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectcypress/health-data-standards","description":null,"fork":false,"url":"https://api.github.com/repos/projectcypress/health-data-standards","forks_url":"https://api.github.com/repos/projectcypress/health-data-standards/forks","keys_url":"https://api.github.com/repos/projectcypress/health-data-standards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectcypress/health-data-standards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectcypress/health-data-standards/teams","hooks_url":"https://api.github.com/repos/projectcypress/health-data-standards/hooks","issue_events_url":"https://api.github.com/repos/projectcypress/health-data-standards/issues/events{/number}","events_url":"https://api.github.com/repos/projectcypress/health-data-standards/events","assignees_url":"https://api.github.com/repos/projectcypress/health-data-standards/assignees{/user}","branches_url":"https://api.github.com/repos/projectcypress/health-data-standards/branches{/branch}","tags_url":"https://api.github.com/repos/projectcypress/health-data-standards/tags","blobs_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectcypress/health-data-standards/statuses/{sha}","languages_url":"https://api.github.com/repos/projectcypress/health-data-standards/languages","stargazers_url":"https://api.github.com/repos/projectcypress/health-data-standards/stargazers","contributors_url":"https://api.github.com/repos/projectcypress/health-data-standards/contributors","subscribers_url":"https://api.github.com/repos/projectcypress/health-data-standards/subscribers","subscription_url":"https://api.github.com/repos/projectcypress/health-data-standards/subscription","commits_url":"https://api.github.com/repos/projectcypress/health-data-standards/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectcypress/health-data-standards/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectcypress/health-data-standards/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectcypress/health-data-standards/contents/{+path}","compare_url":"https://api.github.com/repos/projectcypress/health-data-standards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectcypress/health-data-standards/merges","archive_url":"https://api.github.com/repos/projectcypress/health-data-standards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectcypress/health-data-standards/downloads","issues_url":"https://api.github.com/repos/projectcypress/health-data-standards/issues{/number}","pulls_url":"https://api.github.com/repos/projectcypress/health-data-standards/pulls{/number}","milestones_url":"https://api.github.com/repos/projectcypress/health-data-standards/milestones{/number}","notifications_url":"https://api.github.com/repos/projectcypress/health-data-standards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectcypress/health-data-standards/labels{/name}","releases_url":"https://api.github.com/repos/projectcypress/health-data-standards/releases{/id}","deployments_url":"https://api.github.com/repos/projectcypress/health-data-standards/deployments","created_at":"2011-12-14T13:26:30Z","updated_at":"2018-03-04T10:16:12Z","pushed_at":"2018-05-02T13:18:40Z","git_url":"git://github.com/projectcypress/health-data-standards.git","ssh_url":"git@github.com:projectcypress/health-data-standards.git","clone_url":"https://github.com/projectcypress/health-data-standards.git","svn_url":"https://github.com/projectcypress/health-data-standards","homepage":"https://rubygems.org/gems/health-data-standards","size":25761,"stargazers_count":85,"watchers_count":85,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":88,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":88,"open_issues":40,"watchers":85,"default_branch":"master"}},"base":{"label":"projectcypress:master_bonnie","ref":"master_bonnie","sha":"8afa4ba276a47f08ad46a941c167a5115b1627f1","user":{"login":"projectcypress","id":1188796,"avatar_url":"https://avatars2.githubusercontent.com/u/1188796?v=4","gravatar_id":"","url":"https://api.github.com/users/projectcypress","html_url":"https://github.com/projectcypress","followers_url":"https://api.github.com/users/projectcypress/followers","following_url":"https://api.github.com/users/projectcypress/following{/other_user}","gists_url":"https://api.github.com/users/projectcypress/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcypress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcypress/subscriptions","organizations_url":"https://api.github.com/users/projectcypress/orgs","repos_url":"https://api.github.com/users/projectcypress/repos","events_url":"https://api.github.com/users/projectcypress/events{/privacy}","received_events_url":"https://api.github.com/users/projectcypress/received_events","type":"Organization","site_admin":false},"repo":{"id":2980040,"name":"health-data-standards","full_name":"projectcypress/health-data-standards","owner":{"login":"projectcypress","id":1188796,"avatar_url":"https://avatars2.githubusercontent.com/u/1188796?v=4","gravatar_id":"","url":"https://api.github.com/users/projectcypress","html_url":"https://github.com/projectcypress","followers_url":"https://api.github.com/users/projectcypress/followers","following_url":"https://api.github.com/users/projectcypress/following{/other_user}","gists_url":"https://api.github.com/users/projectcypress/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcypress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcypress/subscriptions","organizations_url":"https://api.github.com/users/projectcypress/orgs","repos_url":"https://api.github.com/users/projectcypress/repos","events_url":"https://api.github.com/users/projectcypress/events{/privacy}","received_events_url":"https://api.github.com/users/projectcypress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectcypress/health-data-standards","description":null,"fork":false,"url":"https://api.github.com/repos/projectcypress/health-data-standards","forks_url":"https://api.github.com/repos/projectcypress/health-data-standards/forks","keys_url":"https://api.github.com/repos/projectcypress/health-data-standards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectcypress/health-data-standards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectcypress/health-data-standards/teams","hooks_url":"https://api.github.com/repos/projectcypress/health-data-standards/hooks","issue_events_url":"https://api.github.com/repos/projectcypress/health-data-standards/issues/events{/number}","events_url":"https://api.github.com/repos/projectcypress/health-data-standards/events","assignees_url":"https://api.github.com/repos/projectcypress/health-data-standards/assignees{/user}","branches_url":"https://api.github.com/repos/projectcypress/health-data-standards/branches{/branch}","tags_url":"https://api.github.com/repos/projectcypress/health-data-standards/tags","blobs_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectcypress/health-data-standards/statuses/{sha}","languages_url":"https://api.github.com/repos/projectcypress/health-data-standards/languages","stargazers_url":"https://api.github.com/repos/projectcypress/health-data-standards/stargazers","contributors_url":"https://api.github.com/repos/projectcypress/health-data-standards/contributors","subscribers_url":"https://api.github.com/repos/projectcypress/health-data-standards/subscribers","subscription_url":"https://api.github.com/repos/projectcypress/health-data-standards/subscription","commits_url":"https://api.github.com/repos/projectcypress/health-data-standards/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectcypress/health-data-standards/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectcypress/health-data-standards/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectcypress/health-data-standards/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectcypress/health-data-standards/contents/{+path}","compare_url":"https://api.github.com/repos/projectcypress/health-data-standards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectcypress/health-data-standards/merges","archive_url":"https://api.github.com/repos/projectcypress/health-data-standards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectcypress/health-data-standards/downloads","issues_url":"https://api.github.com/repos/projectcypress/health-data-standards/issues{/number}","pulls_url":"https://api.github.com/repos/projectcypress/health-data-standards/pulls{/number}","milestones_url":"https://api.github.com/repos/projectcypress/health-data-standards/milestones{/number}","notifications_url":"https://api.github.com/repos/projectcypress/health-data-standards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectcypress/health-data-standards/labels{/name}","releases_url":"https://api.github.com/repos/projectcypress/health-data-standards/releases{/id}","deployments_url":"https://api.github.com/repos/projectcypress/health-data-standards/deployments","created_at":"2011-12-14T13:26:30Z","updated_at":"2018-03-04T10:16:12Z","pushed_at":"2018-05-02T13:18:40Z","git_url":"git://github.com/projectcypress/health-data-standards.git","ssh_url":"git@github.com:projectcypress/health-data-standards.git","clone_url":"https://github.com/projectcypress/health-data-standards.git","svn_url":"https://github.com/projectcypress/health-data-standards","homepage":"https://rubygems.org/gems/health-data-standards","size":25761,"stargazers_count":85,"watchers_count":85,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":88,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":88,"open_issues":40,"watchers":85,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/572"},"html":{"href":"https://github.com/projectcypress/health-data-standards/pull/572"},"issue":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/issues/572"},"comments":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/issues/572/comments"},"review_comments":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/572/comments"},"review_comment":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/pulls/572/commits"},"statuses":{"href":"https://api.github.com/repos/projectcypress/health-data-standards/statuses/47efe1320f141b04efdfc74641f23066cd974c9f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mayerm94"}}