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
@jmandel
jmandel / design.md
Last active Sep 19, 2019
Desiging a framework for triggered notifications in FHIR
View design.md

Proposal: Triggered Notifications

Use case: subscribing to specific lab observations

FHIR offers a REST API that lets clients search for resources on demand. Separately, there is a Messaging API that allows notifications to be "pushed" from one place to another. But neither API provides a clean solution to a common set of real-world "triggering" or notification-type requirements.

For example, let's say Mt. Auburn Hospital's Mother and Infant Unit wants to

@jmandel
jmandel / careevolution.json
Last active Sep 15, 2019
CARIN Blue Button Examples from FHIR 2019-09 Connectathon
View careevolution.json
{
"resourceType": "Bundle",
"type": "searchset",
"total": 3,
"link": [
{
"relation": "self",
"url": "https://fhir.careevolution.com/Master.Adapter1.WebClient/api/fhir-r4/ExplanationOfBenefit?patient=d4b1d050-584f-4797-a9c7-ab72e4cd4452&_count=20"
},
{
View example.sh
curl -X POST \
'https://r4-dot-hum-hcs-rapid-fhir-sbx.appspot.com/fhir/Claim/$submit' \
--data @sample-request.json
@jmandel
jmandel / examples.md
Last active Sep 9, 2019
Realtime Benefits Check Examples
View examples.md

POST /$rx-pricing

Where can I fulfill my simvastatin prescription within two miles of 85054?

{
  "resourceType": "Parameters",
  "parameter": [{
    "name": "patient",
    "resource": {
@jmandel
jmandel / Dockerfile
Created May 15, 2019
HAPI CLI docker example
View Dockerfile
FROM ubuntu as gethapi
RUN apt-get update && \
apt-get install -y curl bzip2
RUN mkdir /hapi && \
cd /hapi && \
curl -L https://github.com/jamesagnew/hapi-fhir/releases/download/v3.7.0/hapi-fhir-3.7.0-cli.tar.bz2 \
| tar -xj
FROM openjdk
WORKDIR /hapi
View keybase.md

Keybase proof

I hereby claim:

  • I am jmandel on github.
  • I am jmandel (https://keybase.io/jmandel) on keybase.
  • I have a public key whose fingerprint is E806 ABF7 88C0 37FF B521 0AA8 4A43 ED5A F234 1FBE

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am jmandel on github.
  • I am jmandel (https://keybase.io/jmandel) on keybase.
  • I have a public key ASDjpMvWtTLcrmFpbEhzJ-HoQIjVx2OxJwIalLJQodCBBgo

To claim this, I am signing this object:

@jmandel
jmandel / extract.js
Created Apr 3, 2015
Extract Housing Details from Craigslist
View extract.js
listings = [];
$.each($("span.txt"), function(i, l){
var url = $("a", l).attr("href");
var title = $("a", l).text();
var posted = $("time", l).attr("datetime");
var price = $("span.price", l).text();
var neighborhood = $("span.pnr small", l).text();
var br = $("span.housing", l).text();
var fees = $("a.gc", l).text();
listings.push([title, url, posted, price, neighborhood, fees].join("\t"));
You can’t perform that action at this time.