Skip to content

Building MONAHRQ

Chris Carlson edited this page Sep 26, 2017 · 7 revisions

Overview

MONAHRQ consists of two key components that must be compiled before MONAHRQ can generate websites. These are the .NET solution (MONAHRQ.sln) and the AngularJS website template (in MONAHRQ\Resources\Templates\Site.Src).

To compile MONAHRQ from source:

  1. Ensure that all prerequisites listed in MONAHRQ Application and MONAHRQ Website below are installed
  2. (Optional) Place your desired version of the MS-DRG grouper into the MONAHRQ.SysTray\Grouper\Msgmce directory
  3. Compile all projects in MONAHRQ.sln
  4. Compile the generated website template in MONAHRQ\Resources\Templates\Site.Src

MONAHRQ Application

The MONAHRQ application was developed and compiled using Microsoft Visual Studio on Windows 10 using Debug or Release configuration for “Any CPU” platform.

The only requirement for building and running MONAHRQ is the Microsoft Access Database Engine 2010. The MONAHRQ solution may be compiled using Visual Studio or MSBuild. Other build engines and IDEs are untested.

External dependencies required by the MONAHRQ solution are managed by NuGet. You will need to perform a NuGet restore prior to building the solution or any individual projects.

MONAHRQ Website

The MONAHRQ website template is made with AngularJS and is compiled with Node.js grunt. The source code is located in MONAHRQ\Resources\Templates\Site.Src and the compiled template is located in MONAHRQ\Resources\Templates\Site.

The following software packages are required to build the website:

  • Git
  • Ruby 2.2.4 (x64) or later
  • Sass (C++ or Ruby version)
  • Node.js and NPM with the following packages:
    • Bower
    • grunt (installed locally and globally)
    • grunt-contrib-sass

⚠️ The build process assumes that Git, Ruby, Sass and Node.js have been added to your PATH environment variable.

External dependencies required by the MONAHRQ website are managed by npm and bower. You will need to restore packages using npm install and bower install prior to building the website with grunt. To build the website, execute grunt build from the Site.src directory.

MS-DRG Grouper

The MONAHRQ.SysTray component of the MONAHRQ Windows Application relies on the MS-DRG grouper provided by CMS. If the grouper is not supplied prior to building the MONAHRQ.SysTray project, it will be downloaded automatically from the most recent MONAHRQ release on GitHub. Refer to the Monahrq.SysTray\Grouper.targets MSBuild file for more information about the build process.