2025-01-15 10:27:06 +03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2024-12-09 10:21:30 +03:00
|
|
|
<pipeline>
|
|
|
|
|
<info>
|
2025-05-12 14:39:11 +03:00
|
|
|
<name>disease</name>
|
2024-12-09 10:21:30 +03:00
|
|
|
<name_sync_with_filename>Y</name_sync_with_filename>
|
|
|
|
|
<description/>
|
|
|
|
|
<extended_description/>
|
|
|
|
|
<pipeline_version/>
|
|
|
|
|
<pipeline_type>Normal</pipeline_type>
|
|
|
|
|
<parameters>
|
|
|
|
|
</parameters>
|
|
|
|
|
<capture_transform_performance>N</capture_transform_performance>
|
|
|
|
|
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
|
|
|
|
|
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
|
|
|
|
|
<created_user>-</created_user>
|
|
|
|
|
<created_date>2024/08/15 14:02:51.713</created_date>
|
|
|
|
|
<modified_user>-</modified_user>
|
|
|
|
|
<modified_date>2024/08/15 14:02:51.713</modified_date>
|
|
|
|
|
</info>
|
|
|
|
|
<notepads>
|
|
|
|
|
</notepads>
|
|
|
|
|
<order>
|
|
|
|
|
<hop>
|
|
|
|
|
<from>Table input</from>
|
|
|
|
|
<to>Table output</to>
|
2025-01-15 10:27:06 +03:00
|
|
|
<enabled>N</enabled>
|
|
|
|
|
</hop>
|
|
|
|
|
<hop>
|
|
|
|
|
<from>Table input</from>
|
|
|
|
|
<to>Insert / update</to>
|
2024-12-09 10:21:30 +03:00
|
|
|
<enabled>Y</enabled>
|
|
|
|
|
</hop>
|
|
|
|
|
</order>
|
2025-02-05 14:16:44 +03:00
|
|
|
<transform>
|
|
|
|
|
<name>Insert / update</name>
|
|
|
|
|
<type>InsertUpdate</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
2025-06-10 13:41:05 +03:00
|
|
|
<commit>10000</commit>
|
2025-02-05 14:16:44 +03:00
|
|
|
<connection>ervu-dashboard</connection>
|
|
|
|
|
<lookup>
|
|
|
|
|
<key>
|
|
|
|
|
<condition>=</condition>
|
|
|
|
|
<field>recruit_id</field>
|
|
|
|
|
<name>recruit_id</name>
|
2025-06-10 13:41:05 +03:00
|
|
|
<name2/>
|
2025-05-12 14:39:11 +03:00
|
|
|
</key>
|
|
|
|
|
<key>
|
|
|
|
|
<condition>=</condition>
|
|
|
|
|
<field>reg_date</field>
|
|
|
|
|
<name>reg_date</name>
|
2025-06-10 13:41:05 +03:00
|
|
|
<name2/>
|
2025-02-05 14:16:44 +03:00
|
|
|
</key>
|
|
|
|
|
<schema>ervu_dashboard</schema>
|
2025-05-12 14:39:11 +03:00
|
|
|
<table>disease</table>
|
2025-02-05 14:16:44 +03:00
|
|
|
<value>
|
|
|
|
|
<name>recruit_id</name>
|
|
|
|
|
<rename>recruit_id</rename>
|
|
|
|
|
<update>N</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
2025-05-12 14:39:11 +03:00
|
|
|
<name>code</name>
|
|
|
|
|
<rename>code</rename>
|
2025-02-05 14:16:44 +03:00
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
2025-05-12 14:39:11 +03:00
|
|
|
<name>name</name>
|
|
|
|
|
<rename>name</rename>
|
2025-02-05 14:16:44 +03:00
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
2025-05-12 14:39:11 +03:00
|
|
|
<name>reg_date</name>
|
|
|
|
|
<rename>reg_date</rename>
|
2025-02-05 14:16:44 +03:00
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
2025-06-10 13:41:05 +03:00
|
|
|
<value>
|
|
|
|
|
<name>has_disease</name>
|
|
|
|
|
<rename>has_disease</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
2025-02-05 14:16:44 +03:00
|
|
|
</lookup>
|
|
|
|
|
<update_bypassed>N</update_bypassed>
|
|
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
2025-05-12 14:39:11 +03:00
|
|
|
<xloc>448</xloc>
|
|
|
|
|
<yloc>208</yloc>
|
2025-02-05 14:16:44 +03:00
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
2024-12-09 10:21:30 +03:00
|
|
|
<transform>
|
|
|
|
|
<name>Table input</name>
|
|
|
|
|
<type>TableInput</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<connection>ervu_person_registry</connection>
|
2025-01-15 10:27:06 +03:00
|
|
|
<execute_each_row>N</execute_each_row>
|
|
|
|
|
<limit>0</limit>
|
2025-06-10 13:41:05 +03:00
|
|
|
<sql>with zdorov as (select ri.recruit_id,
|
|
|
|
|
jsonb_array_elements(
|
|
|
|
|
ri.info -> 'svedFL' -> 'svedSostZdorov' -> 'svedZdorov' ->
|
|
|
|
|
'sostZdorov') z,
|
|
|
|
|
case
|
|
|
|
|
when ri.info -> 'svedFL' -> 'svedSostZdorov' -> 'svedZdorov' ->>
|
|
|
|
|
'priznakNalichSved' = '1'
|
|
|
|
|
then true
|
|
|
|
|
else false end as has_disease
|
|
|
|
|
from public.recruits_info ri
|
|
|
|
|
join public.recruits r
|
|
|
|
|
ON r.id = ri.recruit_id
|
|
|
|
|
AND r.system_update_date >= '${UP_D}'
|
|
|
|
|
where jsonb_typeof(ri.info -> 'svedFL' -> 'svedSostZdorov' -> 'svedZdorov' ->
|
|
|
|
|
'sostZdorov') = 'array')
|
|
|
|
|
select recruit_id,
|
|
|
|
|
z ->> 'kodZabol' code,
|
|
|
|
|
z ->> 'naimZabol' name,
|
|
|
|
|
has_disease,
|
|
|
|
|
to_date(z ->> 'dataDiagn', 'YYYY-MM-DD') reg_date
|
|
|
|
|
from zdorov;</sql>
|
2025-02-05 14:16:44 +03:00
|
|
|
<variables_active>Y</variables_active>
|
2024-12-09 10:21:30 +03:00
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
2025-05-12 14:39:11 +03:00
|
|
|
<xloc>208</xloc>
|
|
|
|
|
<yloc>208</yloc>
|
2024-12-09 10:21:30 +03:00
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
|
|
|
|
<transform>
|
|
|
|
|
<name>Table output</name>
|
|
|
|
|
<type>TableOutput</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<commit>1000</commit>
|
2025-01-15 10:27:06 +03:00
|
|
|
<connection>ervu-dashboard</connection>
|
|
|
|
|
<fields>
|
|
|
|
|
</fields>
|
2024-12-09 10:21:30 +03:00
|
|
|
<ignore_errors>N</ignore_errors>
|
2025-01-15 10:27:06 +03:00
|
|
|
<only_when_have_rows>N</only_when_have_rows>
|
2024-12-09 10:21:30 +03:00
|
|
|
<partitioning_daily>N</partitioning_daily>
|
2025-01-15 10:27:06 +03:00
|
|
|
<partitioning_enabled>N</partitioning_enabled>
|
2024-12-09 10:21:30 +03:00
|
|
|
<partitioning_monthly>Y</partitioning_monthly>
|
2025-01-15 10:27:06 +03:00
|
|
|
<return_keys>N</return_keys>
|
|
|
|
|
<schema>ervu_dashboard</schema>
|
|
|
|
|
<specify_fields>N</specify_fields>
|
2025-05-12 14:39:11 +03:00
|
|
|
<table>disease</table>
|
2024-12-09 10:21:30 +03:00
|
|
|
<tablename_in_field>N</tablename_in_field>
|
|
|
|
|
<tablename_in_table>Y</tablename_in_table>
|
2025-01-15 10:27:06 +03:00
|
|
|
<truncate>N</truncate>
|
|
|
|
|
<use_batch>Y</use_batch>
|
|
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
2025-05-12 14:39:11 +03:00
|
|
|
<xloc>464</xloc>
|
|
|
|
|
<yloc>64</yloc>
|
2025-01-15 10:27:06 +03:00
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
2024-12-09 10:21:30 +03:00
|
|
|
<transform_error_handling>
|
|
|
|
|
</transform_error_handling>
|
|
|
|
|
<attributes/>
|
|
|
|
|
</pipeline>
|