/* PROGRAM: OPD01INP PURPOSE: INPUT STATEMENT TO CREATE 2001 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 @1 VMONTH 2. /*Month of Visit */ @3 VYEAR 4. /*Year of Visit */ @7 VDAYR 1. /*Day of Week of Visit - recoded */ @8 AGE 3. /*Patient age in years */ @11 SEX 1. /*Patient Sex */ @12 ETHNIC 1. /*Patient ethnicity */ @13 RACE 1. /*Patient race */ @14 USETOBAC 1. /*Does patient use tobacco? */ @15 PAYTYPE 1. /*Expected source of payment */ @16 RFV1 5. /*Reason for visit #1 */ @21 RFV2 5. /*Reason for visit #2 */ @26 RFV3 5. /*Reason for visit #3 */ @16 RFV13D 4. /*Reason for visit #1 - broad */ @21 RFV23D 4. /*Reason for visit #2 - broad */ @26 RFV33D 4. /*Reason for visit #3 - broad */ @31 PRIMCARE 1. /*Are you the patient's primary care physician?*/ @32 REFER 1. /*Was patient referred for this visit? */ @33 SENBEFOR 1. /*Has patient been seen in this clinic before? */ @34 PASTVIS 1. /*How many past visits in last 12 months? */ @35 MAJOR 1. /*Major reason for visit */ @36 EPISODE 1. /*Episode of care */ @37 SHARE 1. /*Do other physicians share care for problem? */ @38 INJURY 1. /*Is visit related to injury, poisoning, or adv*/ @39 CAUSE1 $CHAR4. /*Cause of injury #1 */ @43 CAUSE2 $CHAR4. /*Cause of injury #2 */ @47 CAUSE3 $CHAR4. /*Cause of injury #3 */ @39 CAUSE13D $CHAR3. /*Cause of injury #1 - broad */ @43 CAUSE23D $CHAR3. /*Cause of injury #2 - broad */ @47 CAUSE33D $CHAR3. /*Cause of injury #3 - broad */ @51 VCAUSE $CHAR75. /*Cause of injury-verbatim text */ @126 DIAG1 $CHAR5. /*Physician's diagnosis #1 */ @131 DIAG2 $CHAR5. /*Physician's diagnosis #2 */ @136 DIAG3 $CHAR5. /*Physician's diagnosis #3 */ @126 DIAG13D $CHAR3. /*Physician's diagnosis #1 - broad */ @131 DIAG23D $char3. /*Physician's diagnosis #2 - broad */ @136 DIAG33D $char3. /*Physician's diagnosis #3 - broad */ @141 PRDIAG1 1. /*Is DIAG1 probable, questionable, or ruleout? */ @142 PRDIAG2 1. /*Is DIAG2 probable, questionable, or ruleout? */ @143 PRDIAG3 1. /*Is DIAG3 probable, questionable, or ruleout? */ @144 DIAGSCRN 1. /*Were diagnostic services ordered or provided?*/ @145 GENMEDXM 1. /*General medical exam */ @146 OTHREXAM 1. /*Other exam */ @147 EXAMWI1 $char4. /*Exam write-in #1 - 4 digit */ @151 EXAMWI2 $char4. /*Exam write-in #2 - 4 digit */ @147 EXMWI13D $char3. /*Exam write-in #1 - 3 digit */ @151 EXMWI23D $char3. /*Exam write-in #2 - 3 digit */ @147 EXMWI12D $char2. /*Exam write-in #1 - 2 digit */ @151 EXMWI22D $char2. /*Exam write-in #2 - 2 digit */ @155 BLODPRES 1. /*Blood pressure */ @156 URINE 1. /*Urinalysis */ @157 PAP 1. /*Pap test */ @158 PSA 1. /*PSA test */ @159 HEMATOCR 1. /*Hematocrit/hemoglobin */ @160 CBC 1. /*CBC */ @161 CHOLEST 1. /*Cholesterol test */ @162 OTHBLOOD 1. /*Other blood test */ @163 PREGTEST 1. /*Pregnancy test */ @164 EKG 1. /*EKG */ @165 CULTURE 1. /*Culture */ @166 CERVCX 1. /*Cervical culture */ @167 STOOLCX 1. /*Stool culture */ @168 THROATCX 1. /*Throat culture */ @169 URINECX 1. /*Urine culture */ @170 OTHRCULT 1. /*Other culture */ @171 ANYIMG 1. /*Any imaging */ @172 XRAY 1. /*X-ray */ @173 MAMMO 1. /*Mammogram */ @174 ULTRASND 1. /*Ultrasound */ @175 OTHIMAGE 1. /*Other imaging */ @176 SCOPPROC 1. /*Scope procedure */ @177 SCOPEWI1 $char4. /*Scope procedure write-in #1 - 4 digit */ @181 SCOPEWI2 $char4. /*Scope procedure write-in #2 - 4 digit */ @177 SCPWI13D $char3. /*Scope procedure write-in #1 - 3 digit */ @181 SCPWI23D $char3. /*Scope procedure write-in #2 - 3 digit */ @177 SCPWI12D $char2. /*Scope procedure write-in #1 - 2 digit */ @181 SCPWI22D $char2. /*Scope procedure write-in #2 - 2 digit */ @185 SIGCOLON 1. /*Sigmoid/colon */ @186 ENDOSCOP 1. /*Endoscopy */ @187 CYSTOSC 1. /*Cystoscopy */ @188 OTHDIAG 1. /*Other diagnostic service */ @189 DIAGSC1 $CHAR4. /*Diag/Screen service write-in #1 - 4 digit */ @193 DIAGSC2 $CHAR4. /*Diag/Screen service write-in #2 - 4 digit */ @189 DIGSC13D $CHAR3. /*Diag/Screen service write-in #1 - 3 digit */ @193 DIGSC23D $CHAR3. /*Diag/Screen service write-in #2 - 3 digit */ @189 DIGSC12D $CHAR2. /*Diag/Screen service write-in #1 - 2 digit */ @193 DIGSC22D $CHAR2. /*Diag/Screen service write-in #2 - 2 digit */ @197 THERPREV 1. /*Was couns/educ/therapy ordered or provided? */ @198 ASTHMAED 1. /*Asthma education */ @199 DIETNUTR 1. /*Diet/nutrition */ @200 EXERCISE 1. /*Exercise */ @201 GRWTHDEV 1. /*Growth/development */ @202 MENTLHLT 1. /*Mental health/Stress management */ @203 PHYSIOTH 1. /*Physiotherapy */ @204 PSYCHOTH 1. /*Psychotherapy */ @205 TOBACCO 1. /*Tobacco use/exposure */ @206 WTREDUC 1. /*Weight reduction */ @207 OTHCET 1. /*Other counseling/education/therapy */ @208 AMB 1. /*Were surgical procedures ord/sched or perf? */ @209 BIOPSY 1. /*Biopsy */ @210 EXCISION 1. /*Excision */ @211 AMB1 $CHAR4. /*Surgical procedure #1 - 4 digit */ @211 AMB13D $CHAR3. /*Surgical procedure #1 - 3 digit */ @211 AMB12D $CHAR2. /*Surgical procedure #1 - 2 digit */ @215 ORDPERF1 1. /*Surg procedure #1 - ord/sched or perf? */ @216 AMB2 $CHAR4. /*Surgical procedure #2 - 4 digit */ @216 AMB23D $CHAR3. /*Surgical procedure #2 - 3 digit */ @216 AMB22D $CHAR2. /*Surgical procedure #2 - 2 digit */ @220 ORDPERF2 1. /*Surg procedure #2 - ord/sched or perf? */ @221 MED 1. /*Were medications/injections ordered/provided?*/ @222 MED1 $CHAR5. /*Med #1 */ @227 MED2 $CHAR5. /*Med #2 */ @232 MED3 $CHAR5. /*Med #3 */ @237 MED4 $CHAR5. /*Med #4 */ @242 MED5 $CHAR5. /*Med #5 */ @247 MED6 $CHAR5. /*Med #6 */ @252 NUMMED 1. /*Number of medications */ @253 NODISP 1. /*No answer to disposition item */ @254 NOFU 1. /*No follow up planned */ @255 RETPRN 1. /*Return as needed */ @256 REFOTHMD 1. /*Refer to other MD */ @257 RETAPPT 1. /*Return, appt. */ @258 TELEPHON 1. /*Telephone followup */ @259 ADMITHOS 1. /*Admit to hospital */ @260 OTHDISP 1. /*Other disposition */ @261 NOPROVID 1. /*No answer to provider item */ @262 STAFFMD 1. /*Staff MD seen */ @263 RESINT 1. /*Resident/intern seen */ @264 OTHERMD 1. /*Other MD seen */ @265 RN 1. /*RN seen */ @266 LPN 1. /*LPN seen */ @267 MEDNURSE 1. /*Med/nursing asst seen */ @268 NPNMW 1. /*Nurse pract/Midwife seen */ @269 PHYSASST 1. /*Physician assistant seen */ @270 MEDTECH 1. /*Med tech seen */ @271 OTHPROV 1. /*Other provider seen */ @272 PATWT 6. /*Patient visit weight */ @278 REGION 1. /*Geographic region */ @279 MSA 1. /*Visit occurred in MSA or non-MSA location */ @280 OWNER 1. /*Hospital ownership */ @282 HOSPCODE 3. /*Hospital code */ @285 CLINTYPE 1. /*Type of clinic */ @286 PATCODE 3. /*Patient code */ @289 BDATEFL 1. /*Was patient birth date imputed? */ @290 SEXFL 1. /*Was patient sex imputed? */ @291 RACEFL 1. /*Was patient race imputed? */ @292 GEN1 $char5. /*Generic name code for medication #1 */ @297 PRESCR1 1. /*Prescription status code for medication #1 */ @298 CONTSUB1 1. /*Controlled substance code for medication #1 */ @299 COMSTAT1 1. /*Composition status code for medication #1 */ @300 DRUGCL1 $char4. /*Drug class for medication #1 */ @304 DRG1ING1 $char5. /*Ingredient code #1 for medication #1 */ @309 DRG1ING2 $char5. /*Ingredient code #2 for medication #1 */ @314 DRG1ING3 $char5. /*Ingredient code #3 for medication #1 */ @319 DRG1ING4 $char5. /*Ingredient code #4 for medication #1 */ @324 DRG1ING5 $char5. /*Ingredient code #5 for medication #1 */ @329 GEN2 $char5. /*Generic name code for medication #2 */ @334 PRESCR2 1. /*Prescription status code for medication #2 */ @335 CONTSUB2 1. /*Controlled substance code for medication #2 */ @336 COMSTAT2 1. /*Composition status code for medication #2 */ @337 DRUGCL2 $char4. /*Drug class for medication #2 */ @341 DRG2ING1 $char5. /*Ingredient code #1 for medication #2 */ @346 DRG2ING2 $char5. /*Ingredient code #2 for medication #2 */ @351 DRG2ING3 $char5. /*Ingredient code #3 for medication #2 */ @356 DRG2ING4 $char5. /*Ingredient code #4 for medication #2 */ @361 DRG2ING5 $char5. /*Ingredient code #5 for medication #2 */ @366 GEN3 $char5. /*Generic name code for medication #3 */ @371 PRESCR3 1. /*Prescription status code for medication #3 */ @372 CONTSUB3 1. /*Controlled substance code for medication #3 */ @373 COMSTAT3 1. /*Composition status code for medication #3 */ @374 DRUGCL3 $char4. /*Drug class for medication #3 */ @378 DRG3ING1 $char5. /*Ingredient code #1 for medication #3 */ @383 DRG3ING2 $char5. /*Ingredient code #2 for medication #3 */ @388 DRG3ING3 $char5. /*Ingredient code #3 for medication #3 */ @393 DRG3ING4 $char5. /*Ingredient code #4 for medication #3 */ @398 DRG3ING5 $char5. /*Ingredient code #5 for medication #3 */ @403 GEN4 $char5. /*Generic name code for medication #4 */ @408 PRESCR4 1. /*Prescription status code for medication #4 */ @409 CONTSUB4 1. /*Controlled substance code for medication #4 */ @410 COMSTAT4 1. /*Composition status code for medication #4 */ @411 DRUGCL4 $char4. /*Drug class for medication #4 */ @415 DRG4ING1 $char5. /*Ingredient code #1 for medication #4 */ @420 DRG4ING2 $char5. /*Ingredient code #2 for medication #4 */ @425 DRG4ING3 $char5. /*Ingredient code #3 for medication #4 */ @430 DRG4ING4 $char5. /*Ingredient code #4 for medication #4 */ @435 DRG4ING5 $char5. /*Ingredient code #5 for medication #4 */ @440 GEN5 $char5. /*Generic name code for medication #5 */ @445 PRESCR5 1. /*Prescription status code for medication #5 */ @446 CONTSUB5 1. /*Controlled substance code for medication #5 */ @447 COMSTAT5 1. /*Composition status code for medication #5 */ @448 DRUGCL5 $char4. /*Drug class for medication 5 */ @452 DRG5ING1 $char5. /*Ingredient code #1 for medication #5 */ @457 DRG5ING2 $char5. /*Ingredient code #2 for medication #5 */ @462 DRG5ING3 $char5. /*Ingredient code #3 for medication #5 */ @467 DRG5ING4 $char5. /*Ingredient code #4 for medication #5 */ @472 DRG5ING5 $char5. /*Ingredient code #5 for medication #5 */ @477 GEN6 $char5. /*Generic name code for medication #6 */ @482 PRESCR6 1. /*Prescription status code for medication #6 */ @483 CONTSUB6 1. /*Controlled substance code for medication #6 */ @484 COMSTAT6 1. /*Composition status code for medication #6 */ @485 DRUGCL6 $char4. /*Drug class for medication #6 */ @489 DRG6ING1 $char5. /*Ingredient code #1 for medication #6 */ @494 DRG6ING2 $char5. /*Ingredient code #2 for medication #6 */ @499 DRG6ING3 $char5. /*Ingredient code #3 for medication #6 */ @504 DRG6ING4 $char5. /*Ingredient code #4 for medication #6 */ @509 DRG6ING5 $char5. /*Ingredient code #5 for medication #6 */ @514 RACER 1. /*Race recode */ @515 AGEDAYS 3. /*Age in days for patients less than one year */ @518 AGER 1. /*Age recode */ @519 CAUSE1R 4. /*Cause of Injury #1 - recode */ @523 CAUSE2R 4. /*Cause of injury #2 - recode */ @527 CAUSE3R 4. /*Cause of injury #3 - recode */ @531 INTENTR 1. /*Intentionality of Injury Based on E-Code */ @532 DIAG1R 6. /*Diagnosis #1 - recode */ @538 DIAG2R 6. /*Diagnosis #2 - recode */ @544 DIAG3R 6. /*Diagnosis #3 - recode */ @550 EXAMWI1R 4. /*Exam write-in #1 - recode */ @554 EXAMWI2R 4. /*Exam write-in #2 - recode */ @558 SCOPWI1R 4. /*Scope procedure write-in #1 - recode */ @562 SCOPWI2R 4. /*Scope procedure write-in #2 - recode */ @566 DIAGSC1R 4. /*All other diagnostic/ screening services #1 */ @570 DIAGSC2R 4. /*All other diagnostic/ screening services #2 */ @574 AMB1R 4. /*Surgical procedure write-in #1 */ @578 AMB2R 4. /*Surgical procedure write-in #2 */ @582 WHOCOMP 1. /*Who completed the Patient Record Forms? */ @583 SETTYPE 1. /*Setting type */ @584 FORMTYPE $char1. /*Which version of Patient Record form used? */ @636 STRATM 3. /*PSU stratum marker (masked) */ @639 PSUM 5. /*PSU marker (masked) */ @644 YEAR 4. /*Survey year 2001 */ @648 SUBFILE 1. /*Survey identifier (constant=1 for NAMCS) */ @649 PROSTRAT 2. /*Provider stratum marker */ @651 PROVIDER 4. /*Provider code */ @655 DEPT 1. /*Hospital dept code (constant=1 for NAMCS) */ @656 SUSTRAT 1. /*Hospital sampling unit stratum */ @657 SU 3. /*Hospital sampling unit (=001 for NAMCS) */ @660 CLINIC 3. /*Hospital clinic/emergency service area marker*/ @663 POPPSUM 2. /*Stratum counts of PSUs (masked) */ @665 POPSUM 3. /*# of clinic sampling units in hospital */ @668 POPVISM 6. /*Estimated provider visit volume (masked) */ @674 POPPROVM 6. /*Estimated # of inscope prov in PSU (masked) */ ;