lforms 29.3.1 → 33.2.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +256 -0
  2. package/README.md +97 -14
  3. package/changed-features.md +99 -0
  4. package/dist/lforms/LICENSE.md +70 -0
  5. package/dist/lforms/README.md +100 -0
  6. package/dist/lforms/fhir/R4/lformsFHIR.min.js +2 -0
  7. package/dist/lforms/fhir/R4/lformsFHIR.min.js.map +1 -0
  8. package/dist/lforms/fhir/STU3/lformsFHIR.min.js +2 -0
  9. package/dist/lforms/fhir/STU3/lformsFHIR.min.js.map +1 -0
  10. package/dist/lforms/fhir/lformsFHIRAll.min.js +2 -0
  11. package/dist/lforms/fhir/lformsFHIRAll.min.js.map +1 -0
  12. package/dist/lforms/webcomponent/assets/lib/zone.min.js +134 -0
  13. package/dist/lforms/webcomponent/down_arrow_gray_10_10.png +0 -0
  14. package/dist/lforms/webcomponent/favicon.ico +0 -0
  15. package/dist/lforms/webcomponent/index.html +9 -0
  16. package/dist/lforms/webcomponent/lhc-forms.js +2471 -0
  17. package/dist/lforms/webcomponent/magnifying_glass.png +0 -0
  18. package/dist/lforms/webcomponent/main.js +2464 -0
  19. package/dist/lforms/webcomponent/main.js.map +1 -0
  20. package/dist/lforms/webcomponent/polyfills.js +2 -0
  21. package/dist/lforms/webcomponent/polyfills.js.map +1 -0
  22. package/dist/lforms/webcomponent/runtime.js +2 -0
  23. package/dist/lforms/webcomponent/runtime.js.map +1 -0
  24. package/dist/lforms/webcomponent/scripts.js +3 -0
  25. package/dist/lforms/webcomponent/scripts.js.map +1 -0
  26. package/dist/lforms/webcomponent/styles.css +3 -0
  27. package/dist/lforms/webcomponent/styles.css.map +1 -0
  28. package/form_definition.md +382 -0
  29. package/lforms-33.2.0.tgz +0 -0
  30. package/package.json +94 -88
  31. package/r4-support.md +147 -0
  32. package/sdc-support.md +127 -0
  33. package/app/.npmignore +0 -3
  34. package/app/images/blank.gif +0 -0
  35. package/app/images/signal-stop.png +0 -0
  36. package/app/index.html +0 -10
  37. package/app/lforms.js +0 -56
  38. package/app/lforms.tpl.js +0 -964
  39. package/app/scripts/angular-packages.js +0 -11
  40. package/app/scripts/bootstrap-decorators.js +0 -31
  41. package/app/scripts/bower-index.js +0 -14
  42. package/app/scripts/fhir/R4/export.js +0 -33
  43. package/app/scripts/fhir/R4/fhirRequire.js +0 -36
  44. package/app/scripts/fhir/R4/lformsFHIR.js +0 -27260
  45. package/app/scripts/fhir/R4/sdc-export.js +0 -455
  46. package/app/scripts/fhir/R4/sdc-import.js +0 -483
  47. package/app/scripts/fhir/STU3/export.js +0 -27
  48. package/app/scripts/fhir/STU3/fhirRequire.js +0 -36
  49. package/app/scripts/fhir/STU3/lformsFHIR.js +0 -27291
  50. package/app/scripts/fhir/STU3/sdc-export.js +0 -493
  51. package/app/scripts/fhir/STU3/sdc-import.js +0 -494
  52. package/app/scripts/fhir/diagnostic-report.js +0 -707
  53. package/app/scripts/fhir/export-common.js +0 -209
  54. package/app/scripts/fhir/expression-processor.js +0 -670
  55. package/app/scripts/fhir/extensions/rendering-style.js +0 -23
  56. package/app/scripts/fhir/fhir-common.js +0 -3
  57. package/app/scripts/fhir/obs-prepop.mjs +0 -97
  58. package/app/scripts/fhir/runtime-common.js +0 -33
  59. package/app/scripts/fhir/sdc-common.js +0 -334
  60. package/app/scripts/fhir/sdc-export-common.js +0 -1046
  61. package/app/scripts/fhir/sdc-import-common.js +0 -1343
  62. package/app/scripts/fhir/versions.js +0 -8
  63. package/app/scripts/index.js +0 -20
  64. package/app/scripts/lforms-config.js +0 -12
  65. package/app/scripts/lforms-constants.js +0 -10
  66. package/app/scripts/lforms-controllers.js +0 -1196
  67. package/app/scripts/lforms-directives.js +0 -424
  68. package/app/scripts/lforms-index.js +0 -20
  69. package/app/scripts/lib/cross_browser.js +0 -21
  70. package/app/scripts/lib/lforms-data.js +0 -3591
  71. package/app/scripts/lib/lforms-hl7.js +0 -525
  72. package/app/scripts/lib/lforms-util.js +0 -1122
  73. package/app/scripts/lib/lforms-validate.js +0 -277
  74. package/app/scripts/lib/polyfill.js +0 -81
  75. package/app/scripts/themeList.js +0 -17
  76. package/app/styles/lforms.css +0 -1219
  77. package/app/styles/redmond-theme/README.txt +0 -2
  78. package/app/styles/redmond-theme/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  79. package/app/styles/redmond-theme/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  80. package/app/styles/redmond-theme/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  81. package/app/styles/redmond-theme/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  82. package/app/styles/redmond-theme/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  83. package/app/styles/redmond-theme/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  84. package/app/styles/redmond-theme/images/ui-icons_217bc0_256x240.png +0 -0
  85. package/app/styles/redmond-theme/images/ui-icons_2e83ff_256x240.png +0 -0
  86. package/app/styles/redmond-theme/images/ui-icons_469bdd_256x240.png +0 -0
  87. package/app/styles/redmond-theme/images/ui-icons_6da8d5_256x240.png +0 -0
  88. package/app/styles/redmond-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
  89. package/app/styles/redmond-theme/images/ui-icons_d8e7f3_256x240.png +0 -0
  90. package/app/styles/redmond-theme/images/ui-icons_f9bd01_256x240.png +0 -0
  91. package/app/styles/redmond-theme/jquery-ui.css +0 -1311
  92. package/app/styles/redmond-theme/jquery-ui.min.css +0 -7
  93. package/app/styles/redmond-theme/theme.css +0 -443
  94. package/app/styles/themes.css +0 -1541
  95. package/app/styles/themes.css.map +0 -9
  96. package/app/styles/themes.scss +0 -411
  97. package/app/version.json +0 -1
  98. package/app/views/partials/attachment.html +0 -38
  99. package/app/views/partials/field-answers.html +0 -67
  100. package/app/views/partials/field-units.html +0 -24
  101. package/app/views/partials/form-controls.html +0 -19
  102. package/app/views/partials/form-header.html +0 -35
  103. package/app/views/partials/form-options.html +0 -50
  104. package/app/views/partials/form-title.html +0 -20
  105. package/app/views/partials/form-view.html +0 -13
  106. package/app/views/partials/item-options.html +0 -48
  107. package/app/views/partials/item.html +0 -126
  108. package/app/views/partials/itemPrefixAndText.html +0 -4
  109. package/app/views/partials/layout-horizontal.html +0 -156
  110. package/app/views/partials/layout-matrix.html +0 -145
  111. package/app/views/partials/popover-content.html +0 -1
  112. package/app/views/partials/repeating-button.html +0 -16
  113. package/app/views/partials/table-item.html +0 -30
  114. package/app/views/partials/template-table.html +0 -69
  115. package/app/views/partials/uib-popover-templates/uib-popover-template.html +0 -13
  116. package/app/views/partials/uib-popover-templates/uib-popover.html +0 -11
@@ -1,11 +0,0 @@
1
- // These would be in index.js, but the imports need to happen after
2
- // window.angular is defined.
3
- var Def = require('autocomplete-lhc');
4
- // Angular-ui-bootstrap gets loaded differently as an npm module than as a
5
- // bower package. This is a hack to set up the right dependecies for the LForms
6
- // AngularJS module.
7
- import popover from 'angular-ui-bootstrap/src/popover';
8
- import tooltip from 'angular-ui-bootstrap/src/tooltip';
9
- Def._popover = popover;
10
- Def._tooltip = tooltip;
11
- Def._animate = require('angular-animate');
@@ -1,31 +0,0 @@
1
- // Based on https://stackoverflow.com/a/26339919/360782
2
- angular.module('lformsWidget')
3
- .config(['$provide', function Decorate($provide) {
4
- var directiveToTemplate = {
5
- 'uibPopoverPopupDirective': "uib-popover-templates/uib-popover.html",
6
- 'uibPopoverTemplatePopupDirective': "uib-popover-templates/uib-popover-template.html"
7
- };
8
-
9
- var names=Object.keys(directiveToTemplate);
10
- for (var len=names.length, i=0; i<len; ++i) {
11
- var directiveName = names[i];
12
- var template = directiveToTemplate[directiveName];
13
-
14
- $provide.decorator(directiveName, ['$delegate', (function(templatePath) {
15
- return function($delegate) {
16
- var directive = $delegate[0];
17
-
18
- directive.templateUrl = templatePath;
19
-
20
- // For future reference...
21
- // directive.compile = function() {
22
- // return function link() {
23
- // // can probably access popover element here
24
- // }
25
- //}
26
-
27
- return $delegate;
28
- }
29
- })(template)]);
30
- }
31
- }]);
@@ -1,14 +0,0 @@
1
- // This is the entry point for the bower version of LForms. It does not include
2
- // any of the bower dependencies.
3
- var LForms = require('./lforms-index.js');
4
- LForms.Def = Def; // from the bower autocomplete-lhc package
5
-
6
- if (!LForms.ucumPkg)
7
- LForms.ucumPkg = window.ucumPkg; // window.ucumPkg is defined by the bower ucum-lhc package
8
-
9
- // The NPM version of lforms puts elementResizeDetectorMaker in an internal
10
- // variable to avoid creating another global. For compatibility, do the same
11
- // for this bower version.
12
- LForms._elementResizeDetectorMaker = elementResizeDetectorMaker; // bower package
13
-
14
- module.exports = LForms;
@@ -1,33 +0,0 @@
1
- // R4-specific export code common to DiagnosticReport and SDC.
2
-
3
- import commonExport from '../export-common.js';
4
-
5
- let self = Object.create(commonExport); // copies properties to self.prototype
6
- Object.assign(self, {
7
- /**
8
- * Creates a structure for use by _createObservation() in constructing an
9
- * Observation value for the given integer value.
10
- * @param item an LForms item with the integer value to be represented in an Observation.
11
- * It is assumed that the caller has already checked the data type.
12
- * @return an object with a "key" property that will be the property name for
13
- * the value in the Observation object, and a "val" property that holds the
14
- * value (formatted for the Observation).
15
- */
16
- _createObsIntValue: function(item) {
17
- // R4 added valueInteger to Observation, so we use that unless the item has
18
- // a unit, in which case we use valueQuantity.
19
- // valueQuantity.
20
- let rtn;
21
- if (item.unit) {
22
- let quantity = {value: item.value};
23
- this._setFHIRQuantityUnit(quantity, item.unit);
24
- rtn = {key: 'valueQuantity', val: quantity};
25
- }
26
- else
27
- rtn = {key: 'valueInteger', val: item.value};
28
-
29
- return rtn;
30
- }
31
- });
32
-
33
- export default self;
@@ -1,36 +0,0 @@
1
- // Initializes the FHIR structure for R4
2
- let fhirVersion = 'R4';
3
- if (!LForms.FHIR)
4
- LForms.FHIR = {};
5
- import {LOINC_URI} from '../fhir-common';
6
- var fhir = LForms.FHIR[fhirVersion] = {
7
- LOINC_URI: LOINC_URI
8
- };
9
- fhir.fhirpath = require('fhirpath');
10
- fhir.fhirpathModel = require('fhirpath/fhir-context/r4');
11
- import dr from '../diagnostic-report.js';
12
- fhir.DiagnosticReport = dr;
13
- import commonExport from './export.js';
14
- fhir.DiagnosticReport._commonExport = commonExport;
15
- import fhir_sdc from './sdc-export.js';
16
- fhir.SDC = fhir_sdc;
17
- fhir.SDC._commonExport = commonExport;
18
- import addCommonSDCExportFns from '../sdc-export-common.js';
19
- addCommonSDCExportFns(fhir.SDC);
20
- import addSDCImportFns from './sdc-import.js';
21
- addSDCImportFns(fhir.SDC);
22
- import addCommonSDCFns from '../sdc-common.js';
23
- addCommonSDCFns(fhir.SDC);
24
- import addCommonSDCImportFns from '../sdc-import-common.js';
25
- addCommonSDCImportFns(fhir.SDC);
26
- import { addCommonRuntimeFns } from '../runtime-common.js';
27
- addCommonRuntimeFns(fhir.SDC);
28
- import { ExpressionProcessor } from '../expression-processor.js';
29
- fhir.SDC.ExpressionProcessor = ExpressionProcessor;
30
- fhir.SDC.fhirVersion = fhirVersion; // Needed by lfData for fhirpath, etc.
31
-
32
- fhir.reservedVarNames = {};
33
- ['context', 'resource'].forEach(function(name) {
34
- fhir.reservedVarNames[name] = true;
35
- });
36
-