Skip to content

Instantly share code, notes, and snippets.

{
"icu_vital_signs/language|code": "en",
"icu_vital_signs/language|terminology": "ISO_639-1",
"icu_vital_signs/category|code": "433",
"icu_vital_signs/category|value": "event",
"icu_vital_signs/category|terminology": "openehr",
"icu_vital_signs/territory|code": "US",
"icu_vital_signs/territory|terminology": "ISO_3166-1",
"icu_vital_signs/composer|name": "Shinji Kobayashi",
"icu_vital_signs/body_temperature/language|code": "en",
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template xmlns="http://schemas.openehr.org/v1">
<language>
<terminology_id>
<value>ISO_639-1</value>
</terminology_id>
<code_string>en</code_string>
</language>
<description>
<original_author id="date">2021-02-01</original_author>
@skoba
skoba / EHRbase_tutorial_20200926.json
Created September 26, 2020 07:59
Postman collenction that used in openEHR tutorial on 26th Sep, 2020
{
"info": {
"_postman_id": "22155ee2-6383-45e8-a2d6-4362b11cdfb7",
"name": "EHRbase",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get templates list",
"request": {
@skoba
skoba / symptom_screening_instance.json
Created September 26, 2020 04:41
JSON Instance for symptom_screening OPT
{
"name": {
"_type": "DV_TEXT",
"value": "Health summary"
},
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": {
"_type": "ARCHETYPE_ID",
"value": "openEHR-EHR-COMPOSITION.health_summary.v1"
@skoba
skoba / symptom_screening.opt
Last active November 13, 2020 04:23
openEHR operational template: Symptom screening
<template xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.openehr.org/v1">
<language>
<terminology_id>
<value>ISO_639-1</value>
</terminology_id>
<code_string>ja</code_string>
</language>
<description>
<original_author id="Original Author">Not Specified</original_author>
<lifecycle_state>Initial</lifecycle_state>
@skoba
skoba / covid19.py
Last active March 15, 2020 17:54
COVID-19 simuation by SEIR model
# The preprints is available from https://www.preprints.org/manuscript/202002.0179/v1
# S Susceptible
# E Exposed
# I Infected
# R Recovery
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
r0 = 3. # basic reproduction number
@skoba
skoba / rmap2bib.rb
Last active November 19, 2018 09:08
Converter from researchmap CSV file to BibTeX file. only english paper
#! /usr/bin/env ruby
# coding: utf-8
require 'csv'
csvfile = ARGV[0] || "paper.csv"
bibfile = ARGV[1] || "paper.bib"
csv = CSV.read(csvfile, headers: true, encoding: 'Shift_JIS:UTF-8')
bib = File.open(bibfile, "w", encoding: "UTF-8")
csv.each do |line|
label = line['タイトル(英語)'][0..8].gsub(' ','_') + line['出版年月']
@skoba
skoba / husband.rb
Last active December 16, 2015 10:19
For peaceful family life
class Husband
attre_reader :wife
def initialize(wife)
@wife = wife
end
def love_wife?
true
end
@skoba
skoba / init.el
Created February 4, 2013 17:21
Emacs configuration
(add-to-list 'load-path "~/.emacs.d/site-lisp")
(global-set-key "\C-?" (quote delete-char))
(global-set-key "\C-h" (quote delete-backward-char))
(set-language-environment 'japanese)
(set-terminal-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(setq c-site-default-style "k&r")
(require 'mozc)
(setq default-input-method "japanese-mozc")
(global-set-key (kbd "C-o") 'toggle-input-method)