Skip to content

Instantly share code, notes, and snippets.

View bmamlin's full-sized avatar

Burke Mamlin bmamlin

  • OpenMRS / Regenstrief / Indiana University
View GitHub Profile
@bmamlin
bmamlin / COVID-19-Starter-Set_v1.11.json
Last active May 26, 2022 03:43
CIEL COVID-19 Starter Set v1.11
This file has been truncated, but you can view the full file.
{"type": "Collection Version", "uuid": "11657", "id": "v1.11", "short_code": "COVID-19-Starter-Set", "name": "COVID-19 Starter Set", "full_name": "CIEL COVID-19 Starter Set", "description": "Updated to include concepts from the 2022-03-19 release", "collection_type": "Subset", "custom_validation_schema": null, "public_access": "View", "default_locale": "en", "supported_locales": ["en"], "website": null, "url": "/orgs/CIEL/collections/COVID-19-Starter-Set/", "owner": "CIEL", "owner_type": "Organization", "owner_url": "/orgs/CIEL/", "version_url": "/orgs/CIEL/collections/COVID-19-Starter-Set/v1.11/", "previous_version_url": "/orgs/CIEL/collections/COVID-19-Starter-Set/v1.10/", "created_on": "2022-03-27T22:27:17.515177Z", "updated_on": "2022-03-27T22:27:17.515198Z", "created_by": "askanter", "updated_by": "askanter", "extras": {}, "external_id": null, "version": "v1.11", "concepts_url": "/orgs/CIEL/collections/COVID-19-Starter-Set/v1.11/concepts/", "mappings_url": "/orgs/CIEL/collections/COVID-19-Starter-Set/v1.
["cigar","rebut","sissy","humph","awake","blush","focal","evade","naval","serve","heath","dwarf","model","karma","stink","grade","quiet","bench","abate","feign","major","death","fresh","crust","stool","colon","abase","marry","react","batty","pride","floss","helix","croak","staff","paper","unfed","whelp","trawl","outdo","adobe","crazy","sower","repay","digit","crate","cluck","spike","mimic","pound","maxim","linen","unmet","flesh","booby","forth","first","stand","belly","ivory","seedy","print","yearn","drain","bribe","stout","panel","crass","flume","offal","agree","error","swirl","argue","bleed","delta","flick","totem","wooer","front","shrub","parry","biome","lapel","start","greet","goner","golem","lusty","loopy","round","audit","lying","gamma","labor","islet","civic","forge","corny","moult","basic","salad","agate","spicy","spray","essay","fjord","spend","kebab","guild","aback","motor","alone","hatch","hyper","thumb","dowry","ought","belch","dutch","pilot","tweed","comet","jaunt","enema","steed","abyss","growl"
@bmamlin
bmamlin / openmrs_service_queue_design.mmd
Created December 14, 2021 05:54
Design ideas for OpenMRS service queues
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bmamlin
bmamlin / ciel-v2021-10-12-sets.json
Last active November 30, 2021 01:01
CIEL v2021-10-12 sets
{"id":0,
"name": "CIEL v2021-10-12 Sets",
"children": [{"id": "163194",
"name": "Blood glucose set",
"children": [{"id": "163193", "name": "Highest blood glucose (mg/ml)"},
{"id": "163192", "name": "Lowest blood glucose (mg/ml)"},
{"id": "163191", "name": "Time frame"},
{"id": "1732",
"name": "Duration units",
"children": [{"id": "162583", "name": "Seconds"},
@bmamlin
bmamlin / README.md
Last active November 2, 2021 03:21
Jupyter Notebook using current folder contents

Jupyter Notebook using current folder contents

Two lil' scripts (notebook-up & notebook-down) leveraging Docker to make it convenient to fire up Jupyter Notebooks attached to the current folder.

Usage

  1. Place notebook-up and notebook-down on your path as executable files (i.e., chmod 755 notebook-up notebook-down)
  2. Use notebook-up to start the notebook and notebook-down (must be run from the same folder)
@bmamlin
bmamlin / diff.py
Last active July 27, 2021 01:43
Diff OCL import with export
import json
import ndjson
import logging
import urllib.parse
LOCAL_FILE = 'path/to/import.json'
OCL_FILE = 'path/to/export.json'
DIFF_FILE = 'path/to/diff.json'
logger = logging.getLogger('diff')
@bmamlin
bmamlin / .block
Last active June 8, 2021 02:09
geopattern avatar demo
license: mit
@bmamlin
bmamlin / diff.py
Created April 1, 2021 14:36
Create diff between CIEL import file and an OCL export file
import json
import ndjson
import logging
LOCAL_FILE = '2021-03-12/staging/ciel-v20210312.ndjson'
OCL_FILE = '2021-03-12/staging/ocl-staging-ciel-v20210312.json'
DIFF_FILE = '2021-03-12/staging/diff.json'
# LOCAL_FILE = '2021-03-12/prod/ciel-v20210312.ndjson'
# OCL_FILE = '2021-03-12/prod/ocl-prod-ciel-v20210312.json'
# DIFF_FILE = '2021-03-12/prod/diff.json'
[
{
"name": "openmrs-module-htmlformentry",
"contributors": [
{ "login":"ziyaointl", "total":1 },
{ "login":"ulissesferreira", "total":1 },
{ "login":"shubhamsc", "total":1 },
{ "login":"rubailly", "total":1 },
{ "login":"rrameshbtech", "total":1 },
{ "login":"reagan-meant", "total":1 },
#!/bin/env python
python -c 'print "Hello world!"'