Skip to content

Instantly share code, notes, and snippets.

Simon Rascovsky MD, M.Sc simonmd

Block or report user

Report or block simonmd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
simonmd /
Last active Feb 1, 2018
DICOM Widget for Dashing


Simple Dashing widget (and associated files) to display DICOM server checks.



Add it to dashing's gemfile:

simonmd / gist:ca82d7920dba829d28ed
Created Dec 24, 2014
Coerce para corregir el encoding DICOM cuando no vienen con SpecificCharacterSet
View gist:ca82d7920dba829d28ed
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="" version="1.0">
<xsl:output method="xml" indent="no"/>
<xsl:template match="/dataset">
<attr tag="00080005" vr="CS">ISO_IR 100</attr>
simonmd / pulling_changes fork
Created Apr 11, 2012
Pulling changes into a Github fork from the original repository
View pulling_changes fork
Pulling changes into a Github fork from the original repository
If you maintain your own ongoing fork of a project on Github, you will inevitably want to pull in changes from the originator’s repository. Here’s how I usually go about it.
First add the other guy’s repository to your list of remotes:
cd my-fork
git remote add other-guy
If you were to then list your remotes, you would have something like:
simonmd / ps_template_parser.rb
Created Mar 27, 2012 — forked from elskwid/ps_template_parser.rb
Powerscribe templates XML parsing
View ps_template_parser.rb
#!/usr/bin/env ruby
require 'rexml/document'
include REXML
#open the XML file exported from Powerscribe
# Ruby lets us open the file in a block (thereby closing it when it's done)"Voice.xml") do |file|
# The "block" is that do ... end syntax and |file| is a reference to the file we've opened
doc =
View stats_peso CouchDB view
"_id": "_design/stats_peso",
"_rev": "2-eb08db50d60f5b02385c88908a0974df",
"language": "javascript",
"views": {
"stats_peso": {
"map": "function(doc) {\n if (doc.t00101030 != void 0) {\n emit(\"Peso_stats\", parseInt(doc.t00101030));\n }\n}",
"reduce": "_stats"
View study_desc CouchDB view
"_id": "_design/study_desc",
"_rev": "1-f220f2722880f8cb7fac3286828e4612",
"language": "javascript",
"views": {
"study_desc": {
"map": "function(doc) {\n emit({\"StudyDesc\":doc.t00400254,\"SerieDesc\":doc.t0008103E},1);\n}",
"reduce": "function(keys, values, rereduce) {\nreturn sum(values);\n}\n"
View patient_name CouchDB view
"_id": "_design/patient_name",
"_rev": "2-5bd74fcede5b67023f8d80d5b1360e9a",
"language": "javascript",
"views": {
"patient_name": {
"map": "function(doc) {\n emit(doc.t00100010,{\"pat_id\":doc.t00100020,\"StudyDescription\":doc.t00400254, \"BirthDate\":doc.t00100030, \"Accession\":doc.t00080050, \"Modality\":doc.t00080060, \"StudyDate\":doc.t00080020, \"Institution\":doc.t00080080});\n}\n",
"reduce": "function(keys, values) {\nfor(var k=0;k<1;k++) return values[k];\n}"
View pat_id CouchDB view
"_id": "_design/patient_id",
"_rev": "1-17546bcc3050ddc486f9daf875bdeef5",
"language": "javascript",
"views": {
"patient_id": {
"map": "function(doc) {\n emit(doc.t00100020,{Nombre:doc.t00100010,\"StudyDescription\":doc.t00400254, \"StudyDate\":doc.t00080020, \"StudyIUID\":doc.t0020000D});\n}\n",
"reduce": "function(keys, values) {\nfor(var k=0;k<1;k++) return values[k];\n}\n"
You can’t perform that action at this time.