Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Data Entry Statistics into UgandaEMR Plus #5

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,4 @@ jobs:
- run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

Empty file.
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 75 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
![Node.js CI](https://github.com/METS-Programme/esm-ugandaemr-template-app/workflows/Node.js%20CI/badge.svg)
# OpenMRS 3.x DATA ENTRY STATISTICS ESM

# UgandaEMR Template app
A frontend module for viewing data entry statistics built on OpenMRS 3.x

![Landing page screenshot](./src/assets/images/screen.png)
# Getting Started

A starter template ESM for UgandaEMR inspired by https://github.com/openmrs/openmrs-esm-template-app.
```sh
# Clone the repository
git clone git@github.com:METS-Programme/esm-data-entry-statistics-app.git

You can use this repo as a template to spawn new frontend modules for UgandaEMR.
# to install dependencies
yarn

The current setup works best for setting up polyrepos. To adapt the template for a monorepo setup, you'll need to make the following changes:
# to run the dev server
yarn start

- Add a `packages` directory inside of `src`.
# OR to start on a specified port eg 5000
yarn start --port 4200
```

Once it is running, a browser window
should open with the OpenMRS 3 application. Log in and then navigate to
`/openmrs/spa/home/statistics`.

# Running tests
```
yarn run test
```
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "1.0.0",
"license": "MPL-2.0",
"description": "Frontend module for data entry statistics",
"browser": "dist/esm-ugandaemr-template-app.js",
"browser": "dist/esm-data-entry-statistics-app.js",
"main": "src/index.ts",
"source": true,
"scripts": {
"start": "openmrs develop --backend http://167.71.32.250:8080/",
"start": "openmrs develop --backend https://ugandaemr-backend.mets.or.ug",
"serve": "webpack serve --mode=development",
"build": "webpack --mode production",
"analyze": "webpack --mode=production --env analyze=true",
Expand Down Expand Up @@ -45,12 +45,14 @@
},
"dependencies": {
"@carbon/react": "^1.33.1",
"@openmrs/esm-patient-common-lib": "next",
"@openmrs/esm-react-utils": "next",
"@ugandaemr/esm-ugandaemr-commons-lib": "next",
"lodash-es": "^4.17.21",
"react-image-annotate": "^1.8.0"
},
"peerDependencies": {
"@openmrs/esm-framework": "*",
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
"react-router-dom": "6.x",
Expand Down Expand Up @@ -80,7 +82,7 @@
"eslint-config-ts-react-important-stuff": "^3.0.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.0",
"i18next": "^23.2.8",
"i18next": "23.5.1",
"i18next-parser": "^8.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^28.1.3",
Expand Down
55 changes: 0 additions & 55 deletions src/__mocks__/react-i18next.js

This file was deleted.

Loading
Loading