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
Select e.EncounterNo, e.EncntrStartDate as old_encounter, e2.EncntrStartDate as new_encounter | |
From DocTypes as dt | |
Inner Join documents as d on dt.DocType = d.DocType | |
Inner Join DocsOwners as do on d.DocId = do.DocId | |
Inner Join Encounters as e on do.OwnerId = e.EncntrOwnerId | |
Inner Join Encounters as e2 on e.EncounterNo = e2.EncounterNo | |
Where DocTypeName in ( 'SNGRPT', 'SNGRPTR' ) | |
And e.EncntrOwnerId <> e2.EncntrOwnerId | |
And e2.EncntrStartDate > '1/1/2005' | |
And (Select Count(*) From Documents as d2 |
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 -wKU | |
out = File.new 'delete.csv', 'w' | |
encounters = [] | |
doc_dates = [] | |
doc_types = [] | |
Dir.glob('*.tag').each do |tag| | |
input = File.new tag, 'r' | |
input.each_line do |line| | |
val = line.split(':')[1].strip |
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
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>ICD Threat Level</title> | |
<style type="text/css" media="screen"> | |
/* line 93, /var/www/rails/adhocs/app/assets/stylesheets/adhocs.scss */ | |
.threat { | |
width: 100px; | |
background-color: green; | |
padding: 4px 45px 4px 45px; |
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
SELECT OwnerTypeName AS Folder, | |
EncounterNo, EncntrStartDate, | |
EnrolleeName, | |
DocTypeName, d.DocId, ModifyDateTime | |
FROM DocTypes AS dt | |
INNER JOIN documents AS d ON dt.DocType = d.DocType | |
INNER JOIN docsowners AS do ON d.DocId = do.DOcId | |
INNER JOIN Owners AS o ON do.OwnerId = o.OwnerId | |
INNER JOIN OwnerTypes AS ot ON o.OwnerType = ot.OwnerType | |
INNER JOIN Encounters AS e ON do.OwnerId = e.EncntrOwnerId |
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] |
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
@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
# 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
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
<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> |