@openmrs/esm-fast-data-entry-app 1.0.1-pre.31 → 1.0.1-pre.34
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/dist/132.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(e,o,t)=>{"use strict";t.r(o),t.d(o,{backendDependencies:()=>i,importTranslation:()=>n,setupOpenMRS:()=>p,version:()=>s});var a=t(1132),r={formCategories:{_type:a.Type.Array,_description:"Organize forms into categories. A form can belong to multiple categories.",_elements:{name:{_type:a.Type.String,_description:"Category name"},forms:{_type:a.Type.Array,_description:"List of forms for this category.",_elements:{formUUID:{_type:a.Type.UUID,_description:"UUID of form"},name:{_type:a.Type.String,_description:"Name of form"}}}},_default:[{name:"ICRC Forms",forms:[{formUUID:"0cefb866-110c-4f16-af58-560932a1db1f",name:"Adult Triage"}]},{name:"Distress Scales",forms:[{formUUID:"9f26aad4-244a-46ca-be49-1196df1a8c9a",name:"POC Sample Form 1"}]}]},formCategoriesToShow:{_type:a.Type.Array,_description:"Forms to show by default on the forms app home page.",_elements:{_type:a.Type.String,_description:"Name of category"},_default:["ICRC Forms","Distress Scales"]},groupSessionConcepts:{sessionName:{_type:a.Type.UUID,_description:"UUID of concept for Session Name",_default:"e2559620-900b-4f66-ae41-0b9c4adfb654"},sessionDate:{_type:a.Type.UUID,_description:"UUID of concept for Session Date",_default:"ceaca505-6dff-4940-8a43-8c060a0924d7"},practitionerName:{_type:a.Type.UUID,_description:"UUID of concept for Practitioner Name",_default:"f1a2d58c-1a0e-4148-931a-aac224649fdc"},sessionNotes:{_type:a.Type.UUID,_description:"UUID of concept for Session Notes",_default:"fa8fedc0-c066-4da3-8dc1-2ad8621fc480"}}},s="1.0.1-pre.
|
|
1
|
+
(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(e,o,t)=>{"use strict";t.r(o),t.d(o,{backendDependencies:()=>i,importTranslation:()=>n,setupOpenMRS:()=>p,version:()=>s});var a=t(1132),r={formCategories:{_type:a.Type.Array,_description:"Organize forms into categories. A form can belong to multiple categories.",_elements:{name:{_type:a.Type.String,_description:"Category name"},forms:{_type:a.Type.Array,_description:"List of forms for this category.",_elements:{formUUID:{_type:a.Type.UUID,_description:"UUID of form"},name:{_type:a.Type.String,_description:"Name of form"}}}},_default:[{name:"ICRC Forms",forms:[{formUUID:"0cefb866-110c-4f16-af58-560932a1db1f",name:"Adult Triage"}]},{name:"Distress Scales",forms:[{formUUID:"9f26aad4-244a-46ca-be49-1196df1a8c9a",name:"POC Sample Form 1"}]}]},formCategoriesToShow:{_type:a.Type.Array,_description:"Forms to show by default on the forms app home page.",_elements:{_type:a.Type.String,_description:"Name of category"},_default:["ICRC Forms","Distress Scales"]},groupSessionConcepts:{sessionName:{_type:a.Type.UUID,_description:"UUID of concept for Session Name",_default:"e2559620-900b-4f66-ae41-0b9c4adfb654"},sessionDate:{_type:a.Type.UUID,_description:"UUID of concept for Session Date",_default:"ceaca505-6dff-4940-8a43-8c060a0924d7"},practitionerName:{_type:a.Type.UUID,_description:"UUID of concept for Practitioner Name",_default:"f1a2d58c-1a0e-4148-931a-aac224649fdc"},sessionNotes:{_type:a.Type.UUID,_description:"UUID of concept for Session Notes",_default:"fa8fedc0-c066-4da3-8dc1-2ad8621fc480"}}},s="1.0.1-pre.34",n=t(3979),i={fhir2:"^1.2.0","webservices.rest":"^2.2.0"};function p(){var e="@openmrs/esm-fast-data-entry-app",o={featureName:"fast-data-entry-app",moduleName:e};return(0,a.defineConfigSchema)(e,r),(0,a.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/forms"),title:"Forms",parent:"".concat(window.spaBase,"/home")}]),{pages:[{load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(672),t.e(804)]).then(t.bind(t,9804))}),o),route:"forms"}],extensions:[{name:"forms-app-link",slot:"app-menu-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(672),t.e(397),t.e(776)]).then(t.bind(t,5776))}),o),online:!0,offline:!0}]}}},3979:(e,o,t)=>{var a={"./en.json":[3574,574]};function r(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}));var o=a[e],r=o[0];return t.e(o[1]).then((()=>t(r)))}r.keys=()=>Object.keys(a),r.id=3979,e.exports=r}}]);
|
package/dist/574.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"actions":"Actions","allFieldsRequired":"All fields are required unless marked optional","areYouSure":"Are you sure?","cancel":"Cancel","cancelExplanation":"You will lose any unsaved changes on the current form. Do you want to discard the current session?","changeGroup":"Choose a different group","chooseGroupError":"Please choose a group.","
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"actions":"Actions","allFieldsRequired":"All fields are required unless marked optional","allForms":"All Forms","areYouSure":"Are you sure?","cancel":"Cancel","cancelExplanation":"You will lose any unsaved changes on the current form. Do you want to discard the current session?","changeGroup":"Choose a different group","chooseGroupError":"Please choose a group.","clearSearch":"Clear","complete":"Complete","createGroup":"Create Group","createNewGroup":"Create New Group","createNewPatient":"Create new patient","createNewSession":"Create New Session","discard":"Discard","error":"Error","errorCopy":"Sorry, there was an error. You can try to reload this page, or contact the site administrator and quote the error code above.","errorLoadingData":"Error Loading Data","fastDataEntry":"Fast Data Entry","fillForm":"Fill Form","findGroup":"Find group","formName":"Form Name","formsAppMenuLink":"Fast Data Entry","formsFilled":"Forms filled","goToForm":"Go To Form","groupNameError":"Please enter a group name.","identifier":"Identifier","markAbsentPatients":"The patients in this group. Patients that are not present in the session should be marked as absent.","members":"members","name":"Name","newGroupName":"New Group Name","newGroupSession":"New Group Session","nextPatient":"Next Patient","noFormsFound":"No Forms To Show","noFormsFoundMessage":"No forms could be found for this category. Please double check the form concept uuids and access permissions.","noGroupsFoundMessage":"Sorry, no groups have been found","noMoreResults":"End of search results","noPatientError":"Please enter at least one patient.","or":"or","orLabelName":"OR label name","patientIsPresent":"Patient is present","patientsInGroup":"Patients in group","postError":"POST Error","practitionerName":"Practitioner Name","remove":"Remove","resumeGroupSession":"Resume Group Session","resumeSession":"Resume Session","saveAndComplete":"Save & Complete","saveExplanation":"Do you want to save the current form and exit the workflow?","saveForm":"Save Form","saveSession":"Save Session","search":"Search","searchForGroup":"Search for a group by name","searchResultsText":"search result(s)","selectGroupFirst":"Please select a group first","selectPatientFirst":"Please select a patient first","sessionDate":"Session Date","sessionDetails":"1. Session details","sessionName":"Session Name","sessionNotes":"Session Notes","sessionParticipants":"2. Session participants","startGroupSession":"Start Group Session","trySearchWithPatientUniqueID":"Try searching with the cohort\'s description","unknown":"Unknown","unknownPostError":"An unknown error occured while saving data"}')}}]);
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"132.js"
|
|
67
67
|
],
|
|
68
68
|
"auxiliaryFiles": [],
|
|
69
|
-
"hash": "
|
|
69
|
+
"hash": "a721fdf1e960a730806e",
|
|
70
70
|
"childrenByOrder": {}
|
|
71
71
|
},
|
|
72
72
|
{
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"main.js"
|
|
93
93
|
],
|
|
94
94
|
"auxiliaryFiles": [],
|
|
95
|
-
"hash": "
|
|
95
|
+
"hash": "e5a7a73c082856b0e39f",
|
|
96
96
|
"childrenByOrder": {}
|
|
97
97
|
},
|
|
98
98
|
{
|
|
@@ -359,9 +359,9 @@
|
|
|
359
359
|
"initial": false,
|
|
360
360
|
"entry": false,
|
|
361
361
|
"recorded": false,
|
|
362
|
-
"size":
|
|
362
|
+
"size": 2653,
|
|
363
363
|
"sizes": {
|
|
364
|
-
"javascript":
|
|
364
|
+
"javascript": 2653
|
|
365
365
|
},
|
|
366
366
|
"names": [],
|
|
367
367
|
"idHints": [],
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
"574.js"
|
|
374
374
|
],
|
|
375
375
|
"auxiliaryFiles": [],
|
|
376
|
-
"hash": "
|
|
376
|
+
"hash": "6765217c3a3f27a18a03",
|
|
377
377
|
"childrenByOrder": {}
|
|
378
378
|
},
|
|
379
379
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-fast-data-entry-app",
|
|
3
|
-
"version": "1.0.1-pre.
|
|
3
|
+
"version": "1.0.1-pre.34",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "An OpenMRS 3.x microfrontend",
|
|
6
6
|
"browser": "dist/openmrs-esm-fast-data-entry-app.js",
|
|
@@ -17,12 +17,8 @@
|
|
|
17
17
|
"test": "jest --config jest.config.json --passWithNoTests",
|
|
18
18
|
"verify": "concurrently 'yarn:lint' 'yarn:test' 'yarn:typescript'",
|
|
19
19
|
"coverage": "yarn test -- --coverage ",
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"husky": {
|
|
23
|
-
"hooks": {
|
|
24
|
-
"pre-commit": "pretty-quick --staged && yarn verify"
|
|
25
|
-
}
|
|
20
|
+
"postinstall": "husky install",
|
|
21
|
+
"extract-translations": "i18next 'src/**/*.tsx' --config ./tools/i18next-parser.config.js"
|
|
26
22
|
},
|
|
27
23
|
"browserslist": [
|
|
28
24
|
"extends browserslist-config-openmrs"
|
|
@@ -92,6 +88,8 @@
|
|
|
92
88
|
},
|
|
93
89
|
"packageManager": "yarn@3.2.2",
|
|
94
90
|
"dependencies": {
|
|
91
|
+
"i18next": "^21.10.0",
|
|
92
|
+
"i18next-parser": "^6.6.0",
|
|
95
93
|
"react-hook-form": "^7.34.2",
|
|
96
94
|
"swr": "1.1.2"
|
|
97
95
|
},
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
contextSeparator: "_",
|
|
3
|
+
// Key separator used in your translation keys
|
|
4
|
+
|
|
5
|
+
createOldCatalogs: false,
|
|
6
|
+
// Save the \_old files
|
|
7
|
+
|
|
8
|
+
defaultNamespace: "translations",
|
|
9
|
+
// Default namespace used in your i18next config
|
|
10
|
+
|
|
11
|
+
defaultValue: "",
|
|
12
|
+
// Default value to give to empty keys
|
|
13
|
+
// You may also specify a function accepting the locale, namespace, and key as arguments
|
|
14
|
+
|
|
15
|
+
indentation: 2,
|
|
16
|
+
// Indentation of the catalog files
|
|
17
|
+
|
|
18
|
+
keepRemoved: false,
|
|
19
|
+
// Keep keys from the catalog that are no longer in code
|
|
20
|
+
|
|
21
|
+
keySeparator: ".",
|
|
22
|
+
// Key separator used in your translation keys
|
|
23
|
+
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.
|
|
24
|
+
|
|
25
|
+
// see below for more details
|
|
26
|
+
lexers: {
|
|
27
|
+
hbs: ["HandlebarsLexer"],
|
|
28
|
+
handlebars: ["HandlebarsLexer"],
|
|
29
|
+
|
|
30
|
+
htm: ["HTMLLexer"],
|
|
31
|
+
html: ["HTMLLexer"],
|
|
32
|
+
|
|
33
|
+
mjs: ["JavascriptLexer"],
|
|
34
|
+
js: ["JavascriptLexer"], // if you're writing jsx inside .js files, change this to JsxLexer
|
|
35
|
+
ts: ["JavascriptLexer"],
|
|
36
|
+
jsx: ["JsxLexer"],
|
|
37
|
+
tsx: ["JsxLexer"],
|
|
38
|
+
|
|
39
|
+
default: ["JavascriptLexer"],
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
lineEnding: "lf",
|
|
43
|
+
// Control the line ending. See options at https://github.com/ryanve/eol
|
|
44
|
+
|
|
45
|
+
locales: ["en"],
|
|
46
|
+
// An array of the locales in your applications
|
|
47
|
+
|
|
48
|
+
namespaceSeparator: ":",
|
|
49
|
+
// Namespace separator used in your translation keys
|
|
50
|
+
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.
|
|
51
|
+
|
|
52
|
+
output: "$NAMESPACE/$LOCALE.json",
|
|
53
|
+
// Supports $LOCALE and $NAMESPACE injection
|
|
54
|
+
// Supports JSON (.json) and YAML (.yml) file formats
|
|
55
|
+
// Where to write the locale files relative to process.cwd()
|
|
56
|
+
|
|
57
|
+
pluralSeparator: "_",
|
|
58
|
+
// Plural separator used in your translation keys
|
|
59
|
+
// If you want to use plain english keys, separators such as `_` might conflict. You might want to set `pluralSeparator` to a different string that does not occur in your keys.
|
|
60
|
+
|
|
61
|
+
input: undefined,
|
|
62
|
+
// An array of globs that describe where to look for source files
|
|
63
|
+
// relative to the location of the configuration file
|
|
64
|
+
|
|
65
|
+
sort: true,
|
|
66
|
+
// Whether or not to sort the catalog
|
|
67
|
+
|
|
68
|
+
skipDefaultValues: false,
|
|
69
|
+
// Whether to ignore default values
|
|
70
|
+
// You may also specify a function accepting the locale and namespace as arguments
|
|
71
|
+
|
|
72
|
+
useKeysAsDefaultValue: false,
|
|
73
|
+
// Whether to use the keys as the default value; ex. "Hello": "Hello", "World": "World"
|
|
74
|
+
// This option takes precedence over the `defaultValue` and `skipDefaultValues` options
|
|
75
|
+
// You may also specify a function accepting the locale and namespace as arguments
|
|
76
|
+
|
|
77
|
+
verbose: false,
|
|
78
|
+
// Display info about the parsing including some stats
|
|
79
|
+
|
|
80
|
+
failOnWarnings: false,
|
|
81
|
+
// Exit with an exit code of 1 on warnings
|
|
82
|
+
|
|
83
|
+
customValueTemplate: null,
|
|
84
|
+
// If you wish to customize the value output the value as an object, you can set your own format.
|
|
85
|
+
// ${defaultValue} is the default value you set in your translation function.
|
|
86
|
+
// Any other custom property will be automatically extracted.
|
|
87
|
+
//
|
|
88
|
+
// Example:
|
|
89
|
+
// {
|
|
90
|
+
// message: "${defaultValue}",
|
|
91
|
+
// description: "${maxLength}", // t('my-key', {maxLength: 150})
|
|
92
|
+
// }
|
|
93
|
+
};
|
package/translations/en.json
CHANGED
|
@@ -1,60 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"actions": "Actions",
|
|
3
3
|
"allFieldsRequired": "All fields are required unless marked optional",
|
|
4
|
+
"allForms": "All Forms",
|
|
4
5
|
"areYouSure": "Are you sure?",
|
|
5
6
|
"cancel": "Cancel",
|
|
6
7
|
"cancelExplanation": "You will lose any unsaved changes on the current form. Do you want to discard the current session?",
|
|
7
8
|
"changeGroup": "Choose a different group",
|
|
8
9
|
"chooseGroupError": "Please choose a group.",
|
|
9
|
-
"
|
|
10
|
+
"clearSearch": "Clear",
|
|
11
|
+
"complete": "Complete",
|
|
10
12
|
"createGroup": "Create Group",
|
|
11
13
|
"createNewGroup": "Create New Group",
|
|
14
|
+
"createNewPatient": "Create new patient",
|
|
12
15
|
"createNewSession": "Create New Session",
|
|
13
|
-
"complete": "Complete",
|
|
14
|
-
"dataErrorMessage": "Something went wrong loading data from the server.",
|
|
15
|
-
"description": "Description",
|
|
16
16
|
"discard": "Discard",
|
|
17
17
|
"error": "Error",
|
|
18
|
-
"
|
|
18
|
+
"errorCopy": "Sorry, there was an error. You can try to reload this page, or contact the site administrator and quote the error code above.",
|
|
19
19
|
"errorLoadingData": "Error Loading Data",
|
|
20
20
|
"fastDataEntry": "Fast Data Entry",
|
|
21
21
|
"fillForm": "Fill Form",
|
|
22
|
+
"findGroup": "Find group",
|
|
22
23
|
"formName": "Form Name",
|
|
24
|
+
"formsAppMenuLink": "Fast Data Entry",
|
|
25
|
+
"formsFilled": "Forms filled",
|
|
23
26
|
"goToForm": "Go To Form",
|
|
24
|
-
"group": "Group",
|
|
25
27
|
"groupNameError": "Please enter a group name.",
|
|
26
28
|
"identifier": "Identifier",
|
|
27
|
-
"markAbsentPatients":
|
|
28
|
-
"The patients in this group. Patients that are not present in the session should be marked as absent.",
|
|
29
|
+
"markAbsentPatients": "The patients in this group. Patients that are not present in the session should be marked as absent.",
|
|
29
30
|
"members": "members",
|
|
30
31
|
"name": "Name",
|
|
31
32
|
"newGroupName": "New Group Name",
|
|
33
|
+
"newGroupSession": "New Group Session",
|
|
32
34
|
"nextPatient": "Next Patient",
|
|
33
35
|
"noFormsFound": "No Forms To Show",
|
|
34
36
|
"noFormsFoundMessage": "No forms could be found for this category. Please double check the form concept uuids and access permissions.",
|
|
35
|
-
"noMoreResults": "End of search results",
|
|
36
37
|
"noGroupsFoundMessage": "Sorry, no groups have been found",
|
|
38
|
+
"noMoreResults": "End of search results",
|
|
37
39
|
"noPatientError": "Please enter at least one patient.",
|
|
38
40
|
"or": "or",
|
|
39
41
|
"orLabelName": "OR label name",
|
|
42
|
+
"patientIsPresent": "Patient is present",
|
|
40
43
|
"patientsInGroup": "Patients in group",
|
|
41
|
-
"patientIsPreent": "Patient is present",
|
|
42
44
|
"postError": "POST Error",
|
|
43
45
|
"practitionerName": "Practitioner Name",
|
|
44
46
|
"remove": "Remove",
|
|
45
|
-
"resumeSession": "Resume Session",
|
|
46
47
|
"resumeGroupSession": "Resume Group Session",
|
|
48
|
+
"resumeSession": "Resume Session",
|
|
47
49
|
"saveAndComplete": "Save & Complete",
|
|
48
50
|
"saveExplanation": "Do you want to save the current form and exit the workflow?",
|
|
51
|
+
"saveForm": "Save Form",
|
|
49
52
|
"saveSession": "Save Session",
|
|
53
|
+
"search": "Search",
|
|
54
|
+
"searchForGroup": "Search for a group by name",
|
|
50
55
|
"searchResultsText": "search result(s)",
|
|
56
|
+
"selectGroupFirst": "Please select a group first",
|
|
51
57
|
"selectPatientFirst": "Please select a patient first",
|
|
52
58
|
"sessionDate": "Session Date",
|
|
53
59
|
"sessionDetails": "1. Session details",
|
|
54
|
-
"sessionParticipants": "2. Session participants",
|
|
55
60
|
"sessionName": "Session Name",
|
|
56
61
|
"sessionNotes": "Session Notes",
|
|
62
|
+
"sessionParticipants": "2. Session participants",
|
|
57
63
|
"startGroupSession": "Start Group Session",
|
|
58
64
|
"trySearchWithPatientUniqueID": "Try searching with the cohort's description",
|
|
65
|
+
"unknown": "Unknown",
|
|
59
66
|
"unknownPostError": "An unknown error occured while saving data"
|
|
60
67
|
}
|