Project

General

Profile

Feature #976

Create 3 tags to bangladesh

Added by Maurício Dos Santos over 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
12/02/2013
Due date:
% Done:

0%


Description

Create the following 3 tags to bangladesh after daily update is implemented...

Cases without culture results by over than 120 days - If the last culture exam has more than 120 days.
select *
from tbcase a
where
a.state in (0,1,2)
and exists(select *
from examculture ecu
where ecu.datecollected = (select max(ecu2.datecollected) from examculture ecu2 where ecu2.case_id = ecu.case_id)

and (DATE_ADD(ecu.datecollected, INTERVAL 120 DAY)) <= curdate()

and a.id = ecu.case_id);

Cases without microscopy results by over than 60 days - If the last microscopy exam has more than 60 days until today
select *
from tbcase a
where
a.state in (1,2)

and exists(select *
from exammicroscopy em
where em.datecollected = (select max(em2.datecollected) from exammicroscopy em2 where em2.case_id = em.case_id)

and (DATE_ADD(em.datecollected, INTERVAL 60 DAY)) <= curdate()

and a.id = em.case_id);

Cases without outcome by the end of treatment - Cases that the treatment end date is before today.
select * from tbcase a where
a.state < 3
and a.endtreatmentdate > curdate();

Automated tags.JPG (73.6 KB) Luis Gustavo do Valle Bastos, 12/17/2013 04:55 PM

400

History

#1 Updated by Maurício Dos Santos over 11 years ago

  • Assignee set to Maurício Dos Santos

Waiting validation of daily update functionality.

#2 Updated by Maurício Dos Santos over 11 years ago

  • Status changed from In Progress to Resolved

#3 Updated by Luis Gustavo do Valle Bastos over 11 years ago

  • File Automated tags.JPG added
  • Tracker changed from Bug to Feature
  • Status changed from Resolved to Feedback
400

Time for daily updating isn't happing as planned, i.e., 03:00am. It's seems to be 17 minutes delayed. See figure attached.

#4 Updated by Maurício Dos Santos about 11 years ago

  • Status changed from Feedback to In Progress

#5 Updated by Maurício Dos Santos about 11 years ago

The 3 tags are being daily updated and are functional... But the time that is being displayed as the execution time of the daily update is not right. Apparently the tags are being updated at the wrong time and the Time zone converting is not working properly.

A talk with Ricardo is needed.

#6 Updated by Maurício Dos Santos about 11 years ago

Tags were being updated at 20:17, there were a mistake on the taskscheduler code, not it is ok!

Now I will just wait for bangladesh server to be updated and check if it is being executed at the right time.

#7 Updated by Maurício Dos Santos almost 11 years ago

  • Status changed from In Progress to Resolved

#8 Updated by Ricardo Memoria over 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF