/* PROGRAM: OPD05INP PURPOSE: INPUT STATEMENT TO READ 2005 NHAMCS OUTPATIENT DEPARTMENT 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. */ 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 SEX 1. /*Patient Sex */ @12 PREGNANT 1. /*If female, is patient pregnant? */ @13 GESTWK 2. /*Week of gestation */ @15 ETHNIC 1. /*Patient ethnicity */ @16 RACE 1. /*Patient race */ @17 USETOBAC 1. /*Tobacco use: not current, current */ @18 NOTOBAC 1. /*If "not current" is checked, never or former?*/ @19 PAYPRIV 1. /*Expected source of payment: Private insurance*/ @20 PAYMCARE 1. /*Expected source of payment: Medicare */ @21 PAYMCAID 1. /*Expected source of payment: Medicaid */ @22 PAYWKCMP 1. /*Expected source of payment: Workers Comp */ @23 PAYSELF 1. /*Expected source of payment: Self pay */ @24 PAYNOCHG 1. /*Expected source of payment: No charge */ @25 PAYOTH 1. /*Expected source of payment: Other */ @26 PAYDK 1. /*Expected source of payment: Unknown */ @27 PAYTYPE 1. /*Expected source of payment - hierarchical */ @28 INJDET 1. /*Is visit related to injury/poison/adverse effect*/ @29 INJURY 1. /*Is injury visit related? */ @30 RFV1 5. /*Reason #1 */ @35 RFV2 5. /*Reason #2 */ @40 RFV3 5. /*Reason #3 */ @30 RFV13D 4. /*Reason #1 - broad */ @35 RFV23D 4. /*Reason #2 - broad */ @40 RFV33D 4. /*Reason #3 - broad */ @45 PRIMCARE 1. /*Are you patient’s primary care physician/provider?*/ @46 REFER 1. /*Was patient referred for this visit? */ @47 SENBEFOR 1. /*Has patient been seen in this clinic before? */ @48 PASTVIS 1. /*If yes, how many past visits in last 12 months?*/ @49 MAJOR 1. /*Major reason for this visit */ @50 DIAG1 $CHAR5. /*Diagnosis #1-actual */ @55 DIAG2 $CHAR5. /*Diagnosis #2-actual */ @60 DIAG3 $CHAR5. /*Diagnosis #3-actual */ @50 DIAG13D $CHAR3. /*Diagnosis #1-3 digit */ @55 DIAG23D $CHAR3. /*Diagnosis #2-3 digit */ @60 DIAG33D $CHAR3. /*Diagnosis #3-3 digit */ @65 PRDIAG1 1. /*For dx1, probable, questionable, or ruleout? */ @66 PRDIAG2 1. /*For dx2, probable, questionable, or ruleout? */ @67 PRDIAG3 1. /*For dx3, probable, questionable, or ruleout? */ @68 ARTHRTIS 1. /*Does patient now have - Arthritis */ @69 ASTHMA 1. /*Does patient now have - Asthma */ @70 CANCER 1. /*Does patient now have - Cancer */ @71 CEBVD 1. /*Does patient now have - Cerebrovascular dis */ @72 CHF 1. /*Does patient now have - CHF */ @73 CRF 1. /*Does patient now have - Chronic renal failure*/ @74 COPD 1. /*Does patient now have - COPD */ @75 DEPRN 1. /*Does patient now have - Depression */ @76 DIABETES 1. /*Does patient now have - Diabetes */ @77 HYPLIPID 1. /*Does patient now have - Hyperlipidemia */ @78 HTN 1. /*Does patient now have - Hypertension */ @79 IHD 1. /*Does patient now have - Ischemic heart dis */ @80 OBESITY 1. /*Does patient now have - Obesity */ @81 OSTPRSIS 1. /*Does patient now have - Osteoporosis */ @82 NOCHRON 1. /*Does patient now have - None of the above */ @83 TOTCHRON 2. /*Total # of chronic conditions */ @85 DMP 1. /*Status of pat enrollment in disease mgmt prog*/ @86 HTIN 2. /*Vital signs - Height - inches */ @88 WTLB 3. /*Vital signs - Weight - pounds */ @91 BMI 6. /*Body mass index - calculated from height and weight*/ @97 TEMPF 4. /*Vital signs - Temperature (Fahrenheit) */ @101 BPSYS 3. /*Vital signs - Systolic blood pressure */ @104 BPDIAS 3. /*Vital signs - Diastolic blood pressure */ @107 DIAGSCRN 1. /*Were diagnostic services ordered or provided?*/ @108 BREAST 1. /*Breast exam */ @109 PELVIC 1. /*Pelvic exam */ @110 RECTAL 1. /*Rectal exam */ @111 SKIN 1. /*Skin exam */ @112 DEPRESS 1. /*Depression screening */ @113 ANYIMAGE 1. /*Any imaging */ @114 BONEDENS 1. /*Bone mineral density */ @115 MAMMO 1. /*Mammography */ @116 MRI 1. /*MRI/CT/PET */ @117 ULTRASND 1. /*Ultrasound */ @118 XRAY 1. /*X-ray */ @119 OTHIMAGE 1. /*Other imaging */ @120 CBC 1. /*CBC */ @121 ELECTROL 1. /*Electrolytes */ @122 GLUCOSE 1. /*Glucose */ @123 HGBA 1. /*HgbA1C */ @124 CHOLEST 1. /*Lipids/Cholesterol */ @125 PSA 1. /*PSA test */ @126 OTHERBLD 1. /*Other blood test */ @127 BIOPSY 1. /*Biopsy */ @128 CHLAMYD 1. /*Chlamydia test */ @129 EKG 1. /*EKG/ECG (electrocardiogram) */ @130 PAP 1. /*PAP test/cervical */ @131 SCOPPROC 1. /*Scope procedure */ @132 SIGCOLON 1. /*Sigmoidoscopsy/colonoscopy */ @133 SCOPEWI1 $CHAR4. /*Scope write in #1 */ @137 SCOPEWI2 $CHAR4. /*Scope write in #2 */ @133 SCPWI13D $CHAR3. /*Scope write in #1 - 3 digit */ @137 SCPWI23D $CHAR3. /*Scope write in #2 - 3 digit */ @133 SCPWI12D $CHAR2. /*Scope write in #1 - 2 digit */ @137 SCPWI22D $CHAR2. /*Scope write in #2 - 2 digit */ @141 SPIRO 1. /*Spirometry/pulmonary function */ @142 URINE 1. /*Urinalysis */ @143 HTTAKE 1. /*Height taken */ @144 WTTAKE 1. /*Weight taken */ @145 TEMPTAKE 1. /*Temperature taken */ @146 BLODPRES 1. /*Blood pressure taken */ @147 OTHDIAG 1. /*Other diagnostic/screening test/service */ @148 DIAGSC1 $CHAR4. /*Diagnostic service #1 */ @152 DIAGSC2 $CHAR4. /*Diagnostic service #2 */ @148 DIGSC13D $CHAR3. /*Diagnostic service #1 - 3 digit */ @152 DIGSC23D $CHAR3. /*Diagnostic service #2 - 3 digit */ @148 DIGSC12D $CHAR2. /*Diagnostic service #1 - 2 digit */ @152 DIGSC22D $CHAR2. /*Diagnostic service #2 - 2 digit */ @156 TOTDIAG 2. /*Total diag/scrning serv ordered or provided */ @158 HEALTHED 1. /*Was health education ordered or provided? */ @159 ASTHMAED 1. /*Asthma education */ @160 DIETNUTR 1. /*Diet/nutrition */ @161 EXERCISE 1. /*Exercise */ @162 GRWTHDEV 1. /*Growth/development */ @163 INJPREV 1. /*Injury prevention */ @164 STRESMGT 1. /*Stress management */ @165 TOBACED 1. /*Tobacco use/Exposure */ @166 WTREDUC 1. /*Weight reduction */ @167 OTHLTHED 1. /*Other health education */ @168 TOTHLTED 2. /*Total health education categories ordered or provided*/ @170 NONMED 1. /*Was non-medication therapy ordered or provided?*/ @171 CAM 1. /*Complementary alternative medicine */ @172 DME 1. /*Durable medical equipment */ @173 HOMEHLTH 1. /*Home health care */ @174 HOSPICE 1. /*Hospice care */ @175 PT 1. /*Physical therapy */ @176 SPOCTHER 1. /*Speech/occupational therapy */ @177 PSYCHOTH 1. /*Psychotherapy */ @178 OTHMNTL 1. /*Other mental health counseling */ @179 EXCISION 1. /*Excision */ @180 ORTHO 1. /*Orthopedic care */ @181 WOUND 1. /*Wound care */ @182 OTHPROC 1. /*Other procedure */ @183 OTHPROC1 $CHAR4. /*Procedure 1 - OTHPROC1 */ @187 OTHPROC2 $CHAR4. /*Procedure 2 - OTHPROC2 */ @191 OTHPROC3 $CHAR4. /*Procedure 3 - OTHPROC3 */ @195 OTHPROC4 $CHAR4. /*Procedure 4 - OTHPROC4 */ @183 OTHPR13D $CHAR3. /*Procedure 1 - 3 digit */ @187 OTHPR23D $CHAR3. /*Procedure 2 - 3 digit */ @191 OTHPR33D $CHAR3. /*Procedure 3 - 3 digit */ @195 OTHPR43D $CHAR3. /*Procedure 4 - 3 digit */ @183 OTHPR12D $CHAR2. /*Procedure 1 - 2 digit */ @187 OTHPR22D $CHAR2. /*Procedure 2 - 2 digit */ @191 OTHPR32D $CHAR2. /*Procedure 3 - 2 digit */ @195 OTHPR42D $CHAR2. /*Procedure 4 - 2 digit */ @199 TOTNONMED 2. /*Total non-medication therapy ordered/provided*/ @201 MED 1. /*Was medication ordered or provided? */ @202 MED1 $CHAR5. /*Medication 1 */ @207 MED2 $CHAR5. /*Medication 2 */ @212 MED3 $CHAR5. /*Medication 3 */ @217 MED4 $CHAR5. /*Medication 4 */ @222 MED5 $CHAR5. /*Medication 5 */ @227 MED6 $CHAR5. /*Medication 6 */ @232 MED7 $CHAR5. /*Medication 7 */ @237 MED8 $CHAR5. /*Medication 8 */ @242 NCMED1 1. /*Was medication 1 new or continued? */ @243 NCMED2 1. /*Was medication 2 new or continued? */ @244 NCMED3 1. /*Was medication 3 new or continued? */ @245 NCMED4 1. /*Was medication 4 new or continued? */ @246 NCMED5 1. /*Was medication 5 new or continued? */ @247 NCMED6 1. /*Was medication 6 new or continued? */ @248 NCMED7 1. /*Was medication 7 new or continued? */ @249 NCMED8 1. /*Was medication 8 new or continued? */ @250 NUMNEW 1. /*Number of new medications coded */ @251 NUMCONT 1. /*Number of continuing medications coded */ @252 NUMMED 1. /*Number of medications coded */ @253 NOPROVID 1. /*No answer to provider item */ @254 PHYS 1. /*Physician seen */ @255 PHYSASST 1. /*Physician assistant seen */ @256 NPNMW 1. /*Nurse pract/Midwife seen */ @257 RNLPN 1. /*RN/LPN seen */ @258 OTHPROV 1. /*Other provider seen */ @259 NODISP 1. /*No answer to disposition item */ @260 NOFU 1. /*No follow up */ @261 RETPRN 1. /*Return PRN */ @262 REFOTHMD 1. /*Refer to other MD */ @263 RETAPPT 1. /*Return, appt. */ @264 TELEPHON 1. /*Telephone follow up */ @265 REFERED 1. /*Refer to ED */ @266 ADMITHOS 1. /*Admit to hospital */ @267 OTHDISP 1. /*Other disposition */ @268 PATWT 6. /*Patient visit weight */ @274 REGION 1. /*Geographic region */ @275 MSA 1. /*MSA or non-MSA area */ @276 OWNER 1. /*Hospital ownership */ @277 BLANK 1. /*Reserved for future use */ @278 HOSPCODE 3. /*Hospital code */ @281 CLINTYPE 1. /*Clinic type */ @282 PATCODE 3. /*Patient code */ @285 BDATEFL 1. /*Birth date imputed? */ @286 SEXFL 1. /*Sex imputed? */ @287 ETHNICFL 1. /*Ethnicity imputed? */ @288 RACEFL 1. /*Race imputed? */ @289 SENBEFL 1. /*Seen before imputed? */ @290 PASTFL 1. /*Past visits imputed? */ @291 GEN1 $CHAR5. /*Generic code for med #1 */ @296 PRESCR1 1. /*Prescription status code */ @297 CONTSUB1 1. /*Controlled status code */ @298 COMSTAT1 1. /*Composition status code */ @299 DRUG1CL1 $CHAR4. /*NDC code #1 for medication #1 */ @303 DRUG1CL2 $CHAR4. /*NDC code #2 for medication #1 */ @307 DRUG1CL3 $CHAR4. /*NDC code #3 for medication #1 */ @311 DRG1ING1 $CHAR5. /*Ing. #1 */ @316 DRG1ING2 $CHAR5. /*Ing. #2 */ @321 DRG1ING3 $CHAR5. /*Ing. #3 */ @326 DRG1ING4 $CHAR5. /*Ing. #4 */ @331 DRG1ING5 $CHAR5. /*Ing. #5 */ @336 GEN2 $CHAR5. /*Generic code for med. #2 */ @341 PRESCR2 1. /*Prescription status code */ @342 CONTSUB2 1. /*Controlled status code */ @343 COMSTAT2 1. /*Composition status code */ @344 DRUG2CL1 $CHAR4. /*NDC code #1 for medication #2 */ @348 DRUG2CL2 $CHAR4. /*NDC code #2 for medication #2 */ @352 DRUG2CL3 $CHAR4. /*NDC code #3 for medication #2 */ @356 DRG2ING1 $CHAR5. /*Ing. #1 */ @361 DRG2ING2 $CHAR5. /*Ing. #2 */ @366 DRG2ING3 $CHAR5. /*Ing. #3 */ @371 DRG2ING4 $CHAR5. /*Ing. #4 */ @376 DRG2ING5 $CHAR5. /*Ing. #5 */ @381 GEN3 $CHAR5. /*Generic code for med. #3 */ @386 PRESCR3 1. /*Prescription status code */ @387 CONTSUB3 1. /*Controlled status code */ @388 COMSTAT3 1. /*Composition status code */ @389 DRUG3CL1 $CHAR4. /*NDC code #1 for medication #3 */ @393 DRUG3CL2 $CHAR4. /*NDC code #2 for medication #3 */ @397 DRUG3CL3 $CHAR4. /*NDC code #3 for medication #3 */ @401 DRG3ING1 $CHAR5. /*Ing. #1 */ @406 DRG3ING2 $CHAR5. /*Ing. #2 */ @411 DRG3ING3 $CHAR5. /*Ing. #3 */ @416 DRG3ING4 $CHAR5. /*Ing. #4 */ @421 DRG3ING5 $CHAR5. /*Ing. #5 */ @426 GEN4 $CHAR5. /*Generic code for med. #4 */ @431 PRESCR4 1. /*Prescription status code */ @432 CONTSUB4 1. /*Controlled status code */ @433 COMSTAT4 1. /*Composition status code */ @434 DRUG4CL1 $CHAR4. /*NDC code #1 for medication #4 */ @438 DRUG4CL2 $CHAR4. /*NDC code #2 for medication #4 */ @442 DRUG4CL3 $CHAR4. /*NDC code #3 for medication #4 */ @446 DRG4ING1 $CHAR5. /*Ing. #1 */ @451 DRG4ING2 $CHAR5. /*Ing. #2 */ @456 DRG4ING3 $CHAR5. /*Ing. #3 */ @461 DRG4ING4 $CHAR5. /*Ing. #4 */ @466 DRG4ING5 $CHAR5. /*Ing. #5 */ @471 GEN5 $CHAR5. /*Generic code for med. #5 */ @476 PRESCR5 1. /*Prescription status code */ @477 CONTSUB5 1. /*Controlled status code */ @478 COMSTAT5 1. /*Composition status code */ @479 DRUG5CL1 $CHAR4. /*NDC code #1 for medication #5 */ @483 DRUG5CL2 $CHAR4. /*NDC code #2 for medication #5 */ @487 DRUG5CL3 $CHAR4. /*NDC code #3 for medication #5 */ @491 DRG5ING1 $CHAR5. /*Ing. #1 */ @496 DRG5ING2 $CHAR5. /*Ing. #2 */ @501 DRG5ING3 $CHAR5. /*Ing. #3 */ @506 DRG5ING4 $CHAR5. /*Ing. #4 */ @511 DRG5ING5 $CHAR5. /*Ing. #5 */ @516 GEN6 $CHAR5. /*Generic code for med. #6 */ @521 PRESCR6 1. /*Prescription status code */ @522 CONTSUB6 1. /*Controlled status code */ @523 COMSTAT6 1. /*Composition status code */ @524 DRUG6CL1 $CHAR4. /*NDC code #1 for medication #6 */ @528 DRUG6CL2 $CHAR4. /*NDC code #2 for medication #6 */ @532 DRUG6CL3 $CHAR4. /*NDC code #3 for medication #6 */ @536 DRG6ING1 $CHAR5. /*Ing. #1 */ @541 DRG6ING2 $CHAR5. /*Ing. #2 */ @546 DRG6ING3 $CHAR5. /*Ing. #3 */ @551 DRG6ING4 $CHAR5. /*Ing. #4 */ @556 DRG6ING5 $CHAR5. /*Ing. #5 */ @561 GEN7 $CHAR5. /*Generic code for med. #7 */ @566 PRESCR7 1. /*Prescription status code */ @567 CONTSUB7 1. /*Controlled status code */ @568 COMSTAT7 1. /*Composition status code */ @569 DRUG7CL1 $CHAR4. /*NDC code #1 for medication #7 */ @573 DRUG7CL2 $CHAR4. /*NDC code #2 for medication #7 */ @577 DRUG7CL3 $CHAR4. /*NDC code #3 for medication #7 */ @581 DRG7ING1 $CHAR5. /*Ing. #1 */ @586 DRG7ING2 $CHAR5. /*Ing. #2 */ @591 DRG7ING3 $CHAR5. /*Ing. #3 */ @596 DRG7ING4 $CHAR5. /*Ing. #4 */ @601 DRG7ING5 $CHAR5. /*Ing. #5 */ @606 GEN8 $CHAR5. /*Generic code for med. #8 */ @611 PRESCR8 1. /*Prescription status code */ @612 CONTSUB8 1. /*Controlled status code */ @613 COMSTAT8 1. /*Composition status code */ @614 DRUG8CL1 $CHAR4. /*NDC code #1 for medication #8 */ @618 DRUG8CL2 $CHAR4. /*NDC code #2 for medication #8 */ @622 DRUG8CL3 $CHAR4. /*NDC code #3 for medication #8 */ @626 DRG8ING1 $CHAR5. /*Ing. #1 */ @631 DRG8ING2 $CHAR5. /*Ing. #2 */ @636 DRG8ING3 $CHAR5. /*Ing. #3 */ @641 DRG8ING4 $CHAR5. /*Ing. #4 */ @646 DRG8ING5 $CHAR5. /*Ing. #5 */ @651 BIOTER 1. /*Has hospital rec'd funding for bioterror preparedness?*/ @652 MDSP 1. /*Did hospital receive any MDSP funds? */ @653 EMROPD 1. /*Does OPD have electronic patient med records?*/ @654 EDEMOGO 1. /*Does EMR sys incl patient demographic info? */ @655 ECPOEO 1. /*Does EMR sys incl comp orders for prescript? */ @656 ECTOEO 1. /*Does EMR sys incl comp orders for tests? */ @657 ERESULTO 1. /*Does EMR sys incl test results? */ @658 ENNOTESO 1. /*Does EMR sys incl nurses' notes? */ @659 EPNOTESO 1. /*Does EMR sys incl physicians' notes? */ @660 EREMINDO 1. /*Does EMR sys incl reminders for interv/tests?*/ @661 EPUBHTHO 1. /*Does EMR sys incl public health reporting? */ @662 RACER 1. /*Race recode */ @663 RACEETH 1. /*Race/Ethnicity */ @664 AGEDAYS 3. /*Age in days for patients less than one year */ @667 AGER 1. /*Age recode */ @668 DIAG1R 6. /*Diagnosis #1 - numeric recode */ @674 DIAG2R 6. /*Diagnosis #2 - numeric recode */ @680 DIAG3R 6. /*Diagnosis #3 - numeric recode */ @686 SCOPWI1R 4. /*Scope write-in #1 numeric recode */ @690 SCOPWI2R 4. /*Scope write-in #2 numeric recode */ @694 DIAGSC1R 4. /*Other diag/screen service #1 - numeric recode*/ @698 DIAGSC2R 4. /*Other diag/screen service #2 - numeric recode*/ @702 OTHPRC1R 4. /*Other procedure #1 - numeric recode */ @706 OTHPRC2R 4. /*Other procedure #2 - numeric recode */ @710 OTHPRC3R 4. /*Other procedure #3 - numeric recode */ @714 OTHPRC4R 4. /*Other procedure #4 - numeric recode */ @718 WHOCOMP 1. /*Who completed the Patient Record Forms? */ @719 SETTYPE 1. /*Setting type */ @720 YEAR 4. /*Year (2005) */ @724 CSTRATM 8. /*Clustered CSTRATM -– masked. */ @732 CPSUM 6. /*Clustered CPSUM -- masked. */ @738 OPDWT 8. /*OPD Weight */ ;