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 / 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 / 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: ? {|
@jdjkelly
jdjkelly / demo-query.graphql
Created August 11, 2017 19:41
demo-query.graphql
# src/routes/demo/queries/demo-query.graphql
query DemoQuery($id: ID!) {
order(id: $id) {
id
buyer {
id
name
}
}
}
// A collection Orders contains the following documents:
{ "_id" : 1, "item" : "abc", "price" : 12, "quantity" : 2 }
{ "_id" : 2, "item" : "jkl", "price" : 20, "quantity" : 1 }
{ "_id" : 3 }
// Another collection Inventory contains the following documents:
{ "_id" : 1, "sku" : "abc", description: "product 1", "instock" : 120 }
{ "_id" : 2, "sku" : "def", description: "product 2", "instock" : 80 }
{ "_id" : 3, "sku" : "ijk", description: "product 3", "instock" : 60 }
{ "_id" : 4, "sku" : "jkl", description: "product 4", "instock" : 70 }