{"action":"closed","issue":{"url":"https://api.github.com/repos/chop-dbhi/data-models-validator/issues/27","repository_url":"https://api.github.com/repos/chop-dbhi/data-models-validator","labels_url":"https://api.github.com/repos/chop-dbhi/data-models-validator/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/chop-dbhi/data-models-validator/issues/27/comments","events_url":"https://api.github.com/repos/chop-dbhi/data-models-validator/issues/27/events","html_url":"https://github.com/chop-dbhi/data-models-validator/issues/27","id":128592973,"number":27,"title":"Validator allows empty string values for timestamps, which fail to load","user":{"login":"murphyke","id":928642,"avatar_url":"https://avatars.githubusercontent.com/u/928642?v=3","gravatar_id":"","url":"https://api.github.com/users/murphyke","html_url":"https://github.com/murphyke","followers_url":"https://api.github.com/users/murphyke/followers","following_url":"https://api.github.com/users/murphyke/following{/other_user}","gists_url":"https://api.github.com/users/murphyke/gists{/gist_id}","starred_url":"https://api.github.com/users/murphyke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murphyke/subscriptions","organizations_url":"https://api.github.com/users/murphyke/orgs","repos_url":"https://api.github.com/users/murphyke/repos","events_url":"https://api.github.com/users/murphyke/events{/privacy}","received_events_url":"https://api.github.com/users/murphyke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-25T17:24:57Z","updated_at":"2016-04-04T17:39:15Z","closed_at":"2016-04-04T17:39:15Z","body":"The `1.0.2-final` validator doesn't catch empty string values for timestamps (seen as `,\"\",` in the csv file), which then fail to load.\r\n\r\nObfuscated sample data showing problem in the 7th column:\r\n\r\n```\r\n\"condition_occurrence_id\",\"person_id\",\"condition_concept_id\",\"condition_start_date\",\"condition_end_date\",\"condition_start_time\",\"condition_end_time\",\"condition_type_concept_id\",\"stop_reason\",\"provider_id\",\"visit_occurrence_id\",\"condition_source_value\",\"condition_source_concept_id\"\r\n\"13123\",\"76234\",\"316993\",\"2013-04-01\",,\"2013-04-01 7:00:00\",\"\",\"38000231\",\"Active\",\"3215\",\"872634\",\"397.0\",\"44833554\"\r\n```\r\n\r\nLoad error in PostgreSQL:\r\n\r\n```\r\nERROR:  invalid input syntax for type timestamp: \"\"\r\nCONTEXT:  COPY condition_occurrence, line 2, column condition_end_time: \"\"\r\n```\r\n"}}