Skip to content

Instantly share code, notes, and snippets.

UPDATE denormalized_claim
SET
claim_id = subquery.claim_id,
fill_processed_at = subquery.fill_processed_at,
fill_started_at = subquery.fill_started_at,
end_service_at = subquery.end_service_at,
authorization_number = subquery.authorization_number,
prior_auth_code = subquery.prior_auth_code,
network_type = subquery.network_type,
ndc = subquery.ndc,
query DrugGpis($tc_gpi_key: String, $record_type_code: String, $tc_gpi_name: String) {
drug_gpis(
pagination: {
page: 1,
perPage: 20
}
where: {
tc_gpi_key: {
like: $tc_gpi_key
}
query DrugPrices($ndc: String) {
drug_prices(
pagination: {
page: 1,
perPage: 20
}
where: {
ndc: {
like: $ndc
}
# Write your query or mutation here
query Drugs($ndc: String, $gpi: String, $label_name: String, $status: String) {
drugs(
pagination: {
page: 1,
perPage: 20
}
where: {
ndc: {
like: $ndc
@ericso
ericso / response.md
Last active January 28, 2019 17:24
Haus Homework Assignment
// memory manager
/**
* Simulate a buffer of memory using an Array.
* Creating the memory manager would consist of calling the constructor of MemoryManager with a pointer
* to the buffer and the size of the buffer. Since we're simulating this, and you can't pass a reference
* to an array in Javascript, let's just create the array in the MemoryManager.
*/
class MemoryManager {
// memory manager
/**
* Simulate a buffer of memory using an Array.
* Creating the memory manager would consist of calling the constructor of MemoryManager with a pointer
* to the buffer and the size of the buffer. Since we're simulating this, and you can't pass a reference
* to an array in Javascript, let's just create the array in the MemoryManager.
*/
class MemoryManager {
// Least Recently Used cache
// Implement a data structure to store keys for a LRU cache
/*
doubly linked list to hold order of keys
front of list is the most recently used key
back of list is the least recently used key
dictionary holds references to each node in the linked list
keys are the keys being held
@ericso
ericso / gist:63c6fec2514b6532b778
Created July 1, 2015 02:26
Stripped down Users Test file
from application import db
from app.models import User
from common.tests import BaseTestCase
from common.util import rand_string_gen
class UsersTest(BaseTestCase):
def setUp(self):
with self.app.app_context():
db.create_all()
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management