{"action":"created","issue":{"url":"https://api.github.com/repos/motech-implementations/mim/issues/99","labels_url":"https://api.github.com/repos/motech-implementations/mim/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/motech-implementations/mim/issues/99/comments","events_url":"https://api.github.com/repos/motech-implementations/mim/issues/99/events","html_url":"https://github.com/motech-implementations/mim/issues/99","id":70967899,"number":99,"title":"NMS.GEN.LOC.003 - Location Validation Checks during upload","user":{"login":"larubbio","id":51527,"avatar_url":"https://avatars.githubusercontent.com/u/51527?v=3","gravatar_id":"","url":"https://api.github.com/users/larubbio","html_url":"https://github.com/larubbio","followers_url":"https://api.github.com/users/larubbio/followers","following_url":"https://api.github.com/users/larubbio/following{/other_user}","gists_url":"https://api.github.com/users/larubbio/gists{/gist_id}","starred_url":"https://api.github.com/users/larubbio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larubbio/subscriptions","organizations_url":"https://api.github.com/users/larubbio/orgs","repos_url":"https://api.github.com/users/larubbio/repos","events_url":"https://api.github.com/users/larubbio/events{/privacy}","received_events_url":"https://api.github.com/users/larubbio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/motech-implementations/mim/labels/3.1.1%20Location%20Data%20Handling","name":"3.1.1 Location Data Handling","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"larubbio","id":51527,"avatar_url":"https://avatars.githubusercontent.com/u/51527?v=3","gravatar_id":"","url":"https://api.github.com/users/larubbio","html_url":"https://github.com/larubbio","followers_url":"https://api.github.com/users/larubbio/followers","following_url":"https://api.github.com/users/larubbio/following{/other_user}","gists_url":"https://api.github.com/users/larubbio/gists{/gist_id}","starred_url":"https://api.github.com/users/larubbio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larubbio/subscriptions","organizations_url":"https://api.github.com/users/larubbio/orgs","repos_url":"https://api.github.com/users/larubbio/repos","events_url":"https://api.github.com/users/larubbio/events{/privacy}","received_events_url":"https://api.github.com/users/larubbio/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/motech-implementations/mim/milestones/2","html_url":"https://github.com/motech-implementations/mim/milestones/Sprint%202","labels_url":"https://api.github.com/repos/motech-implementations/mim/milestones/2/labels","id":1081651,"number":2,"title":"Sprint 2","description":"","creator":{"login":"llavoie","id":1851829,"avatar_url":"https://avatars.githubusercontent.com/u/1851829?v=3","gravatar_id":"","url":"https://api.github.com/users/llavoie","html_url":"https://github.com/llavoie","followers_url":"https://api.github.com/users/llavoie/followers","following_url":"https://api.github.com/users/llavoie/following{/other_user}","gists_url":"https://api.github.com/users/llavoie/gists{/gist_id}","starred_url":"https://api.github.com/users/llavoie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llavoie/subscriptions","organizations_url":"https://api.github.com/users/llavoie/orgs","repos_url":"https://api.github.com/users/llavoie/repos","events_url":"https://api.github.com/users/llavoie/events{/privacy}","received_events_url":"https://api.github.com/users/llavoie/received_events","type":"User","site_admin":false},"open_issues":68,"closed_issues":3,"state":"open","created_at":"2015-04-24T04:07:44Z","updated_at":"2015-04-27T18:54:23Z","due_on":"2015-05-08T07:00:00Z","closed_at":null},"comments":1,"created_at":"2015-04-25T21:17:14Z","updated_at":"2015-04-27T23:41:37Z","closed_at":null,"body":"The NMS system shall perform the following checks and validation before uploading location data into the location database:\r\n - None of the Mandatory Location fields can be blank\r\n - Duplicate location data does not already exist in the system\r\n\r\nThe exact definitions of these fields are provided in Appendix A (refer section 6.2).\r\n"},"comment":{"url":"https://api.github.com/repos/motech-implementations/mim/issues/comments/96851624","html_url":"https://github.com/motech-implementations/mim/issues/99#issuecomment-96851624","issue_url":"https://api.github.com/repos/motech-implementations/mim/issues/99","id":96851624,"user":{"login":"larubbio","id":51527,"avatar_url":"https://avatars.githubusercontent.com/u/51527?v=3","gravatar_id":"","url":"https://api.github.com/users/larubbio","html_url":"https://github.com/larubbio","followers_url":"https://api.github.com/users/larubbio/followers","following_url":"https://api.github.com/users/larubbio/following{/other_user}","gists_url":"https://api.github.com/users/larubbio/gists{/gist_id}","starred_url":"https://api.github.com/users/larubbio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larubbio/subscriptions","organizations_url":"https://api.github.com/users/larubbio/orgs","repos_url":"https://api.github.com/users/larubbio/repos","events_url":"https://api.github.com/users/larubbio/events{/privacy}","received_events_url":"https://api.github.com/users/larubbio/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T23:41:37Z","updated_at":"2015-04-27T23:41:37Z","body":"Currently I don't have any spec that says which fields are mandatory and which fields determine uniqueness.   I asked Pankaj if he could track it down.\r\n\r\nThe current code assumes the code is unique.  It also validates that each child has a parent.  i.e. a district must have a state.  It does not validate that parents have children (so a state can have 0 districts)"}}