/* PROGRAM: OPD99SAS PURPOSE: INPUT STATEMENT TO CREATE 2000 OPD 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 - recode */ @008 AGE 3. /* Patient age in years */ @011 SEX 1. /* Patient sex */ @012 PREGNANT 1. /* If female, is patient pregnant? */ @013 ETHNIC 1. /* Patient ethnicity */ @014 RACE 1. /* Patient race */ @015 REFER 1. /* Was pat referred by oth physician for visit? */ @016 AUTH 1. /* Was authorization required for care? */ @017 PRIMCARE 1. /* Are you the patient's primary care physician? */ @018 PAYTYPE 1. /* Primary expected source of payment for this visit */ @019 HMO 1. /* Does patient belong to an HMO? */ @020 CAPITATE 1. /* Is this a capitated visit? */ @021 SENBEFOR 1. /* Has patient been seen in this clinic before? */ @022 RFV1 5. /* Patient's reason for visit #1 */ @027 RFV2 5. /* Patient's reason for visit #2 */ @032 RFV3 5. /* Patient's reason for visit #3 */ @022 RFV13D 4. /* Patient's reason for visit #1 - broad */ @027 RFV23D 4. /* Patient's reason for visit #2 - broad */ @032 RFV33D 4. /* Patient's reason for visit #3 - broad */ @037 MAJOR 1. /* Major reason for visit */ @038 INJURY 1. /* Is this visit related to injury or poisoning? */ @039 PLACE 1. /* Place of occurrence of injury */ @040 INTENT 1. /* Intentionality of injury from checkbox */ @041 WORKREL 1. /* Is injury work related? */ @042 CAUSE1 $char4. /* Cause of injury #1 */ @046 CAUSE2 $char4. /* Cause of injury #2 */ @050 CAUSE3 $char4. /* Cause of injury #3 */ @042 CAUSE13D $char3. /* Cause of injury #1 - broad */ @046 CAUSE23D $char3. /* Cause of injury #2 - broad */ @050 CAUSE33D $char3. /* Cause of injury #3 - broad */ @054 VCAUSE $char100. /* Verbatim cause of injury */ @154 DIAG1 $char5. /* Physician's diagnosis #1 */ @159 DIAG2 $char5. /* Physician's diagnosis #2 */ @164 DIAG3 $char5. /* Physician's diagnosis #3 */ @154 DIAG13D $char3. /* Physician's diagnosis #1 - broad */ @159 DIAG23D $char3. /* Physician's diagnosis #2 - broad */ @164 DIAG33D $char3. /* Physician's diagnosis #3 - broad */ @169 PRDIAG1 1. /* Is DIAG1 probable, questionable or ruleout? */ @170 PRDIAG2 1. /* Is DIAG2 probable, questionable or ruleout? */ @171 PRDIAG3 1. /* Is DIAG3 probable, questionable or ruleout? */ @172 DIAGSCRN 1. /* Were diag/screen services ordered/provided? */ @173 BREAST 1. /* Breast exam */ @174 PELVIC 1. /* Pelvic exam */ @175 RECTAL 1. /* Rectal exam */ @176 SKIN 1. /* Skin exam */ @177 VISUAL 1. /* Visual acuity exam */ @178 GLAUCOMA 1. /* Glaucoma exam */ @179 HEARING 1. /* Hearing exam */ @180 BLODPRES 1. /* Blood pressure test */ @181 STREP 1. /* Strep test */ @182 PAP 1. /* Pap test */ @183 URINE 1. /* Urinalysis */ @184 PREGTEST 1. /* Pregnancy test */ @185 PSA 1. /* PSA test */ @186 BLODLEAD 1. /* Blood lead level */ @187 CHOLEST 1. /* Cholesterol measure */ @188 HIVSER 1. /* HIV serology */ @189 OTHERSTD 1. /* Other STD test */ @190 HEMATOCR 1. /* Hematocrit/Hemoglobin */ @191 OTHERBLD 1. /* Other blood test */ @192 EKG 1. /* EKG */ @193 XRAY 1. /* X-Ray */ @194 CATMRI 1. /* Catscan/MRI */ @195 MAMMO 1. /* Mammography */ @196 ULTRASND 1. /* Ultrasound */ @197 OTHDIAG 1. /* All other diagnostic/screening services */ @198 DIAGSC1 $char4. /* Other diagnostic/screening service #1 */ @202 DIAGSC2 $char4. /* Other diagnostic/screening service #2 */ @198 DIAGSC13 $char3. /* Other diag/screen service #1 - 3 dgt */ @202 DIAGSC23 $char3. /* Other diag/screen service #2 - 3 dgt */ @198 DIAGSC12 $char2. /* Other diag/screen service #1 - 2 dgt */ @202 DIAGSC22 $char2. /* Other diag/screen service #2 - 2 dgt */ @206 TOTDIAG 2. /* Total # of diagnostic/screening services */ @208 THERPREV 1. /* Were therapeutic/prev serv ordered/provided? */ @209 DIETNUTR 1. /* Diet/Nutrition couns/educ */ @210 EXERCISE 1. /* Exercise couns/educ */ @211 HIVSTDTR 1. /* HIV/STD transmission couns/educ */ @212 FAMPLAN 1. /* Family planning/Contraception couns/educ */ @213 PRENATAL 1. /* Prenatal instructions couns/educ */ @214 BRSTSLFX 1. /* Breast self-exam couns/educ */ @215 TOBACCO 1. /* Tobacco use/Exposure couns/educ */ @216 GRWTHDEV 1. /* Growth/Development couns/educ */ @217 MENTLHLT 1. /* Mental health couns/educ */ @218 STRESS 1. /* Stress management couns/educ */ @219 SKINCANC 1. /* Skin cancer prevention couns/educ */ @220 INJPREV 1. /* Injury prevention couns/educ */ @221 PSYCHOTH 1. /* Psychotherapy */ @222 PSYCHOPH 1. /* Psycho-pharmacotherapy */ @223 PHYSIOTH 1. /* Physiotherapy */ @224 CAM 1. /* Complementary/Alternative medicine */ @225 OTHTHER 1. /* All other therapeutic/preventive services */ @226 THERPR1 $char4. /* Other therapeutic/preventive service #1 */ @230 THERPR2 $char4. /* Other therapeutic/preventive service #2 */ @226 THERPR13 $char3. /* Other ther/prev service #1 - 3 dgt */ @230 THERPR23 $char3. /* Other ther/prev service #2 - 3 dgt */ @226 THERPR12 $char2. /* Other ther/prev service #1 - 2 dgt */ @230 THERPR22 $char2. /* Other ther/prev service #2 - 2 dgt */ @234 TOTTHER 2. /* Total # of therapeutic/preventive services */ @236 AMB 1. /* Were ambulatory surgical procs performed? */ @237 AMB1 $char4. /* Ambulatory surgical procedure #1 */ @241 AMB2 $char4. /* Ambulatory surgical procedure #2 */ @237 AMB13 $char3. /* Ambulatory surgical proc #1 - 3 dgt*/ @241 AMB23 $char3. /* Ambulatory surgical proc #2 - 3 dgt*/ @237 AMB12 $char2. /* Ambulatory surgical proc #1 - 2 dgt*/ @241 AMB22 $char2. /* Ambulatory surgical proc #2 - 2 dgt*/ @245 TOTAMB 1. /* Total # of ambulatory surgical procedures */ @246 MED 1. /* Were medications ordered/provided? */ @247 MED1 $char5. /* Medication #1 */ @252 MED2 $char5. /* Medication #2 */ @257 MED3 $char5. /* Medication #3 */ @262 MED4 $char5. /* Medication #4 */ @267 MED5 $char5. /* Medication #5 */ @272 MED6 $char5. /* Medication #6 */ @277 NUMMED 1. /* Number of medications coded */ @278 NOPROVID 1. /* Providers seen: No answer to item */ @279 STAFFPHY 1. /* Staff physician seen */ @280 RESINT 1. /* Resident/Intern seen */ @281 OTHERPHY 1. /* Other physician seen */ @282 PHYSASST 1. /* Physician assistant seen */ @283 NURSEPR 1. /* Nurse practitioner seen */ @284 NURSEMID 1. /* Nurse midwife seen */ @285 RN 1. /* Registered nurse seen */ @286 LPN 1. /* Licensed practical nurse seen */ @287 MEDNURSE 1. /* Medical/nursing assistant seen */ @288 OTHERPRV 1. /* Other provider seen */ @289 NODISP 1. /* Disposition - No answer to item */ @290 NOFOLLOW 1. /* No follow-up planned */ @291 RETPRN 1. /* Return to clinic, p.r.n. (as needed) */ @292 RETAPPT 1. /* Return to clinic, appt. */ @293 TELEPHON 1. /* Telephone follow-up planned */ @294 REFOTHPH 1. /* Referred to other physician/clinic */ @295 REFPHYS 1. /* Returned to referring physician */ @296 ADMITHOS 1. /* Admitted to hospital */ @297 OTHERDIS 1. /* Other disposition */ @298 TIMEMD 3. /* Time spent with physician in minutes */ @301 PATWT 6. /* Patient visit weight (rounded) */ @307 REGION 1. /* Geographic region of hospital */ @308 URBAN 1. /* Metro/non-metro status of hospital location */ @309 OWNSMG 1. /* Hospital ownership */ @310 HOSPCODE 3. /* Hospital code */ @313 CLINTYPE 1. /* Clinic type */ @314 PATCODE 3. /* Patient code */ @317 VDATEFL 1. /* Was visit date imputed? */ @318 BDATEFL 1. /* Was birth year imputed? */ @319 SEXFL 1. /* Was sex imputed? */ @320 RACEFL 1. /* Was race imputed? */ @321 TIMEMDFL 1. /* Was time spent with physician imputed? */ @322 GEN1 $char5. /* Generic name code for medication #1 */ @327 PRESCR1 1. /* Prescription status code for medication #1*/ @328 CONTSUB1 1. /* Controlled substance code for medication #1*/ @329 COMSTAT1 1. /* Composition status code for medication #1 */ @330 DRUGCL1 $char4. /* Drug class for medication #1 */ @334 DRG1ING1 $char5. /* Ingredient code #1 for medication #1 */ @339 DRG1ING2 $char5. /* Ingredient code #2 for medication #1 */ @344 DRG1ING3 $char5. /* Ingredient code #3 for medication #1 */ @349 DRG1ING4 $char5. /* Ingredient code #4 for medication #1 */ @354 DRG1ING5 $char5. /* Ingredient code #5 for medication #1 */ @359 GEN2 $char5. /* Generic name code for medication #2 */ @364 PRESCR2 1. /* Prescription status code for medication #2 */ @365 CONTSUB2 1. /* Controlled substance code for medication #2 */ @366 COMSTAT2 1. /* Composition status code for medication #2 */ @367 DRUGCL2 $char4. /* Drug class for medication #2 */ @371 DRG2ING1 $char5. /* Ingredient code #1 for medication #2 */ @376 DRG2ING2 $char5. /* Ingredient code #2 for medication #2 */ @381 DRG2ING3 $char5. /* Ingredient code #3 for medication #2 */ @386 DRG2ING4 $char5. /* Ingredient code #4 for medication #2 */ @391 DRG2ING5 $char5. /* Ingredient code #5 for medication #2 */ @396 GEN3 $char5. /* Generic name code for medication #3 */ @401 PRESCR3 1. /* Prescription status code for medication #3 */ @402 CONTSUB3 1. /* Controlled substance code for medication #3 */ @403 COMSTAT3 1. /* Composition status code for medication #3 */ @404 DRUGCL3 $char4. /* Drug class for medication #3 */ @408 DRG3ING1 $char5. /* Ingredient code #1 for medication #3 */ @413 DRG3ING2 $char5. /* Ingredient code #2 for medication #3 */ @418 DRG3ING3 $char5. /* Ingredient code #3 for medication #3 */ @423 DRG3ING4 $char5. /* Ingredient code #4 for medication #3 */ @428 DRG3ING5 $char5. /* Ingredient code #5 for medication #3 */ @433 GEN4 $char5. /* Generic name code for medication #4 */ @438 PRESCR4 1. /* Prescription status code for medication #4 */ @439 CONTSUB4 1. /* Controlled substance code for medication #4 */ @440 COMSTAT4 1. /* Composition status code for medication #4 */ @441 DRUGCL4 $char4. /* Drug class for medication #4 */ @445 DRG4ING1 $char5. /* Ingredient code #1 for medication #4 */ @450 DRG4ING2 $char5. /* Ingredient code #2 for medication #4 */ @455 DRG4ING3 $char5. /* Ingredient code #3 for medication #4 */ @460 DRG4ING4 $char5. /* Ingredient code #4 for medication #4 */ @465 DRG4ING5 $char5. /* Ingredient code #5 for medication #4 */ @470 GEN5 $char5. /* Generic name code for medication #5 */ @475 PRESCR5 1. /* Prescription status code for medication #5 */ @476 CONTSUB5 1. /* Controlled substance code for medication #5 */ @477 COMSTAT5 1. /* Composition status code for medication #5 */ @478 DRUGCL5 $char4. /* Drug class for medication 5 */ @482 DRG5ING1 $char5. /* Ingredient code #1 for medication #5 */ @487 DRG5ING2 $char5. /* Ingredient code #2 for medication #5 */ @492 DRG5ING3 $char5. /* Ingredient code #3 for medication #5 */ @497 DRG5ING4 $char5. /* Ingredient code #4 for medication #5 */ @502 DRG5ING5 $char5. /* Ingredient code #5 for medication #5 */ @507 GEN6 $char5. /* Generic name code for medication #6 */ @512 PRESCR6 1. /* Prescription status code for medication #6 */ @513 CONTSUB6 1. /* Controlled substance code for medication #6 */ @514 COMSTAT6 1. /* Composition status code for medication #6 */ @515 DRUGCL6 $char4. /* Drug class for medication #6 */ @519 DRG6ING1 $char5. /* Ingredient code #1 for medication #6 */ @524 DRG6ING2 $char5. /* Ingredient code #2 for medication #6 */ @529 DRG6ING3 $char5. /* Ingredient code #3 for medication #6 */ @534 DRG6ING4 $char5. /* Ingredient code #4 for medication #6 */ @539 DRG6ING5 $char5. /* Ingredient code #5 for medication #6 */ @544 RACER 1. /* Patient race recode: White, Black, Other */ @545 AGEDAYS 3. /* Age in days for patients less than 1 year */ @548 AGER 1. /* Patient age recode */ @549 CAUSE1R 4. /* Cause of injury #1 - numeric recode */ @553 CAUSE2R 4. /* Cause of injury #2 - numeric recode */ @557 CAUSE3R 4. /* Cause of injury #3 - numeric recode */ @561 DIAG1R 6. /* Physician's diagnosis #1 - numeric recode */ @567 DIAG2R 6. /* Physician's diagnosis #2 - numeric recode */ @573 DIAG3R 6. /* Physician's diagnosis #3 - numeric recode */ @579 DIAGSC1R 4. /* Other diag/screen serv #1 - numeric recode */ @583 DIAGSC2R 4. /* Other diag/screen serv #2 - numeric recode */ @587 THERPR1R 4. /* Other ther/prev serv #1 - numeric recode */ @591 THERPR2R 4. /* Other ther/prev serv #2 - numeric recode */ @595 AMB1R 4. /* Ambulatory surg proc #1 - numeric recode */ @599 AMB2R 4. /* Ambulatory surg proc #2 - numeric recode */ @603 WHOCOMP 1. /* Who completed the Patient Record forms? */ @604 INTENTR 1. /* Intentionality of injury - recode */ @621 STRATM 3. /* PSU marker (masked) */ @624 PSUM 5. /* PSU stratum marker (masked) */ @629 YEAR 4. /* Survey year (2000) */ @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. /* No. of clinic sampling units in hos (masked) */ @652 POPVISM 6. /* Estimated provider visit volume (masked) */ @658 POPPROVM 6. /* Est. # of inscope providers in PSU (masked) */ ;