encounter-playground 0.0.1

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.
Files changed (2) hide show
  1. package/README.md +50 -0
  2. package/package.json +169 -0
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # encounter-playground
2
+
3
+ ### SSH command for proxy
4
+
5
+ ssh -p 22 websvcs@162.209.32.138 -L 7171:devqa.rxnt.com:443
6
+
7
+
8
+ # Pre-requisites
9
+
10
+ **For an overview on how smart forms works, check this guid: [Break-in Guide to SmartForms](https://rxnttracker.atlassian.net/wiki/spaces/EN/pages/356319249/Break-in+Guide+to+SmartForms)**
11
+
12
+ ## Setup `rxntforms`
13
+
14
+ Before executing this you should have your MongoDB `rxntforms` collection loaded. This load happens via `smart-form-repo` project.
15
+
16
+ ### 1. Loading the data
17
+
18
+ 1. Have you mongodb installed (preferably under 27017 port)
19
+
20
+ 2. Setup and start `encounter-mongo-services` (checkout repo read for instructions)
21
+
22
+ 3. When `encounter-mongo-services` is up and running, go to the `<dir>/smart-form-repo/`
23
+
24
+ > Pay attention for the total number of forms to be processed, in the end you should verify that all forms were uploaded.
25
+
26
+ Execute the following:
27
+ ```
28
+ npm i
29
+ npm run uploadAmendment:dev
30
+ npm run start:dev
31
+ ```
32
+
33
+ 4. Verify all forms were loaded into `rxntforms`.
34
+
35
+ ### 2. Fix the formId
36
+ After loading the data into mongo, you should get the `_id` from the master form.
37
+ ```
38
+ db.getCollection('masterforms').find({formId:"RX4056"})
39
+ // form name: "RXNT Standard Encounter"
40
+ ```
41
+
42
+ With the `_id` in hands, time to update the `./integration-playground/auth.js`. We should change the `encounterTemplateV2EncounterInfo.formId` property for the new ID. (search for `window.encounterTemplateV2EncounterInfo`)
43
+ *avoid pushing this change to the repo*
44
+
45
+
46
+ # How to run
47
+
48
+ ```
49
+ npm start
50
+ ```
package/package.json ADDED
@@ -0,0 +1,169 @@
1
+ {
2
+ "name": "encounter-playground",
3
+ "description": "Playground for react-jsonschema-form",
4
+ "private": false,
5
+ "author": "mavarazy@gmail.com",
6
+ "version": "0.0.1",
7
+ "scripts": {
8
+ "build": "rimraf dist && yarn && cross-env NODE_ENV=production webpack --config webpack.config.js",
9
+ "cs-check": "prettier -l $npm_package_prettierOptions '{src,test}/**/*.js'",
10
+ "cs-format": "prettier $npm_package_prettierOptions '{src,test}/**/*.js' --write",
11
+ "lint": "eslint --fix src test integration-playground",
12
+ "start:test": "NODE_ENV=test webpack-dev-server",
13
+ "start": "cross-env NODE_ENV=development LIVE_LOADING=true webpack serve",
14
+ "tdd": "jest --watchAll",
15
+ "test": "jest",
16
+ "devqa-remove-dist": "rimraf ./devqadist",
17
+ "devqa-clean-dist": "yarn devqa-remove-dist && mkdir devqadist",
18
+ "devqa-build-package": "babel-node tools/devqaBuild.js",
19
+ "prodqa-remove-dist": "rimraf ./prodqadist",
20
+ "prodqa-clean-dist": "yarn prodqa-remove-dist && mkdir prodqadist",
21
+ "predevqa-build-package": "yarn install && yarn devqa-clean-dist && yarn lint",
22
+ "preprodqa-build-package": "yarn install && yarn prodqa-clean-dist && yarn lint",
23
+ "prodqa-build-package": "babel-node tools/prodqaBuild.js",
24
+ "release-remove-dist": "rimraf ./releasedist",
25
+ "prerelease-build-package": "yarn install && yarn release-clean-dist && yarn lint",
26
+ "release-clean-dist": "yarn release-remove-dist && mkdir releasedist",
27
+ "release-build-package": "babel-node tools/prodReleaseBuild.js",
28
+ "remove-build": "rimraf ./build",
29
+ "dev-build": "npm run remove-build && babel-node tools/dev-build.js",
30
+ "qa-build": "npm run remove-build && babel-node tools/qa-build.js",
31
+ "prod-build": "npm run remove-build && babel-node tools/prod-build.js"
32
+ },
33
+ "jest": {
34
+ "verbose": true,
35
+ "collectCoverage": true
36
+ },
37
+ "prettierOptions": "--jsx-bracket-same-line --trailing-comma es5 --semi",
38
+ "main": "lib/index.js",
39
+ "files": [
40
+ "dist",
41
+ "lib"
42
+ ],
43
+ "engineStrict": false,
44
+ "engines": {
45
+ "npm": "^6.4.1",
46
+ "node": ">=12.20.1"
47
+ },
48
+ "dependencies": {
49
+ "@rxnt/ehr-js-utils": "0.0.1-4",
50
+ "bmi-calc": "^2.0.0",
51
+ "convert-units": "^2.3.4",
52
+ "deepcopy": "^0.6.3",
53
+ "draftjs-to-html": "^0.8.4",
54
+ "es6-promise": "^4.2.4",
55
+ "html-to-draftjs": "^1.4.0",
56
+ "json-rules-engine-simplified": "^0.1.17",
57
+ "moment": "^2.22.2",
58
+ "moment-timezone": "^0.5.14",
59
+ "object-assign": "4.1.1",
60
+ "prop-types": "^15.6.0",
61
+ "react": "^16.14.0",
62
+ "react-async-component": "^1.0.2",
63
+ "react-bootstrap": "^0.32.1",
64
+ "react-bootstrap-table": "^4.3.0",
65
+ "react-bootstrap-typeahead": "^3.3.3",
66
+ "react-complaint-image": "^0.0.30",
67
+ "react-day-picker": "^7.1.x",
68
+ "react-dom": "^16.6.3",
69
+ "react-draft-wysiwyg": "^1.12.13",
70
+ "react-jsonschema-form": "1.8.1",
71
+ "react-jsonschema-form-conditionals": "^0.3.15",
72
+ "react-jsonschema-form-extras": "0.9.73",
73
+ "react-jsonschema-form-pagination": "^0.3.12",
74
+ "react-jsonschema-rxnt-extras": "0.3.66",
75
+ "react-modal": "^3.14.3",
76
+ "react-notification-system": "0.2.x",
77
+ "react-redux": "^7.2.5",
78
+ "react-redux-toastr": "^7.6.5",
79
+ "react-rte": "0.15.0",
80
+ "redux": "^3.7.2",
81
+ "redux-devtools-extension": "^2.13.2",
82
+ "redux-thunk": "^2.2.0",
83
+ "reselect": "^4.0.0",
84
+ "selectn": "^1.1.2",
85
+ "socket.io-client": "^2.4.0",
86
+ "whatwg-fetch": "1.0.0"
87
+ },
88
+ "devDependencies": {
89
+ "@babel/cli": "^7.0.0",
90
+ "@babel/core": "^7.17.8",
91
+ "@babel/eslint-parser": "^7.17.0",
92
+ "@babel/node": "^7.0.0",
93
+ "@babel/plugin-proposal-class-properties": "^7.0.0",
94
+ "@babel/plugin-proposal-decorators": "^7.0.0",
95
+ "@babel/plugin-proposal-do-expressions": "^7.0.0",
96
+ "@babel/plugin-proposal-export-default-from": "^7.0.0",
97
+ "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
98
+ "@babel/plugin-proposal-function-bind": "^7.0.0",
99
+ "@babel/plugin-proposal-function-sent": "^7.0.0",
100
+ "@babel/plugin-proposal-json-strings": "^7.0.0",
101
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
102
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
103
+ "@babel/plugin-proposal-numeric-separator": "^7.0.0",
104
+ "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
105
+ "@babel/plugin-proposal-optional-chaining": "^7.0.0",
106
+ "@babel/plugin-proposal-pipeline-operator": "^7.0.0",
107
+ "@babel/plugin-proposal-throw-expressions": "^7.0.0",
108
+ "@babel/plugin-syntax-dynamic-import": "^7.0.0",
109
+ "@babel/plugin-syntax-import-meta": "^7.0.0",
110
+ "@babel/plugin-transform-object-assign": "^7.0.0",
111
+ "@babel/polyfill": "^7.0.0",
112
+ "@babel/preset-env": "^7.16.11",
113
+ "@babel/preset-react": "^7.16.7",
114
+ "@babel/register": "^7.0.0",
115
+ "atob": "^2.1.1",
116
+ "babel-core": "^7.0.0-bridge.0",
117
+ "babel-jest": "^23.4.2",
118
+ "babel-loader": "^8.2.4",
119
+ "buffer": "^6.0.3",
120
+ "copy-webpack-plugin": "^10.2.4",
121
+ "cross-env": "^5.0.5",
122
+ "css": "^3.0.0",
123
+ "css-loader": "^6.7.1",
124
+ "eslint": "8.26.0",
125
+ "eslint-plugin-jest": "^21.1.0",
126
+ "eslint-plugin-react": "^7.4.0",
127
+ "eslint-plugin-react-hooks": "^2.5.1",
128
+ "eslint-plugin-standard": "^3.0.1",
129
+ "exit-hook": "^1.1.1",
130
+ "express": "^4.15.5",
131
+ "file-loader": "^6.2.0",
132
+ "gh-pages": "^1.2.0",
133
+ "has-flag": "^2.0.0",
134
+ "html": "1.0.0",
135
+ "html-webpack-partials-plugin": "^0.8.0",
136
+ "html-webpack-plugin": "^5.5.0",
137
+ "http-proxy-middleware": "^0.18.0",
138
+ "jest": "^21.1.0",
139
+ "jsdom": "^11.11.0",
140
+ "json-loader": "^0.5.7",
141
+ "jsonschema-structure-validator": "0.0.2",
142
+ "loader": "^2.1.1",
143
+ "mini-css-extract-plugin": "^2.6.0",
144
+ "node-polyfill-webpack-plugin": "^1.1.4",
145
+ "predicate": "^1.2.0",
146
+ "prettier": "^1.7.0",
147
+ "react-test-renderer": "^16.0.0",
148
+ "react-transform-catch-errors": "^1.0.2",
149
+ "react-transform-hmr": "^1.0.4",
150
+ "redux-devtools": "^3.4.1",
151
+ "regenerator-runtime": "^0.11.0",
152
+ "rimraf": "^2.6.2",
153
+ "sass": "^1.49.9",
154
+ "sass-loader": "^12.6.0",
155
+ "sinon": "^4.0.0",
156
+ "stream-browserify": "^3.0.0",
157
+ "style-loader": "^3.3.1",
158
+ "url-loader": "^4.1.1",
159
+ "webpack": "^5.70.0",
160
+ "webpack-cli": "^4.9.2",
161
+ "webpack-dev-server": "^4.7.4",
162
+ "webpack-hot-middleware": "^2.25.1"
163
+ },
164
+ "directories": {
165
+ "test": "test"
166
+ },
167
+ "repository": "git+https://github.com/RxNT/encounter-playground.git",
168
+ "license": "Apache-2.0"
169
+ }