@openmrs/esm-form-entry-app 12.3.5-pre.11707 → 12.3.5-pre.11712
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/.turbo/turbo-build.log +1 -1
- package/README.md +115 -3
- package/dist/routes.json +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -65,7 +65,7 @@ opera 131, opera 127, opera 126[39m[22m
|
|
|
65
65
|
[32m890.aed0da1bd90649d7.js[39m [2m | [22m[2m-[22m [2m | [22m [36m2.75 kB[39m[2m | [22m [36m975 bytes[39m
|
|
66
66
|
[32m9895.cfb49e32de686175.js[39m [2m | [22m[2m-[22m [2m | [22m [36m2.75 kB[39m[2m | [22m [36m973 bytes[39m
|
|
67
67
|
|
|
68
|
-
Build at: 2026-07-
|
|
68
|
+
Build at: 2026-07-17T22:06:24.653Z - Hash: 6ba79e850bf4a888 - Time: 231567ms
|
|
69
69
|
[1m[33m
|
|
70
70
|
Warning: /home/runner/work/openmrs-esm-patient-chart/openmrs-esm-patient-chart/node_modules/@carbon/react/es/components/Accordion/Accordion.js depends on 'prop-types'. CommonJS or AMD dependencies can cause optimization bailouts.
|
|
71
71
|
For more info see: https://angular.dev/tools/cli/build#configuring-commonjs-dependencies
|
package/README.md
CHANGED
|
@@ -1,7 +1,119 @@
|
|
|
1
|
-
# esm-form-entry-app
|
|
1
|
+
# @openmrs/esm-form-entry-app
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`esm-form-entry-app` is an O3 patient chart widget that loads clinical forms
|
|
4
|
+
defined using the
|
|
5
|
+
[O3 form schema](https://github.com/openmrs/openmrs-contrib-json-schemas/blob/main/form.schema.json),
|
|
6
|
+
renders and processes them with the
|
|
7
|
+
[Angular Form Engine (`@openmrs/ngx-formentry`)](https://github.com/openmrs/openmrs-ngx-formentry),
|
|
8
|
+
and submits the resulting data to OpenMRS.
|
|
9
|
+
|
|
10
|
+
## Status and availability
|
|
11
|
+
|
|
12
|
+
The O3 Reference Application ships the
|
|
13
|
+
[React Form Engine (`@openmrs/esm-form-engine-lib`)](https://github.com/openmrs/openmrs-esm-form-engine-lib)
|
|
14
|
+
by default through `@openmrs/esm-form-engine-app`.
|
|
15
|
+
|
|
16
|
+
This Angular-based form entry app is retained for implementations that still
|
|
17
|
+
depend on the Angular Form Engine and have not yet migrated to the React Form
|
|
18
|
+
Engine. It is not included in the
|
|
19
|
+
[default Reference Application SPA assembly](https://github.com/openmrs/openmrs-distro-referenceapplication/blob/main/frontend/spa-assemble-config.json).
|
|
20
|
+
|
|
21
|
+
Implementations using this app must include `@openmrs/esm-form-entry-app` in
|
|
22
|
+
their SPA assembly configuration. The Angular and React integrations both
|
|
23
|
+
register a form renderer in `form-widget-slot` and should not be enabled
|
|
24
|
+
together.
|
|
25
|
+
|
|
26
|
+
In a Reference Application-based distribution, use the Angular integration by
|
|
27
|
+
replacing the React integration in `spa-assemble-config.json`:
|
|
28
|
+
|
|
29
|
+
```diff
|
|
30
|
+
- "@openmrs/esm-form-engine-app": "next",
|
|
31
|
+
+ "@openmrs/esm-form-entry-app": "next",
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Use a version or release tag compatible with the rest of the implementation's
|
|
35
|
+
O3 frontend dependencies.
|
|
36
|
+
|
|
37
|
+
To migrate to the React Form Engine, replace `@openmrs/esm-form-entry-app` with
|
|
38
|
+
`@openmrs/esm-form-engine-app`. See the
|
|
39
|
+
[React Form Engine migration guidance](https://github.com/openmrs/openmrs-esm-form-engine-lib#production).
|
|
40
|
+
|
|
41
|
+
## Responsibilities
|
|
42
|
+
|
|
43
|
+
The widget:
|
|
44
|
+
|
|
45
|
+
- Retrieves an O3 form definition and its associated OpenMRS form metadata.
|
|
46
|
+
- Supplies patient, patient identifier, visit, provider, location, previous
|
|
47
|
+
encounter, and previous observation data to the form.
|
|
48
|
+
- Renders the form and supports its validation, conditional rendering,
|
|
49
|
+
calculations, and other form logic.
|
|
50
|
+
- Supports creating new encounters and editing existing encounters.
|
|
51
|
+
- Converts completed forms into OpenMRS payloads, including observations,
|
|
52
|
+
diagnoses, and orders when specified by the form.
|
|
53
|
+
- Submits encounter data and, when applicable, person attribute and patient
|
|
54
|
+
identifier updates.
|
|
55
|
+
- Reports loading, validation, and submission results to the surrounding O3
|
|
56
|
+
workspace.
|
|
57
|
+
|
|
58
|
+
The fields displayed and payloads produced depend on the form definition.
|
|
59
|
+
|
|
60
|
+
## How it fits into O3
|
|
61
|
+
|
|
62
|
+
This package is the O3 integration layer for the Angular Form Engine. It
|
|
63
|
+
connects the engine to the patient chart, OpenMRS REST APIs, patient and visit
|
|
64
|
+
context, workspace lifecycle, configuration, localization, and offline
|
|
65
|
+
framework.
|
|
66
|
+
|
|
67
|
+
It registers the `form-widget` extension in `form-widget-slot`. The surrounding
|
|
68
|
+
patient form workspace supplies the patient, form UUID, visit, and optional
|
|
69
|
+
encounter context.
|
|
70
|
+
|
|
71
|
+
This widget handles forms that conform to the O3 form schema. Legacy HTML Form
|
|
72
|
+
Entry forms are handled separately by the patient forms application.
|
|
73
|
+
|
|
74
|
+
## Form definitions
|
|
75
|
+
|
|
76
|
+
O3 form definitions are JSON documents that conform to the
|
|
77
|
+
[O3 form schema](https://github.com/openmrs/openmrs-contrib-json-schemas/blob/main/form.schema.json).
|
|
78
|
+
|
|
79
|
+
This package renders and processes those definitions. It does not provide form
|
|
80
|
+
authoring functionality. Forms can be authored using the
|
|
81
|
+
[O3 Form Builder](https://github.com/openmrs/openmrs-esm-form-builder).
|
|
82
|
+
|
|
83
|
+
## Backend requirements
|
|
84
|
+
|
|
85
|
+
The widget requires:
|
|
86
|
+
|
|
87
|
+
- OpenMRS REST Web Services 2.2.0 or later
|
|
88
|
+
- The O3 Forms backend module
|
|
89
|
+
|
|
90
|
+
## Development
|
|
91
|
+
|
|
92
|
+
From this package directory, start the development server with:
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
yarn start
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Other useful commands:
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
yarn build
|
|
102
|
+
yarn test
|
|
103
|
+
yarn lint
|
|
104
|
+
```
|
|
4
105
|
|
|
5
106
|
## Angular version policy
|
|
6
107
|
|
|
7
|
-
This app is the Angular part of an otherwise React codebase. It moves together
|
|
108
|
+
This app is the Angular part of an otherwise React codebase. It moves together
|
|
109
|
+
with
|
|
110
|
+
[`openmrs-ngx-formentry`](https://github.com/openmrs/openmrs-ngx-formentry)
|
|
111
|
+
and
|
|
112
|
+
[`openmrs-ngx-file-uploader`](https://github.com/openmrs/openmrs-ngx-file-uploader).
|
|
113
|
+
All three must use the same Angular major version, and that version must remain
|
|
114
|
+
supported by Angular through the next Reference Application release.
|
|
115
|
+
|
|
116
|
+
Before proposing or reviewing an Angular major version bump, read the
|
|
117
|
+
[Angular version support policy](https://o3-docs.openmrs.org/en-US/docs/frontend-modules/angular-version-policy).
|
|
118
|
+
It explains when to migrate, how to select the target version, and which
|
|
119
|
+
toolchain packages must be ready first.
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","o3forms":"*"},"extensions":[{"name":"form-widget","component":"formWidget","slot":"form-widget-slot","online":true,"offline":true}],"version":"12.3.5-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","o3forms":"*"},"extensions":[{"name":"form-widget","component":"formWidget","slot":"form-widget-slot","online":true,"offline":true}],"version":"12.3.5-pre.11712"}
|