Skip to content

Instantly share code, notes, and snippets.

View mustmodify's full-sized avatar

Johnathon "jw" Wright mustmodify

View GitHub Profile
{
"url": "https://www.physioagereporting.com/noumena.fhir",
"name": "physioage_lexicon-noumena",
"title": "PhysioAge Lexicon: Noumena CodeSystem",
"version": "1.0",
"status": "active",
"content": "complete",
"property": [
{
>> Datum.last.id
Datum Load (0.4ms) SELECT `data`.* FROM `data` ORDER BY `data`.`id` DESC LIMIT 1
=> 6092
>> ActiveRecord::Base.transaction { Datum.create(code: 'hr', value: '82', value_type: 'NM', units: 'bpm'); puts Datum.last.id; raise "hi";}
(0.2ms) BEGIN
SQL (0.5ms) INSERT INTO `data` (`abnormal_flags`, `code`, `created_at`, `notes`, `order_id`, `points`, `reference_range`, `scale`, `units`, `updated_at`, `value`, `value_type`) VALUES (NULL, 'hr', '2018-05-21', NULL, NULL, NULL, NULL, NULL, 'bpm', '2018-05-21', '82', 'NM')
Datum Load (0.3ms) SELECT `data`.* FROM `data` ORDER BY `data`.`id` DESC LIMIT 1
6093
(2.1ms) ROLLBACK
handleNestedChanges(parent_key, callback)
{
return( (changeset) => {
console.log('CustomersForm#handleNestedChanges');
console.log('parent key is: ' + parent_key)
let changed = Object.assign({}, this.state[parent_key], changeset);
this.handleChange(parent_key, changed, callback);
});
}
import React from 'react';
import PropTypes from 'prop-types';
// Ref: https://gist.github.com/krambertech/76afec49d7508e89e028fce14894724c
export default class TextInput extends React.Component {
static propTypes = {
label: PropTypes.string,
name: PropTypes.string,
required: PropTypes.bool,
import React from 'react';
import { render } from 'react-dom';
import { Map, Marker, Popup, TileLayer } from 'react-leaflet';
import TextInput from '../common/TextInput';
export default class LocationForm extends React.Component
{
constructor(props)
{
super(props);
import PropTypes from 'prop-types';
import React from 'react';
import CustomerMatch from '../containers/CustomerMatchContainer';
import {BrowserRouter as Router, Link, Route} from 'react-router-dom'
export default class ServiceParentComponent extends React.Component {
render() {
return (
<Router>
<div>

Goals:

  • COMMENTED OUT: IF there is a file maintenance.html, send {root}/maintenance.html for all requests.
  • If URL ends in "null", 403. Stop. # bug in mapquest js code
  • If URL matches cclib, send back a 403. Stop. #(I guess these are hacking attempts?)
  • If URL is /assets/*, serve from {root}/assets with gzip and max expiration date. Stop.
  • If URL is /static/*, serve from {root} with gzip. Stop.
  • If URL still contains one of images, javascripts or stylehseets -- log it and 404.
  • reverse-proxy Rails at port 9456
{
"resourceType": "Observation",
"id": "f202",
"status": "entered-in-error",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
server {
... bunch of stuff...
if (-f $document_root/maintenance.html )
{
rewrite ^(.*)$ /maintenance.html break;
}
location / {
proxy_pass http://localhost:9456;
drawSpectrum()
{
...
try
{
$.get(spectrum_url, atts).then(this.putSvgInline, function(){console.log('hello'); return false;});
}
catch(err)
{