This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollection('match_groups').aggregate([{ | |
$group: { | |
_id:{$size:'$run_results'}, | |
total: { $sum: 1 }, | |
} | |
}]) |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"random": { | |
"seed": 45202092906816, | |
"nextNextGaussian": -0.2768758555544073, | |
"haveNextNextGaussian": true | |
}, | |
"seed": -1284530909448198332, | |
"populationSeed": 1635262516394, | |
"lastUpdated": 1634914774356, | |
"currentModules": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import argparse | |
from pathlib import Path | |
parser = argparse.ArgumentParser(description='Tool for translating LINK_IDs back into PATIDs') | |
parser.add_argument('--source', nargs=1, required=True, help='Source PII CSV file') | |
parser.add_argument('--links', nargs=1, required=True, help='LINK_ID CSV file') | |
args = parser.parse_args() | |
source_file = Path(args.source[0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from secrets import token_hex | |
secret_bit_length = 128 | |
deidentification_secret = token_hex(secret_bit_length) | |
with open('deidentification_secret.txt', 'w', newline='') as secret_file: | |
secret_file.write(deidentification_secret) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'csv' | |
require 'erb' | |
comments = CSV.read('/Users/andrewg/Downloads/quickquery.csv', headers: true, quote_char: '|') | |
submitters = comments.map {|c| c['Real Submitter']}.uniq.sort | |
template = ERB.new <<-EOF | |
<html> | |
<head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"context":{ | |
"patientId":"1288992", | |
"encounterId":"89284", | |
"orders":{ | |
"resourceType":"Bundle", | |
"entry":[ | |
{ | |
"resource": { | |
"resourceType": "DeviceRequest", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cards": [ | |
{ | |
"summary": "Positive Airway Pressure (PAP) Devices: Complying with Documentation & Coverage Requirements", | |
"indicator": "info", | |
"source": { | |
"label": "CMS" | |
}, | |
"links": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"birthdate": 252478800, | |
"conditions": [ | |
{ | |
"anatomical_location": null, | |
"anatomical_target": null, | |
"causeOfDeath": null, | |
"codes": { | |
"ICD-10-CM": [ | |
"I10" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"birthdate": 252478800, | |
"conditions": [ | |
{ | |
"anatomical_location": null, | |
"anatomical_target": null, | |
"causeOfDeath": null, | |
"codes": { | |
"ICD-10-CM": [ | |
"E10.10" |
NewerOlder