formbuilder-lhcforms 9.7.2 → 9.7.4
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/README.md +70 -18
- package/dist/formbuilder-lhcforms/3rdpartylicenses.txt +25 -0
- package/dist/formbuilder-lhcforms/assets/version.json +1 -1
- package/dist/formbuilder-lhcforms/index.html +1 -1
- package/dist/formbuilder-lhcforms/main.056d580c19f930b2.js +1 -0
- package/package.json +18 -18
- package/dist/formbuilder-lhcforms/main.a1d68dfcd4c23082.js +0 -1
package/README.md
CHANGED
|
@@ -1,31 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
## What is NLM Form Builder?
|
|
2
|
+
[NLM Form Builder](https://formbuilder.nlm.nih.gov) is an open source web application to create and edit a
|
|
3
|
+
[FHIR Questionnaire](https://hl7.org/fhir/questionnaire.html) resource. The application
|
|
4
|
+
creates input forms supporting medical terminologies such as
|
|
5
|
+
[LOINC](https://loinc.org) and [SNOMED](https://www.snomed.org). This tool is
|
|
6
|
+
written in the Angular framework and is developed by the [Lister Hill National Center
|
|
7
|
+
for Biomedical Communications (LHNCBC)](https://lhbcbc.nlm.nih.gov), [National
|
|
8
|
+
Library of Medicine (NLM)](https://www.nlm.nih.gov), part of the [National
|
|
9
|
+
Institutes of Health (NIH)](https://www.nih.gov). It includes a preview of the
|
|
10
|
+
generated form using [LHC-Forms](https://lhncbc.github.io/lforms/)
|
|
11
|
+
widget.
|
|
3
12
|
|
|
4
|
-
|
|
13
|
+
## Licensing and Copyright Notice
|
|
14
|
+
See [LICENSE.md](LICENSE.md).
|
|
5
15
|
|
|
6
|
-
|
|
16
|
+
## Customizing and Contributing
|
|
17
|
+
If you wish to revise this package, the following steps will allow you install
|
|
18
|
+
and to make changes and test them.
|
|
7
19
|
|
|
8
|
-
|
|
9
|
-
* To build the project, change to formbuilder-lhcforms directory. Edit bashrc.formbuilder file to suit your development environment. Make sure that ./node_modules/.bin is in your path for the rest of the installation.
|
|
20
|
+
### Installation
|
|
10
21
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$ npm ci && npm run build
|
|
14
|
-
$ npm test ## Optional
|
|
22
|
+
**Note**: The application is developed on a Linux platform. Therefore, the following
|
|
23
|
+
instructions are for those who are familiar with Linux systems.
|
|
15
24
|
|
|
16
|
-
|
|
17
|
-
|
|
25
|
+
1. **Install Node.js**:
|
|
26
|
+
- Ensure that you install a version of Node.js that is compatible with the application. You can check the required version in the `bashrc.formbuilder` file included in the root of the project folder.
|
|
27
|
+
- You can use a version manager like `nvm` (Node Version Manager) to install Node.js:
|
|
28
|
+
```bash
|
|
29
|
+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
|
30
|
+
source ~/.bashrc
|
|
31
|
+
nvm install <version>
|
|
32
|
+
nvm use <version>
|
|
33
|
+
```
|
|
18
34
|
|
|
19
|
-
|
|
35
|
+
2. **Clone the repository**:
|
|
36
|
+
- Clone the repository from GitHub and navigate to its directory:
|
|
37
|
+
```bash
|
|
38
|
+
git clone https://github.com/LHNCBC/formbuilder-lhcforms.git
|
|
39
|
+
cd formbuilder-lhcforms
|
|
40
|
+
```
|
|
20
41
|
|
|
21
|
-
|
|
42
|
+
3. **Install dependencies**:
|
|
43
|
+
- Run the following command to install the necessary dependencies:
|
|
44
|
+
```bash
|
|
45
|
+
npm ci
|
|
46
|
+
```
|
|
22
47
|
|
|
23
|
-
|
|
24
|
-
|
|
48
|
+
4. **Build the application**:
|
|
49
|
+
- Run the build command to create the build files in the `./dist` folder:
|
|
50
|
+
```bash
|
|
51
|
+
npm run build
|
|
52
|
+
```
|
|
25
53
|
|
|
26
|
-
|
|
54
|
+
5. **Start the development server**:
|
|
55
|
+
- To start the development server, run:
|
|
56
|
+
```bash
|
|
57
|
+
npm run start
|
|
58
|
+
```
|
|
59
|
+
- Navigate to the provided local development server URL (this is usually `http://localhost:9030`).
|
|
60
|
+
|
|
61
|
+
**OR**
|
|
62
|
+
|
|
63
|
+
- If you need to access the dev server from a different machine, use:
|
|
64
|
+
```bash
|
|
65
|
+
npm run start-public
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
6. **Run tests**:
|
|
69
|
+
- To run the unit tests and end-to-end (e2e) tests, use the following command:
|
|
70
|
+
```bash
|
|
71
|
+
npm run test
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## **Contributing**
|
|
75
|
+
- If you plan to contribute new functionality, it is important to coordinate with the maintainers to ensure proper integration and to avoid duplicating efforts. Reach out to the maintainers for guidance on contributing.
|
|
76
|
+
|
|
77
|
+
If you encounter any issues during the installation or setup process, consult the project's documentation or reach out to the maintainers for further assistance.
|
|
78
|
+
## Application Programming Interface (API)
|
|
27
79
|
The form builder is an application. However, it is possible to control it via
|
|
28
|
-
JavaScript from another web page. Refer to
|
|
80
|
+
JavaScript from another web page. Refer to [API.md](API.md)
|
|
29
81
|
for documentation.
|
|
30
82
|
|
|
31
83
|
|
|
@@ -776,6 +776,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
776
776
|
SOFTWARE.
|
|
777
777
|
|
|
778
778
|
|
|
779
|
+
async-function
|
|
780
|
+
MIT
|
|
781
|
+
MIT License
|
|
782
|
+
|
|
783
|
+
Copyright (c) 2016 EduardoRFS
|
|
784
|
+
|
|
785
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
786
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
787
|
+
in the Software without restriction, including without limitation the rights
|
|
788
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
789
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
790
|
+
furnished to do so, subject to the following conditions:
|
|
791
|
+
|
|
792
|
+
The above copyright notice and this permission notice shall be included in all
|
|
793
|
+
copies or substantial portions of the Software.
|
|
794
|
+
|
|
795
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
796
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
797
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
798
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
799
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
800
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
801
|
+
SOFTWARE.
|
|
802
|
+
|
|
803
|
+
|
|
779
804
|
available-typed-arrays
|
|
780
805
|
MIT
|
|
781
806
|
MIT License
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version": "9.7.
|
|
1
|
+
{"version": "9.7.4"}
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
<body class="bg-secondary">
|
|
20
20
|
<lfb-root></lfb-root>
|
|
21
21
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
22
|
-
<script src="runtime.451db9930bcccb8c.js" type="module"></script><script src="polyfills.ef59bbccd462f5ac.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.
|
|
22
|
+
<script src="runtime.451db9930bcccb8c.js" type="module"></script><script src="polyfills.ef59bbccd462f5ac.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.056d580c19f930b2.js" type="module"></script></body>
|
|
23
23
|
</html>
|
|
24
24
|
|