{"action":"opened","issue":{"url":"https://api.github.com/repos/FreeMedForms/freemedforms/issues/135","repository_url":"https://api.github.com/repos/FreeMedForms/freemedforms","labels_url":"https://api.github.com/repos/FreeMedForms/freemedforms/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/FreeMedForms/freemedforms/issues/135/comments","events_url":"https://api.github.com/repos/FreeMedForms/freemedforms/issues/135/events","html_url":"https://github.com/FreeMedForms/freemedforms/issues/135","id":147943161,"number":135,"title":"FMF 0.9.7 potentially critical bug (clinically) in weight measurement","user":{"login":"jeromecc","id":6979021,"avatar_url":"https://avatars.githubusercontent.com/u/6979021?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromecc","html_url":"https://github.com/jeromecc","followers_url":"https://api.github.com/users/jeromecc/followers","following_url":"https://api.github.com/users/jeromecc/following{/other_user}","gists_url":"https://api.github.com/users/jeromecc/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromecc/subscriptions","organizations_url":"https://api.github.com/users/jeromecc/orgs","repos_url":"https://api.github.com/users/jeromecc/repos","events_url":"https://api.github.com/users/jeromecc/events{/privacy}","received_events_url":"https://api.github.com/users/jeromecc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-13T04:29:12Z","updated_at":"2016-04-13T04:29:12Z","closed_at":null,"body":"If a user enters a weight in SOAP form with measurement widget using grams as the unit, it is stored as is in the patient model\r\nWhen printing a prescription, weight is divided by 100 and printed out as kilogram(s) on the order, giving a weight that is tenfold higher.\r\nThis could lead to potential overdosing in pediatric patients.\r\nWe should issue a warning and correct this bug ASAP, then release FMF 0.9.8 so that users have an update notification.\r\nIf the user enters a weight in kilogram, the value is mistakenly multiplied by 100 (in patient model), and then again divided by 100 when printing a prescription, the result being that the correct value is printed in kilogram.\r\n\r\nFIX: give up grams, ounces & pound. Body weight must always be entered in kilograms, which is the worldwide good practice recommendation to avoid errors with drugs dosage.\r\nWeights stored in the database are defined by their unit so database is ok.\r\nWe just need to fix measurementwidget.cpp and prescriptionprinter.cpp"}}