/* PROGRAM: ED05INP PURPOSE: INPUT STATEMENT TO CREATE 2005 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 @1 VMONTH 2. /*Month of Visit */ @3 VYEAR 4. /*Year of Visit */ @7 VDAYR 1. /*Day of Week of Visit */ @8 AGE 3. /*Patient age in years */ @11 ARRTIME $char4. /*Arrival time - Military time */ @15 WAITTIME 4. /*Waiting time to see physician (minutes) */ @19 LOV 4. /*Length of visit (minutes) */ @23 RESIDNCE 1. /*Patient residence */ @24 ARRIVE 1. /*Mode of arrival */ @25 SEX 1. /*Patient Sex */ @26 ETHNIC 1. /*Patient Ethnicity */ @27 RACE 1. /*Patient Race */ @28 PAYPRIV 1. /*Private insurance */ @29 PAYMCARE 1. /*Medicare */ @30 PAYMCAID 1. /*Medicaid */ @31 PAYWKCMP 1. /*Workers Compensation */ @32 PAYSELF 1. /*Self pay */ @33 PAYNOCHG 1. /*No charge */ @34 PAYOTH 1. /*Other source of payment */ @35 PAYDK 1. /*Unknown source of payment */ @36 PAYTYPE 1. /*Expected source of payment */ @37 TEMPF 4. /*Temperature in Fahrenheit */ @41 PULSE 3. /*Initial pulse */ @44 BPSYS 3. /*Initial BP - Systolic */ @47 BPDIAS 3. /*Initial BP - Diastolic */ @50 ORIENTED 1. /*Oriented x 3 */ @51 IMMED 1. /*Immediacy with which patient should be seen */ @52 PAIN 1. /*Presenting level of pain */ @53 SEEN72 1. /*Seen in ED last 72 hours? */ @54 DISCH7DA 1. /*Discharged from any hospital w/in last 7 days*/ @55 RFV1 5. /*Patient's reason for visit #1 */ @60 RFV2 5. /*Patient's reason for visit #2 */ @65 RFV3 5. /*Patient's reason for visit #3 */ @55 RFV13D 4. /*Patient's reason for visit #1 - broad */ @60 RFV23D 4. /*Patient's reason for visit #2 - broad */ @65 RFV33D 4. /*Patient's reason for visit #3 - broad */ @70 VRFV $CHAR100. /*Verbatim reason for visit */ @170 VWORKREL 1. /*Is visit work related? */ @171 INJURY 1. /*Is visit related to injury or poisoning? */ @172 INTENT 1. /*Intentionality of injury */ @173 CAUSE1 $CHAR4. /*Cause of injury #1 */ @177 CAUSE2 $CHAR4. /*Cause of injury #2 */ @181 CAUSE3 $CHAR4. /*Cause of injury #3 */ @173 CAUSE13D $CHAR3. /*Cause of injury #1 - broad */ @177 CAUSE23D $CHAR3. /*Cause of injury #2 - broad */ @181 CAUSE33D $CHAR3. /*Cause of injury #3 - broad */ @185 VCAUSE $CHAR75. /*Cause of injury-verbatim text */ @260 DIAG1 $CHAR5. /*Physician's diagnosis #1 */ @265 DIAG2 $CHAR5. /*Physician's diagnosis #2 */ @270 DIAG3 $CHAR5. /*Physician's diagnosis #3 */ @260 DIAG13D $CHAR3. /*Physician's diagnosis #1 - broad */ @265 DIAG23D $CHAR3. /*Physician's diagnosis #2 - broad */ @270 DIAG33D $CHAR3. /*Physician's diagnosis #3 - broad */ @275 PRDIAG1 1. /*Is DIAG1 probable, questionable, or ruleout? */ @276 PRDIAG2 1. /*Is DIAG2 probable, questionable, or ruleout? */ @277 PRDIAG3 1. /*Is DIAG3 probable, questionable, or ruleout? */ @278 DIAGSCRN 1. /*Were diagnostic services ordered or provided?*/ @279 CBC 1. /*CBC */ @280 BUNCREAT 1. /*BUN (Blood urea nitrogen)/creatinine */ @281 CARDENZ 1. /*Cardiac Enzymes */ @282 ELECTROL 1. /*Electrolytes */ @283 GLUCOSE 1. /*Glucose */ @284 LFT 1. /*Liver Function Tests */ @285 ABG 1. /*Arteriel Blood Gases */ @286 BAC 1. /*Blood alcohol */ @287 HIVSER 1. /*HIV serology */ @288 OTHERBLD 1. /*Other blood test */ @289 EKG 1. /*EKG/ECG (electrocardiogram) */ @290 CARDMON 1. /*Cardiac monitor */ @291 PULSOXIM 1. /*Pulse oximetry */ @292 PREGTEST 1. /*Pregnancy test */ @293 URINE 1. /*Urinalysis */ @294 OTHRTEST 1. /*Other test/service */ @295 ANYIMAGE 1. /*Was any imaging ordered or provided? */ @296 XRAY 1. /*X-ray */ @297 ULTRASND 1. /*Ultrasound */ @298 MRI 1. /*MRI */ @299 CATSCAN 1. /*CAT scan */ @300 OTHIMAGE 1. /*Other imaging */ @301 TOTDIAG 2. /*Total number of tests/services */ @303 PROC 1. /*Were procedures provided? */ @304 BLADCATH 1. /*Bladder catheter */ @305 CPR 1. /*CPR */ @306 ENDOINT 1. /*Endotracheal intubation */ @307 IVFLUIDS 1. /*IV fluids */ @308 NEBUTHER 1. /*Nebulizer therapy */ @309 NGTUBE 1. /*NG tube/gastric lavage */ @310 OBGYN 1. /*OB/GYN care */ @311 ORTHO 1. /*Orthopedic care */ @312 THROMBO 1. /*Thrombolytic therapy */ @313 WOUND 1. /*Wound care */ @314 OTHPROC 1. /*Other procedure */ @315 TOTPROC 2. /*Total number of procedures */ @317 MED 1. /*Were medications prescribed or provided? */ @318 MED1 $CHAR5. /*Medication 1 */ @323 MED2 $CHAR5. /*Medication 2 */ @328 MED3 $CHAR5. /*Medication 3 */ @333 MED4 $CHAR5. /*Medication 4 */ @338 MED5 $CHAR5. /*Medication 5 */ @343 MED6 $CHAR5. /*Medication 6 */ @348 MED7 $CHAR5. /*Medication 7 */ @353 MED8 $CHAR5. /*Medication 8 */ @358 GPMED1 1. /*Med #1 given in ED or RX at discharge? */ @359 GPMED2 1. /*Med #2 given in ED or RX at discharge? */ @360 GPMED3 1. /*Med #3 given in ED or RX at discharge? */ @361 GPMED4 1. /*Med #4 given in ED or RX at discharge? */ @362 GPMED5 1. /*Med #5 given in ED or RX at discharge? */ @363 GPMED6 1. /*Med #6 given in ED or RX at discharge? */ @364 GPMED7 1. /*Med #7 given in ED or RX at discharge? */ @365 GPMED8 1. /*Med #8 given in ED or RX at discharge? */ @366 NUMGIV 1. /*Number of meds given in ED */ @367 NUMDIS 1. /*Number of meds prescribed at discharge */ @368 NUMMED 1. /*Number of medications coded */ @369 NOPROVID 1. /*No answer to provider seen item */ @370 ATTPHYS 1. /*ED attending physician seen */ @371 RESINT 1. /*Resident/Intern seen */ @372 ONCALL 1. /*On call attending physician/fellow seen */ @373 RNLPN 1. /*Registered nurse/LPN seen */ @374 NURSEPR 1. /*Nurse practitioner seen */ @375 PHYSASST 1. /*Physician assistant seen */ @376 EMT 1. /*EMT */ @377 OTHPROV 1. /*Other provider seen */ @378 NODISP 1. /*No answer to disposition item */ @379 NOFU 1. /*No follow up planned */ @380 RETPRN 1. /*Return if needed PRN/appointment */ @381 RETREFFU 1. /*Return/refer to physician/clinic for FU */ @382 REFSOCS 1. /*Refer to social services */ @383 LEFTAMA 1. /*Left AMA */ @384 LEFT 1. /*Left without being seen */ @385 DOA 1. /*DOA/died in ED */ @386 TRANSFER 1. /*Transfer to different hospital */ @387 RFTRANS 1. /*Reason for transfer */ @388 ADMITOBS 1. /*Admit to observation unit */ @389 ADMITHOS 1. /*Admit to hospital */ @390 OTHDISP 1. /*Other disposition */ @391 ADMIT 1. /*If admitted, to what unit? */ @392 LOS 4. /*If admitted, length of stay in hosp (days) */ @396 HDDIAG $CHAR5. /*Principal hospital discharge diagnosis */ @401 HDSTAT 1. /*Hospital discharge status */ @402 PATWT 6. /*Patient visit weight */ @408 REGION 1. /*Geographic region */ @409 MSA 1. /*MSA or non-MSA area */ @410 OWNER 1. /*Hospital ownership */ @411 BLANK 1. /*Reserved for future use */ @412 BLANK 1. /*Reserved for future use */ @413 BLANK 1. /*Reserved for future use */ @414 HOSPCODE 3. /*Hospital number */ @417 PATCODE 3. /*Patient code */ @420 BDATEFL 1. /*Birth date imputed? */ @421 SEXFL 1. /*Sex imputed? */ @422 ETHNICFL 1. /*Ethnicity imputed? */ @423 RACEFL 1. /*Race imputed? */ @424 IMMEDFL 1. /*Immediacy imputed? */ @425 GEN1 $CHAR5. /*Generic code for med #1 */ @430 PRESCR1 1. /*Prescription status code */ @431 CONTSUB1 1. /*Controlled status code */ @432 COMSTAT1 1. /*Composition status code */ @433 DRUG1CL1 $char4. /*NDC code #1 for medication #1 */ @437 DRUG1CL2 $char4. /*NDC code #2 for medication #1 */ @441 DRUG1CL3 $char4. /*NDC code #3 for medication #1 */ @445 DRG1ING1 $CHAR5. /*Ing. #1 */ @450 DRG1ING2 $CHAR5. /*Ing. #2 */ @455 DRG1ING3 $CHAR5. /*Ing. #3 */ @460 DRG1ING4 $CHAR5. /*Ing. #4 */ @465 DRG1ING5 $CHAR5. /*Ing. #5 */ @470 GEN2 $CHAR5. /*Generic code for med. #2 */ @475 PRESCR2 1. /*Prescription status code */ @476 CONTSUB2 1. /*Controlled status code */ @477 COMSTAT2 1. /*Composition status code */ @478 DRUG2CL1 $CHAR4. /*NDC code #1 for medication #2 */ @482 DRUG2CL2 $CHAR4. /*NDC code #2 for medication #2 */ @486 DRUG2CL3 $CHAR4. /*NDC code #3 for medication #2 */ @490 DRG2ING1 $CHAR5. /*Ing. #1 */ @495 DRG2ING2 $CHAR5. /*Ing. #2 */ @500 DRG2ING3 $CHAR5. /*Ing. #3 */ @505 DRG2ING4 $CHAR5. /*Ing. #4 */ @510 DRG2ING5 $CHAR5. /*Ing. #5 */ @515 GEN3 $CHAR5. /*Generic code for med. #3 */ @520 PRESCR3 1. /*Prescription status code */ @521 CONTSUB3 1. /*Controlled status code */ @522 COMSTAT3 1. /*Composition status code */ @523 DRUG3CL1 $CHAR4. /*NDC code #1 for medication #3 */ @527 DRUG3CL2 $CHAR4. /*NDC code #2 for medication #3 */ @531 DRUG3CL3 $CHAR4. /*NDC code #3 for medication #3 */ @535 DRG3ING1 $CHAR5. /*Ing. #1 */ @540 DRG3ING2 $CHAR5. /*Ing. #2 */ @545 DRG3ING3 $CHAR5. /*Ing. #3 */ @550 DRG3ING4 $CHAR5. /*Ing. #4 */ @555 DRG3ING5 $CHAR5. /*Ing. #5 */ @560 GEN4 $CHAR5. /*Generic code for med. #4 */ @565 PRESCR4 1. /*Prescription status code */ @566 CONTSUB4 1. /*Controlled status code */ @567 COMSTAT4 1. /*Composition status code */ @568 DRUG4CL1 $CHAR4. /*NDC code #1 for medication #4 */ @572 DRUG4CL2 $CHAR4. /*NDC code #2 for medication #4 */ @576 DRUG4CL3 $CHAR4. /*NDC code #3 for medication #4 */ @580 DRG4ING1 $CHAR5. /*Ing. #1 */ @585 DRG4ING2 $CHAR5. /*Ing. #2 */ @590 DRG4ING3 $CHAR5. /*Ing. #3 */ @595 DRG4ING4 $CHAR5. /*Ing. #4 */ @600 DRG4ING5 $CHAR5. /*Ing. #5 */ @605 GEN5 $CHAR5. /*Generic code for med. #5 */ @610 PRESCR5 1. /*Prescription status code */ @611 CONTSUB5 1. /*Controlled status code */ @612 COMSTAT5 1. /*Composition status code */ @613 DRUG5CL1 $CHAR4. /*NDC code #1 for medication #5 */ @617 DRUG5CL2 $CHAR4. /*NDC code #2 for medication #5 */ @621 DRUG5CL3 $CHAR4. /*NDC code #3 for medication #5 */ @625 DRG5ING1 $CHAR5. /*Ing. #1 */ @630 DRG5ING2 $CHAR5. /*Ing. #2 */ @635 DRG5ING3 $CHAR5. /*Ing. #3 */ @640 DRG5ING4 $CHAR5. /*Ing. #4 */ @645 DRG5ING5 $CHAR5. /*Ing. #5 */ @650 GEN6 $CHAR5. /*Generic code for med. #6 */ @655 PRESCR6 1. /*Prescription status code */ @656 CONTSUB6 1. /*Controlled status code */ @657 COMSTAT6 1. /*Composition status code */ @658 DRUG6CL1 $CHAR4. /*NDC code #1 for medication #6 */ @662 DRUG6CL2 $CHAR4. /*NDC code #2 for medication #6 */ @666 DRUG6CL3 $CHAR4. /*NDC code #3 for medication #6 */ @670 DRG6ING1 $CHAR5. /*Ing. #1 */ @675 DRG6ING2 $CHAR5. /*Ing. #2 */ @680 DRG6ING3 $CHAR5. /*Ing. #3 */ @685 DRG6ING4 $CHAR5. /*Ing. #4 */ @690 DRG6ING5 $CHAR5. /*Ing. #5 */ @695 GEN7 $CHAR5. /*Generic code for med. #7 */ @700 PRESCR7 1. /*Prescription status code */ @701 CONTSUB7 1. /*Controlled status code */ @702 COMSTAT7 1. /*Composition status code */ @703 DRUG7CL1 $CHAR4. /*NDC code #1 for medication #7 */ @707 DRUG7CL2 $CHAR4. /*NDC code #2 for medication #7 */ @711 DRUG7CL3 $CHAR4. /*NDC code #3 for medication #7 */ @715 DRG7ING1 $CHAR5. /*Ing. #1 */ @720 DRG7ING2 $CHAR5. /*Ing. #2 */ @725 DRG7ING3 $CHAR5. /*Ing. #3 */ @730 DRG7ING4 $CHAR5. /*Ing. #4 */ @735 DRG7ING5 $CHAR5. /*Ing. #5 */ @740 GEN8 $CHAR5. /*Generic code for med. #8 */ @745 PRESCR8 1. /*Prescription status code */ @746 CONTSUB8 1. /*Controlled status code */ @747 COMSTAT8 1. /*Composition status code */ @748 DRUG8CL1 $CHAR4. /*NDC code #1 for medication #8 */ @752 DRUG8CL2 $CHAR4. /*NDC code #2 for medication #8 */ @756 DRUG8CL3 $CHAR4. /*NDC code #3 for medication #8 */ @760 DRG8ING1 $CHAR5. /*Ing. #1 */ @765 DRG8ING2 $CHAR5. /*Ing. #2 */ @770 DRG8ING3 $CHAR5. /*Ing. #3 */ @775 DRG8ING4 $CHAR5. /*Ing. #4 */ @780 DRG8ING5 $CHAR5. /*Ing. #5 */ @785 BIOTER 1. /*Has hospital rec'd funding for bioterrorism */ @786 MDSP 1. /*Did hospital receive any MDSP funds? */ @787 EMRED 1. /*Does ED have electronic patient med records? */ @788 EDEMOGE 1. /*Does EMR sys incl patient demographic info? */ @789 ECPOEE 1. /*Does EMR sys incl comp orders for prescript? */ @790 ECTOEE 1. /*Does EMR system incl comp orders for tests? */ @791 ERESULTE 1. /*Does EMR system incl test results? */ @792 ENNOTESE 1. /*Does EMR system incl nurses' notes? */ @793 EPNOTESE 1. /*Does EMR system incl physicians' notes? */ @794 EREMINDE 1. /*Does EMR sys incl reminders for interv/tests?*/ @795 EPUBHTHE 1. /*Does EMR system incl public health reporting?*/ @796 INITVIS 1. /*Initial visit for problem - imputed variable */ @797 RACER 1. /*Race recode */ @798 RACEETH 1. /*Race/Ethnicity */ @799 AGEDAYS 3. /*Age in days for patients less than one year */ @802 AGER 1. /*Age recode */ @803 CAUSE1R 4. /*Cause of Injury #1 – numeric recode */ @807 CAUSE2R 4. /*Cause of injury #2 – numeric recode */ @811 CAUSE3R 4. /*Cause of injury #3 – numeric recode */ @815 INTENTR 1. /*Intentionality of Injury Based on E-Code */ @816 DIAG1R 6. /*Diagnosis #1 - numeric recode */ @822 DIAG2R 6. /*Diagnosis #2 - numeric recode */ @828 DIAG3R 6. /*Diagnosis #3 - numeric recode */ @834 HDDIAGR 6. /*Principal hospital discharge diagnosis-numeri*/ @840 WHOCOMP 1. /*Who completed the Patient Record Forms? */ @841 SETTYPE 1. /*Setting type */ @842 YEAR 4. /*YEAR (2005) */ @846 CSTRATM 8. /*Clustered CSTRATM */ @854 CPSUM 6. /*Clustered CPSUM */ @860 EDWT 8. /*ED weight */ ;