/* PROGRAM: ED99SAS PURPOSE: INPUT STATEMENT TO CREATE 1999 ED PUBLIC USE FILE We recommend that you use a MISSOVER option in your INFILE statement. Note that the value of LRECL may equal or exceed the actual file size. We use a value of 999 for convenience. EXAMPLE: INFILE [file reference] MISSOVER LRECL=999; */ INPUT @001 VMONTH 2. /* Month of visit */ @003 VYEAR 4. /* Year of visit */ @007 VDAYR 1. /* Day of week of visit - recoded */ @008 TIMEVIS $char4. /* Time of visit - military time */ @012 AGE 3. /* Patient age in years */ @015 ARRIVE 1. /* Mode of arrival */ @016 SEX 1. /* Patient sex */ @017 PREGNANT 1. /* If female, is patient pregnant? */ @018 ETHNIC 1. /* Patient ethnicity */ @019 RACE 1. /* Patient race - recoded */ @020 WAITTIME 3. /* Waiting time to see physician (in minutes) */ @023 PAYTYPE 1. /* Primary expected source of payment for this visit*/ @024 HMO 1. /* Does patient belong to an HMO? */ @025 URGENT 1. /* Immediacy with which patient should be seen */ @026 PAIN 1. /* Presenting level of pain */ @027 RFV1 5. /* Patient's reason for visit #1 */ @032 RFV2 5. /* Patient's reason for visit #2 */ @037 RFV3 5. /* Patient's reason for visit #3 */ @027 RFV13D 4. /* Patient's reason for visit #1 - broad */ @032 RFV23D 4. /* Patient's reason for visit #2 - broad */ @037 RFV33D 4. /* Patient's reason for visit #3 - broad */ @042 INJURY 1. /* Is visit related to injury or poisoning? */ @043 PLACE 1. /* Place of occurrence of injury */ @044 INTENT 1. /* Intentionality of injury from checkbox */ @045 WORKREL 1. /* Is injury work related? */ @046 CAUSE1 $char4. /* Cause of injury #1 */ @050 CAUSE2 $char4. /* Cause of injury #2 */ @054 CAUSE3 $char4. /* Cause of injury #3 */ @046 CAUSE13D $char3. /* Cause of injury #1 - broad */ @050 CAUSE23D $char3. /* Cause of injury #2 - broad */ @054 CAUSE33D $char3. /* Cause of injury #3 - broad */ @058 VCAUSE $char100. /* Verbatim cause of injury */ @158 DIAG1 $char5. /* Physician's diagnosis #1 */ @163 DIAG2 $char5. /* Physician's diagnosis #2 */ @168 DIAG3 $char5. /* Physician's diagnosis #3 */ @158 DIAG13D $char3. /* Physician's diagnosis #1 - broad */ @163 DIAG23D $char3. /* Physician's diagnosis #2 - broad */ @168 DIAG33D $char3. /* Physician's diagnosis #3 - broad */ @173 PRDIAG1 1. /* Is DIAG1 probable, questionable or ruleout? */ @174 PRDIAG2 1. /* Is DIAG2 probable, questionable or ruleout? */ @175 PRDIAG3 1. /* Is DIAG3 probable, questionable or ruleout? */ @176 DIAGSCRN 1. /* Were diagnostic/screen serv ordered/provided? */ @177 MENTSTAT 1. /* Mental status exam */ @178 BLODPRES 1. /* Blood pressure test */ @179 EKG 1. /* EKG */ @180 CARDMON 1. /* Cardiac monitor */ @181 PULSOXIM 1. /* Pulse oximetry */ @182 URINE 1. /* Urinalysis */ @183 PREGTEST 1. /* Pregnancy test */ @184 HIVSER 1. /* HIV serology */ @185 OTHERSTD 1. /* Other STD test */ @186 BLOODALC 1. /* Blood alcohol concentration */ @187 CBC 1. /* CBC */ @188 OTHERBLD 1. /* Other blood test */ @189 OTHERSCR 1. /* Other diagnostic/screening service */ @190 DIAGSC1 $char4. /* Other diag/screen service #1 */ @194 DIAGSC2 $char4. /* Other diag/screen service #2 */ @190 DIAGSC13 $char3. /* Other diag/screen service #1 - 3 dgt */ @194 DIAGSC23 $char3. /* Other diag/screen service #2 - 3 dgt */ @190 DIAGSC12 $char2. /* Other diag/screen service #1 - 2 dgt */ @194 DIAGSC22 $char2. /* Other diag/screen service #2 - 2 dgt */ @198 CHESTXRY 1. /* Chest X-ray */ @199 EXTRXRAY 1. /* Extremity X-ray */ @200 OTHERXRY 1. /* Other X-ray */ @201 MRI 1. /* MRI */ @202 ULTRASND 1. /* Ultrasound */ @203 CATSCAN 1. /* CAT scan */ @204 OTHDIAG 1. /* Other diagnostic imaging */ @205 TOTDIAG 2. /* Total # of diagnostic/screening services */ @207 PROC 1. /* Were procedures provided? */ @208 ENDOINT 1. /* Endotracheal intubation */ @209 CPR 1. /* CPR */ @210 IVFLUIDS 1. /* IV fluids */ @211 NGTUBE 1. /* NG tube/Gastric lavage */ @212 LUMBPUNC 1. /* Lumbar puncture */ @213 BLADCATH 1. /* Bladder catheter */ @214 WOUND 1. /* Wound care */ @215 EYEENT 1. /* Eye/ENT care */ @216 ORTHOPED 1. /* Orthopedic care */ @217 OBGYN 1. /* OB/GYN care */ @218 OTHERPRC 1. /* Other procedure */ @219 PROC1 $char4. /* Other procedure #1 */ @223 PROC2 $char4. /* Other procedure #2 */ @219 PROC13 $char3. /* Other procedure #1 - 3 dgt */ @223 PROC23 $char3. /* Other procedure #2 - 3 dgt */ @219 PROC12 $char2. /* Other procedure #1 - 2 dgt */ @223 PROC22 $char2. /* Other procedure #2 - 2 dgt */ @227 TOTPROC 2. /* Total # of procedures */ @229 MED 1. /* Were medications/injections ordered/provided? */ @230 MED1 $char5. /* Medication #1 */ @235 MED2 $char5. /* Medication #2 */ @240 MED3 $char5. /* Medication #3 */ @245 MED4 $char5. /* Medication #4 */ @250 MED5 $char5. /* Medication #5 */ @255 MED6 $char5. /* Medication #6 */ @260 NUMMED 1. /* Number of medications coded */ @261 NOPROVID 1. /* Providers seen: No answer to item */ @262 STAFFPHY 1. /* Staff physician seen */ @263 RESINT 1. /* Resident/Intern seen */ @264 OTHERPHY 1. /* Other Physician seen */ @265 PHYSASST 1. /* Physician assistant seen */ @266 NURSEPR 1. /* Nurse practitioner seen */ @267 RN 1. /* Registered nurse seen */ @268 LPN 1. /* Licensed practical nurse seen */ @269 MEDNURSE 1. /* Medical/Nursing assistant seen */ @270 EMT 1. /* Emergency medical technician seen */ @271 OTHERPRV 1. /* Other provider seen */ @272 NODISP 1. /* Visit disposition: No answer to item */ @273 NOFOLLOW 1. /* No follow-up planned */ @274 EDPRN 1. /* Return to ED, P.R.N. (as needed)/Appointment */ @275 REFPHYS 1. /* Returned to referring physician */ @276 OUTTRIAG 1. /* Referred out from triage without treatment */ @277 REFOTHPH 1. /* Referred to other physician/clinic */ @278 LEFT 1. /* Left before being seen */ @279 ADMITHOS 1. /* Admitted to hospital */ @280 ADMITCCU 1. /* Admitted to ICU/CCU */ @281 TRANSFER 1. /* Transferred to other facility */ @282 DOA 1. /* DOA/Died in ED */ @283 REFSOCS 1. /* Referred to social services */ @284 OTHERDIS 1. /* Other disposition */ @285 PATWT 6. /* Patient visit weight (rounded) */ @291 REGION 1. /* Geographic region of hospital */ @292 URBAN 1. /* Metro/non-metro status of location of hospital */ @293 OWNSMG 1. /* Hospital ownership */ @294 HOSPCODE 3. /* Hospital code */ @297 PATCODE 3. /* Patient code */ @300 VDATEFL 1. /* Was visit date imputed? */ @301 VTIMEFL 1. /* Was visit time imputed? */ @302 BDATEFL 1. /* Was birth year imputed? */ @303 SEXFL 1. /* Was sex imputed? */ @304 RACEFL 1. /* Was race imputed? */ @305 URGENTFL 1. /* Was immediacy imputed? */ @306 GEN1 $char5. /* Generic name code for drug #1 */ @311 PRESCR1 1. /* Prescription status code for drug #1 */ @312 CONTSUB1 1. /* Controlled substance code for drug #1 */ @313 COMSTAT1 1. /* Composition status code for drug #1 */ @314 DRUGCL1 $char4. /* Drug class for drug #1 */ @318 DRG1ING1 $char5. /* Ingredient code #1 for drug #1 */ @323 DRG1ING2 $char5. /* Ingredient code #2 for drug #1 */ @328 DRG1ING3 $char5. /* Ingredient code #3 for drug #1 */ @333 DRG1ING4 $char5. /* Ingredient code #4 for drug #1 */ @338 DRG1ING5 $char5. /* Ingredient code #5 for drug #1 */ @343 GEN2 $char5. /* Generic name code for drug #2 */ @348 PRESCR2 1. /* Prescription status code for drug #2 */ @349 CONTSUB2 1. /* Controlled substance code for drug #2 */ @350 COMSTAT2 1. /* Composition status code for drug #2 */ @351 DRUGCL2 $char4. /* Drug class for drug #2 */ @355 DRG2ING1 $char5. /* Ingredient code #1 for drug #2 */ @360 DRG2ING2 $char5. /* Ingredient code #2 for drug #2 */ @365 DRG2ING3 $char5. /* Ingredient code #3 for drug #2 */ @370 DRG2ING4 $char5. /* Ingredient code #4 for drug #2 */ @375 DRG2ING5 $char5. /* Ingredient code #5 for drug #2 */ @380 GEN3 $char5. /* Generic name code for drug #3 */ @385 PRESCR3 1. /* Prescription status code for drug #3 */ @386 CONTSUB3 1. /* Controlled substance code for drug #3 */ @387 COMSTAT3 1. /* Composition status code for drug #3 */ @388 DRUGCL3 $char4. /* Drug class for drug #3 */ @392 DRG3ING1 $char5. /* Ingredient code #1 for drug #3 */ @397 DRG3ING2 $char5. /* Ingredient code #2 for drug #3 */ @402 DRG3ING3 $char5. /* Ingredient code #3 for drug #3 */ @407 DRG3ING4 $char5. /* Ingredient code #4 for drug #3 */ @412 DRG3ING5 $char5. /* Ingredient code #5 for drug #3 */ @417 GEN4 $char5. /* Generic name code for drug #4 */ @422 PRESCR4 1. /* Prescription status code for drug #4 */ @423 CONTSUB4 1. /* Controlled substance code for drug #4 */ @424 COMSTAT4 1. /* Composition status code for drug #4 */ @425 DRUGCL4 $char4. /* Drug class for drug #4 */ @429 DRG4ING1 $char5. /* Ingredient code #1 for drug #4 */ @434 DRG4ING2 $char5. /* Ingredient code #2 for drug #4 */ @439 DRG4ING3 $char5. /* Ingredient code #3 for drug #4 */ @444 DRG4ING4 $char5. /* Ingredient code #4 for drug #4 */ @449 DRG4ING5 $char5. /* Ingredient code #5 for drug #4 */ @454 GEN5 $char5. /* Generic name code for drug #5 */ @459 PRESCR5 1. /* Prescription status code for drug #5 */ @460 CONTSUB5 1. /* Controlled substance code for drug #5 */ @461 COMSTAT5 1. /* Composition status code for drug #5 */ @462 DRUGCL5 $char4. /* Drug class for drug #5 */ @466 DRG5ING1 $char5. /* Ingredient code #1 for drug #5 */ @471 DRG5ING2 $char5. /* Ingredient code #2 for drug #5 */ @476 DRG5ING3 $char5. /* Ingredient code #3 for drug #5 */ @481 DRG5ING4 $char5. /* Ingredient code #4 for drug #5 */ @486 DRG5ING5 $char5. /* Ingredient code #5 for drug #5 */ @491 GEN6 $char5. /* Generic name code for drug #6 */ @496 PRESCR6 1. /* Prescription status code for drug #6 */ @497 CONTSUB6 1. /* Controlled substance code for drug #6 */ @498 COMSTAT6 1. /* Composition status code for drug #6 */ @499 DRUGCL6 $char4. /* Drug class for drug #6 */ @503 DRG6ING1 $char5. /* Ingredient code #1 for drug #6 */ @508 DRG6ING2 $char5. /* Ingredient code #2 for drug #6 */ @513 DRG6ING3 $char5. /* Ingredient code #3 for drug #6 */ @518 DRG6ING4 $char5. /* Ingredient code #4 for drug #6 */ @523 DRG6ING5 $char5. /* Ingredient code #5 for drug #6 */ @528 RACER 1. /* Patient race recode: White, Black, Other */ @529 AGEDAYS 3. /* Age in days for patients less than 1 year */ @532 AGER 1. /* Patient age recode */ @533 CAUSE1R 4. /* Cause of injury #1 - numeric recode */ @537 CAUSE2R 4. /* Cause of injury #2 - numeric recode */ @541 CAUSE3R 4. /* Cause of injury #3 - numeric recode */ @545 DIAG1R 6. /* Physician's diagnosis #1 - numeric recode */ @551 DIAG2R 6. /* Physician's diagnosis #2 - numeric recode */ @557 DIAG3R 6. /* Physician's diagnosis #3 - numeric recode */ @563 DIAGSC1R 4. /* Other diag/screen serv #1 - numeric recode */ @567 DIAGSC2R 4. /* Other diag/screen serv #2 - numeric recode */ @571 PROC1R 4. /* Other procedure #1 - numeric recode */ @575 PROC2R 4. /* Other procedure #2 - numeric recode */ @579 WHOCOMP 1. /* Who completed the Patient Record forms? */ @580 INTENTR 1. /* Intentionality of injury - recoded */ @621 STRATM 3. /* PSU stratum marker (masked) */ @624 PSUM 5. /* PSU marker (masked) */ @629 YEAR 4. /* Survey year (1999) */ @633 SUBFILE 1. /* Survey identifier (constant=2 for NHAMCS) */ @634 PROSTRAT 2. /* Provider stratum marker */ @636 PROVIDER 4. /* Provider code */ @640 DEPT 1. /* Hospital department code */ @641 SU 3. /* Hospital sampling unit code */ @644 CLINIC 3. /* Hospital clinic code */ @647 POPPSUM 2. /* Stratum counts of PSUs (masked) */ @649 POPSUM 3. /* # of clinic sampling units in hos (masked) */ @652 POPVISM 6. /* Estimated provider visit volume (masked) */ @658 POPPROVM 6. /* Estimated # of inscope providers in PSU (masked) */ ;