Список госпитализаций

Описание 
 Возвращает cписок госпитализаций. Для доступа к методу применяется авторизация по токену 
 #!php

/udata/data/getHospitalizations/{$date}/{$mode}/{$status}/{$form}/{$emergency}
 
 
 
 
 Параметр 
 Описание 
 
 
 
 
 $date 
 дата госпитализации в формате 'Y-m-d' 
 
 
 $mode 
 объем возвращаемых данных: full или base 
 
 
 $status 
 ID или GUID статуса # 
 
 
 $form 
 ID или GUID формы оказания помощи # 
 
 
 $emergency 
 ID или GUID экстренности # 
 
 
 
 Формат ответа в режиме FULL 
 #!xml

<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getHospitalizations" generation-time="0.787981">
 <response>
 <code>200</code>
 <data>
 <item>
 <id>7</id>
 <direction_id></direction_id>
 <date>2019-08-01</date>
 <dest_card_num>20036</dest_card_num>
 <datein_fact>2019-08-01 13:14:00</datein_fact>
 <dateout_plan>2019-08-21</dateout_plan>
 <dateout_fact></dateout_fact>
 <dateon>2019-08-01 10:51:59</dateon>
 <dateupdate></dateupdate>
 <status>
 <id>1</id>
 <guid>added</guid>
 <name>Зарегистрирован</name>
 <is_active>1</is_active>
 </status>
 <form>
 <id>1</id>
 <guid>hospital</guid>
 <name>стационар</name>
 <is_active>1</is_active>
 </form>
 <emergency>
 <id>3</id>
 <guid>extra</guid>
 <name>экстренная</name>
 <is_active>1</is_active>
 </emergency>
 <patient>
 <id>24</id>
 <birthday>1991-06-10</birthday>
 <sex>м</sex>
 <fname>Петр</fname>
 <sname>Ивашов</sname>
 <lname>Карлович</lname>
 <phone>89188892937</phone>
 </patient>
 <policy>
 <id>47</id>
 <citizen_id>24</citizen_id>
 <num>2658800825000197</num>
 <is_active>1</is_active>
 <type>
 <id>3</id>
 <guid>enp</guid>
 <name>Полис ОМС единого образца</name>
 <is_active>1</is_active>
 </type>
 <company>
 <id>25</id>
 <code>03107</code>
 <name>ООО "СК "ИНГОССТРАХ-М"</name>
 <region_code>03</region_code>
 <is_active>1</is_active>
 </company>
 </policy>
 <member></member>
 <member_policy></member_policy>
 <dir_branch>
 <id>4</id>
 <parent_id>1</parent_id>
 <name>Наименование направившего МО</name>
 <code>080001</code>
 <num>3</num>
 <address></address>
 <is_active>1</is_active>
 </dir_branch>
 <dest_branch>
 <id>6</id>
 <parent_id>1</parent_id>
 <name>Пример добавления</name>
 <code>080002</code>
 <num>5</num>
 <address>Ул Ромашка</address>
 <is_active>1</is_active>
 </dest_branch>
 <dest_diagnosis>
 <id>5</id>
 <code>I60.2</code>
 <name>I60.2 - Субарахноидальное кровоизлияние из передней соединительной артерии</name>
 <period_ksg>6</period_ksg>
 </dest_diagnosis>
 <dest_department>
 <id>97</id>
 <name>терапии</name>
 <is_active>1</is_active>
 </dest_department>
 <dest_bed>
 <id>72</id>
 <department_profile_id>97</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="getHospitalizations" generation-time="0.113177">
 <response>
 <code>200</code>
 <data>
 <item>
 <id>7</id>
 <direction_id></direction_id>
 <date>2019-08-01</date>
 <status_id>1</status_id>
 <form_id>1</form_id>
 <emergency_id>3</emergency_id>
 <patient_id>24</patient_id>
 <policy_id>47</policy_id>
 <member_id></member_id>
 <member_policy_id></member_policy_id>
 <dir_branch_id>4</dir_branch_id>
 <dest_branch_id>6</dest_branch_id>
 <dest_diagnosis_id>5</dest_diagnosis_id>
 <dest_department_id>97</dest_department_id>
 <dest_bed_id>72</dest_bed_id>
 <dest_card_num>20036</dest_card_num>
 <datein_fact>2019-08-01 13:14:00</datein_fact>
 <dateout_plan>2019-08-21</dateout_plan>
 <dateout_fact></dateout_fact>
 <dateon>2019-08-01 10:51:59</dateon>
 <dateupdate></dateupdate>
 </item>
 </data>
 </response>
</udata>