4.1.2 S1002获取部门信息
<p>[TOC]</p>
<table>
<thead>
<tr>
<th>服务编码</th>
<th>S1002</th>
</tr>
</thead>
<tbody>
<tr>
<td>服务名称</td>
<td>获取部门信息</td>
</tr>
<tr>
<td>功能简述</td>
<td>根据多种条件查询部门信息</td>
</tr>
</tbody>
</table>
<h4>详细描述(应用场景、数据处理逻辑描述)</h4>
<ol>
<li>支持单一查询(如科室id、科室名称查询)</li>
<li>支持按部门性质查询,如只检查或检验</li>
<li>支持全量数据查询,考虑数据可能超长,采用分页模式,缺省每页返回500条记录</li>
</ol>
<h4>入参示例</h4>
<pre><code>{
&quot;query_key&quot;: &quot;1&quot;,
&quot;query_content&quot;: &quot;118&quot;,
&quot;page_no&quot;: &quot;&quot;,
&quot;query_site&quot;: &quot;&quot;
}
</code></pre>
<table>
<thead>
<tr>
<th>节点</th>
<th>父节点</th>
<th>类型</th>
<th>必填</th>
<th>数组</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>query_key</td>
<td></td>
<td>C</td>
<td>1</td>
<td></td>
<td>查询方式:0-分页查询所有;1-部门id;2-部门编码;3-部门名称;4-部门性质(如检验、检查..)</td>
</tr>
<tr>
<td>query_content</td>
<td></td>
<td>C</td>
<td></td>
<td></td>
<td>查询关键值,query_key=0时不传入,否则传入对应查询方式的业务关键值</td>
</tr>
<tr>
<td>page_no</td>
<td></td>
<td>C</td>
<td></td>
<td></td>
<td>页号:缺省为1,每页显示500条记录,不足500则按实际记录数返回</td>
</tr>
<tr>
<td>query_site</td>
<td></td>
<td>C</td>
<td></td>
<td></td>
<td>站点传入作为联合查询条件</td>
</tr>
</tbody>
</table>
<h4>出参示例</h4>
<pre><code>{
&quot;code&quot;: 200,
&quot;message&quot;: &quot;成功&quot;,
&quot;success&quot;: true,
&quot;result&quot;: [
{
&quot;seq&quot;: &quot;1&quot;,
&quot;page_no&quot;: &quot;1&quot;,
&quot;item_id&quot;: &quot;118&quot;,
&quot;item_no&quot;: &quot;331&quot;,
&quot;parent_no&quot;: &quot;33&quot;,
&quot;item_name&quot;: &quot;【北】超声科&quot;,
&quot;add_no&quot;: null,
&quot;mark&quot;: null,
&quot;create_date&quot;: &quot;2014-09-12 17:15:51&quot;,
&quot;modify_date&quot;: &quot;2014-09-12 17:15:51&quot;,
&quot;item_stat&quot;: &quot;S&quot;,
&quot;item_end&quot;: null,
&quot;parent_id&quot;: &quot;116&quot;,
&quot;parent_name&quot;: &quot;辅检科室&quot;,
&quot;expired_date&quot;: &quot;3000-01-01 00:00:00&quot;,
&quot;dept_addr&quot;: null,
&quot;dept_addr_code&quot;: null,
&quot;contacts_name&quot;: null,
&quot;dept_site&quot;: null,
&quot;clnispec_code&quot;: null,
&quot;clnispec_name&quot;: null,
&quot;inp_bed_no&quot;: null,
&quot;staff_by&quot;: &quot;BCSK&quot;,
&quot;dept_relation&quot;: null
}
]
}
</code></pre>