Skip to content

Instantly share code, notes, and snippets.

@jdjkelly
jdjkelly / slack.ts
Created April 8, 2024 17:29
LLM Channel summary Slackbot
import { App, } from '@slack/bolt';
import { Anthropic } from '@anthropic-ai/sdk';
const app = new App({
signingSecret: process.env.SLACK_SIGNING_SECRET,
token: process.env.SLACK_BOT_TOKEN,
});
const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });
@jdjkelly
jdjkelly / cms.md
Created April 5, 2024 23:15
claude-cms-auth

Overview of CMS Prior Authorization Final Rule

Key Points of the Final Rule

The CMS Prior Authorization Final Rule, officially known as CMS-0057-F, aims to streamline the prior authorization process and improve health information exchange. Some key points of the rule include:

  • Requires payers to provide a specific reason for denied prior authorization decisions starting in 2026
  • Establishes time limits for prior authorization decisions - 72 hours for urgent requests and 7 calendar days for standard requests
  • Mandates that payers support electronic prior authorization on EHR systems
  • Requires payers to add prior authorization information to data available via the Patient Access API
@jdjkelly
jdjkelly / gist:0bddf2e834b6d6bc2174
Last active December 25, 2021 14:30
Making Accessible Ember Components

Making Accessible Ember Components

Making the web accessible is important. We have ethical and, in some cases, legal obligations to ensuring access to all of users.

Luckily for us, it's easy to make an accessible Ember Component.

What are components?

To understand the accessibility story around Ember Components, we have to start by talking about Web Components. Ember Components are designed to be interoperable with the final Web Components API.

@jdjkelly
jdjkelly / fhir.ts
Created July 9, 2021 22:12
FHIR Client
/**
* @module client
* @remarks Almost no-dependency TS FHIR client (we use cross fetch to give us a fetch instance)
*/
import fetch from "cross-fetch";
type Summary = "true" | "false" | "text" | "count" | "data";
export default function(baseUrl: string, init: RequestInit) {
import Resource from "../resources"
export type Status = 'create' | 'updated' | 'deleted' | 'recreated';
type IStore = {
[key in Resource]: {
id: {
id: string;
txid: number;
ts: number;
Verifying my Blockstack ID is secured with the address 1BYTD7LegnE7BuvwMfr13yT2hXQfbp9NAc https://explorer.blockstack.org/address/1BYTD7LegnE7BuvwMfr13yT2hXQfbp9NAc
@jdjkelly
jdjkelly / gist:5200375
Last active November 26, 2017 03:07
Rails 3 – Setting Up Guard with Rspec and Spork with Growl Notifications in OSX

Gemfile:

group :development do
  gem 'rspec-rails'
  gem 'guard'
  gem 'guard-rspec'
end

group :test do

gem 'rspec'

@jdjkelly
jdjkelly / message.rs
Created October 22, 2017 22:39
Parity's Envelope Struct
pub struct Envelope {
/// Expiry timestamp
pub expiry: u64,
/// Time-to-live in seconds
pub ttl: u64,
/// series of 4-byte topics.
pub topics: SmallVec<[Topic; 4]>,
/// The message contained within.
pub data: Vec<u8>,
/// Arbitrary value used to target lower PoW hash.
0xc12Ec306a31af08dfC2d3E35E158FABbBD37C4CC
@jdjkelly
jdjkelly / schema.flow.js
Created August 11, 2017 19:43
schema.flow.js
/* @flow */
// interfaces/schema.flow.js
// This file was automatically generated and should not be edited.
export type DemoQueryQueryVariables = {|
id: string,
|};
export type DemoQueryQuery = {|
order: ? {|