ehealth-ua / api-spec

Apache License 2.0
30 stars 24 forks source link

Додати declaration_number в GET /api/declarations list #363

Closed sreva closed 6 years ago

sreva commented 6 years ago

Потрібно додати declaration_number в GET /api/declarations list

svetavedmed commented 6 years ago

это уже сделано на дев

sreva commented 6 years ago

коли планується в прод?

lymychp commented 6 years ago

Плануємо сьогодні. Вже на препроді. Можна перевірити

sreva commented 6 years ago

запит GET https://denovo.ehealth.world/api/declarations?status=active

відповідь


            "updated_at": "2018-04-25T15:06:26.421619Z",
            "status": "active",
            "start_date": "2018-04-25",
            "reason_description": null,
            "reason": null,
            "person": {
                "second_name": "Толиславовна",
                "last_name": "Юрченко",
                "id": "3c175382-c765-4b72-9e72-c313c3339c2b",
                "first_name": "Рогволода"
            },
            "legal_entity": {
                "short_name": "3**5",
                "name": "4567889",
                "id": "9d9bcdcb-e572-495c-8bdb-ce07a2ea9675",
                "edrpou": "34554355"
            },
            "inserted_at": "2018-04-25T15:06:26.421611Z",
            "id": "0fd18cfa-b6d0-4229-b386-2f30e1c9130c",
            "end_date": "2021-04-25",
            "employee": {
                "position": "P7",
                "id": "78b2444e-66e9-4ed1-9309-310222a356f2",
                "employee_type": "DOCTOR"
            },
            "division": {
                "name": "Сімейні лікарі",
                "id": "8f6b2f56-8570-4018-b89f-3adb92539e79"
            },
            "declaration_request_id": "e9495273-9903-449a-b07f-708c4b18a194"
        },
        {
            "updated_at": "2018-04-25T14:30:51.502354Z",
            "status": "active",
            "start_date": "2018-04-25",
            "reason_description": null,
            "reason": null,
            "person": {
                "second_name": "Перемисловна",
                "last_name": "Івахів",
                "id": "4db4a787-f84e-4632-b4a0-ba46d76eb776",
                "first_name": "Силослава"
            },
            "legal_entity": {
                "short_name": "3**5",
                "name": "4567889",
                "id": "9d9bcdcb-e572-495c-8bdb-ce07a2ea9675",
                "edrpou": "34554355"
            },
            "inserted_at": "2018-04-25T14:30:51.502341Z",
            "id": "615d5fdc-b4dd-4dd8-860e-04fdded572df",
            "end_date": "2021-04-25",
            "employee": {
                "position": "P7",
                "id": "f2b75f3e-219c-400b-a23e-d11383879f95",
                "employee_type": "DOCTOR"
            },
            "division": {
                "name": "Назва моя моя",
                "id": "c3e89230-50a4-4898-b31b-56b57002b288"
            },
            "declaration_request_id": "ec0ffba3-b583-44b7-970c-ae0b15422450"
        } 

поки на препроді немає
ehealthua commented 6 years ago

@sreva есть в респонсе и реквесте. Поправим спецификацию.