Skip to content

Instantly share code, notes, and snippets.

{
"name": "referralDataSetbase",
"version": "1.0",
"tag": "",
"description": "",
"uses": [],
"sources": [
{
"table": "amrs.patient_program",
"alias": "t3"
{
"name": "component_oncology-family-information-v1.0",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"pages": [
{
"label": "Family History",
"sections": [
{
"label": "Family Members' Cancer History",
@denniskigen
denniskigen / component_oncology-breast-physical-exam-v1.1
Created July 6, 2020 18:55
Oncology Breast Physical Exam component
{
"name": "component_oncology-breast-physical-exam-v1.1",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"pages": [
{
"label": "Physical Exam",
"sections": [
{
"label": "Breast Findings",
CREATE DEFINER=`fmaiko`@`%` PROCEDURE `generate_flat_lung_cancer_screening_v1_0`(IN query_type varchar(50), IN queue_number int, IN queue_size int, IN cycle_size int)
BEGIN
set @primary_table := "flat_lung_cancer_screening";
set @query_type = query_type;
set @total_rows_written = 0;
set @encounter_types = "(177,185)";
set @clinical_encounter_types = "(-1)";
set @non_clinical_encounter_types = "(-1)";
// en.json
{
"actions_upper": "ACTIONS",
"active": "Active",
"activeConditions": "Active Conditions",
"activeMedications_lower": "active medications",
"activeMedications_title": "Active Medications",
"activePrograms": "Active Programs",
"activePrograms_upper": "ACTIVE PROGRAMS",
CREATE DEFINER=`etl_user`@`%` PROCEDURE `generate_flat_lung_cancer_treatment_v1_0`(IN query_type varchar(50), IN queue_number int, IN queue_size int, IN cycle_size int)
BEGIN
SET @primary_table := "flat_lung_cancer_treatment";
SET @query_type := query_type;
SET @total_rows_written := 0;
SET @encounter_types := "(169,170)";
SET @clinical_encounter_types := "(-1)";
SET @non_clinical_encounter_types := "(-1)";
function getDimensionsObservations(patientId: string) {
return openmrsObservableFetch(
`${fhirConfig.baseUrl}/Observation?subject:Patient=${patientId}&code=${WEIGHT_CONCEPT},${HEIGHT_CONCEPT}`
).pipe(
map(({ data }) => data["entry"]),
map(entries => {
if (entries) {
const dimensions = entries.map(entry => entry.resource);
return {
heights: dimensions.filter(dimension =>
@denniskigen
denniskigen / Date of last VIA findings
Last active April 14, 2020 09:20
Snippet from the Oncology VIA form showing the `prior via result` question
{
"label": "Prior VIA result:",
"id": "priorviaresult",
"type": "obs",
"historicalExpression": "HD.getObject('prevEnc').getValue('f165c64a-9354-4145-9b06-4ee437630218')",
"questionOptions": {
"concept": "f165c64a-9354-4145-9b06-4ee437630218",
"rendering": "select",
"answers": [
{
import React, { useState, useEffect } from "react";
import { useCurrentPatient, newWorkspaceItem } from "@openmrs/esm-api";
import { useRouteMatch } from "react-router-dom";
import { performPatientsVitalsSearch } from "./vitals-card.resource";
import { createErrorHandler } from "@openmrs/esm-error-handling";
import styles from "./vital-record.css";
import SummaryCard from "../../ui-components/cards/summary-card.component";
// import VitalsForm from "./alt-vitals-form.component";
import VitalsForm from "./vitals-form.component";
import dayjs from "dayjs";
{
"name": "component_oncology-lab-results-v1.0",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"pages": [
{
"label": "Test Results",
"sections": [
{
"label": "Prior VIA",