Skip to content

Instantly share code, notes, and snippets.

View niquola's full-sized avatar

Nikolai Ryzhikov niquola

View GitHub Profile
:zd/title "Welcome"
:zd/desc md/
## zd
zd is knowlege base framework
## Mardown
Zd uses very limited and extensible subset of markdown
(ns proto.zen.loader-test
(:require [proto.zen.loader :as sut]
[box.world :as world]
[pg.core]
[clojure.test :refer [deftest testing is]]
[matcho.core :as matcho]))
(deftest bundle-integration
(def test-zrc-dir "test-temp-zrc")

FHIR Ru-Core

  • Сообщество FHIR-Ru
  • ЦНИИОИЗ
  • HL7 Russia
  • и kомерческие компании
    • Нетрика
    • Health Samurai
    • Helix
  • Welcome!!!
@niquola
niquola / ups.sql
Last active November 17, 2021 22:11
WITH
maxtx AS (
select max(txid) as mtx
from (
select max(txid) txid from assembly.encounter_contained_practitioner
union
select 0 as txid
) _
),
src AS (
select distinct
id
, resource_type
-- Resource
, contained_practitioner_id
, contained_practitioner_resourceType
-- Name
, contained_practitioner_lname
, contained_practitioner_fname

Scheduled patient encounters include primary and specialty care visits, as well as elective surgeries. In each of these environments, the process of scheduling appointments (assigning a specific time when the patient is scheduled to start receiving care) is different, which we will describe shortly

The goal of a welldesigned appointment system is to deliver timely and convenient access to health services for all patients. Appointment systems also smooth work flow, reduce crowding in waiting rooms and allow health systems to honor patient and provider preferences while matching supply and demand.

Design doc for re-frame forms

  1. All state in db!
  2. Form is configured by schema (not by widgets) - i.e. form logic works without widgets
  3. Components configured with form-path + field-path - {:zf/root [::form] :zf/path [:name :family]}

Form state in db

zen lang

1. CRUD

create_user(db, attrs) 
  validate_user(attrs)
  exec("insert into user (colls..) value {{attrs}}")
 notify_created(attrs)