@openmrs/esm-patient-vitals-app
Version:
Patient vitals microfrontend for the OpenMRS SPA
149 lines (144 loc) • 4.14 kB
text/typescript
import { Type } from '@openmrs/esm-framework';
export const configSchema = {
concepts: {
systolicBloodPressureUuid: {
_type: Type.ConceptUuid,
_default: '5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
diastolicBloodPressureUuid: {
_type: Type.ConceptUuid,
_default: '5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
pulseUuid: {
_type: Type.ConceptUuid,
_default: '5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
temperatureUuid: {
_type: Type.ConceptUuid,
_default: '5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
oxygenSaturationUuid: {
_type: Type.ConceptUuid,
_default: '5092AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
heightUuid: {
_type: Type.ConceptUuid,
_default: '5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
weightUuid: {
_type: Type.ConceptUuid,
_default: '5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
respiratoryRateUuid: {
_type: Type.ConceptUuid,
_default: '5242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
generalPatientNoteUuid: {
_type: Type.ConceptUuid,
_default: '165095AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
midUpperArmCircumferenceUuid: {
_type: Type.ConceptUuid,
_default: '1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
vitalSignsConceptSetUuid: {
_type: Type.ConceptUuid,
_default: '1114AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
},
vitals: {
useFormEngine: {
_type: Type.Boolean,
_default: false,
_description:
'Whether to use an Ampath form as the vitals and biometrics form. If set to true, encounterUuid and formUuid must be set as well.',
},
encounterTypeUuid: {
_type: Type.UUID,
_default: '67a71486-1a54-468f-ac3e-7091a9a79584',
},
vitalsOverdueThresholdHours: {
_type: Type.Number,
_default: 12,
_description: 'Hours at or above which vitals are considered overdue',
},
logo: {
src: {
_type: Type.String,
_default: '',
_description: 'A path or URL to an image. Defaults to the OpenMRS SVG sprite.',
},
alt: {
_type: Type.String,
_default: 'Logo',
_description: 'Alt text, shown on hover',
},
name: {
_type: Type.String,
_default: '',
_description: 'The organization name displayed when image is absent',
},
},
showPrintButton: {
_type: Type.Boolean,
_default: false,
_description:
'Determines whether or not to display the Print button in the vitals datatable header. If set to true, a Print button gets shown as the right-most item in the table header. When clicked, this button enables the user to print out the contents of the table',
},
formUuid: {
_type: Type.UUID,
_default: '9f26aad4-244a-46ca-be49-1196df1a8c9a',
},
formName: {
_type: Type.String,
_default: 'Vitals',
},
useMuacColors: {
_type: Type.Boolean,
_default: false,
_description: 'Whether to show/use MUAC color codes. If set to true, the input will show status colors.',
},
},
biometrics: {
bmiUnit: {
_type: Type.String,
_default: 'kg / m²',
},
},
};
export interface BiometricsConfigObject {
bmiUnit: string;
heightUnit: string;
weightUnit: string;
}
export interface LogoConfigObject {
src: string;
alt: string;
name: string;
}
export interface ConfigObject {
concepts: {
systolicBloodPressureUuid: string;
diastolicBloodPressureUuid: string;
pulseUuid: string;
temperatureUuid: string;
oxygenSaturationUuid: string;
heightUuid: string;
weightUuid: string;
respiratoryRateUuid: string;
generalPatientNoteUuid: string;
midUpperArmCircumferenceUuid: string;
vitalSignsConceptSetUuid: string;
};
vitals: {
useFormEngine: boolean;
encounterTypeUuid: string;
vitalsOverdueThresholdHours: number;
logo: LogoConfigObject;
formUuid: string;
formName: string;
useMuacColors: boolean;
showPrintButton: boolean;
};
biometrics: BiometricsConfigObject;
}