Skip to content

Instantly share code, notes, and snippets.

View jmandel's full-sized avatar

Josh Mandel jmandel

View GitHub Profile
{
"resourceType": "Observation",
"id": "1725-lab",
"status": "final",
"category": {
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory",
"display": "Laboratory"
@jmandel
jmandel / names-in-room.ipynb
Created May 23, 2016 04:28
Names in a 1908s Room
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmandel
jmandel / casino_bot.py
Last active May 27, 2016 18:43
FHIR Zulip Bots
#!/usr/bin/env python2.7
from __future__ import print_function
import sys
import os
import optparse
import json
import random
import zulip
zulip_client = zulip.Client(
@jmandel
jmandel / gist:bb9bb698fa4e1c662100d65285a1ade4
Created June 2, 2016 14:20
Example extension for patient portal FHIR endpoint
{
"resourceType": "Organization",
"extension": [
{
"url": "http://fhir-registry.smarthealthit.org/StructureDefinition/patient-portal-fhir-endpoint",
"valueUri": "https://open-ic.epic.com/...whatever"
}
],
}
@jmandel
jmandel / gist:cbf2cc76adf3e10845bca72c3e8d08db
Last active June 14, 2016 14:15
care team example.json
{
"resourceType":"CarePlan",
"id": "argo-example",
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"> <ol> <li>CareTeam Member: John Smith, MD Role = Allopathic and Osteopathic Physicians:Internal Medicine:Cardiovascular Disease</li> <li>CareTeam Member: Allen Vitalis Role = Patient (person)</li> </ol> </div>"
},
"subject":{
"reference":"Patient/99912345"
},
@jmandel
jmandel / validate_resource.py
Created June 23, 2016 16:16
Python resource validation example
import json
from fhirclient.models.fhirabstractbase import FHIRValidationError
from fhirclient.models.fhirelementfactory import FHIRElementFactory
resource = json.loads("""{
"resourceType": "Condition",
"patient": {
"reference": "Patient/123"
}
}""")
@jmandel
jmandel / Steps.md
Last active August 1, 2016 22:27
Dual boot on XPS13 9350

Setup partitions

  • Use existing EFI partition
  • Create a new 750MB boot partition (not encrypted)
  • Create a root partition.
  • Setup encryption
cryptsetup formatLuks /dev/nvme0n1p6
cryptsetup open /dev/nvme0n1p6 cryptroot
@jmandel
jmandel / status.md
Last active August 11, 2016 19:43
chat.fhir.org zulip upgrade status

12:40ET working on update...

12:42ET cloud vm not responding :/

12:50ET looks like we're back.

13:05ET but unstable :/

14:00ET ok, back

var calsToSynchronize = [
"address-one@gmail.com",
"address-two@gmail.com",
];
var BUSY = "Busy",
COPIED_FROM_CALENDAR = "copied-from-calendar",
COPIED_FROM_EVENT = "copied-from-event",
TIME_HORIZON = 365 / 2; // scan for 6 months
@jmandel
jmandel / gist:279e759fea8c9d1864cecd55f8799e08
Last active November 22, 2016 02:54
Chat.fhir.org zulip upgrade status
9:50p ET 11/21: beginning update
9:53p ET 11/21: complete