{"action":"created","issue":{"url":"https://api.github.com/repos/FEMR/femr/issues/519","repository_url":"https://api.github.com/repos/FEMR/femr","labels_url":"https://api.github.com/repos/FEMR/femr/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/FEMR/femr/issues/519/comments","events_url":"https://api.github.com/repos/FEMR/femr/issues/519/events","html_url":"https://github.com/FEMR/femr/pull/519","id":147229722,"number":519,"title":"FEMR125, FEMR220, FEMR227, FEMR228 wrap up inventory","user":{"login":"kevinzurek","id":5403109,"avatar_url":"https://avatars.githubusercontent.com/u/5403109?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinzurek","html_url":"https://github.com/kevinzurek","followers_url":"https://api.github.com/users/kevinzurek/followers","following_url":"https://api.github.com/users/kevinzurek/following{/other_user}","gists_url":"https://api.github.com/users/kevinzurek/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinzurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinzurek/subscriptions","organizations_url":"https://api.github.com/users/kevinzurek/orgs","repos_url":"https://api.github.com/users/kevinzurek/repos","events_url":"https://api.github.com/users/kevinzurek/events{/privacy}","received_events_url":"https://api.github.com/users/kevinzurek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-10T14:34:20Z","updated_at":"2016-04-18T22:11:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FEMR/femr/pulls/519","html_url":"https://github.com/FEMR/femr/pull/519","diff_url":"https://github.com/FEMR/femr/pull/519.diff","patch_url":"https://github.com/FEMR/femr/pull/519.patch"},"body":"Sending 4 JIRA issues in this one because they require the order 125 -> 220 -> 227 -> 228. Breaking the 1 issue per pull request rule here, but I think it would have been more confusing to do all these separately because they depend on each other... Squashed the commits to make it less confusing\r\n\r\n125 (import dictionary): Create a new database seeder and populate it with all of the medication concept dictionary. This requires checking to make sure values don't already exist in the database (because this gets executed every time the application starts).\r\nhttps://teamfemr.atlassian.net/browse/FEMR-125\r\n\r\n220 (select from dictionary): Use the select2 library on the inventory page to let a user add a bunch of medications from the dictionary at once to the actual formulary for a trip. When they do this, the values are added to the non-dictionary tables. A user can not enter the amount here, i try to make up for that in 228.\r\nhttps://teamfemr.atlassian.net/browse/FEMR-220\r\n\r\n227(bug editing current quantity): Fix a bug that wasn't letting users edit the current quantity of a medication if it was in a paginated page (DataTables API stuff)\r\nhttps://teamfemr.atlassian.net/browse/FEMR-227\r\n\r\n228 (editing on inventory part 2): Let a user set the initial quantity for all medications without any business rules in the inventory table. This was the best idea I could come up with for a fast way to add medicine to the inventory\r\nhttps://teamfemr.atlassian.net/browse/FEMR-228"},"comment":{"url":"https://api.github.com/repos/FEMR/femr/issues/comments/211601804","html_url":"https://github.com/FEMR/femr/pull/519#issuecomment-211601804","issue_url":"https://api.github.com/repos/FEMR/femr/issues/519","id":211601804,"user":{"login":"kevinzurek","id":5403109,"avatar_url":"https://avatars.githubusercontent.com/u/5403109?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinzurek","html_url":"https://github.com/kevinzurek","followers_url":"https://api.github.com/users/kevinzurek/followers","following_url":"https://api.github.com/users/kevinzurek/following{/other_user}","gists_url":"https://api.github.com/users/kevinzurek/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinzurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinzurek/subscriptions","organizations_url":"https://api.github.com/users/kevinzurek/orgs","repos_url":"https://api.github.com/users/kevinzurek/repos","events_url":"https://api.github.com/users/kevinzurek/events{/privacy}","received_events_url":"https://api.github.com/users/kevinzurek/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T22:11:51Z","updated_at":"2016-04-18T22:11:51Z","body":"Fixes from last comment:\r\n\r\nhttps://github.com/FEMR/femr/pull/519/files#diff-970a8c334998d81569fb11524d409436L97\r\nhttps://github.com/FEMR/femr/pull/519/files#diff-ec4fe6e6ead3fe553b408476272fd3dfL204\r\nhttps://github.com/FEMR/femr/pull/519/files#diff-f7dfce91571ce882ba01c93178036ec2L52\r\nhttps://github.com/FEMR/femr/pull/519/files#diff-9957fa09c0b8ebaf8ae293c7303f958dL84"}}