Skip to content

Instantly share code, notes, and snippets.

View samuelmale's full-sized avatar
🏠
Working from home

Samuel Male samuelmale

🏠
Working from home
View GitHub Profile
@samuelmale
samuelmale / address-template.xml
Last active May 25, 2023 17:05
MSF Tech Assessments
<addressConfiguration>
<wipe>true</wipe>
<addressComponents>
<addressComponent>
<field>COUNTRY</field>
<nameMapping>Location.country</nameMapping>
<sizeMapping>40</sizeMapping>
<elementDefault>Cambodia</elementDefault>
<requiredInHierarchy>true</requiredInHierarchy>
</addressComponent>
{
"name": "AMPATH POC Triage v1.2",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"pages": [
{
"label": "Encounter Details",
"sections": [
{
"label": "Encounter Details",
{
"@openmrs/esm-patient-chart-app": {
"extensionSlots": {
"patient-chart-dashboard-slot": {
"remove": [
"charts-summary-dashboard",
"immunization-summary-dashboard",
"medications-summary-dashboard",
"encounters-summary-dashboard",
"appointments-summary-dashboard",
// Registry entries with renamed controls
const inbuiltControls = [
{
name: 'OHRIText',
component: OHRIText,
type: 'text',
},
{
name: 'OHRIRadio',
component: OHRIRadio,
import { FormField, FormSchemaTransformer, FormSchema } from '../types';
export const AngularFormEngineSchemaTransformer: FormSchemaTransformer = {
transform: (form: FormSchema) => {
form.pages.forEach((page) => {
if (page.sections) {
page.sections.forEach((section) => {
section?.questions.forEach((question) => handleQuestion(question));
});
}
{
"@openmrs/esm-laboratory-app": {
"Display conditions": {
"privileges": [
"Manage Laboratory"
]
}
},
"@ugandaemr/esm-data-visualizer-app": {
"Display conditions": {
import React from 'react';
import { Tooltip } from '@carbon/react';
import { useTranslation } from 'react-i18next';
import { type FormField } from '../../types';
import styles from './field-label.scss';
import { Information } from '@carbon/react/icons';
interface FieldLabelProps {
field: FormField;
package org.openmrs.module.drools.patientflags;
//generated from Decision Table
import org.openmrs.Patient;
import org.openmrs.module.drools.patientflags.FlaggedPatient;
import org.openmrs.module.drools.calculation.Operator;
import static org.openmrs.module.drools.utils.DroolsDateUtils.daysAgo;
global org.openmrs.module.drools.calculation.DroolsCalculationService calculationService;
global String SYSTOLIC_UUID;
global java.util.List flaggedPatients;
no-loop true