Difference between revisions of "Thirty days mortality"

From ECHSA Congenital Database
Jump to navigationJump to search
m
(The definition changed, SQL snippet added)
Line 1: Line 1:
 
{{terminology-infobox}}
 
{{terminology-infobox}}
  
'''Thirty Days Mortality''' is the fraction of patients that died within 30 days from the date of surgery or before date of discharge from a hospital (even if it was more than 30 days from date of surgery).
+
'''Thirty Days Mortality''' is the fraction of patients that died within 30 days from the date of surgery.
  
For a single patient, thirty days mortality can be ''true'' or ''false''. Condition for ''true'' is:
+
For a each patient, thirty days mortality can be ''true'' or ''false''. Condition for ''true'' is:
  
''Patient died and was operated not earlier than 30 days before death or the date of death is less or equal to the date of discharge.''
+
'''There is an operation for which the difference between date of surgery and date of death is less or equal to 30 days.'''
  
 
Example of patient history with ''true'':
 
Example of patient history with ''true'':
  
*2000-01-01 birth
+
2000-01-01 birth
*2000-01-15 operation 1
+
2000-01-15 operation 1
*2000-02-12 operation 2
+
2000-02-12 operation 2
*2000-03-01 death
+
2000-03-01 death
  
Even though the first (main) operation was more than 30 days before patient's death, there exists a second (probably trivial) operation after which the patient deceased.
+
Even though the first (main) operation was more than 30 days before patient's death, there exists a second (possibly trivial) operation after which the patient deceased.
 +
 
 +
SQL code snippet for the thirty days mortality:
 +
 
 +
SELECT ...
 +
FROM patient AS p
 +
WHERE EXISTS (
 +
    SELECT TRUE
 +
    FROM operation AS o
 +
    WHERE p.patient_id = o.patient_id
 +
    AND p.date_of_death - o.date_of_surgery BETWEEN 0 AND 30
 +
)
  
 
'''See also'''
 
'''See also'''

Revision as of 19:15, 15 February 2006

Terminology
Report parameters
Data

Thirty Days Mortality is the fraction of patients that died within 30 days from the date of surgery.

For a each patient, thirty days mortality can be true or false. Condition for true is:

There is an operation for which the difference between date of surgery and date of death is less or equal to 30 days.

Example of patient history with true:

2000-01-01 birth
2000-01-15 operation 1
2000-02-12 operation 2
2000-03-01 death

Even though the first (main) operation was more than 30 days before patient's death, there exists a second (possibly trivial) operation after which the patient deceased.

SQL code snippet for the thirty days mortality:

SELECT ...
FROM patient AS p
WHERE EXISTS (
   SELECT TRUE
   FROM operation AS o
   WHERE p.patient_id = o.patient_id
   AND p.date_of_death - o.date_of_surgery BETWEEN 0 AND 30
)

See also