Skip to content

Instantly share code, notes, and snippets.

View oncology_poc_breast_screening_form_v1.4
{
"name": "oncology_poc_breast_screening_form_v1.4",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"referencedForms": [
{
"formName": "component_oncology-preclinic-review-v1.1",
"alias": "preReview",
"ref": {
"uuid": "b0fc7dac-5d1d-4a04-b238-e1976f6cb8c0",
View oncology_data_columns_list.md

Oncology POC Breast Cancer Screening Form v1.3

  • encounter_purpose
  • other_encounter_purpose
  • menstruation_before_age_12
  • menses_stopped_permanently
  • menses_stop_age
  • hrt_use
  • hrt_start_age
  • hrt_end_age
  • hrt_use_years
@denniskigen
denniskigen / list.json
Last active October 15, 2020 08:17
Updated regions list
View list.json
{
"counties": [
{
"name": "Bomet",
"subcounties": [
{
"name": "",
"wards": []
}
]
View new.js
'use strict';
const departmentProgramsConfig = require('./department-programs-config.json');
const _ = require('lodash');
var serviceDefinition = {
getAllDepartmentsConfig: getAllDepartmentsConfig,
getDepartmentPrograms: getDepartmentPrograms,
getDepartmentProgramUuids: getDepartmentProgramUuids
};
View fibonacci.ts
class Fibonacci implements IterableIterator<number> {
protected f1 = 0;
protected f2 = 1;
constructor(protected maxValue?: number) {}
public next(): IteratorResult<number> {
if (this.maxValue != null && current >= this.maxValue) {
return {
done: true,
View fibonacci.tsx
class Fibonacci implements IterableIterator<number> {
protected f1 = 0;
protected f2 = 1;
constructor(protected maxValue?: number) {}
public next(): IteratorResult<number> {
if (this.maxValue != null && current >= this.maxValue) {
return {
done: true,
@denniskigen
denniskigen / mmp.sql
Last active July 17, 2020 13:57
Stored procedure for the MM program
View mmp.sql
CREATE DEFINER=`etl_user`@`%` PROCEDURE `generate_flat_multiple_myeloma_treatment_v1_2`(IN query_type varchar(50), IN queue_number int, IN queue_size int, IN cycle_size int)
BEGIN
SET @primary_table := "flat_multiple_myeloma_treatment";
SET @query_type := query_type;
SET @total_rows_written := 0;
SET @encounter_types := "(89,90,141)";
SET @clinical_encounter_types := "(89,90,141)";
SET @non_clinical_encounter_types := "(-1)";
SET @other_encounter_types := "(-1)";
View flat_multiple_myeloma_treatment_v1_2.sql
CREATE DEFINER=`etl_user`@`%` PROCEDURE `generate_flat_multiple_myeloma_treatment_v1_2`(IN query_type varchar(50), IN queue_number int, IN queue_size int, IN cycle_size int)
BEGIN
-- v1.1: Add diagnosis date, serum_m_protein, treatment_plan, other_treatment_plan, remission_plan and remission_start_date columns.
-- Also modified encounter_datetime column to just encounter_date (removed the timestamp as per the myeloma team's request).
--
-- v1.2: Add identifiers, patient name and phone number columns.
-- v1.3: Add death date and assessment notes columns.
SET @primary_table := "flat_multiple_myeloma_treatment";
SET @query_type := query_type;
View referral_dataset_base.json
{
"name": "referralDataSetbase",
"version": "1.0",
"tag": "",
"description": "",
"uses": [],
"sources": [
{
"table": "amrs.patient_program",
"alias": "t3"
View component_oncology-family-information-v1.0
{
"name": "component_oncology-family-information-v1.0",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"pages": [
{
"label": "Family History",
"sections": [
{
"label": "Family Members' Cancer History",