Skip to content

Instantly share code, notes, and snippets.

View jmandel's full-sized avatar

Josh Mandel jmandel

View GitHub Profile
{
"created_at": "Mon Feb 10 04:58:01 +0000 2014",
"id": 432740212176093200,
"id_str": "432740212176093184",
"text": "If Jim has 50 chocolate bars, and eats 45, what does he have? Diabetes. Jim has diabetes.",
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": []
{
"resourceType": "StructureDefinition",
"id": "oauth-uris",
"url": "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris",
"name": "OAuth Endpoint URIs",
"publisher": "SMART Health IT",
"contact": [ {
"telecom": [ {
"system": "other",
"value": "http://smarthealthit.org"
{
"resourceType":"Bundle",
"type":"batch",
"entry":[
{
"request":{
"method":"POST",
"url":"Observation"
},
"fullUrl":"urn:uuid:5b242326-cda7-4333-bef3-6472648bbeb0",
@jmandel
jmandel / 2BR rents near 02135.ipynb
Last active February 19, 2016 22:00
2BR Rent Near 02135
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmandel
jmandel / index.sh
Created February 1, 2016 22:04
Download 2016 EHR Certification PDFs and index for search
wget -e robots=off --mirror -l 1 http://confluence.oncprojectracking.org/display/ONCCERT2015/ONC+Health+IT+Certification+Program+2015+Edition+Test+Methods+Home
grep -ri final_rule/pdfs confluence.oncprojectracking.org/ | grep -oP '(https.*?)\.pdf' > pdfs
for i in $(cat pdfs); do wget $i; done
for i in *.pdf; do pdftotext "$i"; done
grep API *.txt
@jmandel
jmandel / export.json
Last active December 27, 2015 09:19
BB REST API Calls for POSTMAN REST Client
{
"id": "6ecaefca-6a4c-995c-3d7f-7b5a2b0607d4",
"name": "BB REST API",
"timestamp": 1383525089539,
"requests": [
{
"collectionId": "6ecaefca-6a4c-995c-3d7f-7b5a2b0607d4",
"id": "40947022-e6c1-d87d-38e1-b3b54bafe10a",
"name": "0. Register",
"description": "",
#!/bin/bash
EMAILS="addresses@go.here, separated@by.commas"
DATE=$(date +"%Y-%m-%d")
NAME="Nightly Build $DATE"
prepareToBuild (){
git reset --hard git-svn
rm fhir-error-dump.txt
rm -rf temp/*
}
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>SMART patient bundle for transactional posting</title>
<id>urn:uuid:3380</id>
<updated>2013-09-21T07:41:22.653989</updated>
<entry xmlns="http://www.w3.org/2005/Atom">
<title>SMART Patient-level resource</title>
<id>cid:patient-1032702</id>
<updated>2013-09-21T07:41:22.653989</updated>
@jmandel
jmandel / three-requests-answered.txt
Created September 20, 2013 20:46
Rapid-fire requests to `http://hl7connect.healthintersections.com.au/svc/fhir/` result in `500` response status.
$ sh three-requests.sh
Response 2: 500
Response 1: 200
Response 3: 200