Skip to content

Instantly share code, notes, and snippets.

@bradymiller
bradymiller / updateGitOpenemrRepository
Created May 22, 2010 17:52
Script to build and update the OpenEMR github mirror
#!/bin/bash
#
# Copyright (C) 2010 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
#
@bradymiller
bradymiller / refresh
Created July 16, 2010 19:15
Mandriva script to prepare a github repository for testing the OpenEMR Development tip.
#!/bin/bash
#
# Copyright (C) 2010 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Mandriva script to prepare a github repository for testing. This is
@bradymiller
bradymiller / StartupDeveloperAppliance2
Created October 19, 2010 18:42
Just to illustrate the script the runs the OpenEMR Developer Appliance and Online demos
#!/bin/sh
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
# author Brady Miller
# email brady@sparmy.com
# date 02/20/09
@bradymiller
bradymiller / clinicical_decisions_functions
Created November 16, 2010 10:29
Clinical Decisions Functions
// Display the clinical summary widget.
// Parameters:
// $patient_id - pid of selected patient
// $dateTarget - target date. If blank then will test with current date as target.
function clinical_summary_widget($patient_id,$dateTarget='')
// Test the clinic rules of entire clinic
// Parameters:
// $provider - id of a selected provider. If blank, then will test entire clinic.
// $type - rule filter (active_alert,passive_alert,cqm). If blank then will test all rules.
@bradymiller
bradymiller / buildTranslations
Created March 12, 2011 22:29
Script to build OpenEMR translation tables from most current Google Docs Spreadsheet.
#!/bin/bash
#
# Copyright (C) 2011 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Script to test most current Google Docs OpenEMR Translation Spreadsheet.
@bradymiller
bradymiller / updateTranslationsGoogleDocs
Last active September 25, 2015 05:07
Script to routinely test the google docs openemr translations and update development translations if it passes testing.
#!/bin/bash
#
# Copyright (C) 2011 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Script to test most current Google Docs OpenEMR Translation Spreadsheet.
@bradymiller
bradymiller / openemr-flex-docker-example-docker-compose.yml
Last active April 26, 2018 20:56
openemr-flex-docker-example-docker-compose.yml
# Use admin/pass as user/password credentials to login to openemr (from OE_USER and OE_PASS below)
# MYSQL_HOST and MYSQL_ROOT_PASS are required for openemr
# FLEX_REPOSITORY and (FLEX_REPOSITORY_BRANCH or FLEX_REPOSITORY_TAG) are required for flex openemr
# MYSQL_USER, MYSQL_PASS, OE_USER, MYSQL_PASS are optional for openemr and
# if not provided, then default to openemr, openemr, admin, and pass respectively.
version: '3.1'
services:
mysql:
restart: always
image: mariadb:10.2
# Use admin/pass as user/password credentials to login to openemr (from OE_USER and OE_PASS below)
# MYSQL_HOST and MYSQL_ROOT_PASS are required for openemr
# FLEX_REPOSITORY and (FLEX_REPOSITORY_BRANCH or FLEX_REPOSITORY_TAG) are required for flex openemr
# MYSQL_USER, MYSQL_PASS, OE_USER, MYSQL_PASS are optional for openemr and
# if not provided, then default to openemr, openemr, admin, and pass respectively.
version: '3.1'
services:
mysql:
restart: always
image: mariadb:10.2
#
# This is for building a local OpenEMR development and testing environment.
# (Recommend not running it from your git repo and instead mirroring your
# git repo to a testing directory (such as your web directory).)
#
# Brief instructions on how to use (for fuller instructions and examples,
# see the document at https://github.com/openemr/openemr/blob/master/contrib/util/docker/README.md):
# 1. At lines 35 and 45, edit them so the volume (to left of : character) is set to your local openemr web directory
# 2. docker-compose up -d
# 3. http://localhost:8080 to run setup in openemr (alpine 3.7 with PHP 7.1)
# This will use local openemr, so need to put ip address of mysql/mariadb docker for mysql host during setup
version: '3.1'
services:
mariadb:
restart: always
image: mariadb:10.2
command: ['mysqld','--character-set-server=utf8']
environment:
MYSQL_ROOT_PASSWORD: root
mysql: