formbuilder-lhcforms 12.10.0 → 12.11.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.
@@ -950,6 +950,9 @@ Awesome, nor vice versa. **Please do not use brand logos for any purpose except
950
950
  to represent the company, product, or service to which they refer.**
951
951
 
952
952
 
953
+ @lhncbc/expression-editor
954
+ SEE LICENSE IN LICENSE.md
955
+
953
956
  @lhncbc/ngx-schema-form
954
957
  MIT
955
958
 
@@ -2902,8 +2905,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2902
2905
  SOFTWARE.
2903
2906
 
2904
2907
 
2905
- ngx-expression-editor
2906
-
2907
2908
  object-inspect
2908
2909
  MIT
2909
2910
  MIT License
@@ -43,6 +43,29 @@
43
43
  "pattern": "^\\S*$",
44
44
  "type": "string"
45
45
  },
46
+ // The id and/or extensions of the primitive fields, copied from
47
+ // $.definitions.Extension in fhir.schema.json. Without them, the form drops e.g. a
48
+ // child extension's _valueString when the extension array is rebuilt.
49
+ "_url": {"description": "Extensions for url", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
50
+ "_valueBase64Binary": {"description": "Extensions for valueBase64Binary", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
51
+ "_valueBoolean": {"description": "Extensions for valueBoolean", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
52
+ "_valueCanonical": {"description": "Extensions for valueCanonical", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
53
+ "_valueCode": {"description": "Extensions for valueCode", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
54
+ "_valueDate": {"description": "Extensions for valueDate", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
55
+ "_valueDateTime": {"description": "Extensions for valueDateTime", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
56
+ "_valueDecimal": {"description": "Extensions for valueDecimal", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
57
+ "_valueId": {"description": "Extensions for valueId", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
58
+ "_valueInstant": {"description": "Extensions for valueInstant", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
59
+ "_valueInteger": {"description": "Extensions for valueInteger", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
60
+ "_valueMarkdown": {"description": "Extensions for valueMarkdown", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
61
+ "_valueOid": {"description": "Extensions for valueOid", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
62
+ "_valuePositiveInt": {"description": "Extensions for valuePositiveInt", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
63
+ "_valueString": {"description": "Extensions for valueString", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
64
+ "_valueTime": {"description": "Extensions for valueTime", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
65
+ "_valueUnsignedInt": {"description": "Extensions for valueUnsignedInt", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
66
+ "_valueUri": {"description": "Extensions for valueUri", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
67
+ "_valueUrl": {"description": "Extensions for valueUrl", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
68
+ "_valueUuid": {"description": "Extensions for valueUuid", "$ref": "#/definitions/Element", "widget": {"id": "hidden"}},
46
69
  "valueBase64Binary": {
47
70
  "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
48
71
  "pattern": "^(\\s*([0-9a-zA-Z\\+/=]){4}\\s*)+$",
@@ -32,6 +32,7 @@
32
32
  { field: "lastReviewDate", col: 12},
33
33
  { field: "effectivePeriod", col: 12},
34
34
  { field: "contained", "col": 12},
35
+ { field: "__$templateExtract", "col": 12},
35
36
  { field: "__$variable", col: 12},
36
37
  { field: "__$extensionContainer", col: 12}
37
38
  ]
@@ -216,15 +217,15 @@
216
217
  "labelPosition": "left",
217
218
  "labelClasses": "col-sm-2 ps-0 pe-1",
218
219
  "controlClasses": "col-sm-10",
219
- "addButtonLabel": "Add new ValueSet",
220
- "addButtonTitle": "At present, only ValueSet is supported as contained resource.",
220
+ "addButtonLabel": "Add contained resource",
221
+ "addButtonTitle": "Create or import a contained FHIR resource.",
221
222
  "showFields": [
222
223
  // The fields here are canonical paths of FormProperty.
223
- {"field": "resourceType", "col": 1, "nolabel": true},
224
- {"field": "id", "col": 3, "nolabel": true},
225
- {"field": "title", "col": 4, "nolabel": true},
226
- {"field": "date", "col": 2, "nolabel": true},
227
- {"field": "status", "col": 1, "nolabel": true}
224
+ {"field": "resourceType", "title": "Type", "col": 2, "nolabel": true},
225
+ {"field": "id", "title": "Id", "col": 3, "nolabel": true},
226
+ {"field": "__$resourceDisplay", "title": "Display", "col": 4, "nolabel": true},
227
+ {"field": "__$fhirVersionInfo.version", "title": "FHIR version", "col": 1, "nolabel": true},
228
+ {"field": "status", "title": "Status", "col": 1, "nolabel": true}
228
229
  ]
229
230
  },
230
231
  "__$extensionContainer": {
@@ -63,6 +63,7 @@
63
63
  { "field": "__$terminologyServer", "col": 12 },
64
64
  { "field": "__$observationLinkPeriod", "col": 12},
65
65
  { "field": "__$observationExtract", "col": 12},
66
+ { "field": "__$templateExtract", "col": 12},
66
67
  { "field": "__$extensionContainer", "col": 12 }
67
68
  ]
68
69
  }
@@ -1357,10 +1357,47 @@
1357
1357
  "contained": {
1358
1358
  "description": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
1359
1359
  "items": {
1360
- "$ref": "#/definitions/ValueSet"
1360
+ "description": "Any FHIR resource stored inline with the Questionnaire.",
1361
+ "type": "object",
1362
+ "properties": {
1363
+ "resourceType": {
1364
+ "description": "FHIR resource type.",
1365
+ "type": "string"
1366
+ },
1367
+ "id": {
1368
+ "description": "Logical id used for local references to the contained resource.",
1369
+ "$ref": "#/definitions/id"
1370
+ }
1371
+ },
1372
+ "required": ["resourceType"],
1373
+ "additionalProperties": true
1361
1374
  },
1362
1375
  "type": "array"
1363
1376
  },
1377
+ "__$templateExtract": {
1378
+ "description": "Create extracted FHIR resources from the Questionnaire's existing contained resource templates.",
1379
+ "title": "Template-based extraction",
1380
+ "type": "array",
1381
+ "items": {
1382
+ "$ref": "#/definitions/Extension"
1383
+ },
1384
+ "widget": {
1385
+ "id": "template-extract",
1386
+ "addEditAction": true,
1387
+ "addDefaultItemIfEmpty": false,
1388
+ "addButtonLabel": "Add new template extraction",
1389
+ "addButtonDisabledReason": "A contained resource is required before adding a template extraction. Add one under Contained resources above.",
1390
+ "labelPosition": "left",
1391
+ "labelClasses": "col-sm-2 ps-0 pe-1",
1392
+ "controlClasses": "col-sm-10",
1393
+ "showFields": [
1394
+ {"field": "template", "col": 3, "title": "Template"},
1395
+ {"field": "fullUrl", "col": 3, "title": "fullUrl"},
1396
+ {"field": "resourceId", "col": 2, "title": "resourceId"},
1397
+ {"field": "conditionalRequest", "col": 3, "title": "Conditional request"}
1398
+ ]
1399
+ }
1400
+ },
1364
1401
  "__$variable": {
1365
1402
  "description": "Use to store values derived from calculations, references to other answers, or external data.",
1366
1403
  "title": "Variables",
@@ -1406,6 +1443,7 @@
1406
1443
  "description",
1407
1444
  "purpose",
1408
1445
  "__$terminologyServer",
1446
+ "__$templateExtract",
1409
1447
  "__$variable",
1410
1448
  "__$extensionContainer"
1411
1449
  ]
@@ -2615,6 +2615,30 @@
2615
2615
  "type": ["$EXP$ target.value != 'display'"]
2616
2616
  }
2617
2617
  },
2618
+ "__$templateExtract": {
2619
+ "description": "Create extracted FHIR resources from the Questionnaire's existing contained resource templates.",
2620
+ "title": "Template-based extraction",
2621
+ "type": "array",
2622
+ "items": {
2623
+ "$ref": "#/definitions/Extension"
2624
+ },
2625
+ "widget": {
2626
+ "id": "template-extract",
2627
+ "addEditAction": true,
2628
+ "addDefaultItemIfEmpty": false,
2629
+ "addButtonLabel": "Add new template extraction",
2630
+ "addButtonDisabledReason": "A contained resource is required before adding a template extraction. Add one under Contained resources in the form-level fields.",
2631
+ "labelPosition": "left",
2632
+ "labelClasses": "col-2 ps-0 pe-1",
2633
+ "controlClasses": "col-10",
2634
+ "showFields": [
2635
+ {"field": "template", "col": 3, "title": "Template"},
2636
+ {"field": "fullUrl", "col": 3, "title": "fullUrl"},
2637
+ {"field": "resourceId", "col": 2, "title": "resourceId"},
2638
+ {"field": "conditionalRequest", "col": 3, "title": "Conditional request"}
2639
+ ]
2640
+ }
2641
+ },
2618
2642
  "__$extensionContainer": {
2619
2643
  "description": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
2620
2644
  "title": "General Extensions",
@@ -3283,6 +3307,17 @@
3283
3307
  }
3284
3308
  ]
3285
3309
  },
3310
+ {
3311
+ "fields": [
3312
+ "__$templateExtract"
3313
+ ],
3314
+ "showFields": [
3315
+ {
3316
+ "field": "__$templateExtract",
3317
+ "col": 12
3318
+ }
3319
+ ]
3320
+ },
3286
3321
  {
3287
3322
  "fields": ["id", "__$treeNodeId", "__$extensionContainer", "extension", "modifierExtension", "definition"]
3288
3323
  }