Age: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
m (removed supercategories, tweaked template calls)
(One intermediate revision by the same user not shown)
Line 28: Line 28:


====SAS ====
====SAS ====
{{Discuss | who = Julie |
Do you still use the SAS formula, let's confirm it's all gone and all coming from CreatedVariables
}}


*Age=floor((intck('month',Birth,R_Adm) - (day(R_Adm) < day(Birth))) / 12)  
*Age=floor((intck('month',Birth,R_Adm) - (day(R_Adm) < day(Birth))) / 12)  
**where  Birth = Date of Birth and R_Adm = (Accept DtTm if available, Arrive DtTm otherwise)
**where  Birth = Date of Birth and R_Adm = (Accept DtTm if available, Arrive DtTm otherwise)
Decided to keep this for now for cross-checking even though it duplicates the calculation in Access.


== Related fields ==
== Related fields ==

Revision as of 14:40, 2021 June 11

Data Element (edit)
Field Name: age
CCMDB Label: not stated
CCMDB tab: not stated
Table: Created_Variables_Common table, Created_Variables_CC table
Data type: number
Length:
Program: Med and CC
Created/Raw: Created
Start Date: 1988-07-11
End Date: 2300-01-01
Sort Index: 3

The number of years between Date of Birth and the last birthday prior to or on (Accept DtTm if applicable, Arrive DtTm otherwise).

  • SMW

Legacy implementation right in the table

  • Cargo


  • Categories
  • Forms


See page

Indicators
Indicator: Age
Created/Raw: Created
Program: Critical Care and Medicine
Start Date: 1988-07-11
End Date:
Reports: Critical Care Program Quality Indicator Report, Directors Quarterly and Annual Report (Medicine), STB ICCS Mortality


  • Cargo


  • SMW:
  • Categories
  • Default form:

Age is part of the APACHE II score for Critical Care and ALERT Scale used in Medicine.

Function to calculate Age

  • Both formula yields the same AGE values.

ACCESS

  • CCMDB_Age = excel.WorksheetFunction.Floor(CInt(DateDiff("yyyy", DOB, Adm)) + Int(Format(Adm, "mmdd") < Format(DOB, "mmdd")), 1)

SAS

  • Age=floor((intck('month',Birth,R_Adm) - (day(R_Adm) < day(Birth))) / 12)
    • where Birth = Date of Birth and R_Adm = (Accept DtTm if available, Arrive DtTm otherwise)

Related fields

Related articles

Related articles: