generated from METS-Programme/esm-ugandaemr-template-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
12,301 additions
and
10,616 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
# UgandaEMR Esm Patient Notes App | ||
|
||
# UgandaEMR Template app | ||
A frontend module for managing the notes widget. It provides a tabular overview of the visit notes recorded for a patient as well as a form for recording new visit notes. | ||
|
||
![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 https://github.com/METS-Programme/esm-patient-notes-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 5000 | ||
``` | ||
|
||
Once it is running, a browser window | ||
should open with the OpenMRS 3 application. Log in and then navigate to | ||
`/openmrs/spa/home`. | ||
|
||
# Running tests | ||
``` | ||
yarn run test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export const ConfigMock = { | ||
concepts: { | ||
systolicBloodPressureUuid: '5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
diastolicBloodPressureUuid: '5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
pulseUuid: '5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
temperatureUuid: '5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
oxygenSaturationUuid: '5092AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
heightUuid: '5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
weightUuid: '5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
respiratoryRateUuid: '5242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
generalPatientNoteUuid: '165095AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
midUpperArmCircumferenceUuid: '1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
}, | ||
vitals: { | ||
formUuid: 'a000cb34-9ec1-4344-a1c8-f692232f6edd', | ||
encounterTypeUuid: '67a71486-1a54-468f-ac3e-7091a9a79584', | ||
}, | ||
biometrics: { | ||
bmiUnit: 'kg / m²', | ||
}, | ||
visitNoteConfig: { | ||
clinicianEncounterRole: '240b26f9-dd88-4172-823d-4a8bfeb7841f', | ||
encounterNoteTextConceptUuid: '162169AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
encounterTypeUuid: 'd7151f82-c1f3-4152-a605-2f9ea7414a79', | ||
formConceptUuid: 'c75f120a-04ec-11e3-8780-2b40bef9a44b', | ||
visitDiagnosesConceptUuid: '159947AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
problemListConceptUuid: '1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
export const mockSessionDataResponse = { | ||
data: { | ||
authenticated: true, | ||
locale: 'en_GB', | ||
currentProvider: { | ||
uuid: 'b1a8b05e-3542-4037-bbd3-998ee9c4057z', | ||
display: 'Test User', | ||
person: { | ||
uuid: 'ddd5fa89-48a6-432e-abb8-0d11b4be7e4f', | ||
display: 'Test User', | ||
}, | ||
identifier: 'UNKNOWN', | ||
attributes: [], | ||
}, | ||
sessionLocation: { | ||
uuid: 'b1a8b05e-3542-4037-bbd3-998ee9c40574', | ||
display: 'Inpatient Ward', | ||
name: 'Inpatient Ward', | ||
description: null, | ||
address1: null, | ||
address2: null, | ||
cityVillage: null, | ||
stateProvince: null, | ||
country: null, | ||
postalCode: null, | ||
latitude: null, | ||
longitude: null, | ||
countyDistrict: null, | ||
address3: null, | ||
address4: null, | ||
address5: null, | ||
address6: null, | ||
tags: [ | ||
{ | ||
uuid: '8d4626ca-7abd-42ad-be48-56767bbcf272', | ||
display: 'Transfer Location', | ||
}, | ||
{ | ||
uuid: 'b8bbf83e-645f-451f-8efe-a0db56f09676', | ||
display: 'Login Location', | ||
}, | ||
{ | ||
uuid: '1c783dca-fd54-4ea8-a0fc-2875374e9cb6', | ||
display: 'Admission Location', | ||
}, | ||
], | ||
parentLocation: { | ||
uuid: 'aff27d58-a15c-49a6-9beb-d30dcfc0c66e', | ||
display: 'Amani Hospital', | ||
}, | ||
childLocations: [], | ||
retired: false, | ||
attributes: [], | ||
address7: null, | ||
address8: null, | ||
address9: null, | ||
address10: null, | ||
address11: null, | ||
address12: null, | ||
address13: null, | ||
address14: null, | ||
address15: null, | ||
}, | ||
user: { | ||
uuid: '45ce6c2e-dd5a-11e6-9d9c-0242ac150002', | ||
display: 'admin', | ||
username: '', | ||
systemId: 'admin', | ||
userProperties: { | ||
loginAttempts: '0', | ||
}, | ||
person: { | ||
uuid: '0775e6b7-f439-40e5-87a3-2bd11f3b9ee5', | ||
display: 'Test User', | ||
}, | ||
privileges: [ | ||
{ | ||
uuid: '62431c71-5244-11ea-a771-0242ac160002', | ||
display: 'Manage Appointment Services', | ||
}, | ||
{ | ||
uuid: '6206682c-5244-11ea-a771-0242ac160002', | ||
display: 'Manage Appointments', | ||
}, | ||
{ | ||
uuid: '6280ff58-5244-11ea-a771-0242ac160002', | ||
display: 'Manage Appointment Specialities', | ||
}, | ||
], | ||
roles: [ | ||
{ | ||
uuid: '8d94f852-c2cc-11de-8d13-0010c6dffd0f', | ||
display: 'System Developer', | ||
}, | ||
{ | ||
uuid: '62c195c5-5244-11ea-a771-0242ac160002', | ||
display: 'Bahmni Role', | ||
}, | ||
{ | ||
uuid: '8d94f280-c2cc-11de-8d13-0010c6dffd0f', | ||
display: 'Provider', | ||
}, | ||
], | ||
retired: false, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.