Skip to content

Commit 3c9922a

Browse files
authored
Merge pull request #342 from patryllus/feat/AddLimsSchedulerForPushingTests
Adding a scheduler task to push lab orders to LIMS Labware
2 parents 4fff8d9 + ad6076f commit 3c9922a

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

api/src/main/resources/liquibase.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,5 +485,29 @@
485485
<column name="uuid" value="69f82c72-43ac-46f0-ac35-8d9b71599700" />
486486
</insert>
487487
</changeSet>
488+
<!--Adding scheduled task to push lab results to LIMS Labware system-->
489+
<changeSet id="kenyaemr_order_entry_push_lims_test_202508221250" author="pwangoo">
490+
<preConditions onFail="MARK_RAN">
491+
<sqlCheck expectedResult="0">
492+
SELECT COUNT(*) FROM scheduler_task_config
493+
WHERE schedulable_class = 'org.openmrs.module.kenyaemrorderentry.task.FacilityBasedLimsIntegrationTask'
494+
And name = 'Push Lab Results to LIMS'
495+
</sqlCheck>
496+
</preConditions>
497+
<comment>Inserting processor for pushing lims lab tests into 'schedule_task_config' table</comment>
498+
<insert tableName="scheduler_task_config">
499+
<column name="name" value="Push Lab Results to LIMS" />
500+
<column name="description" value="Push Lab Results to LIMs lab system" />
501+
<column name="schedulable_class" value="org.openmrs.module.kenyaemrorderentry.task.FacilityBasedLimsIntegrationTask" />
502+
<column name="start_time_pattern" value="MM/dd/yyyy HH:mm:ss" />
503+
<column name="start_time" valueDate="2025-08-22T08:59:59" />
504+
<column name="repeat_interval" value="1800" />
505+
<column name="date_created" valueDate="CURRENT_TIMESTAMP" />
506+
<column name="created_by" value="1" />
507+
<column name="start_on_startup" value="0" />
508+
<column name="started" value="0" />
509+
<column name="uuid" value="4095348b-d158-45e6-b1d2-698437f9f1d6" />
510+
</insert>
511+
</changeSet>
488512

489-
</databaseChangeLog>
513+
</databaseChangeLog>

0 commit comments

Comments
 (0)