Skip to content

Instantly share code, notes, and snippets.

Josh Mandel jmandel

Block or report user

Report or block jmandel

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
View example.xml
<example xsi:type="QSI_TS"><!-- intersection, because it is a QSI -->
<!-- every other Tuesday -->
<term xsi:type='PIVL_TS' alignment='DW'>
<phase lowClosed='true' highClosed='false'>
<low value='20001202'/>
<high value='20001203'/>
<period value='2' unit='wk'/>
<problem code="363346000" codeSystem="[sct]" displayName="Cancer">
    <code code="363698007"  displayName="finding site"/>
    <value code="39607008" displayName="Lung"/>
    <code code="408729009" displayName="finding status"/>
    <value code="415684004" displayName="suspected"/>
View 0-i2b2-source.ttl
@prefix : <> .
[] a :Observation;
:code "ICD9:724.5"; # backache
:date "2012-04-14";
:modifier [
:code "SNOMED:24484000" # severe
jmandel /
Last active Dec 17, 2015
SPARQL Queries from drug --> disease, mechanism
prefix rxnorm: <> 
prefix skos: <> 
prefix umls: <> 
prefix ndfrt: <> 
SELECT distinct ?d ?label 
 FILTER (?d = rxnorm:153843 ||
         ?d = rxnorm:312961 ||
         ?d = rxnorm:866514 ||
jmandel / diagnostic-report.ttl
Last active Dec 18, 2015
FHIR RDF proposals / examples
View diagnostic-report.ttl
@prefix : <http://hl7/org/fhir/DiagnosticReport#> .
@prefix fhir: <http://hl7/org/fhir/> .
@prefix Narrative: <http://hl7/org/fhir/Narrative#> .
@prefix Observation: <http://hl7/org/fhir/Observation#> .
@prefix Quantity: <http://hl7/org/fhir/Quantity#> .
@prefix Resource: <http://hl7/org/fhir/Resource#> .
@prefix Reference: <http://hl7/org/fhir/Reference#> .
@prefix Range: <http://hl7/org/fhir/Range#> .
@prefix Codeable: <http://hl7/org/fhir/Codeable#> .
@prefix Coding: <http://hl7/org/fhir/Coding#> .

The browser field is provided by a module author as a hint to javascript bundlers or component tools when preparing modules for client side use.


Below are common terms used in the rest of the document


This is a non-dom based javascript execution environment. It usually only contains the base javascript language spec libraries and objects along with modules to communicate with OS features (available through commonjs require).


jmandel /
Last active Dec 18, 2015
BlueButton+ Pull Demo

Hi BB+ Pull!

I wanted to share links to the demo we showed on the previous call. To try it out:

  1. Visit Blood Pressure App
  2. Choose "Good Health Clinic". (this register a new client_id then redirects for authorization.)
  3. Log in as demo/demo to Authorize access

More details below :-)

jmandel /
Last active Dec 20, 2015
Generating value set for C-CDA Language Codes

Picking Language Codes for MU2 Consolidated CDA

Here you'll find:

  • An English-language description of how to choose language codes for MU2 C-CDA
  • An AWK script that generates the complete list of languages in the value set
  • The value set itself, with two tab-separated columns (Code, Language)

Here's the algorithm:

jmandel / bundle.xml
Created Sep 5, 2013
FHIR bundle for a SMART patient record
View bundle.xml
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="">
<title>SMART patient bundle for transactional posting</title>
<entry xmlns="">
<title>SMART Patient-level resource</title>
View three-requests-answered.txt
$ sh
Response 2: 500
Response 1: 200
Response 3: 200
You can’t perform that action at this time.