{"action":"created","issue":{"url":"https://api.github.com/repos/edenlabllc/ehealth.api/issues/2834","repository_url":"https://api.github.com/repos/edenlabllc/ehealth.api","labels_url":"https://api.github.com/repos/edenlabllc/ehealth.api/issues/2834/labels{/name}","comments_url":"https://api.github.com/repos/edenlabllc/ehealth.api/issues/2834/comments","events_url":"https://api.github.com/repos/edenlabllc/ehealth.api/issues/2834/events","html_url":"https://github.com/edenlabllc/ehealth.api/issues/2834","id":344751662,"node_id":"MDU6SXNzdWUzNDQ3NTE2NjI=","number":2834,"title":"Employee with declaration in DISMISSED status PROD","user":{"login":"ehealthua-tech","id":40864195,"node_id":"MDQ6VXNlcjQwODY0MTk1","avatar_url":"https://avatars3.githubusercontent.com/u/40864195?v=4","gravatar_id":"","url":"https://api.github.com/users/ehealthua-tech","html_url":"https://github.com/ehealthua-tech","followers_url":"https://api.github.com/users/ehealthua-tech/followers","following_url":"https://api.github.com/users/ehealthua-tech/following{/other_user}","gists_url":"https://api.github.com/users/ehealthua-tech/gists{/gist_id}","starred_url":"https://api.github.com/users/ehealthua-tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehealthua-tech/subscriptions","organizations_url":"https://api.github.com/users/ehealthua-tech/orgs","repos_url":"https://api.github.com/users/ehealthua-tech/repos","events_url":"https://api.github.com/users/ehealthua-tech/events{/privacy}","received_events_url":"https://api.github.com/users/ehealthua-tech/received_events","type":"User","site_admin":false},"labels":[{"id":683782529,"node_id":"MDU6TGFiZWw2ODM3ODI1Mjk=","url":"https://api.github.com/repos/edenlabllc/ehealth.api/labels/kind/support","name":"kind/support","color":"727072","default":false},{"id":573865280,"node_id":"MDU6TGFiZWw1NzM4NjUyODA=","url":"https://api.github.com/repos/edenlabllc/ehealth.api/labels/priority/medium","name":"priority/medium","color":"fbca04","default":false},{"id":610548642,"node_id":"MDU6TGFiZWw2MTA1NDg2NDI=","url":"https://api.github.com/repos/edenlabllc/ehealth.api/labels/status/wontfix","name":"status/wontfix","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"AlekzandrV","id":12275915,"node_id":"MDQ6VXNlcjEyMjc1OTE1","avatar_url":"https://avatars0.githubusercontent.com/u/12275915?v=4","gravatar_id":"","url":"https://api.github.com/users/AlekzandrV","html_url":"https://github.com/AlekzandrV","followers_url":"https://api.github.com/users/AlekzandrV/followers","following_url":"https://api.github.com/users/AlekzandrV/following{/other_user}","gists_url":"https://api.github.com/users/AlekzandrV/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekzandrV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekzandrV/subscriptions","organizations_url":"https://api.github.com/users/AlekzandrV/orgs","repos_url":"https://api.github.com/users/AlekzandrV/repos","events_url":"https://api.github.com/users/AlekzandrV/events{/privacy}","received_events_url":"https://api.github.com/users/AlekzandrV/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlekzandrV","id":12275915,"node_id":"MDQ6VXNlcjEyMjc1OTE1","avatar_url":"https://avatars0.githubusercontent.com/u/12275915?v=4","gravatar_id":"","url":"https://api.github.com/users/AlekzandrV","html_url":"https://github.com/AlekzandrV","followers_url":"https://api.github.com/users/AlekzandrV/followers","following_url":"https://api.github.com/users/AlekzandrV/following{/other_user}","gists_url":"https://api.github.com/users/AlekzandrV/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekzandrV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekzandrV/subscriptions","organizations_url":"https://api.github.com/users/AlekzandrV/orgs","repos_url":"https://api.github.com/users/AlekzandrV/repos","events_url":"https://api.github.com/users/AlekzandrV/events{/privacy}","received_events_url":"https://api.github.com/users/AlekzandrV/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-07-26T08:49:59Z","updated_at":"2018-07-27T13:44:34Z","closed_at":null,"author_association":"COLLABORATOR","body":"Steps to reproduce:\r\nПоступили звонки от пользователей(врачей), о том что они не могут заключать декларации, после детальной информации выяснилось, что сотрудники в статусе DISMISSED, у них были декларации к примеру у 1-го 1500 деклараций. \r\nНам не понятно кто и по какой причине перевёл сотрудников в статус DISMISSED? \r\nВозможно со стороны НСЗУ проходит проверка, или есть алгоритм по которому ЦБД увольняет сейчас сотрудников? \r\nСо стороны пользователей запросов на DISMISSED не было. \r\n\r\nВопрос очень критичный, так как: \r\n1. Декларации разриваются \r\n2. Сотрудник не может заключать декларации\r\nExpected results:\r\nСотрудники по факту не уволены\r\nОписание\r\n{\r\n\"paging\":\r\n\r\n{ \"total_pages\": 1, \"total_entries\": 47, \"page_size\": 1000, \"page_number\": 1 }\r\n,\r\n\"meta\":\r\n\r\n{ \"url\": \"http://api-svc.em/api/events/\", \"type\": \"list\", \"request_id\": \"7a4282a6-2171-4391-b7f0-c0280aae7e06#23892\", \"code\": 200 }\r\n,\r\n\"data\": [\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"a6afff30-c8f7-4129-8aea-e7c965215801\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-26T04:52:56.132155\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"7f62e270-f8ea-4233-9103-944038f50c5b\",\r\n\"changed_by\": \"0b099207-e584-46a1-b040-516442c84ea0\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"5eb7b6c6-d1ca-45d2-9153-0de5d3a25e0f\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-19T09:06:47.120789\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"ff5fd3bc-3b9a-42b6-9be1-5c89276e97c2\",\r\n\"changed_by\": \"53cd44ba-b00e-4248-a4d7-48f958025540\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"cc6eb51d-3987-49b1-a2d7-9068698e8f57\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-19T09:23:13.600166\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"e5a577e7-15ae-436a-9fc1-5acc1592c07b\",\r\n\"changed_by\": \"08f843c2-fab5-427e-a848-5b268c684971\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"5e4687e0-3d24-43af-a18d-46413174e8c3\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-19T13:04:52.287126\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"4d5dec0f-d1e8-4ad7-a056-a9c4b10aeba1\",\r\n\"changed_by\": \"98b9abe7-971c-4a1b-b0fc-dd240702f29c\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"3749a4ff-3fb6-4aef-933e-a0bf95140048\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-20T03:56:06.766443\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"58dfcdad-2861-4f0b-8b43-8dfd68587316\",\r\n\"changed_by\": \"3324a599-570f-49f7-a6e5-c777448281a2\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"617886b2-4e4a-4551-8991-18de3cfe46f3\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-20T09:44:59.621731\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"b49f0595-442f-4690-af06-8ec7305d2004\",\r\n\"changed_by\": \"f235cee9-0079-4b3b-bdee-11f2ef09f7df\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"dc8cbc9e-5407-4126-80e2-3ceacbaf663d\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-20T12:02:21.101093\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"09d50626-849a-4008-b610-c9a6218f004e\",\r\n\"changed_by\": \"6acd49fd-4493-430c-b45c-342f04ff1524\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"0c1011f2-6599-47b5-b835-80860bb97336\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-20T12:07:10.510128\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"0bb29fd9-c8d9-4245-95c2-f86a3f17f61d\",\r\n\"changed_by\": \"685687f9-9249-4236-b773-feab647a3224\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"c0b12a09-31c2-4ace-9f67-35ec83208585\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-20T11:55:02.899324\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"b5847768-e791-4943-98f6-7615f2bfe68d\",\r\n\"changed_by\": \"b127749f-13d3-4103-bee5-fa2cde254010\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"682ae7bf-146b-47d1-9d21-736dd8e44bac\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-20T12:44:47.350637\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"a72e9652-5942-4179-95d6-a3f76c49f261\",\r\n\"changed_by\": \"685687f9-9249-4236-b773-feab647a3224\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"7d137ea4-2b4d-4474-b87f-f3c03ac887f7\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-20T07:41:34.174901\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"d1e5b6f8-9a41-47e8-9657-b1c3b67958c3\",\r\n\"changed_by\": \"2ae67e79-7359-44ec-a9bf-63e220981215\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"f5a663c6-0fca-4838-9147-f9194ee66165\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-23T06:12:44.221828\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"f2d805ed-3778-44c8-bd0b-afe3b87d21b5\",\r\n\"changed_by\": \"d8c473c4-80b8-4c66-8af1-02cdae9922d4\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"ba8399c4-cc2e-4523-9f47-df2c8eaed07b\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-23T08:04:59.284451\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"de2f4fad-9b21-4bdc-a345-58d2ee3163b1\",\r\n\"changed_by\": \"917c72f4-148f-4e23-a2b7-3c9bd091d5ef\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"39e69c5f-f846-4b16-b03f-69b951211eff\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-23T10:17:08.926107\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"5d6bdb7c-6f40-4d76-b6a0-fde84a4aa282\",\r\n\"changed_by\": \"8a1b03b4-34a6-4bc9-9645-df30f48bae52\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"8e6194bf-ffd5-40bb-a181-2820f81097ad\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-23T10:53:43.490074\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"ebd0d523-b728-4e69-b043-6df5bb3cc9ac\",\r\n\"changed_by\": \"9b318871-c70a-4667-ba9c-1f4aad91111a\"\r\n},\r\n{\r\n\"properties\": {\r\n\"status\":\r\n\r\n{ \"new_value\": \"DISMISSED\" }\r\n},\r\n\"id\": \"42eace4a-05a3-463f-b010-28129af33d73\",\r\n\"event_type\": \"StatusChangeEvent\",\r\n\"event_time\": \"2018-07-23T14:12:41.217423\",\r\n\"entity_type\": \"Employee\",\r\n\"entity_id\": \"6746e363-4739-4599-ab6c-8...\r\n"},"comment":{"url":"https://api.github.com/repos/edenlabllc/ehealth.api/issues/comments/408422725","html_url":"https://github.com/edenlabllc/ehealth.api/issues/2834#issuecomment-408422725","issue_url":"https://api.github.com/repos/edenlabllc/ehealth.api/issues/2834","id":408422725,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODQyMjcyNQ==","user":{"login":"ehealthua-tech","id":40864195,"node_id":"MDQ6VXNlcjQwODY0MTk1","avatar_url":"https://avatars3.githubusercontent.com/u/40864195?v=4","gravatar_id":"","url":"https://api.github.com/users/ehealthua-tech","html_url":"https://github.com/ehealthua-tech","followers_url":"https://api.github.com/users/ehealthua-tech/followers","following_url":"https://api.github.com/users/ehealthua-tech/following{/other_user}","gists_url":"https://api.github.com/users/ehealthua-tech/gists{/gist_id}","starred_url":"https://api.github.com/users/ehealthua-tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehealthua-tech/subscriptions","organizations_url":"https://api.github.com/users/ehealthua-tech/orgs","repos_url":"https://api.github.com/users/ehealthua-tech/repos","events_url":"https://api.github.com/users/ehealthua-tech/events{/privacy}","received_events_url":"https://api.github.com/users/ehealthua-tech/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T13:44:34Z","updated_at":"2018-07-27T13:44:34Z","author_association":"COLLABORATOR","body":"наразі ми бачимо наступну ситуацію, роблячи запити в eHealth:\r\n1. Ми бачимо employee_id=13b462da-78c8-4bd7-9460-8c6abe7dce6c, employee_id = 47a464b5-643b-4cd2-a03e-2c2a3219901b, які знаходяться в стані DISMISSED. При чому дата звільнення в цих записах - 2018-03-29.\r\n2. При запиті декларацій за цими двома id, ми бачимо 641 та 1517 АКТИВНИХ декларацій. При чому, для кожного з employee_id останні декларації були створені 2018-07-24.\r\n\r\nПриклад запитів: \r\nhttps://api.ehealth-ukraine.org/api/declarations?employee_id=47a464b5-643b-4cd2-a03e-2c2a3219901b&status=active\r\nhttps://api.ehealth-ukraine.org/api/declarations?employee_id=13b462da-78c8-4bd7-9460-8c6abe7dce6c&status=active\r\n\r\nТому зараз виходить така ситуація, що два лікаря були звільнені 2018-03-29 та ще майже чотири місяця створювали декларації.\r\nЦі два лікаря звернулися до нас 2 дні тому. До цього часу вони створювали декларації. З нашого боку операції Deactivate не було.\r\n\r\njson:\r\nhttps://drive.google.com/drive/u/0/folders/1uVH8W-yLep9w2xCZVfU2yRUinq_OxEGc"}}
{"actor":{"display_login":"ehealthua-tech"}}