ucsf-ighs / openmrs-esm-ohri Goto Github PK
View Code? Open in Web Editor NEWESM module for OHRI built on top of the OpenMRS Framework
License: MIT License
ESM module for OHRI built on top of the OpenMRS Framework
License: MIT License
Associated to the Continuous Deployment Ticket.
https://ohri.atlassian.net/jira/software/projects/OHRI/boards/1?selectedIssue=OHRI-90
The Continuos Deployment Trigger Runs and the Server Build is Udpated.
To fulfill this Pipeline Setup we had to skip 2 Build Tasks
Associated to the Continuous Deployment Ticket.
https://ohri.atlassian.net/jira/software/projects/OHRI/boards/1?selectedIssue=OHRI-90
The Continuous Deployment Trigger Runs and the Server Build is Updated.
To fulfill this Pipeline Setup we had to skip 2 Build Tasks
While Issuing a PR, as a Team to ensure proper documentation and best practices. Follow the below Check List
What is the Scope of the PR
Did you?
Collaboration
form_uuid
and encounter_uuid
fetched from the backend.A Patient chart side nav from openmrs-org[LINK] has a linear hierarchy similar to the image below:
However, with OHRI we introduced a sub-menu dropdown with HIV being a dropdown with items (HIV, care and treatment, PMTCT) as shown below:
In an attempt to make the sub-menu dynamic we came up with this code snippets:
index.ts
extensions: [
{
id: 'hts-summary-dashboard',
slot: 'patient-chart-dashboard-slot',
load: getSyncLifecycle(createDashboardLink(dashboardMeta), options),
meta: dashboardMeta,
online: true,
offline: true,
},
....
]
dashboard.meta.tsx
export const createDashboardLink = db => {
const DashboardLink: React.FC<{ basePath: string }> = ({ basePath }) => {
return (
<SideNavMenu title="HIV" className={styles.noMarker} defaultExpanded={true}>
<SideNavMenuItem className={styles.currentNavItem} isActive href={`${basePath}/${db.name}`}>
HTS{' '}
</SideNavMenuItem>
<SideNavMenuItem>Care and Treatment </SideNavMenuItem>
<SideNavMenuItem> PMTCT </SideNavMenuItem>
</SideNavMenu>
);
};
return DashboardLink;
};
export const dashboardMeta = {
name: 'hts-summary',
slot: 'hts-summary-dashboard-slot',
config: { columns: 1, type: 'grid' },
title: 'HTS Sessions',
};
while this worked for a single submenu link at the time, it became an issue with the adding of hrefs dynamically by updating the files to this:
dashboard.meta.tsx
....
....
<SideNavMenuItem className={styles.currentNavItem} isActive href={`${basePath}/${db.hts.name}`}>
HTS{' '}
</SideNavMenuItem><SideNavMenuItem href={`${basePath}/${db.careAndTreatment.name}`}>Care and Treatment </SideNavMenuItem>
....
....
export const dashboardMeta = {
hts: {
name: 'hts-summary',
slot: 'hts-summary-dashboard-slot',
config: { columns: 1, type: 'grid' },
title: 'HTS Sessions',
},
careAndTreatment: {
name: 'care-and-treatment',
slot: 'care-and-treatment-dashboard-slot',
config: { columns: 1, type: 'grid' },
title: 'Service Enrollments',
},
};
This would allow has constantly update the dashboardMeta to dynamically add actions to the menu but this wasn't the case. The links ended up overriding each other and in some cases duplicating.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.