Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/chance/1.1.6/chance.min.js" integrity="sha256-+bo9VPNB85DWg5DKk5YGyHqCd4zCK4fjnhD9hSIM/aI=" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmlns:xmi="http://www.omg.org/XMI" xmlns:assertion="http:///org/apache/ctakes/typesystem/type/temporary/assertion.ecore" xmlns:cas="http:///uima/cas.ecore" xmlns:libsvm="http:///org/apache/ctakes/smokingstatus/type/libsvm.ecore" xmlns:ne="http:///org/cleartk/type/ne.ecore" xmlns:refsem="http:///org/apache/ctakes/typesystem/type/refsem.ecore" xmlns:relation="http:///org/apache/ctakes/typesystem/type/relation.ecore" xmlns:structured="http:///org/apache/ctakes/typesystem/type/structured.ecore" xmlns:syntax="http:///org/apache/ctakes/typesystem/type/syntax.ecore" xmlns:tcas="http:///uima/tcas.ecore" xmlns:textsem="http:///org/apache/ctakes/typesystem/type/textsem.ecore" xmlns:textspan="http:///org/apache/ctakes/typesystem/type/textspan.ecore" xmlns:type="http:///de/tudarmstadt/ukp/dkpro/core/api/metadata/type.ecore" xmlns:type10="http:///org/cleartk/srl/type.ecore" xmlns:type11="http:///org/cleartk/syntax/constituent/type.ecore" xmlns:type12="http:///org/cleartk/syn
<?xml version="1.0" encoding="UTF-8"?><xmi:XMI xmlns:refsem="http:///org/apache/ctakes/typesystem/type/refsem.ecore" xmlns:util="http:///org/apache/ctakes/typesystem/type/util.ecore" xmlns:relation="http:///org/apache/ctakes/typesystem/type/relation.ecore" xmlns:structured="http:///org/apache/ctakes/typesystem/type/structured.ecore" xmlns:textspan="http:///org/apache/ctakes/typesystem/type/textspan.ecore" xmlns:tcas="http:///uima/tcas.ecore" xmlns:xmi="http://www.omg.org/XMI" xmlns:cas="http:///uima/cas.ecore" xmlns:type="http:///org/apache/ctakes/drugner/type.ecore" xmlns:assertion="http:///org/apache/ctakes/typesystem/type/temporary/assertion.ecore" xmlns:textsem="http:///org/apache/ctakes/typesystem/type/textsem.ecore" xmlns:syntax="http:///org/apache/ctakes/typesystem/type/syntax.ecore" xmi:version="2.0">
<cas:NULL xmi:id="0"/>
<tcas:DocumentAnnotation xmi:id="1" sofa="6" begin="0" end="25" language="en"/>
<textspan:Segment xmi:id="13" sofa="6" begin="0" end="25" id="SIMPLE_SEGMENT"/>
<tex
@MatthewVita
MatthewVita / gist:ea277dd2969f6cf291b481a1fd5eb818
Last active July 11, 2019 19:28
OpenEMR Rest API Dev Setup

Hi Sherwin and Daniel,

Sorry for my delayed response on this - I have been very ill. Follow these steps to get the REST API up and running so we can continue with some of the TODO items.

  1. Install Ubuntu on your computer or in a VirtualBox via https://itsfoss.com/install-linux-in-virtualbox/
  2. Install Docker:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
<?php
class C_ClinicalDocumentProcessing extends Controller {
var $test_data = array(
// Patient ID 1
"1" => array(
// A new patient note ID 32
"encounter_note_32" => array(
"RXNORM" => array(
array(
@MatthewVita
MatthewVita / lint.sh
Last active February 25, 2017 17:32
OpenEMR Parallel Linter
#!/bin/bash
if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] ; then
printf "OpenEMR Parallel Linter\n\n"
printf " Arguments\n"
printf " -h, --help | Information on using this script\n"
printf " -d, --dir | The codebase directory for OpenEMR\n"
exit 0
fi
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="GoogleStyle">
<option name="JAVA_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="8" />
<option name="USE_TAB_CHARACTER" value="false" />
<option name="SMART_TABS" value="false" />
<option name="LABEL_INDENT_SIZE" value="0" />
git checkout develop
git fetch
git pull
git checkout us_123_impl_foobar_feature
git merge origin/develop # Creates a new commit on us_123_impl_foobar_feature, that contains all changes from develop
git reset --soft origin/develop # Generates a set of staged changes
git add -A
git commit -m '[US-123] Adds Foobar'
git checkout develop
git merge us_123_impl_foobar_feature
@MatthewVita
MatthewVita / Hashtagify.js
Last active August 29, 2015 14:07
Hashtagify.js - Simple regex function that converts hashtags to urls
/*
*@desc: Simple regex function that converts hashtags to urls
*@usage:
* console.log("I love #JavaScript it's a fan#tastic language!".hashtagify());
* ...returns `I love <a href="http://twitter.com/#!/search/#JavaScript">#JavaScript</a> it's a fan#tastic language!`
*/
String.prototype.hashtagify = function() {
return (this.replace(/ (#[a-z0-9][a-z0-9\-_]*)/ig, ' <a href="http://twitter.com/#!/search/$1">$1</a> '));
};
@MatthewVita
MatthewVita / AmberParser.go
Last active August 29, 2015 14:07
AmberParser.go - Convenience package for parsing Amber templates with JSON parameters
/*
*@desc: Convenience package for parsing
* Amber templates with JSON parameters
*
*@use:
ambrPrsr := amberParser.New("src/views/foobar.amber", `{
"favorite_color":"grey",
"year":"2014",
"baz":"bar"
}`)