Skip to content

Instantly share code, notes, and snippets.

View niquola's full-sized avatar

Nikolai Ryzhikov niquola

View GitHub Profile
@niquola
niquola / index.md
Last active December 10, 2023 09:45
FHIR & OpenAPI questions

FHIR to OpenAPI translation

FHIR specify set of Resources with dataelements with specific datatype as informational model - StructureDefinition resource. So we have to convert StructureDefinition into JSON schema.

Also FHIR has specification of REST API by convention - http://hl7.org/fhir/http.html, and ability to extend API by custom Operations - http://hl7.org/fhir/operationslist.html

@niquola
niquola / controller.coffee
Last active September 22, 2023 21:10
Progress indication in angularjs, while promises :)
MyController = ($scope, $resource)->
$scope.items = $resource.query()
@niquola
niquola / jsonb-master-class.md
Last active April 28, 2023 14:27
JSONB master class

Prerequisites

Install docker & docker-compose

Pull postgres image

docker pull aidbox/db:11.1.0-3-g7a1dab6
grammar fhirpathmini;
path : expr EOF ;
expr : expr AMPERSAND expr # concatexpr
| chain # chainexpr
;
chain : ( variable | element ) (DOT ( element | funcall | where ) | index)*;
variable : VARIABLE ;
grammar fhirpathmin;
expression
: expression '.' expression #chain
| expression '[' int ']' #index
| FIRST #first
| WHERE predicate ')' #where
| element #term
;

SQL on FHIR 2.0

Motivation

Relational databases got native json support! We can liverage it to impliment SQL on FHIR.

hardware & os

  • dotfiles?
  • terminal & shell
  • editor
  • env setup - dbs, etc
  • how do you start you REPL?
  • deps or leningen?
  • new project template?
  • tasks automation - babashka?
  • how do you navigate in project?

Код, данные, модели и Сlojure

Философский этюд

Jocker 2022

Николай Рыжиков @niquola

CTO at Health Samurai @niquola - github, telegram, twitter