Skip to main content

Список движений пациента

Описание

Возвращает информацию о документах движения пациента по номеру карты. Для доступа к методу применяется авторизация по токену

#!php

/udata/data/getMovementsByHospitalizationCard/{$cardNum}/{$mode}/
ПараметрОписание
$cardNumномер карты
$modeобъем возвращаемых данных: full или base

Формат ответа в режиме FULL

#!xml

<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getMovementsByHospitalizationCard" generation-time="0.246800">
    <response>
        <code>200</code>
        <data>
            <item>
                <id>1</id>
                <date>2019-08-05</date>
                <hospitalization_id>7</hospitalization_id>
                <dateon>2019-08-08 13:48:53</dateon>
                <dateupdate></dateupdate>
                <type>
                    <id>2</id>
                    <guid>moveout</guid>
                    <name>Выписка</name>
                    <is_active>1</is_active>
                </type>
                <dest_branch></dest_branch>
                <dest_department></dest_department>
                <dest_bed></dest_bed>
            </item>
            <item>
                <id>10</id>
                <date>2019-09-01</date>
                <hospitalization_id>7</hospitalization_id>
                <dateon>2019-08-08 14:58:30</dateon>
                <dateupdate></dateupdate>
                <type>
                    <id>1</id>
                    <guid>transfer</guid>
                    <name>Перевод</name>
                    <is_active>1</is_active>
                </type>
                <dest_branch>
                    <id>168</id>
                    <parent_id></parent_id>
                    <name>Наименование принимающего МО</name>
                    <code>080001</code>
                    <num>7</num>
                    <address></address>
                    <is_active>1</is_active>
                </dest_branch>
                <dest_department>
                    <id>96</id>
                    <name>сурдологии-оториноларингологии</name>
                    <is_active>1</is_active>
                </dest_department>
                <dest_bed>
                    <id>73</id>
                    <department_profile_id>98</department_profile_id>
                    <name>токсикологические</name>
                    <is_active>1</is_active>
                </dest_bed>
            </item>
        </data>
    </response>
</udata>

Формат ответа в режиме BASE

#!xml

<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getMovementsByHospitalizationCard" generation-time="0.091602">
    <response>
        <code>200</code>
        <data>
            <item>
                <id>1</id>
                <date>2019-08-05</date>
                <hospitalization_id>7</hospitalization_id>
                <type_id>2</type_id>
                <dest_branch_id></dest_branch_id>
                <dest_department_id></dest_department_id>
                <dest_bed_id></dest_bed_id>
                <dateon>2019-08-08 13:48:53</dateon>
                <dateupdate></dateupdate>
            </item>
            <item>
                <id>10</id>
                <date>2019-09-01</date>
                <hospitalization_id>7</hospitalization_id>
                <type_id>1</type_id>
                <dest_branch_id>168</dest_branch_id>
                <dest_department_id>96</dest_department_id>
                <dest_bed_id>73</dest_bed_id>
                <dateon>2019-08-08 14:58:30</dateon>
                <dateupdate></dateupdate>
            </item>
        </data>
    </response>
</udata>