- Get the the list of active deficiencies by running the 02_open_deficiencies.sql.
- Def Assignment TAT = DeficiencyCreateDateTime - DocumentCreateDateTime
- Get the list of completed deficiencies by running the 03_completed_deficiencies.sql.
- Parse the ListData field's xml.
- If the DocId is not listed in the deficiencies table in the operational database and the DocType is valid:
- Def Assignment TAT = //Deficiency/CreateDateTime - Document.CreateDateTime
- If the DocId is not listed in the deficiencies table in the operational database and the DocType is valid:
- Parse the ListData field's xml.
- Def Completed TAT = Event.StartDateTime - Document.CreateDateTime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hospitals = db.getMongo().getDBNames(); | |
for(var h in hospitals){ | |
if (hospitals[h] != "admin" && hospitals[h] != "local") { | |
var db = db.getMongo().getDB( hospitals[h] ); | |
var size_before = ((db.stats()["dataSize"] / 60) / 60); | |
print( "Repairing DB " + db.getName() + " - " + size_before ); | |
db.repairDatabase(); | |
var size = ((db.stats()["dataSize"] / 60) / 60); | |
print( " Complete - " + size + ". Size reduced by " + ( size_before - size ) + " MB." ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Soarian Conversion Script | |
# Created By Ed Botzum | |
# | |
# This script replaces the UTF xml declaration with an IBM one. | |
input_file = open( 'soar_1-1-0.xml', 'r' ) | |
input_text = input_file.read() | |
print input_text.replace( 'utf-8', 'IBM-1047' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template name="p1"> | |
<xsl:variable name="message" select="string(./messages/element[purpose='1']/text)"/> | |
<text><xsl:text>$message-p1$</xsl:text><xsl:value-of select="$message"/></text> | |
</xsl:template> | |
<xsl:template name="p2"> | |
<xsl:variable name="message" select="string(./messages/element[purpose='2']/text)"/> | |
<text><xsl:text>$message-p2$</xsl:text><xsl:value-of select="$message"/></text> | |
</xsl:template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
encounters = [] | |
Dir.glob( '*.txt' ).each do |log| | |
puts "Reading #{log}" | |
input = File.new log, 'r' | |
input.each_line do |line| | |
if line.include? '):' | |
encounter = line.split( '):' )[0].split( ' - ' )[1] | |
encounters << encounter unless encounters.include? encounter | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Email Settings | |
SMTP Server: tbd | |
Email Account: [email protected] | |
Email Recipients: [email protected];[email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
mysql -uuser -ppass dbname -e "Update Files Set Name = '*%date:~-2%' Where JobId = 1059;" | |
Echo Finished updating the year to %date:~-2% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Soarian Merge Script | |
# Created By Ed Botzum | |
# | |
# This script reads the specified input xml files in the specified | |
# directory and merges them into one mod file. It then deletes the | |
# specified files from the processing directory. | |
import glob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -w | |
# encoding: UTF-8 | |
require 'base64' | |
input = '' | |
unless ARGV[0] == 'hl7' | |
input = File.read 'doc_base64.txt' | |
else | |
input = File.read( 'hl7_samples/working_hl7_sample.txt' ).split( '^Base64^' )[1] |