      _________________________________
     /  ______  ______  ___  ______   /
    /  / __/  |/  / _ \/ _ \/_  __/  /
   /  _\ \/ /|_/ / , _/ , _/ / /    /
  /  /___/_/  /_/_/|_/_/|_| /_/    /
 /________________________________/

SMRRT - The Simple, Modular RPMS Reporting Tool
Bronchitis Module
Version 1.3 beta

CDC guidelines recommend treating bronchitis with doxycycline in patients with
any of the following comorbidities: immunocompromised (HIV, transplant), heart
disease (CHF), and lung disease (COPD, IPF). For patients who have bronchitis
but do not have any of those comorbidities, the guidelines recommend against the
use of antibiotics. This SMRRTModule analyzes antibiotic prescribing habits for
bronchitis diagnoses based on those guidelines. The module generates PDF report
cards for the facility, individual hospital locations, and providers as well as
an XLSX file of visit data and statistics by facility, location, and provider.
Provider report cards are designed to be printed out and then folded and placed
into window envelopes.

Copyright (C) 2022 LT Nicholas Stauffer, PharmD, BCPS, AAHVIP, NCPS
(nicholas.stauffer@ihs.gov)

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.              

USAGE INSTRUCTIONS:
- Launch SMRRT.

- Drag and drop a this SMRRTModule onto the terminal window. The path of the
  dropped module will display.
  
- Click the window titlebar one time to bring the focus back to the
  application. You should see a flashing prompt at the end of the module path.
  (You will need to do this whenver you drag and drop something into the
  program.)
  
- Press enter. The module will run, and the module information will display.

- SMRRT will prompt you for a starting date for the report. You can use a few 
  different common date formats. You must enter a 4-digit year. Input a date and
  press enter.

- SMRRT will then prompt you for an ending date for the report. Input a date and
  press enter.
  
- SMRRT will then display the instructions for extracting the data from RPMS. 
  However, you do not need to manually run any reports, since SMRRT
  automatically generates the required code to run the needed reports. Please
  refer to the instructions on the screen.
  
- When the report has been run, drag and drop the SecureCRT session file onto
  the SMRRT window. The path to the file will appear. Make sure the SMRRT window
  has focus (as described above when loading the module), and then press enter.

- SMRRT will then ask if you would like to group any hospital locations together
  or remove any location for the analysis. This is useful to combine all the
  internal medicine provider's clinics into one internal medicine group, which
  is useful for comparing within and among departments, for example. Data for
  individual providers are still available even if locations are grouped.
  Providers are able to see how they (anonymously) compare to their coworkers
  that work in the same locations they do, which makes grouping even more
  useful. Locations that are removed from the analysis will (obviously) be
  removed, along with all visits associated with those locations. This is useful
  to remove inpatient locations. It is *strongly* recommended that you remove
  inpatient locations from the analysis because this module is designed for
  outpatient use. This is because inpatient locations will show up if there were
  discharge medications, but because RPMS generates a new visit for every
  single day of someone's inpatient hospital admission stay, it *will* skew your
  analysis.
  
- To perform any location grouping or removal, enter y. (Otherwise, enter n and
  skip to the next step.) SMRRT will display an alphabetical listing of all 
  locations. Enter g to group locations, r to remove locations, or d if you are
  done grouping/removing locations. Again, you are strongly recommended to
  remove inpatient locations. If you enter r, SMRRT will then prompt you to
  enter the numbers that correspond to the location(s) you would like to remove,
  with a comma (,) separating each number. If you enter g, SMRRT will first
  prompt you for a name for the group. Then, it will ask you for location
  numbers like the remove option did.

- Next, SMRRT will ask you where you would like to save the XLSX (Excel) file.
  You can enter a full path to where you would like the file to be stored on
  your computer or network drive. If you just enter a file name without a path,
  for example "data" or "report", the file will be stored in the same folder
  where SMRRT (the program, not the module) is stored. Example: if your SMRRT
  folder is on the S: drive, and you downloaded this module to your Desktop, and
  you choose to save the file as "data", the file will be saved in
  "S:\SMRRT\data.xlsx". When you have entered your choice, SMRRT will generate 
  the XLSX file, which should only take a few seconds. If there is an error
  generating the XLSX file, make sure that you don't have the file open in Excel
  already (if it is in the same name/location as a previously generated file).
  Also make sure that you have the correct file permissions to the location you
  are attempting to save the file.
  
- Next, SMRRT will ask you where you would like to save the PDF file that
  contains the report for the facility, each hospital location, and report cards
  for each provider. The information regarding choosing a location for the PDF
  file is the same as for the XLSX file. Input your choice and then press enter.
  SMRRT will generate the PDF, which may take several minutes depending on the
  speed of your computer and the amount of data to be processed.
  
- When SMRRT has finished, it will tell you to press enter to quit.
