Skip to content

Commit

Permalink
Minor MIPS patch (#734)
Browse files Browse the repository at this point in the history
Added a closing html tag  to one file, added linked MIPS
  • Loading branch information
aethelwulffe authored and Tony McCormick committed Oct 25, 2017
1 parent e048d65 commit 316a87c
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 10 deletions.
24 changes: 15 additions & 9 deletions modules/MIPS/clinical_measures.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,10 @@ function Form_Validate() {
<div style='float:left'>
<table class='text'>
<?php if(in_array($type_report, array('pqrs', 'pqrs_individual_2016'))) { ?>
<tr>

<td class='label'>
<?php echo htmlspecialchars(xl('Begin Date'), ENT_NOQUOTES); ?>:
</td>
<tr>
<td class='label'>
<?php echo htmlspecialchars( xl('Begin Date'), ENT_NOQUOTES); ?>:
</td>
<td>
<input type='text' name='form_begin_date' id='form_begin_date' size='20'
value='<?php echo htmlspecialchars( $_POST['form_begin_date'], ENT_QUOTES); ?>'
Expand Down Expand Up @@ -379,7 +375,7 @@ function Form_Validate() {
</td>
<td>
<select <?php echo $dis_text; ?> id='form_rule_filter' name='form_rule_filter'>
<option value='pqrs_individual_2016' <?php if ($rule_filter == "pqrs_individual_2016") {echo "selected";} ?>><?php echo xlt('Individual Measures'); ?></option>
<option value='pqrs_individual_2016' <?php if ($rule_filter == "pqrs_individual_2016") {echo "selected";} ?>><?php echo xlt('Registry Measures'); ?></option>
</select>
</td>
</tr>
Expand Down Expand Up @@ -473,7 +469,7 @@ function Form_Validate() {
<input id="xmloptimize" type="checkbox" name="xmloptimize" value="1" />
<a href="#" id="xml_pqrs" class='css_button' onclick='GenXml("PQRS");'>
<span>
<?php echo htmlspecialchars(xl('Generate XML for PQRS'), ENT_NOQUOTES); ?>
<?php echo htmlspecialchars(xl('Generate XML for MIPS'), ENT_NOQUOTES); ?>
</span>
</a>
<?php }
Expand Down Expand Up @@ -538,14 +534,24 @@ function Form_Validate() {
case 'pqrs':
case 'pqrs_individual_2016':
if(!empty($row['pqrs_code'])) {
$tempMeasuresString .= ' '.htmlspecialchars(xl('PQRS').':'.$row['pqrs_code'], ENT_NOQUOTES).' ';
$tempMeasuresString .= ' '.htmlspecialchars(xl('MIPS ').preg_replace('/PQRS_/', '',$row['pqrs_code']), ENT_NOQUOTES).' ';

}
break;

}

if(!empty($tempMeasuresString)) {
echo '('.$tempMeasuresString.')';
$patterns = array();
$patterns[0] = '/PQRS_0/';
$patterns[1] = '/pre_0/';

$mipsnumber = preg_replace($patterns, '_', $row['pqrs_code']);
$measureURL = 'http://suncoastconnection.com/standards/Registrymeasures/2017_Measure'. $mipsnumber.'_Registry.pdf';
?>
<a href='<?php echo $measureURL;?>' target="_blank"><?php echo $tempMeasuresString;?></a>
<?php

}

if(!(empty($row['concatenated_label']))) {
Expand Down
44 changes: 44 additions & 0 deletions modules/MIPS/import_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,64 @@
sqlStatementNoLog($query);

sqlStatementNoLog("TRUNCATE TABLE `billing`;");
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing.sql");
sqlStatementNoLog($query);
}
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing1.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing1.sql");
sqlStatementNoLog($query);
}
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing2.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing2.sql");
sqlStatementNoLog($query);
}
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing3.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing3.sql");
sqlStatementNoLog($query);
}

if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing4.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing4.sql");
sqlStatementNoLog($query);
}
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing5.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/billing5.sql");
sqlStatementNoLog($query);
}


sqlStatementNoLog("TRUNCATE TABLE `facility`;");
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/facilities.sql");
sqlStatementNoLog($query);

sqlStatementNoLog("TRUNCATE TABLE `form_encounter`;");
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/form_encounter.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/form_encounter.sql");
sqlStatementNoLog($query);
}
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/form_encounter1.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/form_encounter1.sql");
sqlStatementNoLog($query);
}
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/form_encounter2.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/form_encounter2.sql");
sqlStatementNoLog($query);
}

sqlStatementNoLog("TRUNCATE TABLE `forms`;");
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/forms.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/forms.sql");
sqlStatementNoLog($query);
}
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/forms1.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/forms1.sql");
sqlStatementNoLog($query);
}
if ( file_exists($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/forms2.sql")) {
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/forms2.sql");
sqlStatementNoLog($query);
}

sqlStatementNoLog("TRUNCATE TABLE `insurance_companies`;");
$query = file_get_contents($GLOBALS['OE_SITE_DIR']."/filemanager/files/Importer/insurance_companies.sql");
Expand Down
3 changes: 2 additions & 1 deletion modules/filemanager/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@
<script src="assets/js/script.js"></script>

</body>


</html>

0 comments on commit 316a87c

Please sign in to comment.