Информация о госпитализации по номеру направления

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

/udata/data/getHospitalizationByDirectionNum/{$directionNum}/{$mode}/
 
 
 
 
 Параметр 
 Описание 
 
 
 
 
 $directionNum 
 номер направления 
 
 
 $mode 
 объем возвращаемых данных: full или base 
 
 
 
 Формат ответа в режиме FULL 
 #!xml

<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getHospitalizationByDirectionNum" generation-time="2.469769">
 <response>
 <code>200</code>
 <data>
 <id>3</id>
 <direction_id>27</direction_id>
 <date>2019-08-01</date>
 <dest_card_num>20034</dest_card_num>
 <datein_fact>2019-08-01 13:14:00</datein_fact>
 <dateout_plan>2019-08-21</dateout_plan>
 <dateout_fact>2019-08-05</dateout_fact>
 <dateon>2019-08-01 10:44:27</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>1</id>
 <guid>planned</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>
 <id>24</id>
 <birthday>1991-06-10</birthday>
 <sex>м</sex>
 <fname>Петр</fname>
 <sname>Ивашов</sname>
 <lname>Карлович</lname>
 <phone>89188892937</phone>
 </member>
 <member_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>
 </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>168</id>
 <parent_id></parent_id>
 <name>Наименование принимающего МО</name>
 <code>080001</code>
 <num>7</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>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>
 </data>
 </response>
</udata>
 
 Формат ответа в режиме BASE 
 #!xml

<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getHospitalizationByDirectionNum" generation-time="0.093314">
 <response>
 <code>200</code>
 <data>
 <id>3</id>
 <direction_id>27</direction_id>
 <date>2019-08-01</date>
 <status_id>1</status_id>
 <form_id>1</form_id>
 <emergency_id>1</emergency_id>
 <patient_id>24</patient_id>
 <policy_id>47</policy_id>
 <member_id>24</member_id>
 <member_policy_id>47</member_policy_id>
 <dir_branch_id>4</dir_branch_id>
 <dest_branch_id>168</dest_branch_id>
 <dest_diagnosis_id>5</dest_diagnosis_id>
 <dest_department_id>96</dest_department_id>
 <dest_bed_id>73</dest_bed_id>
 <dest_card_num>20034</dest_card_num>
 <datein_fact>2019-08-01 13:14:00</datein_fact>
 <dateout_plan>2019-08-21</dateout_plan>
 <dateout_fact>2019-08-05</dateout_fact>
 <dateon>2019-08-01 10:44:27</dateon>
 <dateupdate></dateupdate>
 </data>
 </response>
</udata>