@icap-ethiopia/esm-ethiohri-intake 1.0.0-pre.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +400 -400
- package/README.md +46 -46
- package/dist/main.js +4914 -1
- package/dist/main.js.map +1 -1
- package/dist/node_modules_dayjs_dayjs_min_js.js +14 -0
- package/dist/node_modules_dayjs_dayjs_min_js.js.map +1 -0
- package/dist/openmrs-esm-ethio-template-app.js +4696 -1
- package/dist/openmrs-esm-ethio-template-app.js.buildmanifest.json +233 -249
- package/dist/openmrs-esm-ethio-template-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/dist/src_forms_family-information_tsx.js +934 -0
- package/dist/src_forms_family-information_tsx.js.map +1 -0
- package/dist/src_forms_intake-a-form_tsx.js +2367 -0
- package/dist/src_forms_intake-a-form_tsx.js.map +1 -0
- package/dist/src_forms_intake-b-form_tsx.js +2684 -0
- package/dist/src_forms_intake-b-form_tsx.js.map +1 -0
- package/dist/src_forms_intake-form_scss-src_forms_hooks_createEncounter_ts-src_forms_hooks_defaultValuesFr-54076e.js +2871 -0
- package/dist/src_forms_intake-form_scss-src_forms_hooks_createEncounter_ts-src_forms_hooks_defaultValuesFr-54076e.js.map +1 -0
- package/dist/src_forms_phdp-form_tsx.js +470 -0
- package/dist/src_forms_phdp-form_tsx.js.map +1 -0
- package/dist/src_index_ts.js +255 -0
- package/dist/src_index_ts.js.map +1 -0
- package/dist/src_intake_index_tsx.js +2738 -0
- package/dist/src_intake_index_tsx.js.map +1 -0
- package/dist/src_root_component_tsx.js +615 -0
- package/dist/src_root_component_tsx.js.map +1 -0
- package/dist/src_utils_Delete-Encounter_modal_tsx.js +396 -0
- package/dist/src_utils_Delete-Encounter_modal_tsx.js.map +1 -0
- package/dist/translations_am_json.js +14 -0
- package/dist/translations_en_json.js +14 -0
- package/dist/translations_es_json.js +14 -0
- package/dist/translations_fr_json.js +14 -0
- package/dist/translations_he_json.js +14 -0
- package/dist/translations_km_json.js +14 -0
- package/dist/vendors-node_modules_carbon_react_es_index_js-node_modules_swr_dist_core_index_mjs.js +132608 -0
- package/dist/vendors-node_modules_carbon_react_es_index_js-node_modules_swr_dist_core_index_mjs.js.map +1 -0
- package/dist/vendors-node_modules_openmrs_esm-framework_src_internal_ts.js +35952 -0
- package/dist/vendors-node_modules_openmrs_esm-framework_src_internal_ts.js.map +1 -0
- package/dist/vendors-node_modules_openmrs_esm-patient-common-lib_src_index_ts-node_modules_openmrs_esm-pat-24e5c8.js +4695 -0
- package/dist/vendors-node_modules_openmrs_esm-patient-common-lib_src_index_ts-node_modules_openmrs_esm-pat-24e5c8.js.map +1 -0
- package/dist/vendors-node_modules_openmrs_node_modules_css-loader_dist_runtime_api_js-node_modules_openmrs-205702.js +3059 -0
- package/dist/vendors-node_modules_openmrs_node_modules_css-loader_dist_runtime_api_js-node_modules_openmrs-205702.js.map +1 -0
- package/dist/vendors-node_modules_react-i18next_dist_es_index_js.js +1424 -0
- package/dist/vendors-node_modules_react-i18next_dist_es_index_js.js.map +1 -0
- package/dist/vendors-node_modules_react-router-dom_dist_index_js.js +6574 -0
- package/dist/vendors-node_modules_react-router-dom_dist_index_js.js.map +1 -0
- package/dist/vendors-node_modules_react_index_js.js +2770 -0
- package/dist/vendors-node_modules_react_index_js.js.map +1 -0
- package/package.json +121 -121
- package/src/index.ts +34 -34
- package/dist/151.js +0 -2
- package/dist/151.js.LICENSE.txt +0 -3
- package/dist/151.js.map +0 -1
- package/dist/159.js +0 -1
- package/dist/159.js.map +0 -1
- package/dist/197.js +0 -1
- package/dist/222.js +0 -2
- package/dist/222.js.LICENSE.txt +0 -5
- package/dist/222.js.map +0 -1
- package/dist/282.js +0 -2
- package/dist/282.js.LICENSE.txt +0 -32
- package/dist/282.js.map +0 -1
- package/dist/300.js +0 -1
- package/dist/319.js +0 -1
- package/dist/319.js.map +0 -1
- package/dist/335.js +0 -1
- package/dist/353.js +0 -1
- package/dist/353.js.map +0 -1
- package/dist/404.js +0 -2
- package/dist/404.js.LICENSE.txt +0 -45
- package/dist/404.js.map +0 -1
- package/dist/410.js +0 -1
- package/dist/410.js.map +0 -1
- package/dist/475.js +0 -1
- package/dist/475.js.map +0 -1
- package/dist/540.js +0 -2
- package/dist/540.js.LICENSE.txt +0 -9
- package/dist/540.js.map +0 -1
- package/dist/55.js +0 -1
- package/dist/652.js +0 -1
- package/dist/692.js +0 -1
- package/dist/692.js.map +0 -1
- package/dist/712.js +0 -1
- package/dist/712.js.map +0 -1
- package/dist/912.js +0 -1
- package/dist/912.js.map +0 -1
- package/dist/917.js +0 -1
- package/dist/917.js.map +0 -1
- package/dist/937.js +0 -1
- package/dist/937.js.map +0 -1
- package/dist/940.js +0 -1
- package/dist/940.js.map +0 -1
- package/dist/979.js +0 -1
- package/dist/979.js.map +0 -1
- package/dist/99.js +0 -1
package/README.md
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# OpenMRS ESM Template App
|
|
4
|
-
|
|
5
|
-
This repository provides a starting point for creating your own
|
|
6
|
-
[OpenMRS Microfrontend](https://wiki.openmrs.org/display/projects/OpenMRS+3.0%3A+A+Frontend+Framework+that+enables+collaboration+and+better+User+Experience).
|
|
7
|
-
|
|
8
|
-
For more information, please see the
|
|
9
|
-
[OpenMRS Frontend Developer Documentation](https://o3-docs.openmrs.org/#/).
|
|
10
|
-
|
|
11
|
-
In particular, the [Setup](https://o3-docs.openmrs.org/docs/frontend-modules/setup) section can help you get started developing microfrontends in general. The [Creating a microfrontend](https://o3-docs.openmrs.org/docs/recipes/create-a-frontend-module) section provides information about how to use this repository to create your own microfrontend.
|
|
12
|
-
|
|
13
|
-
## Running this code
|
|
14
|
-
|
|
15
|
-
```sh
|
|
16
|
-
yarn # to install dependencies
|
|
17
|
-
yarn start # to run the dev server
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Once it is running, a browser window
|
|
21
|
-
should open with the OpenMRS 3 application. Log in and then navigate to `/openmrs/spa/root`.
|
|
22
|
-
|
|
23
|
-
## Adapting the code
|
|
24
|
-
|
|
25
|
-
1. Start by finding and replacing all instances of "template" with the name
|
|
26
|
-
of your microfrontend.
|
|
27
|
-
2. Update `index.ts` as appropriate, at least changing the feature name and the page name and route.
|
|
28
|
-
3. Rename the `root.*` family of files to have the name of your first page.
|
|
29
|
-
4. Delete the contents of the objects in `config-schema`. Start filling them back in once you have a clear idea what will need to be configured.
|
|
30
|
-
5. Delete the `greeter` and `patient-getter` directories, and the contents of `root.component.tsx`.
|
|
31
|
-
6. Delete the contents of `translations/en.json`.
|
|
32
|
-
7. Open up `.github/workflows` and adapt it to your needs. If you're writing
|
|
33
|
-
a microfrontend that will be managed by the community, you might be able to
|
|
34
|
-
just replace all instances of `template` with your microfrontend's name.
|
|
35
|
-
However, if you're writing a microfrontend for a specific organization or
|
|
36
|
-
implementation, you will probably need to configure GitHub Actions differently.
|
|
37
|
-
8. Delete the contents of this README and write a short explanation of what
|
|
38
|
-
you intend to build. Links to planning or design documents can be very helpful.
|
|
39
|
-
|
|
40
|
-
At this point, you should be able to write your first page as a React application.
|
|
41
|
-
|
|
42
|
-
Check out the [Medication dispensing app](https://github.com/openmrs/openmrs-esm-dispensing-app) for an example of a non-trivial app built using the Template.
|
|
43
|
-
|
|
44
|
-
## Integrating it into your application
|
|
45
|
-
|
|
46
|
-
Please see [Creating a Frontend Module](https://o3-docs.openmrs.org/docs/recipes/create-a-frontend-module).
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# OpenMRS ESM Template App
|
|
4
|
+
|
|
5
|
+
This repository provides a starting point for creating your own
|
|
6
|
+
[OpenMRS Microfrontend](https://wiki.openmrs.org/display/projects/OpenMRS+3.0%3A+A+Frontend+Framework+that+enables+collaboration+and+better+User+Experience).
|
|
7
|
+
|
|
8
|
+
For more information, please see the
|
|
9
|
+
[OpenMRS Frontend Developer Documentation](https://o3-docs.openmrs.org/#/).
|
|
10
|
+
|
|
11
|
+
In particular, the [Setup](https://o3-docs.openmrs.org/docs/frontend-modules/setup) section can help you get started developing microfrontends in general. The [Creating a microfrontend](https://o3-docs.openmrs.org/docs/recipes/create-a-frontend-module) section provides information about how to use this repository to create your own microfrontend.
|
|
12
|
+
|
|
13
|
+
## Running this code
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
yarn # to install dependencies
|
|
17
|
+
yarn start # to run the dev server
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Once it is running, a browser window
|
|
21
|
+
should open with the OpenMRS 3 application. Log in and then navigate to `/openmrs/spa/root`.
|
|
22
|
+
|
|
23
|
+
## Adapting the code
|
|
24
|
+
|
|
25
|
+
1. Start by finding and replacing all instances of "template" with the name
|
|
26
|
+
of your microfrontend.
|
|
27
|
+
2. Update `index.ts` as appropriate, at least changing the feature name and the page name and route.
|
|
28
|
+
3. Rename the `root.*` family of files to have the name of your first page.
|
|
29
|
+
4. Delete the contents of the objects in `config-schema`. Start filling them back in once you have a clear idea what will need to be configured.
|
|
30
|
+
5. Delete the `greeter` and `patient-getter` directories, and the contents of `root.component.tsx`.
|
|
31
|
+
6. Delete the contents of `translations/en.json`.
|
|
32
|
+
7. Open up `.github/workflows` and adapt it to your needs. If you're writing
|
|
33
|
+
a microfrontend that will be managed by the community, you might be able to
|
|
34
|
+
just replace all instances of `template` with your microfrontend's name.
|
|
35
|
+
However, if you're writing a microfrontend for a specific organization or
|
|
36
|
+
implementation, you will probably need to configure GitHub Actions differently.
|
|
37
|
+
8. Delete the contents of this README and write a short explanation of what
|
|
38
|
+
you intend to build. Links to planning or design documents can be very helpful.
|
|
39
|
+
|
|
40
|
+
At this point, you should be able to write your first page as a React application.
|
|
41
|
+
|
|
42
|
+
Check out the [Medication dispensing app](https://github.com/openmrs/openmrs-esm-dispensing-app) for an example of a non-trivial app built using the Template.
|
|
43
|
+
|
|
44
|
+
## Integrating it into your application
|
|
45
|
+
|
|
46
|
+
Please see [Creating a Frontend Module](https://o3-docs.openmrs.org/docs/recipes/create-a-frontend-module).
|