Skip to content

Instantly share code, notes, and snippets.

View kpshek's full-sized avatar

Kevin Shekleton kpshek

View GitHub Profile
{"hookInstance":"cf03a738-c44d-407c-8bec-c4297124c1ca","fhirServer":"https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca","hook":"lab-order-create","redirect":"","fhirAuthorization":null,"user":"Practitioner/example","context":[{"resourceType":"Observation","status":"active","category":{"coding":[{"system":"http://hl7.org/fhir/observation-category","code":"laboratory","display":"Laboratory"}]},"code":{"coding":[{"system":"http://loinc.org","code":"23826-1","display":"Bordetella pertussis DNA [Presence] in Unspecified specimen by Probe and target amplification method"}]}}],"patient":"1316024","prefetch":{"patient":{"response":{"status":"200 OK"},"resource":{"resourceType":"Patient","id":"1316024","meta":{"versionId":"35","lastUpdated":"2017-08-31T19:30:35.000Z"},"text":{"status":"generated","div":"<div><p><b>Patient</b></p><p><b>Name</b>: PETERS, TIMOTHY</p><p><b>DOB</b>: 1961-04-30</p><p><b>Administrative Gender</b>: Male</p><p><b>Marital Status</b>: Single</p><p><b>Status</b>: Acti
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<meta http-equiv="refresh" content="0; url=http://sandbox.cds-hooks.org/" />
<title>CDS Hooks Sandbox</title>
</head>
<body>
<p>We've moved to http://sandbox.cds-hooks.org!</p>
<p><a href="http://sandbox.cds-hooks.org/">Click here if you're not redirected automatically</a></p>
{
"resourceType":"Parameters",
"parameter":[
{
"name":"card",
"part":[
{
"name":"summary",
"valueString":"Decreased GFR (13 ml/min 02/24/2016) - no diagnosis of renal failure"
},
@kpshek
kpshek / App.java
Created September 19, 2015 21:26
Java2D Example
package com.example;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import javax.swing.JFrame;
import javax.swing.JPanel;
@kpshek
kpshek / calc_spec.rb
Created July 11, 2012 04:44
Simple example program illustrating the questions around rspec-mocks issue #158
# coding: UTF-8
require 'rspec'
class Calc
def add(x, y)
puts 'Real implementation called'
x + y
end
end