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_X - Length of stay, as received from data source
 
Documentation Sections:
General Notes
Uniform Values
State Specific Notes
General Notes
 

Length of stay (LOS_X) 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_X may contain negative or excessively large values.

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

  • LOS_X 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_X is missing (.) if the length of stay cannot be calculated and the supplied length of stay is missing.
  • LOS_X 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_X 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_X is not present on the HCUP files. In the 1988-1997 data, LOS_X is retained on the HCUP files and is set to unavailable from source (.B).
 
Top
 
Uniform Values
VariableDescriptionValueValue Description
LOS_XLength of stay, as received from data source+/- 7,305Days (In the 1988-1997 inpatient data, LOS_X can be greater than 7,305 days)
.Missing
.AInvalid (nonnumeric or out of range)
.BUnavailable from source (coded in 1988-1997 data only)
 
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_X when length of stay could not be calculated from dates. Prior to 1995, the reported length of stay was not used when LOS_X 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

Beginning in 2007, the reported length of stay was used when LOS could not be calculated during the HCUP processing.

The reported length of stay was not used when LOS_X 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_X. 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_X 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_X. Florida codes same-day stays as LOS_X=1; the HCUP standard coding of same-day stays is LOS_X=0. Usually 2% of a states' discharges are same-day stays.

Prior to 1997, the supplied length of stay was not used when length of stay 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_X 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_X because Hawaii did not supply reported length of stay.



Iowa

The reported length of stay was not used when length of stay 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 length of stay 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_X 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_X could not be calculated because Missouri coded same-day stays with a value of 1.



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_X could not be calculated because North Carolina coded same-day stays with the value 1.



Ohio

Only the calculated length of stay could be used to assign LOS_X because Ohio codes same day stays with a value of 1.



Oregon

Prior to 1994, the reported length of stay was assigned to LOS_X 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_X=1), in addition to reporting same day stays as zero days (LOS_X=0).

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



other

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

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



South Carolina

The reported length of stay was not used when LOS_X 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_X because Tennessee did not report length of stay.



Texas

The reported length of stay was not used when LOS_X 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 length of stay 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_X.

Prior to 2001, only the calculated length of stay was used to assign LOS_X 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). September 2008
Agency for Healthcare Research and Quality, Rockville, MD. www.hcup-us.ahrq.gov/db/vars/los_x/kidnote.jsp.
Last modified 9/17/08