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 pandas as pd | |
import os | |
import warnings | |
warnings.simplefilter("ignore", UserWarning) | |
# UPDATE ALL FILES PATHS BEFORE RUNNING THE SCRIPT | |
# Load map spreadsheet | |
map_file_path = 'Downloads/Map of Common Diseases_1.xlsx' |
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 llama_cpp import Llama | |
import json | |
import time | |
import re | |
import fhir_api | |
# ANSI escape sequences for text colors | |
COLOR_RED = "\033[91m" | |
COLOR_GREEN = "\033[92m" | |
COLOR_YELLOW = "\033[93m" |
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
function searchInSnomed(term, module, version, ecl) { | |
const config = { | |
muteHttpExceptions: true | |
}; | |
const url = `https://snowstorm.ihtsdotools.org/fhir/ValueSet/$expand?url=http://snomed.info/sct/${module}/version/${version}?fhir_vs=ecl/${encodeURIComponent(ecl)}&count=20&offset=0&filter=${term}`; | |
var response = UrlFetchApp.fetch(url, config); | |
let responseObject = JSON.parse(response.getBlob().getDataAsString()); | |
let result = ""; | |
if (responseObject && responseObject.expansion && responseObject.expansion.contains) { | |
let firstMatch = responseObject.expansion.contains[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
/** | |
* Created by alo on 2/20/17. | |
*/ | |
var fs = require('fs'), | |
byline = require('byline'); | |
function convertDate(epoch) { | |
if (epoch) { | |
var myDate = new Date(epoch*1000); | |
return myDate.toGMTString(); |
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
/** | |
* Created by alo on 10/15/17. | |
*/ | |
var getJSON = require('get-json'); | |
var sem = require('semaphore')(1); | |
var https = require('https'); | |
getJSON('https://api.chess.com/pub/country/AR/players', function(error, response){ | |
if (error) { | |
console.log(error); |
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
/* | |
* | |
* Script to modify the hierarchy of substances according to the grouper concepts and disposition values | |
* | |
* Author: Alejandro Rodriguez | |
* | |
* Requirements: | |
* - RF2 snapshot | |
* - List of corresponding grouper concepts and dispositions [grouperId dispositionId] | |
* - List of new relationship ids (~ 10000) [id partitionId namespace assigned] with assigned column in 0 |