Skip Navigation
Healthcare Cost and Utilization Project logo
KID Description of Data Elements
The KID is set of longitudinal hospital inpatient databases included in the HCUP family. These databases are created by AHRQ through a Federal-State-Industry partnership.
search icon
 
  Home      Databases      Tools & Software      Reports      News & Events      Technical Assistance   
 
LOS - Length of stay, cleaned
 
Documentation Sections:
General Notes
Uniform Values
State Specific Notes
General Notes
 

Length of stay (LOS) is calculated by subtracting the admission date (ADATE) from the discharge date (DDATE). Same-day stays are therefore coded as 0. Leave days are not subtracted. Before edit checks are performed, LOS and LOS_X have the same value. If LOS is set to inconsistent (.C), the value of LOS_X is retained.

LOS is not equal to the calculated value in the following cases:

  • LOS is set to the supplied length of stay if the length of stay cannot be calculated (ADATE and/or DDATE is missing or invalid). Note: If the supplied length of stay codes same-day stays as 1 or subtracts leave days, then the supplied length of stay is NOT used.
  • LOS is missing (.) if the length of stay cannot be calculated and the supplied length of stay is missing.
  • LOS is invalid (.A) if
    • it is greater than the maximum value allowed during HCUP processing (the maximum allowed in the 1988-1997 data is 32,767; the maximum allowed beginning in the 1998 data is 20 years)
    • - or -
    • the length of stay cannot be calculated and the supplied length of stay is nonnumeric.
  • An invalid calculated LOS is not replaced by the supplied length of stay.
  • If the data source does not supply either admission date (ADATE) and discharge date (DDATE), or length of stay, then beginning in the 1998 data LOS is not present on the HCUP files. In the 1988-1997 data, LOS is retained on the HCUP files and is set to unavailable from source (.B).
  • LOS is inconsistent (.C) if
    • LOS is negative (ELOS03 beginning in the 1998 data and ED011 in the 1988-1997 data),
    • Excessively long (ELOS04 beginning in the 1998 data and ED601 in the 1988-1997 data), or
    • Charges per day are unjustifiably low (ED911) or high (ED921).

Edit checks ED911 and ED921 are only performed on the 1988-1997 data. No charge per day edit checks are performed on the HCUP data beginning in the 1998 data.

 
Top
 
Uniform Values
VariableDescriptionValueValue Description
LOSLength of stay, cleaned0 - 365 (for HCUP inpatient data), 0-3 (for HCUP outpatient data)Days (In the 1988-1997 inpatient data, LOS can be greater than 365 days)
.Missing
.AInvalid
.BUnavailable from source (coded in 1988-1997 data only)
.CInconsistent: beginning with 1998 data, ELOS03, ELOS04; in 1988-1997 data, ED011, ED601, ED911n, ED921
 
Top
 
 
State Specific Notes

Arizona

Beginning in 1995, the source reports same-day stays as zero days so the supplied length of stay was used to assign LOS when length of stay could not be calculated from dates. Prior to 1995, the reported length of stay was not used when LOS could not be calculated because Arizona coded same-day stays with a value of 1 and subtracted days of absence from LOS.

Beginning with 2005, reported length of stay is no longer supplied.



Colorado

The reported length of stay was not used when LOS could not be calculated because Colorado:

  • coded same-day stays with the value 1 and
  • subtracted days of absence


Connecticut

Length of stay could not be calculated from dates since Connecticut did not report full admission and discharge dates. During HCUP processing, the reported length of stay and a flag which indicates same-day stays were used to assign LOS. If the same-day flag was not coded, the reported length of stay was retained as supplied (i.e., if the reported length of stay was 1 and the same-day flag is not coded, then LOS is set to 1 and not reset to 0).



Florida

Beginning in 2004, Florida provided admission date (ADATE) and discharge date (DDATE) the supplied length of stay was used when LOS and LOS_X could not be calculated from the supplied dates. In 2000-2003, the supplied length of stay was used to assign LOS and LOS_X because Florida did not provide the admission and discharge date necessary for calculating length of stay. The supplied length of stay was coded according to the HCUP standard that assigns a length of stay of zero (0) to same day stays.

In 1997-1999, the coding of LOS and LOS_X is inconsistent with the coding of length of stay in other states. Florida provided the reported length of stay but not the admission and discharge date necessary for calculating LOS. Florida codes same-day stays as LOS=1; the HCUP standard coding of same-day stays is LOS=0. Usually 2% of a states' discharges are same-day stays.

Prior to 1997, the reported length of stay was not used when LOS could not be calculated because Florida:

  • coded same-day stays with the value 1 and
  • subtracted days of absence.


Georgia

Beginning with the 2001 data, Georgia no longer codes same day stays with a value of 1. Reported length of stay is used when length of stay cannot be calculated.

Prior to 2001, the reported length of stay was not used when LOS could not be calculated because Georgia coded same-day stays with a value of 1.



Hawaii

Only the calculated length of stay could be used to assign LOS because Hawaii did not supply reported length of stay.



Iowa

The reported length of stay was not used when LOS could not be calculated because Iowa coded same-day stays with a value of 1.



Kansas

The reported length of stay was not used when LOS could not be calculated because Kansas coded same-day stays with a value of 1.



Kentucky

The reported length of stay was not used when LOS could not be calculated because Kentucky coded same-day stays with a value of 1.



Massachusetts

The supplied length of stay was not used when LOS could not be calculated because Massachusetts:

  • coded same-day stays with the value 1 and
  • subtracted days of absence.


Missouri

The reported length of stay was not used when LOS could not be calculated because Missouri coded same-day stays with a value of 1. The appropriate edit check for consistency of reported and calculated length of stay could not be performed.



New York

The assignment of LOS and LOS_X varies by year in New York:

  • Beginning in 2000 data, the length of stay (LOS and LOS_X) in New York was calculated from the admission and discharge dates. Because New York masked the dates on AIDS/HIV* records, the calculated length of stay was missing. During HCUP processing, other information provided by New York was used to determine LOS and LOS_X when the calculated length of stay was missing. The length of stay provided by New York (which did not include leave days), total leave days, and a flag that indicates a same day stay were used to determine a length of stay that was consistent with the coding of length of stay on other HCUP records.


  • In the 1998-1999 data purchased from NTIS, the length of stay (LOS and LOS_X) in New York was calculated from the admission and discharge dates. Because New York masked the admission and discharge dates on AIDS/HIV* records, LOS and LOS_X was missing (.) on these discharges. An updated version of the 1998-1999 data is available through the HCUP Central Distributor with LOS and LOS_X coded on the New York AIDS/HIV* records. The updated version has LOS and LOS_X calculated using the method described for the 2000 data.


    In the 1998-1999 data purchased from HCUP Central Distributor, the length of stay (LOS and LOS_X) in New York was calculated using the method described for the 2000 data.


  • In the 1988-1997 HCUP data, LOS and LOS_X could not be calculated from dates because New York did not report full admission and discharge dates. During HCUP processing, the length of stay provided by New York was used to assign LOS and LOS_X. The length of stay provided by New York was adjusted during HCUP processing to be consistent with the coding of length of stay in other states.

*New York identifies AIDS/HIV records by ICD-9-CM diagnosis code or DRG:

  • An admitting, principal, or secondary diagnosis of "042" "043" "044" "7958" "27910", "27919", "2793", "1363", "79571", "07951", "07952", "07953" or "V08".
  • A DRG of 488 "HIV with Extensive Operating Room Procedure", 489 "HIV with Major related condition", or 490 "HIV with or without Other Related Condition".

Please note that the admitting diagnosis is not retained in the HCUP databases.



North Carolina

The reported length of stay was not used when LOS could not be calculated because North Carolina coded same-day stays with the value 1.



other

The reported length of stay was not used when LOS could not be calculated because Oklahoma coded same-day stays with the value 1.



Oregon

Prior to 1994, the reported length of stay was assigned to LOS if dates were not available. However, the coding of same day stay varies: some Oregon hospitals report discharges on the day of admission as one day stay (LOS=1), in addition to reporting same day stay as zero days (LOS=0).

Beginning in 1994, the reported length of stay was not used when LOS could not be calculated from dates because Oregon coded all same-day stays as one day (LOS=1).



other

Prior to 1997, the reported length of stay was not used when LOS could not be calculated because Pennsylvania coded same-day stays with a value of 1 and subtracted days of absence from LOS. The appropriate edit check for consistency of reported and calculated length of stay could not be performed.

Beginning in 1997, Pennsylvania reports same-day stays as zero days. The supplied length of stay was used to assign LOS when length of stay could not be calculated from dates.



South Carolina

The reported length of stay was not used when LOS could not be calculated because South Carolina coded same-day stays with a value of 1.



Tennessee

Only the calculated length of stay could be used to assign LOS because Tennessee did not report length of stay.



Texas

The reported length of stay was not used when LOS could not be calculated because Texas coded same-day stays with the value 1.



Utah

Prior to 2004, the reported length of stay was not used when LOS could not be calculated because Utah coded same-day stays with a value of 1. Beginning in 2004, Utah coded same day stays with a value of 0.



Washington

The reported length of stay was not used when LOS could not be calculated because Washington:

  • coded same-day stays with the value 1 and
  • subtracted days of absence.


West Virginia

Beginning in 2001, West Virginia provides LOS.

Prior to 2001, only the calculated length of stay was used to assign LOS because West Virginia did not provide the reported length of stay.



Wisconsin

Only the calculated length of stay was used to assign LOS and LOS_X. For 1988-1994, the reported length of stay was not used when LOS could not be calculated because Wisconsin subtracted leave days and coded length of stay greater than 999 days as 999 days. Beginning with 1995, length of stay was not supplied.


 
Top
 
 

Additional information is available on the AHRQ Website.
If you have comments, suggestions, and/or questions, please contact hcup@ahrq.gov.
Are you having problems viewing or printing pages on this Website?
Internet Citation: HCUP KID Description of Data Elements. Healthcare Cost and Utilization Project (HCUP). April 2008
Agency for Healthcare Research and Quality, Rockville, MD. www.hcup-us.ahrq.gov/db/vars/los/kidnote.jsp.
Last modified 4/2/08