-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: O3-2563 Rename esm-patient-labs-app to esm-patient-tests-app
- Loading branch information
1 parent
72c7e61
commit f3ab7fc
Showing
103 changed files
with
166 additions
and
113 deletions.
There are no files selected for viewing
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
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
82 changes: 44 additions & 38 deletions
82
packages/esm-patient-labs-app/README.md → packages/esm-patient-tests-app/README.md
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,65 +1,71 @@ | ||
# esm-patient-labs-app | ||
# esm-patient-tests-app | ||
|
||
Functionality for viewing test results and ordering labs. | ||
Functionality for viewing test results and ordering tests, whether lab tests, radiology, or otherwise. | ||
|
||
## Test Results | ||
|
||
It provides tabular and chart-based overviews of the test results available for a patient. | ||
|
||
IMPORTANT NOTE: To have data show up in this view, your concepts just need to have "Type: Test" or "Type: LabSet". | ||
If you are seeing strange things showing up, like Temperature, in the Test Results viewer, then you probably just need to change the Type for your Temperature concept to something other than "Test", like finding. | ||
It provides tabular and chart-based overviews of the test results available for a patient. | ||
|
||
IMPORTANT NOTE: To have data show up in this view, your concepts just need to have "Type: Test" or "Type: LabSet". | ||
If you are seeing strange things showing up, like Temperature, in the Test Results viewer, then you probably just need to change the Type for your Temperature concept to something other than "Test", such as "Finding." | ||
|
||
## How to Configure the Lab Filter View | ||
The Lab Filter feature enables you to set up custom filter views - eg based on standard medical hierarchies, or even based on your own custom ideas (e.g. "Our Favorite HIV-Related Tests"), like this: | ||
|
||
The Lab Filter feature enables you to set up custom filter views - eg based on standard medical hierarchies, or even based on your own custom concepts (e.g. "Our Favorite HIV-Related Tests"), like this: | ||
|
||
<img width="300" alt="image" src="https://user-images.githubusercontent.com/67400059/161005725-18b38112-d2bd-4ae1-8a01-f797cb69aa57.png"> | ||
|
||
To configure your own Lab Filters, you need to use Labs, LabSets, and ConvSets (Convenience Sets) in your Concept Dictionary. | ||
To configure your own Lab Filters, you need to use Labs, LabSets, and ConvSets (Convenience Sets) in your Concept Dictionary. | ||
Below, we will walk through the steps taken to set up [**this OpenMRS Example Lab Filter**](https://app.openconceptlab.org/#/orgs/openmrs/collections/ExampleLabFilter/). | ||
|
||
### 1. Decide what you want. | ||
In this example, we wanted a layout like: | ||
* Bloodwork | ||
* Hematology | ||
* CBC | ||
* Lymphocytes (%) | ||
* Neutrophils (%) | ||
* Hemoglobin | ||
* Mean corpuscular volume (MCV) | ||
* Hematocrit | ||
* Red blood cells | ||
* Platelets | ||
* White blood cells | ||
* Chemistry | ||
* Serum Electrolytes | ||
* Serum calcium | ||
* Serum carbon dioxide | ||
* Serum chloride | ||
* Serum potassium | ||
* Serum sodium | ||
### 1. Decide what you want | ||
|
||
In this example, we wanted a layout like: | ||
|
||
* Bloodwork | ||
* Hematology | ||
* CBC | ||
* Lymphocytes (%) | ||
* Neutrophils (%) | ||
* Hemoglobin | ||
* Mean corpuscular volume (MCV) | ||
* Hematocrit | ||
* Red blood cells | ||
* Platelets | ||
* White blood cells | ||
* Chemistry | ||
* Serum Electrolytes | ||
* Serum calcium | ||
* Serum carbon dioxide | ||
* Serum chloride | ||
* Serum potassium | ||
* Serum sodium | ||
|
||
### 2. Create the "parents" as concepts with type = ConvSet | ||
* Bloodwork --> Create as a custom concept, type = ConvSet | ||
* Hematology --> Create as a custom concept, type = ConvSet | ||
* Chemistry --> Create as a custom concept, type = ConvSet | ||
|
||
* Bloodwork --> Create as a custom concept, type = ConvSet | ||
* Hematology --> Create as a custom concept, type = ConvSet | ||
* Chemistry --> Create as a custom concept, type = ConvSet | ||
|
||
### 3. Add the "children" Set Members to each parent | ||
* Bloodwork | ||
* Hematology --> Add concept as a Set Member to "Bloodwork" | ||
* CBC --> Add concept as a Set Member to "Hematology" | ||
* Chemistry --> Add concept as a Set Member to "Bloodwork" | ||
* Serum Electrolytes --> Add concept as a Set Member to "Chemistry" | ||
|
||
* Bloodwork | ||
* Hematology --> Add concept as a Set Member to "Bloodwork" | ||
* CBC --> Add concept as a Set Member to "Hematology" | ||
* Chemistry --> Add concept as a Set Member to "Bloodwork" | ||
* Serum Electrolytes --> Add concept as a Set Member to "Chemistry" | ||
|
||
_Note1: As of March 2022, Set Members cannot be added to concepts through the Term Browser, but you can either use your EMR directly or the OpenMRS Dictionary Manager._ | ||
|
||
_Note2: if you don't already have all the "children" concepts, e.g. CBC, Serum Electrolytes, you may have to add these specifically into your dictionary first._ | ||
|
||
### 4. Check your work | ||
|
||
Review your concepts to see that the hierarchy all looks right in the Dictionary/Collection. In the above example (which was created using the OpenMRS Dictionary Manager), you can see that _Bloodwork_ now correctly contains _Hematology_ and _Chemistry_. | ||
|
||
<img width="1173" alt="image" src="https://user-images.githubusercontent.com/67400059/161008455-edbd31d1-00ca-4236-9309-bc41763a6f0a.png"> | ||
|
||
### 5. Update the config-schema file with your ConvSet codes | ||
Go here to add the UUIDs for each of your ConvSet concepts which you want to show up in the Lab Results filters: | ||
https://github.com/openmrs/openmrs-esm-patient-chart/blob/master/packages/esm-patient-labs-app/src/config-schema.ts#L3 | ||
|
||
Go here to add the UUIDs for each of your ConvSet concepts which you want to show up in the Lab Results filters: | ||
<https://github.com/openmrs/openmrs-esm-patient-chart/blob/master/packages/esm-patient-tests-app/src/config-schema.ts#L3> |
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
packages/esm-patient-labs-app/package.json → packages/esm-patient-tests-app/package.json
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...add-lab-order/add-lab-order.workspace.tsx → ...add-lab-order/add-lab-order.workspace.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...sm-patient-labs-app/src/lab-orders/api.ts → ...m-patient-tests-app/src/lab-orders/api.ts
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ket-panel/lab-order-basket-panel.test.tsx → ...ket-panel/lab-order-basket-panel.test.tsx
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
File renamed without changes.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...rc/test-results/filter/filter-context.tsx → ...rc/test-results/filter/filter-context.tsx
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
6 changes: 3 additions & 3 deletions
6
...src/test-results/filter/filter-reducer.ts → ...src/test-results/filter/filter-reducer.ts
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...esults/grouped-timeline/useObstreeData.ts → ...esults/grouped-timeline/useObstreeData.ts
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...t-results/overview/overview.component.tsx → ...t-results/overview/overview.component.tsx
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...pp/src/test-results/panel-view/helper.tsx → ...pp/src/test-results/panel-view/helper.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.