{"action":"created","issue":{"url":"https://api.github.com/repos/j3k0/logbookr/issues/12","labels_url":"https://api.github.com/repos/j3k0/logbookr/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/j3k0/logbookr/issues/12/comments","events_url":"https://api.github.com/repos/j3k0/logbookr/issues/12/events","html_url":"https://github.com/j3k0/logbookr/issues/12","id":110201149,"number":12,"title":"Import legacy data","user":{"login":"j3k0","id":191881,"avatar_url":"https://avatars.githubusercontent.com/u/191881?v=3","gravatar_id":"","url":"https://api.github.com/users/j3k0","html_url":"https://github.com/j3k0","followers_url":"https://api.github.com/users/j3k0/followers","following_url":"https://api.github.com/users/j3k0/following{/other_user}","gists_url":"https://api.github.com/users/j3k0/gists{/gist_id}","starred_url":"https://api.github.com/users/j3k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j3k0/subscriptions","organizations_url":"https://api.github.com/users/j3k0/orgs","repos_url":"https://api.github.com/users/j3k0/repos","events_url":"https://api.github.com/users/j3k0/events{/privacy}","received_events_url":"https://api.github.com/users/j3k0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/j3k0/logbookr/milestones/3","html_url":"https://github.com/j3k0/logbookr/milestones/v2.2","labels_url":"https://api.github.com/repos/j3k0/logbookr/milestones/3/labels","id":1342351,"number":3,"title":"v2.2","description":"","creator":{"login":"j3k0","id":191881,"avatar_url":"https://avatars.githubusercontent.com/u/191881?v=3","gravatar_id":"","url":"https://api.github.com/users/j3k0","html_url":"https://github.com/j3k0","followers_url":"https://api.github.com/users/j3k0/followers","following_url":"https://api.github.com/users/j3k0/following{/other_user}","gists_url":"https://api.github.com/users/j3k0/gists{/gist_id}","starred_url":"https://api.github.com/users/j3k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j3k0/subscriptions","organizations_url":"https://api.github.com/users/j3k0/orgs","repos_url":"https://api.github.com/users/j3k0/repos","events_url":"https://api.github.com/users/j3k0/events{/privacy}","received_events_url":"https://api.github.com/users/j3k0/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-10-07T11:01:50Z","updated_at":"2015-10-19T11:35:39Z","due_on":"2015-10-13T21:00:00Z","closed_at":null},"comments":7,"created_at":"2015-10-07T11:05:15Z","updated_at":"2015-10-19T11:53:50Z","closed_at":null,"body":"User already using the app from a couple of month have data stored in the pre-custom-field format.  Such data should not be lost, but converted to the new format by the application when detected.\r\n\r\nSee app at commit 98e5847cbdd9028739e3a276d64c1d8210903fbf for the legacy data format.\r\n\r\nThis applies to both procedures and choiceTrees."},"comment":{"url":"https://api.github.com/repos/j3k0/logbookr/issues/comments/149192892","html_url":"https://github.com/j3k0/logbookr/issues/12#issuecomment-149192892","issue_url":"https://api.github.com/repos/j3k0/logbookr/issues/12","id":149192892,"user":{"login":"elmigranto","id":886388,"avatar_url":"https://avatars.githubusercontent.com/u/886388?v=3","gravatar_id":"","url":"https://api.github.com/users/elmigranto","html_url":"https://github.com/elmigranto","followers_url":"https://api.github.com/users/elmigranto/followers","following_url":"https://api.github.com/users/elmigranto/following{/other_user}","gists_url":"https://api.github.com/users/elmigranto/gists{/gist_id}","starred_url":"https://api.github.com/users/elmigranto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elmigranto/subscriptions","organizations_url":"https://api.github.com/users/elmigranto/orgs","repos_url":"https://api.github.com/users/elmigranto/repos","events_url":"https://api.github.com/users/elmigranto/events{/privacy}","received_events_url":"https://api.github.com/users/elmigranto/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T11:53:50Z","updated_at":"2015-10-19T11:53:50Z","body":"Okay, I decided to prefix all the data with \"schema\" version. Currently I basically rename everything that is not `ProcedureModel` to `v2.<old-key>` and save a copy to `v2.safekeep.<old-key>`.\r\n\r\nProcedures are converted to current format with `diagnostic`, `supervision`, `senior`, `stage`, `comment` as template fields. Other fields map directly to our `requiredFields` (`date`, `type`, `patient`). Except for `photos` (#16)."}}