formbuilder-lhcforms 7.0.9 → 7.0.10
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/CHANGELOG.md +6 -0
- package/dist/formbuilder-lhcforms/assets/items-layout.json +5 -0
- package/dist/formbuilder-lhcforms/assets/ngx-item.schema.json +19 -0
- package/dist/formbuilder-lhcforms/main-es2015.js +569 -61
- package/dist/formbuilder-lhcforms/main-es2015.js.map +1 -1
- package/dist/formbuilder-lhcforms/main-es5.js +1194 -312
- package/dist/formbuilder-lhcforms/main-es5.js.map +1 -1
- package/dist/formbuilder-lhcforms/polyfills-es2015.js +1 -1
- package/dist/formbuilder-lhcforms/polyfills-es5.js +2 -2
- package/dist/package.json +98 -0
- package/dist/server/index.js +73 -0
- package/package.json +3 -5
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
/***/
|
|
52
52
|
function _(module, exports, __webpack_require__) {
|
|
53
53
|
module.exports = __webpack_require__(
|
|
54
|
-
/*! /home/akanduru/formbuilder
|
|
54
|
+
/*! /home/akanduru/formbuilder/src/main.ts */
|
|
55
55
|
"zUnb");
|
|
56
56
|
/***/
|
|
57
57
|
},
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
/***/
|
|
68
68
|
function S5(module) {
|
|
69
|
-
module.exports = JSON.parse("{\"formLayout\":{\"rows\":[{\"showFields\":[{\"field\":\"text\",\"col\":12},{\"field\":\"prefix\",\"col\":12},{\"field\":\"linkId\",\"col\":12},{\"field\":\"__$codeYesNo\",\"col\":12},{\"field\":\"code\",\"col\":12},{\"field\":\"__$helpText\",\"col\":12},{\"field\":\"type\",\"col\":12},{\"field\":\"initial\",\"title\":\"Default value\",\"col\":12},{\"field\":\"answerValueSet\",\"col\":12},{\"field\":\"answerOption\",\"title\":\"Answer choices\",\"col\":12},{\"field\":\"__$units\",\"col\":12}]},{\"showFields\":[{\"field\":\"repeats\",\"col\":12},{\"field\":\"required\",\"col\":12},{\"field\":\"readOnly\",\"col\":12},{\"field\":\"maxLength\",\"col\":12},{\"field\":\"__$restrictions\",\"col\":12}]},{\"showFields\":[{\"field\":\"enableWhen\",\"col\":12},{\"field\":\"enableBehavior\",\"col\":12}]},{\"showFields\":[{\"field\":\"__$totalScore\",\"col\":12}]}]},\"propertyLabels\":{\"text\":\"Question text\",\"type\":\"Item type\",\"initial\":\"Initial value (default)\",\"enableWhen\":\"Conditional display\"}}");
|
|
69
|
+
module.exports = JSON.parse("{\"formLayout\":{\"rows\":[{\"showFields\":[{\"field\":\"text\",\"col\":12},{\"field\":\"prefix\",\"col\":12},{\"field\":\"linkId\",\"col\":12},{\"field\":\"__$codeYesNo\",\"col\":12},{\"field\":\"code\",\"col\":12},{\"field\":\"__$helpText\",\"col\":12},{\"field\":\"type\",\"col\":12},{\"field\":\"initial\",\"title\":\"Default value\",\"col\":12},{\"field\":\"answerValueSet\",\"col\":12},{\"field\":\"answerOption\",\"title\":\"Answer choices\",\"col\":12},{\"field\":\"__$units\",\"col\":12}]},{\"showFields\":[{\"field\":\"repeats\",\"col\":12},{\"field\":\"required\",\"col\":12},{\"field\":\"readOnly\",\"col\":12},{\"field\":\"maxLength\",\"col\":12},{\"field\":\"__$restrictions\",\"col\":12}]},{\"showFields\":[{\"field\":\"enableWhen\",\"col\":12},{\"field\":\"enableBehavior\",\"col\":12}]},{\"showFields\":[{\"field\":\"__$observationLinkPeriod\",\"col\":12}]},{\"showFields\":[{\"field\":\"__$totalScore\",\"col\":12}]}]},\"propertyLabels\":{\"text\":\"Question text\",\"type\":\"Item type\",\"initial\":\"Initial value (default)\",\"enableWhen\":\"Conditional display\"}}");
|
|
70
70
|
/***/
|
|
71
71
|
},
|
|
72
72
|
|
|
@@ -203,15 +203,6 @@
|
|
|
203
203
|
if (changes.model) {
|
|
204
204
|
this.resetForm(changes.model.currentValue);
|
|
205
205
|
}
|
|
206
|
-
/*
|
|
207
|
-
if(changes.model.currentValue !== changes.model.previousValue) {
|
|
208
|
-
if(this.itemForm) {
|
|
209
|
-
this.itemForm.reset();
|
|
210
|
-
this.itemForm.writeValue(changes.model.currentValue);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
*/
|
|
214
|
-
|
|
215
206
|
}
|
|
216
207
|
/**
|
|
217
208
|
* The model is changed, emit the event.
|
|
@@ -224,12 +215,6 @@
|
|
|
224
215
|
this.valueChange.emit(value);
|
|
225
216
|
this.modelService.currentItem = value;
|
|
226
217
|
}
|
|
227
|
-
}, {
|
|
228
|
-
key: "updateModel",
|
|
229
|
-
value: function updateModel(model) {
|
|
230
|
-
this.modelChange.emit(model);
|
|
231
|
-
this.modelService.currentItem = model;
|
|
232
|
-
}
|
|
233
218
|
/**
|
|
234
219
|
* Reset ngx- form with new model
|
|
235
220
|
*/
|
|
@@ -752,7 +737,7 @@
|
|
|
752
737
|
|
|
753
738
|
var ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
|
|
754
739
|
|
|
755
|
-
return ctx_r27.
|
|
740
|
+
return ctx_r27.getLoincForm($event.item.id);
|
|
756
741
|
});
|
|
757
742
|
|
|
758
743
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
@@ -1537,7 +1522,7 @@
|
|
|
1537
1522
|
|
|
1538
1523
|
this.acSearch = function (term$) {
|
|
1539
1524
|
return term$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(200), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["switchMap"])(function (term) {
|
|
1540
|
-
return term.length < 2 ? [] : _this3.dataSrv.
|
|
1525
|
+
return term.length < 2 ? [] : _this3.dataSrv.searchLoincForms(term);
|
|
1541
1526
|
}));
|
|
1542
1527
|
};
|
|
1543
1528
|
|
|
@@ -1675,7 +1660,7 @@
|
|
|
1675
1660
|
});
|
|
1676
1661
|
} else if (this.importOption === 'loinc') {
|
|
1677
1662
|
this.modalService.open(this.loincSearchDlg).result.then(function (qId) {
|
|
1678
|
-
_this4.dataSrv.
|
|
1663
|
+
_this4.dataSrv.getLoincFormData(qId).subscribe(function (data) {
|
|
1679
1664
|
_this4.setQuestionnaire(data);
|
|
1680
1665
|
|
|
1681
1666
|
_this4.setStep('fl-editor');
|
|
@@ -1809,20 +1794,20 @@
|
|
|
1809
1794
|
downloadLink.dispatchEvent(new MouseEvent('click'));
|
|
1810
1795
|
}
|
|
1811
1796
|
/**
|
|
1812
|
-
* Get questionnaire
|
|
1813
|
-
* @param
|
|
1797
|
+
* Get LOINC form in questionnaire format using LOINC number.
|
|
1798
|
+
* @param LOINCNumber - LOINC number of the form to fetch. If empty, return empty questionnaire.
|
|
1814
1799
|
*/
|
|
1815
1800
|
|
|
1816
1801
|
}, {
|
|
1817
|
-
key: "
|
|
1818
|
-
value: function
|
|
1802
|
+
key: "getLoincForm",
|
|
1803
|
+
value: function getLoincForm(LOINCNumber) {
|
|
1819
1804
|
var _this6 = this;
|
|
1820
1805
|
|
|
1821
1806
|
var func = function func() {
|
|
1822
|
-
if (!
|
|
1807
|
+
if (!LOINCNumber) {
|
|
1823
1808
|
_this6.setQuestionnaire(_lib_util__WEBPACK_IMPORTED_MODULE_8__["Util"].createDefaultForm());
|
|
1824
1809
|
} else {
|
|
1825
|
-
_this6.dataSrv.
|
|
1810
|
+
_this6.dataSrv.getLoincFormData(LOINCNumber).subscribe(function (data) {
|
|
1826
1811
|
_this6.setQuestionnaire(data);
|
|
1827
1812
|
|
|
1828
1813
|
_this6.acResult = null;
|
|
@@ -5736,7 +5721,7 @@
|
|
|
5736
5721
|
|
|
5737
5722
|
/***/
|
|
5738
5723
|
function DAW1(module) {
|
|
5739
|
-
module.exports = JSON.parse("{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"linkId\":{\"description\":\"An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.\",\"title\":\"Link id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"definition\":{\"description\":\"This element is a URI that refers to an [[[ElementDefinition]]] that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\\n\\n* code (ElementDefinition.code) \\n* type (ElementDefinition.type) \\n* required (ElementDefinition.min) \\n* repeats (ElementDefinition.max) \\n* maxLength (ElementDefinition.maxLength) \\n* answerValueSet (ElementDefinition.binding)\\n* options (ElementDefinition.binding).\",\"title\":\"Definition\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"__$codeYesNo\":{\"description\":\"\",\"enum\":[\"No\",\"Yes\"],\"default\":\"Yes\",\"type\":\"string\",\"title\":\"Use code(s)?\",\"widget\":{\"id\":\"hidden\",\"layout\":\"row\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-3\"}},\"code\":{\"description\":\"A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).\",\"items\":{\"description\":\"A reference to a code defined by a terminology system.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Code\",\"visibleIf\":{\"allOf\":[{\"type\":[\"$EXP$ target.value != 'display'\"]}]},\"widget\":{\"id\":\"table\",\"noTableLabel\":true,\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-10\",\"noCollapseButton\":true,\"addButtonLabel\":\"Add new code\",\"singleItem\":true,\"booleanControlled\":true,\"booleanLabel\":\"Use question code?\",\"booleanControlledInitial\":false,\"showFields\":[{\"field\":\"code\",\"col\":4,\"nolabel\":true},{\"field\":\"system\",\"col\":7,\"nolabel\":true}]}},\"prefix\":{\"description\":\"A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.\",\"title\":\"Prefix\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"string-with-css\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-3\"}},\"_prefix\":{\"description\":\"Extensions for prefix\",\"title\":\"Questionnaire prefix extensions\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"title\":\"Extensions for prefix\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"valueString\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"type\":\"object\",\"additionalProperties\":false},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"hidden\"}},\"text\":{\"description\":\"The name of a section, the text of a question or text content for a display item.\",\"title\":\"Question text\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"string-with-css\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"}},\"_text\":{\"description\":\"Extensions for text\",\"title\":\"Questionnaire text extensions\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"title\":\"Extensions for text\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"valueString\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"type\":\"object\",\"additionalProperties\":false},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).\",\"enum\":[\"boolean\",\"decimal\",\"integer\",\"date\",\"dateTime\",\"time\",\"string\",\"text\",\"url\",\"choice\",\"open-choice\",\"attachment\",\"reference\",\"quantity\",\"group\",\"display\"],\"type\":\"string\",\"title\":\"Data type\",\"widget\":{\"id\":\"type\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"selectOptionsMap\":{\"remove\":[\"display\",\"reference\",\"attachment\"],\"map\":{\"group\":\"header\"}}},\"default\":\"string\"},\"enableWhen\":{\"description\":\"A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.\",\"items\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"__$answerType\":{\"title\":\"Source question type\",\"type\":\"string\",\"default\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"question\":{\"description\":\"The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.\",\"title\":\"Question\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"enable-when-source\"}},\"operator\":{\"description\":\"Specifies the criteria by which the question is enabled.\",\"enum\":[\"exists\",\"=\",\"!=\",\">\",\"<\",\">=\",\"<=\"],\"type\":\"string\",\"title\":\"Operator\",\"widget\":{\"id\":\"enable-operator\"}},\"answerBoolean\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"visibleIf\":{\"oneOf\":[{\"__$answerType\":[\"boolean\"]}]}},\"answerDecimal\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"decimal\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerInteger\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"integer\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerDate\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"date\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerDateTime\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"dateTime\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerTime\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"time\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerString\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"$EXP$ target.value == 'string' || target.value == 'text' || target.value == 'url'\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerCoding\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"},\"__$score\":{\"description\":\"If desired, enter a number to assign a numerical value to this answer for scoring purposes.\",\"type\":\"number\",\"title\":\"Score\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"$EXP$ target.value == 'choice' || target.value == 'open-choice'\"]},{\"operator\":[\"$EXP$ target.value == '=' || target.value == '!='\"]}]},\"widget\":{\"id\":\"enable-when-answer-choice\"}},\"answerQuantity\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"quantity\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]},\"widget\":{\"id\":\"left-label-form-group\",\"labelWidth\":4,\"controlWidth\":8,\"label\":true,\"showFields\":[{\"field\":\"value\",\"col\":3}]}},\"answerReference\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"reference\"]},{\"operator\":[\"$EXP$ target.value == 'exists' || target.value == '='\"]}]},\"widget\":{\"id\":\"left-label-form-group\",\"labelWidth\":4,\"controlWidth\":8,\"label\":true,\"showFields\":[{\"field\":\"reference\",\"col\":4},{\"field\":\"type\",\"col\":4},{\"field\":\"display\",\"col\":4}]}}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Conditional display\",\"widget\":{\"noCollapseButton\":true,\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"addButtonLabel\":\"Add another condition\",\"id\":\"table\",\"showFields\":[{\"field\":\"question\",\"nolabel\":true,\"col\":5,\"title\":\"Question\"},{\"field\":\"operator\",\"nolabel\":true,\"col\":2,\"title\":\"Operator\"},{\"field\":\"answerBoolean\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerDecimal\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerInteger\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerDate\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerDateTime\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerTime\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerString\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerCoding\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerQuantity\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"}]}},\"enableBehavior\":{\"description\":\"Controls how multiple enableWhen values are interpreted - whether all or any must be true.\",\"enum\":[\"all\",\"any\"],\"type\":\"string\",\"title\":\"Show this item when\",\"widget\":{\"id\":\"enable-behavior\",\"layout\":\"row\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-6\"}},\"required\":{\"description\":\"An indication, if true, that the item must be present in a \\\"completed\\\" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.\",\"title\":\"Answer required\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'display'\"]},\"widget\":{\"id\":\"boolean-radio\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-10\"}},\"repeats\":{\"description\":\"An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.\",\"title\":\"Allow repeating question?\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'display'\"]},\"widget\":{\"id\":\"boolean-radio\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-10\"}},\"readOnly\":{\"description\":\"An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.\",\"title\":\"Read only\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'display'\"]},\"widget\":{\"id\":\"boolean-radio\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-10\"}},\"maxLength\":{\"description\":\"The maximum number of characters that are permitted in the answer to be considered a \\\"valid\\\" QuestionnaireResponse.\",\"title\":\"Maximum number of char.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'boolean' || target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url' || target.value == 'open-choice'\"]},\"widget\":{\"id\":\"hidden\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-1\"}},\"answerValueSet\":{\"description\":\"A reference to a value set containing a list of codes representing permitted answers for a \\\"choice\\\" or \\\"open-choice\\\" question.\",\"title\":\"Answer value set\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"},\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'open-choice' || target.value == 'choice'\"]}},\"answerOption\":{\"description\":\"One of the permitted answers for a \\\"choice\\\" or \\\"open-choice\\\" question.\",\"items\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"valueInteger\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Value integer\",\"visibleIf\":{\"/type\":[\"integer\"]}},\"valueDate\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Value date\",\"visibleIf\":{\"/type\":[\"date\"]}},\"valueTime\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Value time\",\"visibleIf\":{\"/type\":[\"time\"]}},\"valueString\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Value string\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'string' || target.value == 'text'\"]}},\"valueCoding\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"title\":\"Value coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"__$score\":{\"description\":\"If desired, enter a number to assign a numerical value to this answer for scoring purposes.\",\"type\":\"number\",\"title\":\"Score\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'choice' || target.value == 'open-choice'\"]}},\"valueReference\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"title\":\"Value reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"reference\"]}},\"initialSelected\":{\"description\":\"Indicates whether the answer value is selected when the list of possible answers is initially shown.\",\"title\":\"Initial selected\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Answer choices\",\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'open-choice' || target.value == 'choice'\"]},\"widget\":{\"id\":\"answer-option\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"addButtonLabel\":\"Add another answer\",\"rowSelection\":true,\"multipleSelectionEnableSource\":\"repeats\",\"showFields\":[{\"field\":\"valueInteger\",\"col\":9,\"nolabel\":true},{\"field\":\"valueDate\",\"col\":9,\"nolabel\":true},{\"field\":\"valueTime\",\"col\":9,\"nolabel\":true},{\"field\":\"valueString\",\"col\":9,\"nolabel\":true},{\"field\":\"valueCoding.display\",\"title\":\"Display\",\"col\":3,\"nolabel\":true},{\"field\":\"valueCoding.code\",\"title\":\"Code\",\"col\":2,\"nolabel\":true},{\"field\":\"valueCoding.system\",\"title\":\"System\",\"col\":2,\"nolabel\":true},{\"field\":\"valueCoding.__$score\",\"title\":\"Score\",\"col\":2,\"nolabel\":true},{\"field\":\"valueReference\",\"col\":9,\"nolabel\":true}]}},\"initial\":{\"description\":\"One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.\",\"items\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"valueBoolean\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"title\":\"Value boolean\",\"visibleIf\":{\"/type\":[\"boolean\"]},\"widget\":{\"id\":\"boolean-radio\",\"nolabel\":true}},\"valueDecimal\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\",\"title\":\"Value decimal\",\"visibleIf\":{\"/type\":[\"decimal\"]}},\"valueInteger\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Value integer\",\"visibleIf\":{\"/type\":[\"integer\"]}},\"valueDate\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Value date\",\"visibleIf\":{\"/type\":[\"date\"]}},\"valueDateTime\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\",\"title\":\"Value date time\",\"visibleIf\":{\"/type\":[\"dateTime\"]}},\"valueTime\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Value time\",\"visibleIf\":{\"/type\":[\"time\"]}},\"valueString\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Value string\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'string' || target.value == 'text'\"]}},\"valueUri\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\",\"title\":\"Value uri\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'uri' || target.value == 'url'\"]}},\"valueAttachment\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value attachment\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"contentType\":{\"description\":\"Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"language\":{\"description\":\"The human language of the content. The value can be any valid value according to BCP 47.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"data\":{\"description\":\"The actual data of the attachment - a sequence of bytes, base64 encoded.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"A location where the data can be accessed.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"size\":{\"description\":\"The number of bytes of data that make up this attachment (before base64 encoding, if that is done).\",\"pattern\":\"^[0]|([1-9][0-9]*)$\",\"type\":\"number\"},\"hash\":{\"description\":\"The calculated hash of the data using SHA-1. Represented using base64.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"title\":{\"description\":\"A label or set of text to display in place of the data.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"creation\":{\"description\":\"The date that the attachment was first created.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"attachment\"]}},\"valueCoding\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'choice' || target.value == 'open-choice'\"]},\"widget\":{\"id\":\"hidden\"}},\"valueQuantity\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value quantity\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"units\"}},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"quantity\"]}},\"valueReference\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"reference\"]}}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Initial value\",\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'group' && target.value != 'display'\"]},\"widget\":{\"id\":\"initial\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"addButtonLabel\":\"Add another value\",\"singleItemEnableSource\":\"repeats\",\"showFields\":[{\"field\":\"valueBoolean\",\"noHeader\":true,\"title\":\"\",\"nolabel\":true},{\"field\":\"valueDecimal\",\"noHeader\":true,\"title\":\"\",\"nolabel\":true},{\"field\":\"valueInteger\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueDate\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueDateTime\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueTime\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueString\",\"noHeader\":true,\"title\":\"\",\"nolabel\":true},{\"field\":\"valueUri\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueCoding.display\",\"title\":\"Display\",\"col\":4,\"nolabel\":true},{\"field\":\"valueCoding.code\",\"title\":\"Code\",\"col\":3,\"nolabel\":true},{\"field\":\"valueCoding.system\",\"title\":\"System\",\"col\":4,\"nolabel\":true},{\"field\":\"valueQuantity.value\",\"title\":\"Value\",\"col\":6,\"nolabel\":true},{\"field\":\"valueQuantity.unit\",\"title\":\"Units\",\"col\":5,\"nolabel\":true},{\"field\":\"valueReference\",\"noHeader\":true,\"nolabel\":true}]}},\"__$units\":{\"description\":\"The units for answers. They are applicable for integer, decimal, and quantity types.\",\"title\":\"Units\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"units\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"},\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'integer' || target.value == 'decimal' || target.value == 'quantity'\"]}},\"__$totalScoreItem\":{\"type\":\"boolean\",\"default\":\"true\",\"widget\":{\"id\":\"hidden\"}},\"__$totalScore\":{\"description\":\"Makes this as an item with total score, i.e. totaling scores in pre-defined answers of the choice type items.\",\"title\":\"Make this a total score item\",\"pattern\":\"^true|false$\",\"default\":\"false\",\"type\":\"boolean\",\"widget\":{\"id\":\"totalScore\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"},\"visibleIf\":{\"__$totalScoreItem\":[\"$EXP$ target.value == 'true'\"]}},\"__$helpText\":{\"description\":\"Text is displayed in a dialog box or similar control if invoked by pushing a button or some other UI-appropriate action to request 'help' for a question, group or the questionnaire as a whole (depending what the text is nested within)\",\"title\":\"Help text\",\"type\":\"string\",\"widget\":{\"id\":\"help-text\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"}},\"__$restrictions\":{\"description\":\"Choose to add value restrictions to the input.\",\"title\":\"Restrictions\",\"type\":\"array\",\"items\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"operator\":{\"description\":\"Comparing operator to restrict the input value\",\"type\":\"string\",\"enum\":[\"maxLength\",\"minLength\",\"regex\",\"minValue\",\"maxValue\",\"mazSize\",\"mimeType\"],\"title\":\"Restriction\",\"widget\":{\"id\":\"restrictions-operator\"}},\"value\":{\"description\":\"Value to restrict the input\",\"type\":\"string\",\"title\":\"Value\"}},\"additionalProperties\":false,\"type\":\"object\"},\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url' || target.value == 'open-choice'\"]},\"widget\":{\"id\":\"restrictions\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"noTableLabel\":true,\"noCollapseButton\":true,\"addButtonLabel\":\"Add new restriction\",\"booleanControlled\":true,\"booleanLabel\":\"Use restrictions?\",\"booleanControlledInitial\":false,\"showFields\":[{\"field\":\"operator\",\"col\":7,\"nolabel\":true},{\"field\":\"value\",\"col\":4,\"nolabel\":true}]}}},\"required\":[\"text\",\"type\",\"linkId\"],\"additionalProperties\":false,\"definitions\":{\"string\":{\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"Extension\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"uri\":{\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"Address\":{\"description\":\"An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"use\":{\"description\":\"The purpose of this address.\",\"enum\":[\"home\",\"work\",\"temp\",\"old\",\"billing\"],\"type\":\"string\"},\"type\":{\"description\":\"Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.\",\"enum\":[\"postal\",\"physical\",\"both\"],\"type\":\"string\"},\"text\":{\"description\":\"Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.\",\"$ref\":\"#/definitions/string\"},\"line\":{\"description\":\"This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"city\":{\"description\":\"The name of the city, town, suburb, village or other community or delivery center.\",\"$ref\":\"#/definitions/string\"},\"district\":{\"description\":\"The name of the administrative area (county).\",\"$ref\":\"#/definitions/string\"},\"state\":{\"description\":\"Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).\",\"$ref\":\"#/definitions/string\"},\"postalCode\":{\"description\":\"A postal code designating a region defined by the postal service.\",\"$ref\":\"#/definitions/string\"},\"country\":{\"description\":\"Country - a nation as commonly understood or generally accepted.\",\"$ref\":\"#/definitions/string\"},\"period\":{\"description\":\"Time period when address was/is in use.\",\"$ref\":\"#/definitions/Period\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Period\":{\"description\":\"A time period defined by a start and end date and optionally time.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"start\":{\"description\":\"The start of the period. The boundary is inclusive.\",\"$ref\":\"#/definitions/dateTime\"},\"end\":{\"description\":\"The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.\",\"$ref\":\"#/definitions/dateTime\"}},\"additionalProperties\":false,\"type\":\"object\"},\"dateTime\":{\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"},\"Age\":{\"description\":\"A duration of time during which an organism (or a process) has existed.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"$ref\":\"#/definitions/decimal\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"$ref\":\"#/definitions/string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"$ref\":\"#/definitions/uri\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"decimal\":{\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"code\":{\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"Annotation\":{\"description\":\"A text note which also contains information about who made the statement and when.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"authorReference\":{\"description\":\"The individual responsible for making the annotation.\",\"$ref\":\"#/definitions/Reference\"},\"authorString\":{\"description\":\"The individual responsible for making the annotation.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"time\":{\"description\":\"Indicates when this particular annotation was made.\",\"$ref\":\"#/definitions/dateTime\"},\"text\":{\"description\":\"The text of the annotation in markdown format.\",\"$ref\":\"#/definitions/markdown\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Reference\":{\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Identifier\":{\"description\":\"An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"use\":{\"description\":\"The purpose of this identifier.\",\"enum\":[\"usual\",\"official\",\"temp\",\"secondary\",\"old\"],\"type\":\"string\"},\"type\":{\"description\":\"A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"system\":{\"description\":\"Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\",\"$ref\":\"#/definitions/uri\"},\"value\":{\"description\":\"The portion of the identifier typically relevant to the user and which is unique within the context of the system.\",\"$ref\":\"#/definitions/string\"},\"period\":{\"description\":\"Time period during which identifier is/was valid for use.\",\"$ref\":\"#/definitions/Period\"},\"assigner\":{\"description\":\"Organization that issued/manages the identifier.\",\"$ref\":\"#/definitions/Reference\"}},\"additionalProperties\":false,\"type\":\"object\"},\"CodeableConcept\":{\"description\":\"A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"coding\":{\"description\":\"A reference to a code defined by a terminology system.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"},\"text\":{\"description\":\"A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.\",\"$ref\":\"#/definitions/string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Coding\":{\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"grid\"},\"fieldsets\":[{\"fields\":[\"id\",\"extension\",\"code\",\"system\",\"display\",\"version\",\"userSelected\"],\"showFields\":[{\"field\":\"code\",\"col\":2},{\"field\":\"system\",\"col\":5},{\"field\":\"display\",\"col\":5}]}]},\"boolean\":{\"pattern\":\"^true|false$\",\"type\":\"boolean\"},\"markdown\":{\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"description\":\"A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine\"},\"Attachment\":{\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"contentType\":{\"description\":\"Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"language\":{\"description\":\"The human language of the content. The value can be any valid value according to BCP 47.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"data\":{\"description\":\"The actual data of the attachment - a sequence of bytes, base64 encoded.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"A location where the data can be accessed.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"size\":{\"description\":\"The number of bytes of data that make up this attachment (before base64 encoding, if that is done).\",\"pattern\":\"^[0]|([1-9][0-9]*)$\",\"type\":\"number\"},\"hash\":{\"description\":\"The calculated hash of the data using SHA-1. Represented using base64.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"title\":{\"description\":\"A label or set of text to display in place of the data.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"creation\":{\"description\":\"The date that the attachment was first created.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"base64Binary\":{\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"unsignedInt\":{\"pattern\":\"^[0]|([1-9][0-9]*)$\",\"type\":\"number\"},\"ContactPoint\":{\"description\":\"Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"Telecommunications form for contact point - what communications system is required to make use of the contact.\",\"enum\":[\"phone\",\"fax\",\"email\",\"pager\",\"url\",\"sms\",\"other\"],\"type\":\"string\"},\"value\":{\"description\":\"The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).\",\"$ref\":\"#/definitions/string\"},\"use\":{\"description\":\"Identifies the purpose for the contact point.\",\"enum\":[\"home\",\"work\",\"temp\",\"old\",\"mobile\"],\"type\":\"string\"},\"rank\":{\"description\":\"Specifies a preferred order in which to use a set of contacts. ContactPoints with lower rank values are more preferred than those with higher rank values.\",\"$ref\":\"#/definitions/positiveInt\"},\"period\":{\"description\":\"Time period when the contact point was/is in use.\",\"$ref\":\"#/definitions/Period\"}},\"additionalProperties\":false,\"type\":\"object\"},\"positiveInt\":{\"pattern\":\"^[1-9][0-9]*$\",\"type\":\"number\",\"description\":\"An integer with a value that is positive (e.g. >0)\"},\"Count\":{\"description\":\"A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"$ref\":\"#/definitions/decimal\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"$ref\":\"#/definitions/string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"$ref\":\"#/definitions/uri\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Distance\":{\"description\":\"A length - a value with a unit that is a physical distance.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"$ref\":\"#/definitions/decimal\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"$ref\":\"#/definitions/string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"$ref\":\"#/definitions/uri\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Duration\":{\"description\":\"A length of time.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"$ref\":\"#/definitions/decimal\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"$ref\":\"#/definitions/string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"$ref\":\"#/definitions/uri\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"HumanName\":{\"description\":\"A human's name with the ability to identify parts and usage.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"use\":{\"description\":\"Identifies the purpose for this name.\",\"enum\":[\"usual\",\"official\",\"temp\",\"nickname\",\"anonymous\",\"old\",\"maiden\"],\"type\":\"string\"},\"text\":{\"description\":\"Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.\",\"$ref\":\"#/definitions/string\"},\"family\":{\"description\":\"The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.\",\"$ref\":\"#/definitions/string\"},\"given\":{\"description\":\"Given name.\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"prefix\":{\"description\":\"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"suffix\":{\"description\":\"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"period\":{\"description\":\"Indicates the period of time when this name was valid for the named person.\",\"$ref\":\"#/definitions/Period\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Money\":{\"description\":\"An amount of economic utility in some recognized currency.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"Numerical value (with implicit precision).\",\"$ref\":\"#/definitions/decimal\"},\"currency\":{\"description\":\"ISO 4217 Currency Code.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Quantity\":{\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Range\":{\"description\":\"A set of ordered Quantities defined by a low and high limit.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"low\":{\"description\":\"The low limit. The boundary is inclusive.\",\"$ref\":\"#/definitions/Quantity\"},\"high\":{\"description\":\"The high limit. The boundary is inclusive.\",\"$ref\":\"#/definitions/Quantity\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Ratio\":{\"description\":\"A relationship of two Quantity values - expressed as a numerator and a denominator.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"numerator\":{\"description\":\"The value of the numerator.\",\"$ref\":\"#/definitions/Quantity\"},\"denominator\":{\"description\":\"The value of the denominator.\",\"$ref\":\"#/definitions/Quantity\"}},\"additionalProperties\":false,\"type\":\"object\"},\"SampledData\":{\"description\":\"A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"origin\":{\"description\":\"The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series.\",\"$ref\":\"#/definitions/Quantity\"},\"period\":{\"description\":\"The length of time between sampling times, measured in milliseconds.\",\"$ref\":\"#/definitions/decimal\"},\"factor\":{\"description\":\"A correction factor that is applied to the sampled data points before they are added to the origin.\",\"$ref\":\"#/definitions/decimal\"},\"lowerLimit\":{\"description\":\"The lower limit of detection of the measured points. This is needed if any of the data points have the value \\\"L\\\" (lower than detection limit).\",\"$ref\":\"#/definitions/decimal\"},\"upperLimit\":{\"description\":\"The upper limit of detection of the measured points. This is needed if any of the data points have the value \\\"U\\\" (higher than detection limit).\",\"$ref\":\"#/definitions/decimal\"},\"dimensions\":{\"description\":\"The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once.\",\"$ref\":\"#/definitions/positiveInt\"},\"data\":{\"description\":\"A series of data points which are decimal values separated by a single space (character u20). The special values \\\"E\\\" (error), \\\"L\\\" (below detection limit) and \\\"U\\\" (above detection limit) can also be used in place of a decimal value.\",\"$ref\":\"#/definitions/string\"}},\"additionalProperties\":false,\"required\":[\"origin\"],\"type\":\"object\"},\"Signature\":{\"description\":\"A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"An indication of the reason that the entity signed this document. This may be explicitly included as part of the signature information and can be used when determining accountability for various actions concerning the document.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"},\"when\":{\"description\":\"When the digital signature was signed.\",\"$ref\":\"#/definitions/instant\"},\"who\":{\"description\":\"A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).\",\"$ref\":\"#/definitions/Reference\"},\"onBehalfOf\":{\"description\":\"A reference to an application-usable description of the identity that is represented by the signature.\",\"$ref\":\"#/definitions/Reference\"},\"targetFormat\":{\"description\":\"A mime type that indicates the technical format of the target resources signed by the signature.\",\"$ref\":\"#/definitions/code\"},\"sigFormat\":{\"description\":\"A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc.\",\"$ref\":\"#/definitions/code\"},\"data\":{\"description\":\"The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.\",\"$ref\":\"#/definitions/base64Binary\"}},\"additionalProperties\":false,\"required\":[\"type\",\"who\"],\"type\":\"object\"},\"instant\":{\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$\",\"type\":\"string\",\"description\":\"An instant in time - known at least to the second\"},\"Timing\":{\"description\":\"Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"event\":{\"description\":\"Identifies specific times when the event occurs.\",\"items\":{\"$ref\":\"#/definitions/dateTime\"},\"type\":\"array\"},\"repeat\":{\"description\":\"A set of rules that describe when the event is scheduled.\",\"$ref\":\"#/definitions/Timing_Repeat\"},\"code\":{\"description\":\"A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code).\",\"$ref\":\"#/definitions/CodeableConcept\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Timing_Repeat\":{\"description\":\"Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"boundsDuration\":{\"description\":\"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.\",\"$ref\":\"#/definitions/Duration\"},\"boundsRange\":{\"description\":\"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.\",\"$ref\":\"#/definitions/Range\"},\"boundsPeriod\":{\"description\":\"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.\",\"$ref\":\"#/definitions/Period\"},\"count\":{\"description\":\"A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values.\",\"$ref\":\"#/definitions/positiveInt\"},\"countMax\":{\"description\":\"If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.\",\"$ref\":\"#/definitions/positiveInt\"},\"duration\":{\"description\":\"How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration.\",\"$ref\":\"#/definitions/decimal\"},\"durationMax\":{\"description\":\"If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.\",\"$ref\":\"#/definitions/decimal\"},\"durationUnit\":{\"description\":\"The units of time for the duration, in UCUM units.\",\"enum\":[\"s\",\"min\",\"h\",\"d\",\"wk\",\"mo\",\"a\"],\"type\":\"string\"},\"frequency\":{\"description\":\"The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.\",\"$ref\":\"#/definitions/positiveInt\"},\"frequencyMax\":{\"description\":\"If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.\",\"$ref\":\"#/definitions/positiveInt\"},\"period\":{\"description\":\"Indicates the duration of time over which repetitions are to occur; e.g. to express \\\"3 times per day\\\", 3 would be the frequency and \\\"1 day\\\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.\",\"$ref\":\"#/definitions/decimal\"},\"periodMax\":{\"description\":\"If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \\\"do this once every 3-5 days.\",\"$ref\":\"#/definitions/decimal\"},\"periodUnit\":{\"description\":\"The units of time for the period in UCUM units.\",\"enum\":[\"s\",\"min\",\"h\",\"d\",\"wk\",\"mo\",\"a\"],\"type\":\"string\"},\"dayOfWeek\":{\"description\":\"If one or more days of week is provided, then the action happens only on the specified day(s).\",\"items\":{\"$ref\":\"#/definitions/code\"},\"type\":\"array\"},\"timeOfDay\":{\"description\":\"Specified time of day for action to take place.\",\"items\":{\"$ref\":\"#/definitions/time\"},\"type\":\"array\"},\"when\":{\"description\":\"An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.\",\"items\":{\"enum\":[\"MORN\",\"MORN.early\",\"MORN.late\",\"NOON\",\"AFT\",\"AFT.early\",\"AFT.late\",\"EVE\",\"EVE.early\",\"EVE.late\",\"NIGHT\",\"PHS\",\"HS\",\"WAKE\",\"C\",\"CM\",\"CD\",\"CV\",\"AC\",\"ACM\",\"ACD\",\"ACV\",\"PC\",\"PCM\",\"PCD\",\"PCV\"],\"type\":\"string\"},\"type\":\"array\"},\"offset\":{\"description\":\"The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event.\",\"$ref\":\"#/definitions/unsignedInt\"}},\"additionalProperties\":false,\"type\":\"object\"},\"time\":{\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"description\":\"A time during the day, with no date specified\"},\"ContactDetail\":{\"description\":\"Specifies contact information for a person or organization.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"name\":{\"description\":\"The name of an individual to contact.\",\"$ref\":\"#/definitions/string\"},\"telecom\":{\"description\":\"The contact details for the individual (if a name was provided) or the organization.\",\"items\":{\"$ref\":\"#/definitions/ContactPoint\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Contributor\":{\"description\":\"A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of contributor.\",\"enum\":[\"author\",\"editor\",\"reviewer\",\"endorser\"],\"type\":\"string\"},\"name\":{\"description\":\"The name of the individual or organization responsible for the contribution.\",\"$ref\":\"#/definitions/string\"},\"contact\":{\"description\":\"Contact details to assist a user in finding and communicating with the contributor.\",\"items\":{\"$ref\":\"#/definitions/ContactDetail\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"DataRequirement\":{\"description\":\"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.\",\"$ref\":\"#/definitions/code\"},\"profile\":{\"description\":\"The profile of the required data, specified as the uri of the profile definition.\",\"items\":{\"$ref\":\"#/definitions/canonical\"},\"type\":\"array\"},\"subjectCodeableConcept\":{\"description\":\"The intended subjects of the data requirement. If this element is not provided, a Patient subject is assumed.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"subjectReference\":{\"description\":\"The intended subjects of the data requirement. If this element is not provided, a Patient subject is assumed.\",\"$ref\":\"#/definitions/Reference\"},\"mustSupport\":{\"description\":\"Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available. \\n\\nThe value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"codeFilter\":{\"description\":\"Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND'ed, not OR'ed.\",\"items\":{\"$ref\":\"#/definitions/DataRequirement_CodeFilter\"},\"type\":\"array\"},\"dateFilter\":{\"description\":\"Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND'ed, not OR'ed.\",\"items\":{\"$ref\":\"#/definitions/DataRequirement_DateFilter\"},\"type\":\"array\"},\"limit\":{\"description\":\"Specifies a maximum number of results that are required (uses the _count search parameter).\",\"$ref\":\"#/definitions/positiveInt\"},\"sort\":{\"description\":\"Specifies the order of the results to be returned.\",\"items\":{\"$ref\":\"#/definitions/DataRequirement_Sort\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"canonical\":{\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"DataRequirement_CodeFilter\":{\"description\":\"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"path\":{\"description\":\"The code-valued attribute of the filter. The specified path SHALL be a FHIRPath resolveable on the specified type of the DataRequirement, and SHALL consist only of identifiers, constant indexers, and .resolve(). The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details). Note that the index must be an integer constant. The path must resolve to an element of type code, Coding, or CodeableConcept.\",\"$ref\":\"#/definitions/string\"},\"searchParam\":{\"description\":\"A token parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type code, Coding, or CodeableConcept.\",\"$ref\":\"#/definitions/string\"},\"valueSet\":{\"description\":\"The valueset for the code filter. The valueSet and code elements are additive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset.\",\"$ref\":\"#/definitions/canonical\"},\"code\":{\"description\":\"The codes for the code filter. If values are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codes. If codes are specified in addition to a value set, the filter returns items matching a code in the value set or one of the specified codes.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"DataRequirement_DateFilter\":{\"description\":\"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"path\":{\"description\":\"The date-valued attribute of the filter. The specified path SHALL be a FHIRPath resolveable on the specified type of the DataRequirement, and SHALL consist only of identifiers, constant indexers, and .resolve(). The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details). Note that the index must be an integer constant. The path must resolve to an element of type date, dateTime, Period, Schedule, or Timing.\",\"$ref\":\"#/definitions/string\"},\"searchParam\":{\"description\":\"A date parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type date, dateTime, Period, Schedule, or Timing.\",\"$ref\":\"#/definitions/string\"},\"valueDateTime\":{\"description\":\"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"},\"valuePeriod\":{\"description\":\"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now.\",\"$ref\":\"#/definitions/Period\"},\"valueDuration\":{\"description\":\"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now.\",\"$ref\":\"#/definitions/Duration\"}},\"additionalProperties\":false,\"type\":\"object\"},\"DataRequirement_Sort\":{\"description\":\"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"path\":{\"description\":\"The attribute of the sort. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant.\",\"$ref\":\"#/definitions/string\"},\"direction\":{\"description\":\"The direction of the sort, ascending or descending.\",\"enum\":[\"ascending\",\"descending\"],\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Expression\":{\"description\":\"A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"description\":{\"description\":\"A brief, natural language description of the condition that effectively communicates the intended semantics.\",\"$ref\":\"#/definitions/string\"},\"name\":{\"description\":\"A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.\",\"$ref\":\"#/definitions/id\"},\"language\":{\"description\":\"The media type of the language for the expression.\",\"enum\":[\"text/cql\",\"text/fhirpath\",\"application/x-fhir-query\"],\"type\":\"string\"},\"expression\":{\"description\":\"An expression in the specified language that returns a value.\",\"$ref\":\"#/definitions/string\"},\"reference\":{\"description\":\"A URI that defines where the expression is found.\",\"$ref\":\"#/definitions/uri\"}},\"additionalProperties\":false,\"type\":\"object\"},\"id\":{\"pattern\":\"^[A-Za-z0-9\\\\-\\\\.]{1,64}$\",\"type\":\"string\",\"description\":\"Any combination of letters, numerals, \\\"-\\\" and \\\".\\\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive.\"},\"ParameterDefinition\":{\"description\":\"The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"name\":{\"description\":\"The name of the parameter used to allow access to the value of the parameter in evaluation contexts.\",\"$ref\":\"#/definitions/code\"},\"use\":{\"description\":\"Whether the parameter is input or output for the module.\",\"$ref\":\"#/definitions/code\"},\"min\":{\"description\":\"The minimum number of times this parameter SHALL appear in the request or response.\",\"$ref\":\"#/definitions/integer\"},\"max\":{\"description\":\"The maximum number of times this element is permitted to appear in the request or response.\",\"$ref\":\"#/definitions/string\"},\"documentation\":{\"description\":\"A brief discussion of what the parameter is for and how it is used by the module.\",\"$ref\":\"#/definitions/string\"},\"type\":{\"description\":\"The type of the parameter.\",\"$ref\":\"#/definitions/code\"},\"profile\":{\"description\":\"If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.\",\"$ref\":\"#/definitions/canonical\"}},\"additionalProperties\":false,\"type\":\"object\"},\"integer\":{\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\"},\"RelatedArtifact\":{\"description\":\"Related artifacts such as additional documentation, justification, or bibliographic references.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of relationship to the related artifact.\",\"enum\":[\"documentation\",\"justification\",\"citation\",\"predecessor\",\"successor\",\"derived-from\",\"depends-on\",\"composed-of\"],\"type\":\"string\"},\"label\":{\"description\":\"A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.\",\"$ref\":\"#/definitions/string\"},\"display\":{\"description\":\"A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.\",\"$ref\":\"#/definitions/string\"},\"citation\":{\"description\":\"A bibliographic citation for the related artifact. This text SHOULD be formatted according to an accepted citation format.\",\"$ref\":\"#/definitions/markdown\"},\"url\":{\"description\":\"A url for the artifact that can be followed to access the actual content.\",\"$ref\":\"#/definitions/url\"},\"document\":{\"description\":\"The document being referenced, represented as an attachment. This is exclusive with the resource element.\",\"$ref\":\"#/definitions/Attachment\"},\"resource\":{\"description\":\"The related resource, such as a library, value set, profile, or other knowledge resource.\",\"$ref\":\"#/definitions/canonical\"}},\"additionalProperties\":false,\"type\":\"object\"},\"TriggerDefinition\":{\"description\":\"A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of triggering event.\",\"enum\":[\"named-event\",\"periodic\",\"data-changed\",\"data-added\",\"data-modified\",\"data-removed\",\"data-accessed\",\"data-access-ended\"],\"type\":\"string\"},\"name\":{\"description\":\"A formal name for the event. This may be an absolute URI that identifies the event formally (e.g. from a trigger registry), or a simple relative URI that identifies the event in a local context.\",\"$ref\":\"#/definitions/string\"},\"timingTiming\":{\"description\":\"The timing of the event (if this is a periodic trigger).\",\"$ref\":\"#/definitions/Timing\"},\"timingReference\":{\"description\":\"The timing of the event (if this is a periodic trigger).\",\"$ref\":\"#/definitions/Reference\"},\"timingDate\":{\"description\":\"The timing of the event (if this is a periodic trigger).\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\"},\"timingDateTime\":{\"description\":\"The timing of the event (if this is a periodic trigger).\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"},\"data\":{\"description\":\"The triggering data of the event (if this is a data trigger). If more than one data is requirement is specified, then all the data requirements must be true.\",\"items\":{\"$ref\":\"#/definitions/DataRequirement\"},\"type\":\"array\"},\"condition\":{\"description\":\"A boolean-valued expression that is evaluated in the context of the container of the trigger definition and returns whether or not the trigger fires.\",\"$ref\":\"#/definitions/Expression\"}},\"additionalProperties\":false,\"type\":\"object\"},\"UsageContext\":{\"description\":\"Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care).\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"code\":{\"description\":\"A code that identifies the type of context being specified by this usage context.\",\"$ref\":\"#/definitions/Coding\"},\"valueCodeableConcept\":{\"description\":\"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"valueQuantity\":{\"description\":\"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\",\"$ref\":\"#/definitions/Quantity\"},\"valueRange\":{\"description\":\"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\",\"$ref\":\"#/definitions/Range\"},\"valueReference\":{\"description\":\"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\",\"$ref\":\"#/definitions/Reference\"}},\"additionalProperties\":false,\"required\":[\"code\"],\"type\":\"object\"},\"Dosage\":{\"description\":\"Indicates how the medication is/was taken or should be taken by the patient.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"sequence\":{\"description\":\"Indicates the order in which the dosage instructions should be applied or interpreted.\",\"$ref\":\"#/definitions/integer\"},\"text\":{\"description\":\"Free text dosage instructions e.g. SIG.\",\"$ref\":\"#/definitions/string\"},\"additionalInstruction\":{\"description\":\"Supplemental instructions to the patient on how to take the medication (e.g. \\\"with meals\\\" or\\\"take half to one hour before food\\\") or warnings for the patient about the medication (e.g. \\\"may cause drowsiness\\\" or \\\"avoid exposure of skin to direct sunlight or sunlamps\\\").\",\"items\":{\"$ref\":\"#/definitions/CodeableConcept\"},\"type\":\"array\"},\"patientInstruction\":{\"description\":\"Instructions in terms that are understood by the patient or consumer.\",\"$ref\":\"#/definitions/string\"},\"timing\":{\"description\":\"When medication should be administered.\",\"$ref\":\"#/definitions/Timing\"},\"asNeededBoolean\":{\"description\":\"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"},\"asNeededCodeableConcept\":{\"description\":\"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).\",\"$ref\":\"#/definitions/CodeableConcept\"},\"site\":{\"description\":\"Body site to administer to.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"route\":{\"description\":\"How drug should enter body.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"method\":{\"description\":\"Technique for administering medication.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"doseAndRate\":{\"description\":\"The amount of medication administered.\",\"items\":{\"$ref\":\"#/definitions/Dosage_DoseAndRate\"},\"type\":\"array\"},\"maxDosePerPeriod\":{\"description\":\"Upper limit on medication per unit of time.\",\"$ref\":\"#/definitions/Ratio\"},\"maxDosePerAdministration\":{\"description\":\"Upper limit on medication per administration.\",\"$ref\":\"#/definitions/Quantity\"},\"maxDosePerLifetime\":{\"description\":\"Upper limit on medication per lifetime of the patient.\",\"$ref\":\"#/definitions/Quantity\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Dosage_DoseAndRate\":{\"description\":\"Indicates how the medication is/was taken or should be taken by the patient.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The kind of dose or rate specified, for example, ordered or calculated.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"doseRange\":{\"description\":\"Amount of medication per dose.\",\"$ref\":\"#/definitions/Range\"},\"doseQuantity\":{\"description\":\"Amount of medication per dose.\",\"$ref\":\"#/definitions/Quantity\"},\"rateRatio\":{\"description\":\"Amount of medication per unit of time.\",\"$ref\":\"#/definitions/Ratio\"},\"rateRange\":{\"description\":\"Amount of medication per unit of time.\",\"$ref\":\"#/definitions/Range\"},\"rateQuantity\":{\"description\":\"Amount of medication per unit of time.\",\"$ref\":\"#/definitions/Quantity\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Meta\":{\"description\":\"The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"versionId\":{\"description\":\"The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.\",\"$ref\":\"#/definitions/id\"},\"lastUpdated\":{\"description\":\"When the resource last changed - e.g. when the version changed.\",\"$ref\":\"#/definitions/instant\"},\"source\":{\"description\":\"A uri that identifies the source system of the resource. This provides a minimal amount of [[[Provenance]]] information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.\",\"$ref\":\"#/definitions/uri\"},\"profile\":{\"description\":\"A list of profiles (references to [[[StructureDefinition]]] resources) that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]].\",\"items\":{\"$ref\":\"#/definitions/canonical\"},\"type\":\"array\"},\"security\":{\"description\":\"Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"},\"tag\":{\"description\":\"Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Questionnaire_EnableWhen\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"question\":{\"description\":\"The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.\",\"title\":\"Question\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"operator\":{\"description\":\"Specifies the criteria by which the question is enabled.\",\"enum\":[\"exists\",\"=\",\"!=\",\">\",\"<\",\">=\",\"<=\"],\"type\":\"string\",\"title\":\"Operator\"},\"answerBoolean\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"title\":\"Answer boolean\"},\"answerDecimal\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\",\"title\":\"Answer decimal\"},\"answerInteger\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Answer integer\"},\"answerDate\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Answer date\"},\"answerDateTime\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\",\"title\":\"Answer date time\"},\"answerTime\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Answer time\"},\"answerString\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Answer string\"},\"answerCoding\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"title\":\"Answer coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"row-layout\"},\"fieldsets\":[{\"fields\":[\"id\",\"extension\",\"code\",\"system\",\"display\",\"version\",\"userSelected\"],\"showFields\":[{\"code\":{\"col\":2}},{\"system\":{\"col\":6}},{\"display\":{\"col\":4}}]}]},\"answerQuantity\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"title\":\"Answer quantity\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"answerReference\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"title\":\"Answer reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Questionnaire_AnswerOption\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"valueInteger\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Value integer\"},\"valueDate\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Value date\"},\"valueTime\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Value time\"},\"valueString\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Value string\"},\"valueCoding\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"title\":\"Value coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"row-layout\"},\"fieldsets\":[{\"fields\":[\"id\",\"extension\",\"code\",\"system\",\"display\",\"version\",\"userSelected\"],\"showFields\":[{\"code\":{\"col\":2}},{\"system\":{\"col\":6}},{\"display\":{\"col\":4}}]}]},\"valueReference\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"title\":\"Value reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"initialSelected\":{\"description\":\"Indicates whether the answer value is selected when the list of possible answers is initially shown.\",\"title\":\"Initial selected\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Questionnaire_Initial\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"valueBoolean\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"title\":\"Value boolean\"},\"valueDecimal\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\",\"title\":\"Value decimal\"},\"valueInteger\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Value integer\"},\"valueDate\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Value date\"},\"valueDateTime\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\",\"title\":\"Value date time\"},\"valueTime\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Value time\"},\"valueString\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Value string\"},\"valueUri\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\",\"title\":\"Value uri\"},\"valueAttachment\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value attachment\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"contentType\":{\"description\":\"Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"language\":{\"description\":\"The human language of the content. The value can be any valid value according to BCP 47.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"data\":{\"description\":\"The actual data of the attachment - a sequence of bytes, base64 encoded.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"A location where the data can be accessed.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"size\":{\"description\":\"The number of bytes of data that make up this attachment (before base64 encoding, if that is done).\",\"pattern\":\"^[0]|([1-9][0-9]*)$\",\"type\":\"number\"},\"hash\":{\"description\":\"The calculated hash of the data using SHA-1. Represented using base64.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"title\":{\"description\":\"A label or set of text to display in place of the data.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"creation\":{\"description\":\"The date that the attachment was first created.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"valueCoding\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"grid\"},\"fieldsets\":[{\"fields\":[\"id\",\"extension\",\"code\",\"system\",\"display\",\"version\",\"userSelected\"],\"showFields\":[{\"field\":\"code\",\"col\":2},{\"field\":\"sytem\",\"col\":5},{\"field\":\"display\",\"col\":5}]}]},\"valueQuantity\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value quantity\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"valueReference\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"}},\"additionalProperties\":false,\"type\":\"object\"},\"xhtml\":{\"$ref\":\"#/definitions/string\"},\"__$Item\":{}},\"fieldsets\":[{\"fields\":[\"type\",\"linkId\",\"maxLength\"],\"showFields\":[{\"field\":\"linkId\",\"col\":3},{\"field\":\"type\",\"col\":3},{\"field\":\"maxLength\",\"col\":2}]},{\"fields\":[\"prefix\",\"text\",\"_text\",\"_prefix\"],\"showFields\":[{\"field\":\"prefix\",\"col\":1},{\"field\":\"text\",\"col\":11}]},{\"fields\":[\"required\",\"readOnly\",\"repeats\"],\"showFields\":[{\"field\":\"repeats\",\"col\":4},{\"field\":\"readOnly\",\"col\":4},{\"field\":\"required\",\"col\":4}]},{\"fields\":[\"code\",\"__$codeYesNo\"],\"showFields\":[{\"field\":\"__$codeYesNo\",\"col\":12},{\"field\":\"code\",\"col\":12}]},{\"fields\":[\"__$helpText\"],\"showFields\":[{\"field\":\"__$units\",\"col\":12}]},{\"fields\":[\"answerValueSet\"],\"showFields\":[{\"field\":\"answerValueSet\",\"col\":12}]},{\"fields\":[\"answerOption\"],\"showFields\":[{\"field\":\"answerOption\",\"col\":12}]},{\"fields\":[\"__$units\"],\"showFields\":[{\"field\":\"__$units\",\"col\":12}]},{\"fields\":[\"__$totalScoreItem\",\"__$totalScore\"],\"showFields\":[{\"field\":\"__$totalScore\",\"col\":12}]},{\"fields\":[\"initial\"],\"showFields\":[{\"field\":\"initial\",\"col\":12}]},{\"fields\":[\"__$restrictions\"],\"showFields\":[{\"field\":\"__$restrictions\",\"col\":12}]},{\"fields\":[\"enableWhen\"],\"showFields\":[{\"field\":\"enableWhen\",\"col\":12}]},{\"fields\":[\"enableBehavior\"],\"showFields\":[{\"field\":\"enableBehavior\",\"col\":3}]},{\"fields\":[\"id\",\"extension\",\"modifierExtension\",\"definition\"]}],\"steps\":[{\"title\":\"Specify basic properties\",\"optional\":false,\"rows\":[{\"showFields\":[{\"field\":\"type\",\"col\":12},{\"field\":\"linkId\",\"col\":12}]},{\"showFields\":[{\"field\":\"text\",\"col\":12},{\"field\":\"__$codeYesNo\",\"col\":12},{\"field\":\"code\",\"col\":12},{\"field\":\"prefix\",\"col\":12}]},{\"showFields\":[{\"field\":\"repeats\",\"col\":12},{\"field\":\"required\",\"col\":12},{\"field\":\"readOnly\",\"col\":12},{\"field\":\"maxLength\",\"col\":12},{\"field\":\"answerValueSet\",\"col\":12},{\"field\":\"answerOption\",\"title\":\"Answer choices\",\"col\":12},{\"field\":\"initial\",\"title\":\"Default value\",\"col\":12}]}]},{\"title\":\"Conditions to display\",\"description\":\"A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.\",\"optional\":false,\"rows\":[{\"showFields\":[{\"field\":\"enableWhen\",\"col\":12}]},{\"showFields\":[{\"field\":\"enableBehavior\",\"col\":3}]}]}],\"widget\":{\"keyField\":\"type\",\"id\":\"row-layout\"}}");
|
|
5724
|
+
module.exports = JSON.parse("{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"linkId\":{\"description\":\"An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.\",\"title\":\"Link id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"definition\":{\"description\":\"This element is a URI that refers to an [[[ElementDefinition]]] that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\\n\\n* code (ElementDefinition.code) \\n* type (ElementDefinition.type) \\n* required (ElementDefinition.min) \\n* repeats (ElementDefinition.max) \\n* maxLength (ElementDefinition.maxLength) \\n* answerValueSet (ElementDefinition.binding)\\n* options (ElementDefinition.binding).\",\"title\":\"Definition\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"__$codeYesNo\":{\"description\":\"\",\"enum\":[\"No\",\"Yes\"],\"default\":\"Yes\",\"type\":\"string\",\"title\":\"Use code(s)?\",\"widget\":{\"id\":\"hidden\",\"layout\":\"row\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-3\"}},\"code\":{\"description\":\"A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).\",\"items\":{\"description\":\"A reference to a code defined by a terminology system.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Code\",\"visibleIf\":{\"allOf\":[{\"type\":[\"$EXP$ target.value != 'display'\"]}]},\"widget\":{\"id\":\"table\",\"noTableLabel\":true,\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-10\",\"noCollapseButton\":true,\"addButtonLabel\":\"Add new code\",\"singleItem\":true,\"booleanControlled\":true,\"booleanLabel\":\"Use question code?\",\"booleanControlledInitial\":false,\"showFields\":[{\"field\":\"code\",\"col\":4,\"nolabel\":true},{\"field\":\"system\",\"col\":7,\"nolabel\":true}]}},\"prefix\":{\"description\":\"A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.\",\"title\":\"Prefix\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"string-with-css\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-3\"}},\"_prefix\":{\"description\":\"Extensions for prefix\",\"title\":\"Questionnaire prefix extensions\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"title\":\"Extensions for prefix\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"valueString\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"type\":\"object\",\"additionalProperties\":false},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"hidden\"}},\"text\":{\"description\":\"The name of a section, the text of a question or text content for a display item.\",\"title\":\"Question text\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"string-with-css\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"}},\"_text\":{\"description\":\"Extensions for text\",\"title\":\"Questionnaire text extensions\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"title\":\"Extensions for text\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"valueString\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"type\":\"object\",\"additionalProperties\":false},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).\",\"enum\":[\"boolean\",\"decimal\",\"integer\",\"date\",\"dateTime\",\"time\",\"string\",\"text\",\"url\",\"choice\",\"open-choice\",\"attachment\",\"reference\",\"quantity\",\"group\",\"display\"],\"type\":\"string\",\"title\":\"Data type\",\"widget\":{\"id\":\"type\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"selectOptionsMap\":{\"remove\":[\"display\",\"reference\",\"attachment\"],\"map\":{\"group\":\"header\"}}},\"default\":\"string\"},\"enableWhen\":{\"description\":\"A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.\",\"items\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"__$answerType\":{\"title\":\"Source question type\",\"type\":\"string\",\"default\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"question\":{\"description\":\"The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.\",\"title\":\"Question\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"enable-when-source\"}},\"operator\":{\"description\":\"Specifies the criteria by which the question is enabled.\",\"enum\":[\"exists\",\"=\",\"!=\",\">\",\"<\",\">=\",\"<=\"],\"type\":\"string\",\"title\":\"Operator\",\"widget\":{\"id\":\"enable-operator\"}},\"answerBoolean\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"visibleIf\":{\"oneOf\":[{\"__$answerType\":[\"boolean\"]}]}},\"answerDecimal\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"decimal\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerInteger\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"integer\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerDate\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"date\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerDateTime\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"dateTime\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerTime\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"time\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerString\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"$EXP$ target.value == 'string' || target.value == 'text' || target.value == 'url'\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]}},\"answerCoding\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"},\"__$score\":{\"description\":\"If desired, enter a number to assign a numerical value to this answer for scoring purposes.\",\"type\":\"number\",\"title\":\"Score\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"$EXP$ target.value == 'choice' || target.value == 'open-choice'\"]},{\"operator\":[\"$EXP$ target.value == '=' || target.value == '!='\"]}]},\"widget\":{\"id\":\"enable-when-answer-choice\"}},\"answerQuantity\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"quantity\"]},{\"operator\":[\"$EXP$ target.value != 'exists'\"]}]},\"widget\":{\"id\":\"left-label-form-group\",\"labelWidth\":4,\"controlWidth\":8,\"label\":true,\"showFields\":[{\"field\":\"value\",\"col\":3}]}},\"answerReference\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"allOf\":[{\"__$answerType\":[\"reference\"]},{\"operator\":[\"$EXP$ target.value == 'exists' || target.value == '='\"]}]},\"widget\":{\"id\":\"left-label-form-group\",\"labelWidth\":4,\"controlWidth\":8,\"label\":true,\"showFields\":[{\"field\":\"reference\",\"col\":4},{\"field\":\"type\",\"col\":4},{\"field\":\"display\",\"col\":4}]}}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Conditional display\",\"widget\":{\"noCollapseButton\":true,\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"addButtonLabel\":\"Add another condition\",\"id\":\"table\",\"showFields\":[{\"field\":\"question\",\"nolabel\":true,\"col\":5,\"title\":\"Question\"},{\"field\":\"operator\",\"nolabel\":true,\"col\":2,\"title\":\"Operator\"},{\"field\":\"answerBoolean\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerDecimal\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerInteger\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerDate\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerDateTime\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerTime\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerString\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerCoding\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"},{\"field\":\"answerQuantity\",\"nolabel\":true,\"col\":4,\"title\":\"Answer\"}]}},\"enableBehavior\":{\"description\":\"Controls how multiple enableWhen values are interpreted - whether all or any must be true.\",\"enum\":[\"all\",\"any\"],\"type\":\"string\",\"title\":\"Show this item when\",\"widget\":{\"id\":\"enable-behavior\",\"layout\":\"row\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-6\"}},\"required\":{\"description\":\"An indication, if true, that the item must be present in a \\\"completed\\\" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.\",\"title\":\"Answer required\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'display'\"]},\"widget\":{\"id\":\"boolean-radio\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-10\"}},\"repeats\":{\"description\":\"An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.\",\"title\":\"Allow repeating question?\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'display'\"]},\"widget\":{\"id\":\"boolean-radio\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-10\"}},\"readOnly\":{\"description\":\"An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.\",\"title\":\"Read only\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'display'\"]},\"widget\":{\"id\":\"boolean-radio\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-10\"}},\"maxLength\":{\"description\":\"The maximum number of characters that are permitted in the answer to be considered a \\\"valid\\\" QuestionnaireResponse.\",\"title\":\"Maximum number of char.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'boolean' || target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url' || target.value == 'open-choice'\"]},\"widget\":{\"id\":\"hidden\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2\",\"controlWidthClass\":\"col-sm-1\"}},\"answerValueSet\":{\"description\":\"A reference to a value set containing a list of codes representing permitted answers for a \\\"choice\\\" or \\\"open-choice\\\" question.\",\"title\":\"Answer value set\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"},\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'open-choice' || target.value == 'choice'\"]}},\"answerOption\":{\"description\":\"One of the permitted answers for a \\\"choice\\\" or \\\"open-choice\\\" question.\",\"items\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"valueInteger\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Value integer\",\"visibleIf\":{\"/type\":[\"integer\"]}},\"valueDate\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Value date\",\"visibleIf\":{\"/type\":[\"date\"]}},\"valueTime\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Value time\",\"visibleIf\":{\"/type\":[\"time\"]}},\"valueString\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Value string\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'string' || target.value == 'text'\"]}},\"valueCoding\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"title\":\"Value coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"__$score\":{\"description\":\"If desired, enter a number to assign a numerical value to this answer for scoring purposes.\",\"type\":\"number\",\"title\":\"Score\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'choice' || target.value == 'open-choice'\"]}},\"valueReference\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"title\":\"Value reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"reference\"]}},\"initialSelected\":{\"description\":\"Indicates whether the answer value is selected when the list of possible answers is initially shown.\",\"title\":\"Initial selected\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Answer choices\",\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'open-choice' || target.value == 'choice'\"]},\"widget\":{\"id\":\"answer-option\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"addButtonLabel\":\"Add another answer\",\"rowSelection\":true,\"multipleSelectionEnableSource\":\"repeats\",\"showFields\":[{\"field\":\"valueInteger\",\"col\":9,\"nolabel\":true},{\"field\":\"valueDate\",\"col\":9,\"nolabel\":true},{\"field\":\"valueTime\",\"col\":9,\"nolabel\":true},{\"field\":\"valueString\",\"col\":9,\"nolabel\":true},{\"field\":\"valueCoding.display\",\"title\":\"Display\",\"col\":3,\"nolabel\":true},{\"field\":\"valueCoding.code\",\"title\":\"Code\",\"col\":2,\"nolabel\":true},{\"field\":\"valueCoding.system\",\"title\":\"System\",\"col\":2,\"nolabel\":true},{\"field\":\"valueCoding.__$score\",\"title\":\"Score\",\"col\":2,\"nolabel\":true},{\"field\":\"valueReference\",\"col\":9,\"nolabel\":true}]}},\"initial\":{\"description\":\"One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.\",\"items\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"hidden\"}},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"valueBoolean\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"title\":\"Value boolean\",\"visibleIf\":{\"/type\":[\"boolean\"]},\"widget\":{\"id\":\"boolean-radio\",\"nolabel\":true}},\"valueDecimal\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\",\"title\":\"Value decimal\",\"visibleIf\":{\"/type\":[\"decimal\"]}},\"valueInteger\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Value integer\",\"visibleIf\":{\"/type\":[\"integer\"]}},\"valueDate\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Value date\",\"visibleIf\":{\"/type\":[\"date\"]}},\"valueDateTime\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\",\"title\":\"Value date time\",\"visibleIf\":{\"/type\":[\"dateTime\"]}},\"valueTime\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Value time\",\"visibleIf\":{\"/type\":[\"time\"]}},\"valueString\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Value string\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'string' || target.value == 'text'\"]}},\"valueUri\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\",\"title\":\"Value uri\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'uri' || target.value == 'url'\"]}},\"valueAttachment\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value attachment\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"contentType\":{\"description\":\"Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"language\":{\"description\":\"The human language of the content. The value can be any valid value according to BCP 47.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"data\":{\"description\":\"The actual data of the attachment - a sequence of bytes, base64 encoded.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"A location where the data can be accessed.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"size\":{\"description\":\"The number of bytes of data that make up this attachment (before base64 encoding, if that is done).\",\"pattern\":\"^[0]|([1-9][0-9]*)$\",\"type\":\"number\"},\"hash\":{\"description\":\"The calculated hash of the data using SHA-1. Represented using base64.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"title\":{\"description\":\"A label or set of text to display in place of the data.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"creation\":{\"description\":\"The date that the attachment was first created.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"attachment\"]}},\"valueCoding\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"$EXP$ target.value == 'choice' || target.value == 'open-choice'\"]},\"widget\":{\"id\":\"hidden\"}},\"valueQuantity\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value quantity\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"units\"}},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"quantity\"]}},\"valueReference\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\",\"visibleIf\":{\"/type\":[\"reference\"]}}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Initial value\",\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'group' && target.value != 'display'\"]},\"widget\":{\"id\":\"initial\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"addButtonLabel\":\"Add another value\",\"singleItemEnableSource\":\"repeats\",\"showFields\":[{\"field\":\"valueBoolean\",\"noHeader\":true,\"title\":\"\",\"nolabel\":true},{\"field\":\"valueDecimal\",\"noHeader\":true,\"title\":\"\",\"nolabel\":true},{\"field\":\"valueInteger\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueDate\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueDateTime\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueTime\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueString\",\"noHeader\":true,\"title\":\"\",\"nolabel\":true},{\"field\":\"valueUri\",\"noHeader\":true,\"nolabel\":true},{\"field\":\"valueCoding.display\",\"title\":\"Display\",\"col\":4,\"nolabel\":true},{\"field\":\"valueCoding.code\",\"title\":\"Code\",\"col\":3,\"nolabel\":true},{\"field\":\"valueCoding.system\",\"title\":\"System\",\"col\":4,\"nolabel\":true},{\"field\":\"valueQuantity.value\",\"title\":\"Value\",\"col\":6,\"nolabel\":true},{\"field\":\"valueQuantity.unit\",\"title\":\"Units\",\"col\":5,\"nolabel\":true},{\"field\":\"valueReference\",\"noHeader\":true,\"nolabel\":true}]}},\"__$observationLinkPeriod\":{\"description\":\"Sets a time window within which to look for an Observation with a matching code, for pre-population. Requires that a code be assigned to this item.\",\"title\":\"Add link to pre-populate FHIR Observation?\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"observation-link-period\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"},\"visibleIf\":{\"type\":[\"$EXP$ target.value != 'display'\"]}},\"__$units\":{\"description\":\"The units for answers. They are applicable for integer, decimal, and quantity types.\",\"title\":\"Units\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"widget\":{\"id\":\"units\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"},\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'integer' || target.value == 'decimal' || target.value == 'quantity'\"]}},\"__$totalScoreItem\":{\"type\":\"boolean\",\"default\":\"true\",\"widget\":{\"id\":\"hidden\"}},\"__$totalScore\":{\"description\":\"Makes this as an item with total score, i.e. totaling scores in pre-defined answers of the choice type items.\",\"title\":\"Make this a total score item\",\"pattern\":\"^true|false$\",\"default\":\"false\",\"type\":\"boolean\",\"widget\":{\"id\":\"totalScore\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"},\"visibleIf\":{\"__$totalScoreItem\":[\"$EXP$ target.value == 'true'\"]}},\"__$helpText\":{\"description\":\"Text is displayed in a dialog box or similar control if invoked by pushing a button or some other UI-appropriate action to request 'help' for a question, group or the questionnaire as a whole (depending what the text is nested within)\",\"title\":\"Help text\",\"type\":\"string\",\"widget\":{\"id\":\"help-text\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\"}},\"__$restrictions\":{\"description\":\"Choose to add value restrictions to the input.\",\"title\":\"Restrictions\",\"type\":\"array\",\"items\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"operator\":{\"description\":\"Comparing operator to restrict the input value\",\"type\":\"string\",\"enum\":[\"maxLength\",\"minLength\",\"regex\",\"minValue\",\"maxValue\",\"mazSize\",\"mimeType\"],\"title\":\"Restriction\",\"widget\":{\"id\":\"restrictions-operator\"}},\"value\":{\"description\":\"Value to restrict the input\",\"type\":\"string\",\"title\":\"Value\"}},\"additionalProperties\":false,\"type\":\"object\"},\"visibleIf\":{\"type\":[\"$EXP$ target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url' || target.value == 'open-choice'\"]},\"widget\":{\"id\":\"restrictions\",\"labelPosition\":\"left\",\"labelWidthClass\":\"col-sm-2 pr-1\",\"controlWidthClass\":\"col-sm-10\",\"noTableLabel\":true,\"noCollapseButton\":true,\"addButtonLabel\":\"Add new restriction\",\"booleanControlled\":true,\"booleanLabel\":\"Use restrictions?\",\"booleanControlledInitial\":false,\"showFields\":[{\"field\":\"operator\",\"col\":7,\"nolabel\":true},{\"field\":\"value\",\"col\":4,\"nolabel\":true}]}}},\"required\":[\"text\",\"type\",\"linkId\"],\"additionalProperties\":false,\"definitions\":{\"string\":{\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"Extension\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"uri\":{\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"Address\":{\"description\":\"An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"use\":{\"description\":\"The purpose of this address.\",\"enum\":[\"home\",\"work\",\"temp\",\"old\",\"billing\"],\"type\":\"string\"},\"type\":{\"description\":\"Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.\",\"enum\":[\"postal\",\"physical\",\"both\"],\"type\":\"string\"},\"text\":{\"description\":\"Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.\",\"$ref\":\"#/definitions/string\"},\"line\":{\"description\":\"This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"city\":{\"description\":\"The name of the city, town, suburb, village or other community or delivery center.\",\"$ref\":\"#/definitions/string\"},\"district\":{\"description\":\"The name of the administrative area (county).\",\"$ref\":\"#/definitions/string\"},\"state\":{\"description\":\"Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).\",\"$ref\":\"#/definitions/string\"},\"postalCode\":{\"description\":\"A postal code designating a region defined by the postal service.\",\"$ref\":\"#/definitions/string\"},\"country\":{\"description\":\"Country - a nation as commonly understood or generally accepted.\",\"$ref\":\"#/definitions/string\"},\"period\":{\"description\":\"Time period when address was/is in use.\",\"$ref\":\"#/definitions/Period\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Period\":{\"description\":\"A time period defined by a start and end date and optionally time.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"start\":{\"description\":\"The start of the period. The boundary is inclusive.\",\"$ref\":\"#/definitions/dateTime\"},\"end\":{\"description\":\"The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.\",\"$ref\":\"#/definitions/dateTime\"}},\"additionalProperties\":false,\"type\":\"object\"},\"dateTime\":{\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"},\"Age\":{\"description\":\"A duration of time during which an organism (or a process) has existed.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"$ref\":\"#/definitions/decimal\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"$ref\":\"#/definitions/string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"$ref\":\"#/definitions/uri\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"decimal\":{\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"code\":{\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"Annotation\":{\"description\":\"A text note which also contains information about who made the statement and when.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"authorReference\":{\"description\":\"The individual responsible for making the annotation.\",\"$ref\":\"#/definitions/Reference\"},\"authorString\":{\"description\":\"The individual responsible for making the annotation.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"time\":{\"description\":\"Indicates when this particular annotation was made.\",\"$ref\":\"#/definitions/dateTime\"},\"text\":{\"description\":\"The text of the annotation in markdown format.\",\"$ref\":\"#/definitions/markdown\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Reference\":{\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Identifier\":{\"description\":\"An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"use\":{\"description\":\"The purpose of this identifier.\",\"enum\":[\"usual\",\"official\",\"temp\",\"secondary\",\"old\"],\"type\":\"string\"},\"type\":{\"description\":\"A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"system\":{\"description\":\"Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\",\"$ref\":\"#/definitions/uri\"},\"value\":{\"description\":\"The portion of the identifier typically relevant to the user and which is unique within the context of the system.\",\"$ref\":\"#/definitions/string\"},\"period\":{\"description\":\"Time period during which identifier is/was valid for use.\",\"$ref\":\"#/definitions/Period\"},\"assigner\":{\"description\":\"Organization that issued/manages the identifier.\",\"$ref\":\"#/definitions/Reference\"}},\"additionalProperties\":false,\"type\":\"object\"},\"CodeableConcept\":{\"description\":\"A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"coding\":{\"description\":\"A reference to a code defined by a terminology system.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"},\"text\":{\"description\":\"A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.\",\"$ref\":\"#/definitions/string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Coding\":{\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"grid\"},\"fieldsets\":[{\"fields\":[\"id\",\"extension\",\"code\",\"system\",\"display\",\"version\",\"userSelected\"],\"showFields\":[{\"field\":\"code\",\"col\":2},{\"field\":\"system\",\"col\":5},{\"field\":\"display\",\"col\":5}]}]},\"boolean\":{\"pattern\":\"^true|false$\",\"type\":\"boolean\"},\"markdown\":{\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"description\":\"A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine\"},\"Attachment\":{\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"contentType\":{\"description\":\"Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"language\":{\"description\":\"The human language of the content. The value can be any valid value according to BCP 47.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"data\":{\"description\":\"The actual data of the attachment - a sequence of bytes, base64 encoded.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"A location where the data can be accessed.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"size\":{\"description\":\"The number of bytes of data that make up this attachment (before base64 encoding, if that is done).\",\"pattern\":\"^[0]|([1-9][0-9]*)$\",\"type\":\"number\"},\"hash\":{\"description\":\"The calculated hash of the data using SHA-1. Represented using base64.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"title\":{\"description\":\"A label or set of text to display in place of the data.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"creation\":{\"description\":\"The date that the attachment was first created.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"base64Binary\":{\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"unsignedInt\":{\"pattern\":\"^[0]|([1-9][0-9]*)$\",\"type\":\"number\"},\"ContactPoint\":{\"description\":\"Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"Telecommunications form for contact point - what communications system is required to make use of the contact.\",\"enum\":[\"phone\",\"fax\",\"email\",\"pager\",\"url\",\"sms\",\"other\"],\"type\":\"string\"},\"value\":{\"description\":\"The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).\",\"$ref\":\"#/definitions/string\"},\"use\":{\"description\":\"Identifies the purpose for the contact point.\",\"enum\":[\"home\",\"work\",\"temp\",\"old\",\"mobile\"],\"type\":\"string\"},\"rank\":{\"description\":\"Specifies a preferred order in which to use a set of contacts. ContactPoints with lower rank values are more preferred than those with higher rank values.\",\"$ref\":\"#/definitions/positiveInt\"},\"period\":{\"description\":\"Time period when the contact point was/is in use.\",\"$ref\":\"#/definitions/Period\"}},\"additionalProperties\":false,\"type\":\"object\"},\"positiveInt\":{\"pattern\":\"^[1-9][0-9]*$\",\"type\":\"number\",\"description\":\"An integer with a value that is positive (e.g. >0)\"},\"Count\":{\"description\":\"A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"$ref\":\"#/definitions/decimal\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"$ref\":\"#/definitions/string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"$ref\":\"#/definitions/uri\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Distance\":{\"description\":\"A length - a value with a unit that is a physical distance.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"$ref\":\"#/definitions/decimal\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"$ref\":\"#/definitions/string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"$ref\":\"#/definitions/uri\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Duration\":{\"description\":\"A length of time.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"$ref\":\"#/definitions/decimal\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"$ref\":\"#/definitions/string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"$ref\":\"#/definitions/uri\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"HumanName\":{\"description\":\"A human's name with the ability to identify parts and usage.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"use\":{\"description\":\"Identifies the purpose for this name.\",\"enum\":[\"usual\",\"official\",\"temp\",\"nickname\",\"anonymous\",\"old\",\"maiden\"],\"type\":\"string\"},\"text\":{\"description\":\"Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.\",\"$ref\":\"#/definitions/string\"},\"family\":{\"description\":\"The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.\",\"$ref\":\"#/definitions/string\"},\"given\":{\"description\":\"Given name.\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"prefix\":{\"description\":\"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"suffix\":{\"description\":\"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"period\":{\"description\":\"Indicates the period of time when this name was valid for the named person.\",\"$ref\":\"#/definitions/Period\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Money\":{\"description\":\"An amount of economic utility in some recognized currency.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"Numerical value (with implicit precision).\",\"$ref\":\"#/definitions/decimal\"},\"currency\":{\"description\":\"ISO 4217 Currency Code.\",\"$ref\":\"#/definitions/code\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Quantity\":{\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Range\":{\"description\":\"A set of ordered Quantities defined by a low and high limit.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"low\":{\"description\":\"The low limit. The boundary is inclusive.\",\"$ref\":\"#/definitions/Quantity\"},\"high\":{\"description\":\"The high limit. The boundary is inclusive.\",\"$ref\":\"#/definitions/Quantity\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Ratio\":{\"description\":\"A relationship of two Quantity values - expressed as a numerator and a denominator.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"numerator\":{\"description\":\"The value of the numerator.\",\"$ref\":\"#/definitions/Quantity\"},\"denominator\":{\"description\":\"The value of the denominator.\",\"$ref\":\"#/definitions/Quantity\"}},\"additionalProperties\":false,\"type\":\"object\"},\"SampledData\":{\"description\":\"A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"origin\":{\"description\":\"The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series.\",\"$ref\":\"#/definitions/Quantity\"},\"period\":{\"description\":\"The length of time between sampling times, measured in milliseconds.\",\"$ref\":\"#/definitions/decimal\"},\"factor\":{\"description\":\"A correction factor that is applied to the sampled data points before they are added to the origin.\",\"$ref\":\"#/definitions/decimal\"},\"lowerLimit\":{\"description\":\"The lower limit of detection of the measured points. This is needed if any of the data points have the value \\\"L\\\" (lower than detection limit).\",\"$ref\":\"#/definitions/decimal\"},\"upperLimit\":{\"description\":\"The upper limit of detection of the measured points. This is needed if any of the data points have the value \\\"U\\\" (higher than detection limit).\",\"$ref\":\"#/definitions/decimal\"},\"dimensions\":{\"description\":\"The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once.\",\"$ref\":\"#/definitions/positiveInt\"},\"data\":{\"description\":\"A series of data points which are decimal values separated by a single space (character u20). The special values \\\"E\\\" (error), \\\"L\\\" (below detection limit) and \\\"U\\\" (above detection limit) can also be used in place of a decimal value.\",\"$ref\":\"#/definitions/string\"}},\"additionalProperties\":false,\"required\":[\"origin\"],\"type\":\"object\"},\"Signature\":{\"description\":\"A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"An indication of the reason that the entity signed this document. This may be explicitly included as part of the signature information and can be used when determining accountability for various actions concerning the document.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"},\"when\":{\"description\":\"When the digital signature was signed.\",\"$ref\":\"#/definitions/instant\"},\"who\":{\"description\":\"A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).\",\"$ref\":\"#/definitions/Reference\"},\"onBehalfOf\":{\"description\":\"A reference to an application-usable description of the identity that is represented by the signature.\",\"$ref\":\"#/definitions/Reference\"},\"targetFormat\":{\"description\":\"A mime type that indicates the technical format of the target resources signed by the signature.\",\"$ref\":\"#/definitions/code\"},\"sigFormat\":{\"description\":\"A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc.\",\"$ref\":\"#/definitions/code\"},\"data\":{\"description\":\"The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.\",\"$ref\":\"#/definitions/base64Binary\"}},\"additionalProperties\":false,\"required\":[\"type\",\"who\"],\"type\":\"object\"},\"instant\":{\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$\",\"type\":\"string\",\"description\":\"An instant in time - known at least to the second\"},\"Timing\":{\"description\":\"Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"event\":{\"description\":\"Identifies specific times when the event occurs.\",\"items\":{\"$ref\":\"#/definitions/dateTime\"},\"type\":\"array\"},\"repeat\":{\"description\":\"A set of rules that describe when the event is scheduled.\",\"$ref\":\"#/definitions/Timing_Repeat\"},\"code\":{\"description\":\"A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code).\",\"$ref\":\"#/definitions/CodeableConcept\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Timing_Repeat\":{\"description\":\"Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"boundsDuration\":{\"description\":\"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.\",\"$ref\":\"#/definitions/Duration\"},\"boundsRange\":{\"description\":\"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.\",\"$ref\":\"#/definitions/Range\"},\"boundsPeriod\":{\"description\":\"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.\",\"$ref\":\"#/definitions/Period\"},\"count\":{\"description\":\"A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values.\",\"$ref\":\"#/definitions/positiveInt\"},\"countMax\":{\"description\":\"If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.\",\"$ref\":\"#/definitions/positiveInt\"},\"duration\":{\"description\":\"How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration.\",\"$ref\":\"#/definitions/decimal\"},\"durationMax\":{\"description\":\"If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.\",\"$ref\":\"#/definitions/decimal\"},\"durationUnit\":{\"description\":\"The units of time for the duration, in UCUM units.\",\"enum\":[\"s\",\"min\",\"h\",\"d\",\"wk\",\"mo\",\"a\"],\"type\":\"string\"},\"frequency\":{\"description\":\"The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.\",\"$ref\":\"#/definitions/positiveInt\"},\"frequencyMax\":{\"description\":\"If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.\",\"$ref\":\"#/definitions/positiveInt\"},\"period\":{\"description\":\"Indicates the duration of time over which repetitions are to occur; e.g. to express \\\"3 times per day\\\", 3 would be the frequency and \\\"1 day\\\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.\",\"$ref\":\"#/definitions/decimal\"},\"periodMax\":{\"description\":\"If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \\\"do this once every 3-5 days.\",\"$ref\":\"#/definitions/decimal\"},\"periodUnit\":{\"description\":\"The units of time for the period in UCUM units.\",\"enum\":[\"s\",\"min\",\"h\",\"d\",\"wk\",\"mo\",\"a\"],\"type\":\"string\"},\"dayOfWeek\":{\"description\":\"If one or more days of week is provided, then the action happens only on the specified day(s).\",\"items\":{\"$ref\":\"#/definitions/code\"},\"type\":\"array\"},\"timeOfDay\":{\"description\":\"Specified time of day for action to take place.\",\"items\":{\"$ref\":\"#/definitions/time\"},\"type\":\"array\"},\"when\":{\"description\":\"An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.\",\"items\":{\"enum\":[\"MORN\",\"MORN.early\",\"MORN.late\",\"NOON\",\"AFT\",\"AFT.early\",\"AFT.late\",\"EVE\",\"EVE.early\",\"EVE.late\",\"NIGHT\",\"PHS\",\"HS\",\"WAKE\",\"C\",\"CM\",\"CD\",\"CV\",\"AC\",\"ACM\",\"ACD\",\"ACV\",\"PC\",\"PCM\",\"PCD\",\"PCV\"],\"type\":\"string\"},\"type\":\"array\"},\"offset\":{\"description\":\"The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event.\",\"$ref\":\"#/definitions/unsignedInt\"}},\"additionalProperties\":false,\"type\":\"object\"},\"time\":{\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"description\":\"A time during the day, with no date specified\"},\"ContactDetail\":{\"description\":\"Specifies contact information for a person or organization.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"name\":{\"description\":\"The name of an individual to contact.\",\"$ref\":\"#/definitions/string\"},\"telecom\":{\"description\":\"The contact details for the individual (if a name was provided) or the organization.\",\"items\":{\"$ref\":\"#/definitions/ContactPoint\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Contributor\":{\"description\":\"A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of contributor.\",\"enum\":[\"author\",\"editor\",\"reviewer\",\"endorser\"],\"type\":\"string\"},\"name\":{\"description\":\"The name of the individual or organization responsible for the contribution.\",\"$ref\":\"#/definitions/string\"},\"contact\":{\"description\":\"Contact details to assist a user in finding and communicating with the contributor.\",\"items\":{\"$ref\":\"#/definitions/ContactDetail\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"DataRequirement\":{\"description\":\"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.\",\"$ref\":\"#/definitions/code\"},\"profile\":{\"description\":\"The profile of the required data, specified as the uri of the profile definition.\",\"items\":{\"$ref\":\"#/definitions/canonical\"},\"type\":\"array\"},\"subjectCodeableConcept\":{\"description\":\"The intended subjects of the data requirement. If this element is not provided, a Patient subject is assumed.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"subjectReference\":{\"description\":\"The intended subjects of the data requirement. If this element is not provided, a Patient subject is assumed.\",\"$ref\":\"#/definitions/Reference\"},\"mustSupport\":{\"description\":\"Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available. \\n\\nThe value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).\",\"items\":{\"$ref\":\"#/definitions/string\"},\"type\":\"array\"},\"codeFilter\":{\"description\":\"Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND'ed, not OR'ed.\",\"items\":{\"$ref\":\"#/definitions/DataRequirement_CodeFilter\"},\"type\":\"array\"},\"dateFilter\":{\"description\":\"Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND'ed, not OR'ed.\",\"items\":{\"$ref\":\"#/definitions/DataRequirement_DateFilter\"},\"type\":\"array\"},\"limit\":{\"description\":\"Specifies a maximum number of results that are required (uses the _count search parameter).\",\"$ref\":\"#/definitions/positiveInt\"},\"sort\":{\"description\":\"Specifies the order of the results to be returned.\",\"items\":{\"$ref\":\"#/definitions/DataRequirement_Sort\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"canonical\":{\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"DataRequirement_CodeFilter\":{\"description\":\"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"path\":{\"description\":\"The code-valued attribute of the filter. The specified path SHALL be a FHIRPath resolveable on the specified type of the DataRequirement, and SHALL consist only of identifiers, constant indexers, and .resolve(). The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details). Note that the index must be an integer constant. The path must resolve to an element of type code, Coding, or CodeableConcept.\",\"$ref\":\"#/definitions/string\"},\"searchParam\":{\"description\":\"A token parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type code, Coding, or CodeableConcept.\",\"$ref\":\"#/definitions/string\"},\"valueSet\":{\"description\":\"The valueset for the code filter. The valueSet and code elements are additive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset.\",\"$ref\":\"#/definitions/canonical\"},\"code\":{\"description\":\"The codes for the code filter. If values are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codes. If codes are specified in addition to a value set, the filter returns items matching a code in the value set or one of the specified codes.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"DataRequirement_DateFilter\":{\"description\":\"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"path\":{\"description\":\"The date-valued attribute of the filter. The specified path SHALL be a FHIRPath resolveable on the specified type of the DataRequirement, and SHALL consist only of identifiers, constant indexers, and .resolve(). The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details). Note that the index must be an integer constant. The path must resolve to an element of type date, dateTime, Period, Schedule, or Timing.\",\"$ref\":\"#/definitions/string\"},\"searchParam\":{\"description\":\"A date parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type date, dateTime, Period, Schedule, or Timing.\",\"$ref\":\"#/definitions/string\"},\"valueDateTime\":{\"description\":\"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"},\"valuePeriod\":{\"description\":\"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now.\",\"$ref\":\"#/definitions/Period\"},\"valueDuration\":{\"description\":\"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now.\",\"$ref\":\"#/definitions/Duration\"}},\"additionalProperties\":false,\"type\":\"object\"},\"DataRequirement_Sort\":{\"description\":\"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"path\":{\"description\":\"The attribute of the sort. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant.\",\"$ref\":\"#/definitions/string\"},\"direction\":{\"description\":\"The direction of the sort, ascending or descending.\",\"enum\":[\"ascending\",\"descending\"],\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Expression\":{\"description\":\"A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"description\":{\"description\":\"A brief, natural language description of the condition that effectively communicates the intended semantics.\",\"$ref\":\"#/definitions/string\"},\"name\":{\"description\":\"A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.\",\"$ref\":\"#/definitions/id\"},\"language\":{\"description\":\"The media type of the language for the expression.\",\"enum\":[\"text/cql\",\"text/fhirpath\",\"application/x-fhir-query\"],\"type\":\"string\"},\"expression\":{\"description\":\"An expression in the specified language that returns a value.\",\"$ref\":\"#/definitions/string\"},\"reference\":{\"description\":\"A URI that defines where the expression is found.\",\"$ref\":\"#/definitions/uri\"}},\"additionalProperties\":false,\"type\":\"object\"},\"id\":{\"pattern\":\"^[A-Za-z0-9\\\\-\\\\.]{1,64}$\",\"type\":\"string\",\"description\":\"Any combination of letters, numerals, \\\"-\\\" and \\\".\\\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive.\"},\"ParameterDefinition\":{\"description\":\"The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"name\":{\"description\":\"The name of the parameter used to allow access to the value of the parameter in evaluation contexts.\",\"$ref\":\"#/definitions/code\"},\"use\":{\"description\":\"Whether the parameter is input or output for the module.\",\"$ref\":\"#/definitions/code\"},\"min\":{\"description\":\"The minimum number of times this parameter SHALL appear in the request or response.\",\"$ref\":\"#/definitions/integer\"},\"max\":{\"description\":\"The maximum number of times this element is permitted to appear in the request or response.\",\"$ref\":\"#/definitions/string\"},\"documentation\":{\"description\":\"A brief discussion of what the parameter is for and how it is used by the module.\",\"$ref\":\"#/definitions/string\"},\"type\":{\"description\":\"The type of the parameter.\",\"$ref\":\"#/definitions/code\"},\"profile\":{\"description\":\"If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.\",\"$ref\":\"#/definitions/canonical\"}},\"additionalProperties\":false,\"type\":\"object\"},\"integer\":{\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\"},\"RelatedArtifact\":{\"description\":\"Related artifacts such as additional documentation, justification, or bibliographic references.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of relationship to the related artifact.\",\"enum\":[\"documentation\",\"justification\",\"citation\",\"predecessor\",\"successor\",\"derived-from\",\"depends-on\",\"composed-of\"],\"type\":\"string\"},\"label\":{\"description\":\"A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.\",\"$ref\":\"#/definitions/string\"},\"display\":{\"description\":\"A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.\",\"$ref\":\"#/definitions/string\"},\"citation\":{\"description\":\"A bibliographic citation for the related artifact. This text SHOULD be formatted according to an accepted citation format.\",\"$ref\":\"#/definitions/markdown\"},\"url\":{\"description\":\"A url for the artifact that can be followed to access the actual content.\",\"$ref\":\"#/definitions/url\"},\"document\":{\"description\":\"The document being referenced, represented as an attachment. This is exclusive with the resource element.\",\"$ref\":\"#/definitions/Attachment\"},\"resource\":{\"description\":\"The related resource, such as a library, value set, profile, or other knowledge resource.\",\"$ref\":\"#/definitions/canonical\"}},\"additionalProperties\":false,\"type\":\"object\"},\"TriggerDefinition\":{\"description\":\"A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The type of triggering event.\",\"enum\":[\"named-event\",\"periodic\",\"data-changed\",\"data-added\",\"data-modified\",\"data-removed\",\"data-accessed\",\"data-access-ended\"],\"type\":\"string\"},\"name\":{\"description\":\"A formal name for the event. This may be an absolute URI that identifies the event formally (e.g. from a trigger registry), or a simple relative URI that identifies the event in a local context.\",\"$ref\":\"#/definitions/string\"},\"timingTiming\":{\"description\":\"The timing of the event (if this is a periodic trigger).\",\"$ref\":\"#/definitions/Timing\"},\"timingReference\":{\"description\":\"The timing of the event (if this is a periodic trigger).\",\"$ref\":\"#/definitions/Reference\"},\"timingDate\":{\"description\":\"The timing of the event (if this is a periodic trigger).\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\"},\"timingDateTime\":{\"description\":\"The timing of the event (if this is a periodic trigger).\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"},\"data\":{\"description\":\"The triggering data of the event (if this is a data trigger). If more than one data is requirement is specified, then all the data requirements must be true.\",\"items\":{\"$ref\":\"#/definitions/DataRequirement\"},\"type\":\"array\"},\"condition\":{\"description\":\"A boolean-valued expression that is evaluated in the context of the container of the trigger definition and returns whether or not the trigger fires.\",\"$ref\":\"#/definitions/Expression\"}},\"additionalProperties\":false,\"type\":\"object\"},\"UsageContext\":{\"description\":\"Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care).\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"code\":{\"description\":\"A code that identifies the type of context being specified by this usage context.\",\"$ref\":\"#/definitions/Coding\"},\"valueCodeableConcept\":{\"description\":\"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"valueQuantity\":{\"description\":\"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\",\"$ref\":\"#/definitions/Quantity\"},\"valueRange\":{\"description\":\"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\",\"$ref\":\"#/definitions/Range\"},\"valueReference\":{\"description\":\"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\",\"$ref\":\"#/definitions/Reference\"}},\"additionalProperties\":false,\"required\":[\"code\"],\"type\":\"object\"},\"Dosage\":{\"description\":\"Indicates how the medication is/was taken or should be taken by the patient.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"sequence\":{\"description\":\"Indicates the order in which the dosage instructions should be applied or interpreted.\",\"$ref\":\"#/definitions/integer\"},\"text\":{\"description\":\"Free text dosage instructions e.g. SIG.\",\"$ref\":\"#/definitions/string\"},\"additionalInstruction\":{\"description\":\"Supplemental instructions to the patient on how to take the medication (e.g. \\\"with meals\\\" or\\\"take half to one hour before food\\\") or warnings for the patient about the medication (e.g. \\\"may cause drowsiness\\\" or \\\"avoid exposure of skin to direct sunlight or sunlamps\\\").\",\"items\":{\"$ref\":\"#/definitions/CodeableConcept\"},\"type\":\"array\"},\"patientInstruction\":{\"description\":\"Instructions in terms that are understood by the patient or consumer.\",\"$ref\":\"#/definitions/string\"},\"timing\":{\"description\":\"When medication should be administered.\",\"$ref\":\"#/definitions/Timing\"},\"asNeededBoolean\":{\"description\":\"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"},\"asNeededCodeableConcept\":{\"description\":\"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).\",\"$ref\":\"#/definitions/CodeableConcept\"},\"site\":{\"description\":\"Body site to administer to.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"route\":{\"description\":\"How drug should enter body.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"method\":{\"description\":\"Technique for administering medication.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"doseAndRate\":{\"description\":\"The amount of medication administered.\",\"items\":{\"$ref\":\"#/definitions/Dosage_DoseAndRate\"},\"type\":\"array\"},\"maxDosePerPeriod\":{\"description\":\"Upper limit on medication per unit of time.\",\"$ref\":\"#/definitions/Ratio\"},\"maxDosePerAdministration\":{\"description\":\"Upper limit on medication per administration.\",\"$ref\":\"#/definitions/Quantity\"},\"maxDosePerLifetime\":{\"description\":\"Upper limit on medication per lifetime of the patient.\",\"$ref\":\"#/definitions/Quantity\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Dosage_DoseAndRate\":{\"description\":\"Indicates how the medication is/was taken or should be taken by the patient.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"type\":{\"description\":\"The kind of dose or rate specified, for example, ordered or calculated.\",\"$ref\":\"#/definitions/CodeableConcept\"},\"doseRange\":{\"description\":\"Amount of medication per dose.\",\"$ref\":\"#/definitions/Range\"},\"doseQuantity\":{\"description\":\"Amount of medication per dose.\",\"$ref\":\"#/definitions/Quantity\"},\"rateRatio\":{\"description\":\"Amount of medication per unit of time.\",\"$ref\":\"#/definitions/Ratio\"},\"rateRange\":{\"description\":\"Amount of medication per unit of time.\",\"$ref\":\"#/definitions/Range\"},\"rateQuantity\":{\"description\":\"Amount of medication per unit of time.\",\"$ref\":\"#/definitions/Quantity\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Meta\":{\"description\":\"The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"$ref\":\"#/definitions/string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"$ref\":\"#/definitions/Extension\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"versionId\":{\"description\":\"The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.\",\"$ref\":\"#/definitions/id\"},\"lastUpdated\":{\"description\":\"When the resource last changed - e.g. when the version changed.\",\"$ref\":\"#/definitions/instant\"},\"source\":{\"description\":\"A uri that identifies the source system of the resource. This provides a minimal amount of [[[Provenance]]] information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.\",\"$ref\":\"#/definitions/uri\"},\"profile\":{\"description\":\"A list of profiles (references to [[[StructureDefinition]]] resources) that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]].\",\"items\":{\"$ref\":\"#/definitions/canonical\"},\"type\":\"array\"},\"security\":{\"description\":\"Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"},\"tag\":{\"description\":\"Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.\",\"items\":{\"$ref\":\"#/definitions/Coding\"},\"type\":\"array\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Questionnaire_EnableWhen\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"question\":{\"description\":\"The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.\",\"title\":\"Question\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"operator\":{\"description\":\"Specifies the criteria by which the question is enabled.\",\"enum\":[\"exists\",\"=\",\"!=\",\">\",\"<\",\">=\",\"<=\"],\"type\":\"string\",\"title\":\"Operator\"},\"answerBoolean\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"title\":\"Answer boolean\"},\"answerDecimal\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\",\"title\":\"Answer decimal\"},\"answerInteger\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Answer integer\"},\"answerDate\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Answer date\"},\"answerDateTime\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\",\"title\":\"Answer date time\"},\"answerTime\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Answer time\"},\"answerString\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Answer string\"},\"answerCoding\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"title\":\"Answer coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"row-layout\"},\"fieldsets\":[{\"fields\":[\"id\",\"extension\",\"code\",\"system\",\"display\",\"version\",\"userSelected\"],\"showFields\":[{\"code\":{\"col\":2}},{\"system\":{\"col\":6}},{\"display\":{\"col\":4}}]}]},\"answerQuantity\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"title\":\"Answer quantity\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"answerReference\":{\"description\":\"A value that the referenced question is tested using the specified operator in order for the item to be enabled.\",\"title\":\"Answer reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Questionnaire_AnswerOption\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"valueInteger\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Value integer\"},\"valueDate\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Value date\"},\"valueTime\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Value time\"},\"valueString\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Value string\"},\"valueCoding\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"title\":\"Value coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"row-layout\"},\"fieldsets\":[{\"fields\":[\"id\",\"extension\",\"code\",\"system\",\"display\",\"version\",\"userSelected\"],\"showFields\":[{\"code\":{\"col\":2}},{\"system\":{\"col\":6}},{\"display\":{\"col\":4}}]}]},\"valueReference\":{\"description\":\"A potential answer that's allowed as the answer to this question.\",\"title\":\"Value reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"initialSelected\":{\"description\":\"Indicates whether the answer value is selected when the list of possible answers is initially shown.\",\"title\":\"Initial selected\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\"},\"Questionnaire_Initial\":{\"description\":\"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"title\":\"Id\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Extension\",\"widget\":{\"id\":\"hidden\"}},\"modifierExtension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\\n\\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"title\":\"Modifier extension\",\"widget\":{\"id\":\"hidden\"}},\"valueBoolean\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^true|false$\",\"type\":\"boolean\",\"title\":\"Value boolean\"},\"valueDecimal\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\",\"title\":\"Value decimal\"},\"valueInteger\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^-?([0]|([1-9][0-9]*))$\",\"type\":\"number\",\"title\":\"Value integer\"},\"valueDate\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$\",\"type\":\"string\",\"title\":\"Value date\"},\"valueDateTime\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\",\"title\":\"Value date time\"},\"valueTime\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?$\",\"type\":\"string\",\"title\":\"Value time\"},\"valueString\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\",\"title\":\"Value string\"},\"valueUri\":{\"description\":\"The actual value to for an initial answer.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\",\"title\":\"Value uri\"},\"valueAttachment\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value attachment\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"contentType\":{\"description\":\"Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"language\":{\"description\":\"The human language of the content. The value can be any valid value according to BCP 47.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"data\":{\"description\":\"The actual data of the attachment - a sequence of bytes, base64 encoded.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"A location where the data can be accessed.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"size\":{\"description\":\"The number of bytes of data that make up this attachment (before base64 encoding, if that is done).\",\"pattern\":\"^[0]|([1-9][0-9]*)$\",\"type\":\"number\"},\"hash\":{\"description\":\"The calculated hash of the data using SHA-1. Represented using base64.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"title\":{\"description\":\"A label or set of text to display in place of the data.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"creation\":{\"description\":\"The date that the attachment was first created.\",\"pattern\":\"^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"valueCoding\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value coding\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"system\":{\"description\":\"The identification of the code system that defines the meaning of the symbol in the code.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"version\":{\"description\":\"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.\",\"widget\":{\"id\":\"hidden\"},\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"code\":{\"description\":\"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"},\"display\":{\"description\":\"A representation of the meaning of the code in the system, following the rules of the system.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"userSelected\":{\"description\":\"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).\",\"pattern\":\"^true|false$\",\"type\":\"boolean\"}},\"additionalProperties\":false,\"type\":\"object\",\"widget\":{\"id\":\"grid\"},\"fieldsets\":[{\"fields\":[\"id\",\"extension\",\"code\",\"system\",\"display\",\"version\",\"userSelected\"],\"showFields\":[{\"field\":\"code\",\"col\":2},{\"field\":\"sytem\",\"col\":5},{\"field\":\"display\",\"col\":5}]}]},\"valueQuantity\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value quantity\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"value\":{\"description\":\"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\",\"pattern\":\"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([eE][+-]?[0-9]+)?$\",\"type\":\"number\"},\"comparator\":{\"description\":\"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\\"<\\\" , then the real value is < stated value.\",\"enum\":[\"<\",\"<=\",\">=\",\">\"],\"type\":\"string\"},\"unit\":{\"description\":\"A human-readable form of the unit.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"system\":{\"description\":\"The identification of the system that provides the coded form of the unit.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"code\":{\"description\":\"A computer processable form of the unit in some unit representation system.\",\"pattern\":\"^[^\\\\s]+(\\\\s[^\\\\s]+)*$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"valueReference\":{\"description\":\"The actual value to for an initial answer.\",\"title\":\"Value reference\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"extension\":{\"description\":\"May be used to represent additional information that is not part of the basic definition of the element. 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.\",\"items\":{\"description\":\"Optional Extension Element - found in all resources.\",\"properties\":{\"id\":{\"description\":\"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"url\":{\"description\":\"Source of the definition for the extension code - a logical name or a URL.\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"value\":{\"description\":\"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"},\"type\":\"array\",\"widget\":{\"id\":\"hidden\"}},\"reference\":{\"description\":\"A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"},\"type\":{\"description\":\"The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\\n\\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \\\"Patient\\\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).\",\"pattern\":\"^\\\\S*$\",\"type\":\"string\"},\"display\":{\"description\":\"Plain text narrative that identifies the resource in addition to the resource reference.\",\"pattern\":\"^[ \\\\r\\\\n\\\\t\\\\S]+$\",\"type\":\"string\"}},\"additionalProperties\":false,\"type\":\"object\"}},\"additionalProperties\":false,\"type\":\"object\"},\"xhtml\":{\"$ref\":\"#/definitions/string\"},\"__$Item\":{}},\"fieldsets\":[{\"fields\":[\"type\",\"linkId\",\"maxLength\"],\"showFields\":[{\"field\":\"linkId\",\"col\":3},{\"field\":\"type\",\"col\":3},{\"field\":\"maxLength\",\"col\":2}]},{\"fields\":[\"prefix\",\"text\",\"_text\",\"_prefix\"],\"showFields\":[{\"field\":\"prefix\",\"col\":1},{\"field\":\"text\",\"col\":11}]},{\"fields\":[\"required\",\"readOnly\",\"repeats\"],\"showFields\":[{\"field\":\"repeats\",\"col\":4},{\"field\":\"readOnly\",\"col\":4},{\"field\":\"required\",\"col\":4}]},{\"fields\":[\"code\",\"__$codeYesNo\"],\"showFields\":[{\"field\":\"__$codeYesNo\",\"col\":12},{\"field\":\"code\",\"col\":12}]},{\"fields\":[\"__$helpText\"],\"showFields\":[{\"field\":\"__$units\",\"col\":12}]},{\"fields\":[\"answerValueSet\"],\"showFields\":[{\"field\":\"answerValueSet\",\"col\":12}]},{\"fields\":[\"answerOption\"],\"showFields\":[{\"field\":\"answerOption\",\"col\":12}]},{\"fields\":[\"__$units\"],\"showFields\":[{\"field\":\"__$units\",\"col\":12}]},{\"fields\":[\"__$totalScoreItem\",\"__$totalScore\"],\"showFields\":[{\"field\":\"__$totalScore\",\"col\":12}]},{\"fields\":[\"initial\"],\"showFields\":[{\"field\":\"initial\",\"col\":12}]},{\"fields\":[\"__$restrictions\"],\"showFields\":[{\"field\":\"__$restrictions\",\"col\":12}]},{\"fields\":[\"enableWhen\"],\"showFields\":[{\"field\":\"enableWhen\",\"col\":12}]},{\"fields\":[\"enableBehavior\"],\"showFields\":[{\"field\":\"enableBehavior\",\"col\":3}]},{\"fields\":[\"__$observationLinkPeriod\"],\"showFields\":[{\"field\":\"__$observationLinkPeriod\",\"col\":10}]},{\"fields\":[\"id\",\"extension\",\"modifierExtension\",\"definition\"]}],\"steps\":[{\"title\":\"Specify basic properties\",\"optional\":false,\"rows\":[{\"showFields\":[{\"field\":\"type\",\"col\":12},{\"field\":\"linkId\",\"col\":12}]},{\"showFields\":[{\"field\":\"text\",\"col\":12},{\"field\":\"__$codeYesNo\",\"col\":12},{\"field\":\"code\",\"col\":12},{\"field\":\"prefix\",\"col\":12}]},{\"showFields\":[{\"field\":\"repeats\",\"col\":12},{\"field\":\"required\",\"col\":12},{\"field\":\"readOnly\",\"col\":12},{\"field\":\"maxLength\",\"col\":12},{\"field\":\"answerValueSet\",\"col\":12},{\"field\":\"answerOption\",\"title\":\"Answer choices\",\"col\":12},{\"field\":\"initial\",\"title\":\"Default value\",\"col\":12}]}]},{\"title\":\"Conditions to display\",\"description\":\"A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.\",\"optional\":false,\"rows\":[{\"showFields\":[{\"field\":\"enableWhen\",\"col\":12}]},{\"showFields\":[{\"field\":\"enableBehavior\",\"col\":3}]}]}],\"widget\":{\"keyField\":\"type\",\"id\":\"row-layout\"}}");
|
|
5740
5725
|
/***/
|
|
5741
5726
|
},
|
|
5742
5727
|
|
|
@@ -5774,25 +5759,31 @@
|
|
|
5774
5759
|
/* harmony import */
|
|
5775
5760
|
|
|
5776
5761
|
|
|
5777
|
-
var
|
|
5762
|
+
var _services_extensions_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
5763
|
+
/*! ../services/extensions.service */
|
|
5764
|
+
"sFzh");
|
|
5765
|
+
/* harmony import */
|
|
5766
|
+
|
|
5767
|
+
|
|
5768
|
+
var _services_shared_object_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
5778
5769
|
/*! ../services/shared-object.service */
|
|
5779
5770
|
"jOxg");
|
|
5780
5771
|
/* harmony import */
|
|
5781
5772
|
|
|
5782
5773
|
|
|
5783
|
-
var
|
|
5774
|
+
var _services_form_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
5784
5775
|
/*! ../services/form.service */
|
|
5785
5776
|
"md+p");
|
|
5786
5777
|
/* harmony import */
|
|
5787
5778
|
|
|
5788
5779
|
|
|
5789
|
-
var
|
|
5780
|
+
var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
5790
5781
|
/*! @angular/common */
|
|
5791
5782
|
"SVse");
|
|
5792
5783
|
/* harmony import */
|
|
5793
5784
|
|
|
5794
5785
|
|
|
5795
|
-
var
|
|
5786
|
+
var ngx_schema_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
5796
5787
|
/*! ngx-schema-form */
|
|
5797
5788
|
"JOsq");
|
|
5798
5789
|
|
|
@@ -5821,15 +5812,18 @@
|
|
|
5821
5812
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("schema", ctx_r0.mySchema)("model", ctx_r0.model);
|
|
5822
5813
|
}
|
|
5823
5814
|
}
|
|
5815
|
+
/**
|
|
5816
|
+
* This class is intended to isolate customization of sf-form instance.
|
|
5817
|
+
*/
|
|
5818
|
+
|
|
5824
5819
|
|
|
5825
5820
|
var SfFormWrapperComponent = /*#__PURE__*/function () {
|
|
5826
|
-
function SfFormWrapperComponent(modelService, formService
|
|
5821
|
+
function SfFormWrapperComponent(extensionsService, modelService, formService) {
|
|
5827
5822
|
_classCallCheck(this, SfFormWrapperComponent);
|
|
5828
5823
|
|
|
5824
|
+
this.extensionsService = extensionsService;
|
|
5829
5825
|
this.modelService = modelService;
|
|
5830
5826
|
this.formService = formService;
|
|
5831
|
-
this.cfr = cfr;
|
|
5832
|
-
this.cd = cd;
|
|
5833
5827
|
this.mySchema = {
|
|
5834
5828
|
properties: {}
|
|
5835
5829
|
};
|
|
@@ -5841,11 +5835,15 @@
|
|
|
5841
5835
|
}
|
|
5842
5836
|
|
|
5843
5837
|
_createClass(SfFormWrapperComponent, [{
|
|
5844
|
-
key: "ngOnInit",
|
|
5845
|
-
value: function ngOnInit() {}
|
|
5846
|
-
}, {
|
|
5847
5838
|
key: "ngAfterViewInit",
|
|
5848
|
-
value: function ngAfterViewInit() {
|
|
5839
|
+
value: function ngAfterViewInit() {
|
|
5840
|
+
this.extensionsService.setExtensions(this.itemForm.rootProperty.getProperty('extension'));
|
|
5841
|
+
}
|
|
5842
|
+
/**
|
|
5843
|
+
* Handle onChange event.
|
|
5844
|
+
* @param changes - Changes from host component.
|
|
5845
|
+
*/
|
|
5846
|
+
|
|
5849
5847
|
}, {
|
|
5850
5848
|
key: "ngOnChanges",
|
|
5851
5849
|
value: function ngOnChanges(changes) {
|
|
@@ -5853,9 +5851,14 @@
|
|
|
5853
5851
|
|
|
5854
5852
|
if (changes.model) {
|
|
5855
5853
|
console.log('sf-form-wrapper.ngOnChanges(): model changed');
|
|
5856
|
-
this.
|
|
5854
|
+
this.extensionsService.setExtensions(this.itemForm.rootProperty.getProperty('extension'));
|
|
5857
5855
|
}
|
|
5858
5856
|
}
|
|
5857
|
+
/**
|
|
5858
|
+
* Handle value change event.
|
|
5859
|
+
* @param value - Angular event
|
|
5860
|
+
*/
|
|
5861
|
+
|
|
5859
5862
|
}, {
|
|
5860
5863
|
key: "updateValue",
|
|
5861
5864
|
value: function updateValue(value) {
|
|
@@ -5871,7 +5874,7 @@
|
|
|
5871
5874
|
}();
|
|
5872
5875
|
|
|
5873
5876
|
SfFormWrapperComponent.ɵfac = function SfFormWrapperComponent_Factory(t) {
|
|
5874
|
-
return new (t || SfFormWrapperComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](
|
|
5877
|
+
return new (t || SfFormWrapperComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_extensions_service__WEBPACK_IMPORTED_MODULE_2__["ExtensionsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_shared_object_service__WEBPACK_IMPORTED_MODULE_3__["SharedObjectService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_form_service__WEBPACK_IMPORTED_MODULE_4__["FormService"]));
|
|
5875
5878
|
};
|
|
5876
5879
|
|
|
5877
5880
|
SfFormWrapperComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
|
|
@@ -5879,7 +5882,7 @@
|
|
|
5879
5882
|
selectors: [["lfb-sf-form-wrapper"]],
|
|
5880
5883
|
viewQuery: function SfFormWrapperComponent_Query(rf, ctx) {
|
|
5881
5884
|
if (rf & 1) {
|
|
5882
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 1
|
|
5885
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 1);
|
|
5883
5886
|
}
|
|
5884
5887
|
|
|
5885
5888
|
if (rf & 2) {
|
|
@@ -5897,7 +5900,7 @@
|
|
|
5897
5900
|
modelChange: "modelChange",
|
|
5898
5901
|
valueChange: "valueChange"
|
|
5899
5902
|
},
|
|
5900
|
-
features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
|
|
5903
|
+
features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([_services_extensions_service__WEBPACK_IMPORTED_MODULE_2__["ExtensionsService"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
|
|
5901
5904
|
decls: 1,
|
|
5902
5905
|
vars: 1,
|
|
5903
5906
|
consts: [[3, "schema", "model", "onChange", 4, "ngIf"], [3, "schema", "model", "onChange"], ["itemForm", ""]],
|
|
@@ -5910,7 +5913,7 @@
|
|
|
5910
5913
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.model);
|
|
5911
5914
|
}
|
|
5912
5915
|
},
|
|
5913
|
-
directives: [
|
|
5916
|
+
directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], ngx_schema_form__WEBPACK_IMPORTED_MODULE_6__["FormComponent"]],
|
|
5914
5917
|
styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzZi1mb3JtLXdyYXBwZXIuY29tcG9uZW50LmNzcyJ9 */"]
|
|
5915
5918
|
});
|
|
5916
5919
|
/***/
|
|
@@ -8250,12 +8253,35 @@
|
|
|
8250
8253
|
|
|
8251
8254
|
|
|
8252
8255
|
_createClass(FetchService, [{
|
|
8253
|
-
key: "
|
|
8254
|
-
value: function
|
|
8256
|
+
key: "getFhirFormData",
|
|
8257
|
+
value: function getFhirFormData(id) {
|
|
8255
8258
|
return this.http.get(FetchService.fhirUrl + '/' + id, {
|
|
8256
8259
|
responseType: 'json'
|
|
8257
8260
|
});
|
|
8258
8261
|
}
|
|
8262
|
+
/**
|
|
8263
|
+
* Get questionnaire by id from LOINC.
|
|
8264
|
+
*
|
|
8265
|
+
* @param loincNum - LOINC number of the form.
|
|
8266
|
+
*/
|
|
8267
|
+
|
|
8268
|
+
}, {
|
|
8269
|
+
key: "getLoincFormData",
|
|
8270
|
+
value: function getLoincFormData(loincNum) {
|
|
8271
|
+
var options = {
|
|
8272
|
+
observe: 'body',
|
|
8273
|
+
responseType: 'json'
|
|
8274
|
+
};
|
|
8275
|
+
options.params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]().set('loinc_num', loincNum);
|
|
8276
|
+
return this.http.get(FetchService.loincFormsUrl + '?loinc_num=' + loincNum, {
|
|
8277
|
+
responseType: 'json'
|
|
8278
|
+
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (response) {
|
|
8279
|
+
return LForms.Util.getFormFHIRData('Questionnaire', 'R4', response);
|
|
8280
|
+
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(function (error) {
|
|
8281
|
+
console.log("Loading loinc form ".concat(loincNum), error);
|
|
8282
|
+
return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])([]);
|
|
8283
|
+
}));
|
|
8284
|
+
}
|
|
8259
8285
|
/**
|
|
8260
8286
|
* This is used to configure widget to edit item in json editor.
|
|
8261
8287
|
*/
|
|
@@ -8277,26 +8303,26 @@
|
|
|
8277
8303
|
return this.treeOptions;
|
|
8278
8304
|
}
|
|
8279
8305
|
/**
|
|
8280
|
-
* Search questionnaires on
|
|
8306
|
+
* Search LOINC questionnaires on ctss, intended for auto completion for importing questionnaires.
|
|
8281
8307
|
*
|
|
8282
8308
|
* @param term - Search term
|
|
8283
8309
|
* @param options - http request options
|
|
8284
8310
|
*/
|
|
8285
8311
|
|
|
8286
8312
|
}, {
|
|
8287
|
-
key: "
|
|
8288
|
-
value: function
|
|
8313
|
+
key: "searchLoincForms",
|
|
8314
|
+
value: function searchLoincForms(term, options) {
|
|
8289
8315
|
options = options || {};
|
|
8290
8316
|
options.observe = options.observe || 'body';
|
|
8291
8317
|
options.responseType = options.responseType || 'json';
|
|
8292
|
-
options.params = (options.params || new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]()).set('
|
|
8293
|
-
return this.http.get(FetchService.
|
|
8318
|
+
options.params = (options.params || new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]()).set('terms', term).set('df', 'LOINC_NUM,text').set('type', 'form_and_section').set('available', 'true');
|
|
8319
|
+
return this.http.get(FetchService.loincSearchUrl, options).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["tap"])(function (resp) {
|
|
8294
8320
|
console.log(resp);
|
|
8295
8321
|
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (resp) {
|
|
8296
|
-
return resp.
|
|
8322
|
+
return resp[3].map(function (e) {
|
|
8297
8323
|
return {
|
|
8298
|
-
|
|
8299
|
-
|
|
8324
|
+
id: e[0],
|
|
8325
|
+
title: e[1]
|
|
8300
8326
|
};
|
|
8301
8327
|
});
|
|
8302
8328
|
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(function (error) {
|
|
@@ -9303,9 +9329,9 @@
|
|
|
9303
9329
|
/**
|
|
9304
9330
|
* Remove extension from the array, matching url, code and system. Code and system are optional
|
|
9305
9331
|
* and should be used to match with increased specificity.
|
|
9306
|
-
* @param url
|
|
9307
|
-
* @param code
|
|
9308
|
-
* @param system
|
|
9332
|
+
* @param url - Extension url
|
|
9333
|
+
* @param code - Code in valueCoding of the extension
|
|
9334
|
+
* @param system - System url of the code in valueCoding of the extension
|
|
9309
9335
|
*/
|
|
9310
9336
|
|
|
9311
9337
|
}, {
|
|
@@ -9320,7 +9346,7 @@
|
|
|
9320
9346
|
}
|
|
9321
9347
|
/**
|
|
9322
9348
|
* Remove extensions by extension url.
|
|
9323
|
-
* @param extUrl
|
|
9349
|
+
* @param extUrl - Url to identify the extension.
|
|
9324
9350
|
*/
|
|
9325
9351
|
|
|
9326
9352
|
}, {
|
|
@@ -9338,7 +9364,7 @@
|
|
|
9338
9364
|
}
|
|
9339
9365
|
/**
|
|
9340
9366
|
* Remove extension comparing the fields of given extension.
|
|
9341
|
-
* @param ext
|
|
9367
|
+
* @param ext - Extension object to remove.
|
|
9342
9368
|
*/
|
|
9343
9369
|
|
|
9344
9370
|
}, {
|
|
@@ -10820,13 +10846,19 @@
|
|
|
10820
10846
|
/* harmony import */
|
|
10821
10847
|
|
|
10822
10848
|
|
|
10823
|
-
var
|
|
10849
|
+
var _lib_widgets_observation_link_period_observation_link_period_component__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(
|
|
10850
|
+
/*! ./lib/widgets/observation-link-period/observation-link-period.component */
|
|
10851
|
+
"fDl6");
|
|
10852
|
+
/* harmony import */
|
|
10853
|
+
|
|
10854
|
+
|
|
10855
|
+
var _angular_core__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(
|
|
10824
10856
|
/*! @angular/core */
|
|
10825
10857
|
"8Y7J");
|
|
10826
10858
|
/* harmony import */
|
|
10827
10859
|
|
|
10828
10860
|
|
|
10829
|
-
var
|
|
10861
|
+
var _angular_common__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(
|
|
10830
10862
|
/*! @angular/common */
|
|
10831
10863
|
"SVse");
|
|
10832
10864
|
|
|
@@ -10838,11 +10870,11 @@
|
|
|
10838
10870
|
return new (t || AppModule)();
|
|
10839
10871
|
};
|
|
10840
10872
|
|
|
10841
|
-
AppModule.ɵmod =
|
|
10873
|
+
AppModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_81__["ɵɵdefineNgModule"]({
|
|
10842
10874
|
type: AppModule,
|
|
10843
10875
|
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_2__["AppComponent"]]
|
|
10844
10876
|
});
|
|
10845
|
-
AppModule.ɵinj =
|
|
10877
|
+
AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_81__["ɵɵdefineInjector"]({
|
|
10846
10878
|
providers: [{
|
|
10847
10879
|
provide: ngx_schema_form__WEBPACK_IMPORTED_MODULE_1__["WidgetRegistry"],
|
|
10848
10880
|
useClass: _lib_lforms_widget_registry__WEBPACK_IMPORTED_MODULE_31__["LformsWidgetRegistry"]
|
|
@@ -10851,13 +10883,13 @@
|
|
|
10851
10883
|
});
|
|
10852
10884
|
|
|
10853
10885
|
(function () {
|
|
10854
|
-
(typeof ngJitMode === "undefined" || ngJitMode) &&
|
|
10855
|
-
declarations: [_app_component__WEBPACK_IMPORTED_MODULE_2__["AppComponent"], _ngx_schema_form_ngx_schema_form_component__WEBPACK_IMPORTED_MODULE_26__["NgxSchemaFormComponent"], _item_item_component__WEBPACK_IMPORTED_MODULE_8__["ItemComponent"], _lib_widgets_item_json_editor_item_json_editor_component__WEBPACK_IMPORTED_MODULE_28__["ItemJsonEditorComponent"], _lib_widgets_grid_component_grid_component__WEBPACK_IMPORTED_MODULE_29__["GridComponent"], _lib_widgets_table_table_component__WEBPACK_IMPORTED_MODULE_30__["TableComponent"], _lib_widgets_string_string_component__WEBPACK_IMPORTED_MODULE_32__["StringComponent"], _lib_widgets_select_select_component__WEBPACK_IMPORTED_MODULE_33__["SelectComponent"], _lib_widgets_checkbox_component_checkbox_component__WEBPACK_IMPORTED_MODULE_34__["CheckboxComponent"], _lib_widgets_integer_integer_component__WEBPACK_IMPORTED_MODULE_35__["IntegerComponent"], _lib_widgets_form_element_form_element_component__WEBPACK_IMPORTED_MODULE_37__["AppFormElementComponent"], _lib_widgets_label_label_component__WEBPACK_IMPORTED_MODULE_38__["LabelComponent"], _lib_widgets_title_title_component__WEBPACK_IMPORTED_MODULE_39__["TitleComponent"], _lib_widgets_element_chooser_element_chooser_component__WEBPACK_IMPORTED_MODULE_40__["ElementChooserComponent"], _lib_widgets_auto_complete_auto_complete_component__WEBPACK_IMPORTED_MODULE_41__["AutoCompleteComponent"], _lib_widgets_radio_radio_component__WEBPACK_IMPORTED_MODULE_42__["RadioComponent"], _header_header_component__WEBPACK_IMPORTED_MODULE_43__["HeaderComponent"], _footer_footer_component__WEBPACK_IMPORTED_MODULE_44__["FooterComponent"], _lib_widgets_enable_when_source_enable_when_source_component__WEBPACK_IMPORTED_MODULE_46__["EnableWhenSourceComponent"], _lib_widgets_enable_operator_enable_operator_component__WEBPACK_IMPORTED_MODULE_47__["EnableOperatorComponent"], _lib_widgets_left_label_form_group_left_label_form_group_component__WEBPACK_IMPORTED_MODULE_48__["LeftLabelFormGroupComponent"], _lib_widgets_lfb_control_widget_lfb_control_widget_component__WEBPACK_IMPORTED_MODULE_49__["LfbControlWidgetComponent"], _lib_widgets_lfb_array_widget_lfb_array_widget_component__WEBPACK_IMPORTED_MODULE_50__["LfbArrayWidgetComponent"], _lib_widgets_side_label_checkbox_side_label_checkbox_component__WEBPACK_IMPORTED_MODULE_51__["SideLabelCheckboxComponent"], _lib_widgets_enablewhen_answer_coding_enablewhen_answer_coding_component__WEBPACK_IMPORTED_MODULE_52__["EnablewhenAnswerCodingComponent"], _lib_pipes_app_json_pipe__WEBPACK_IMPORTED_MODULE_53__["AppJsonPipe"], _base_page_base_page_component__WEBPACK_IMPORTED_MODULE_54__["BasePageComponent"], _form_fields_form_fields_component__WEBPACK_IMPORTED_MODULE_55__["FormFieldsComponent"], _lib_widgets_label_radio_label_radio_component__WEBPACK_IMPORTED_MODULE_56__["LabelRadioComponent"], _lib_widgets_boolean_controlled_boolean_controlled_component__WEBPACK_IMPORTED_MODULE_58__["BooleanControlledComponent"], _lib_widgets_row_layout_row_layout_component__WEBPACK_IMPORTED_MODULE_57__["RowLayoutComponent"], _lib_widgets_boolean_controlled_boolean_controlled_component__WEBPACK_IMPORTED_MODULE_58__["BooleanControlledComponent"], _lib_widgets_enable_behavior_enable_behavior_component__WEBPACK_IMPORTED_MODULE_59__["EnableBehaviorComponent"], _lib_widgets_message_dlg_message_dlg_component__WEBPACK_IMPORTED_MODULE_60__["MessageDlgComponent"], _lib_widgets_fhir_servers_dlg_fhir_servers_dlg_component__WEBPACK_IMPORTED_MODULE_61__["FhirServersDlgComponent"], _lib_widgets_user_specified_server_dlg_user_specified_server_dlg_component__WEBPACK_IMPORTED_MODULE_62__["UserSpecifiedServerDlgComponent"], _lib_widgets_fhir_search_dlg_fhir_search_dlg_component__WEBPACK_IMPORTED_MODULE_63__["FhirSearchDlgComponent"], _lib_widgets_boolean_radio_boolean_radio_component__WEBPACK_IMPORTED_MODULE_64__["BooleanRadioComponent"], _lib_widgets_units_units_component__WEBPACK_IMPORTED_MODULE_65__["UnitsComponent"], _lib_widgets_extensions_extensions_component__WEBPACK_IMPORTED_MODULE_66__["ExtensionsComponent"], _lib_widgets_total_score_total_score_component__WEBPACK_IMPORTED_MODULE_67__["TotalScoreComponent"], _lib_widgets_answer_option_answer_option_component__WEBPACK_IMPORTED_MODULE_69__["AnswerOptionComponent"], _lib_widgets_initial_initial_component__WEBPACK_IMPORTED_MODULE_70__["InitialComponent"], _lib_widgets_help_text_help_text_component__WEBPACK_IMPORTED_MODULE_71__["HelpTextComponent"], _sf_form_wrapper_sf_form_wrapper_component__WEBPACK_IMPORTED_MODULE_72__["SfFormWrapperComponent"], _lib_widgets_type_type_component__WEBPACK_IMPORTED_MODULE_73__["TypeComponent"], _lib_widgets_preview_dlg_preview_dlg_component__WEBPACK_IMPORTED_MODULE_74__["PreviewDlgComponent"], _lib_widgets_fhir_export_dlg_fhir_export_dlg_component__WEBPACK_IMPORTED_MODULE_75__["FhirExportDlgComponent"], _lib_widgets_loinc_notice_loinc_notice_component__WEBPACK_IMPORTED_MODULE_76__["LoincNoticeComponent"], _lib_widgets_string_with_css_string_with_css_component__WEBPACK_IMPORTED_MODULE_77__["StringWithCssComponent"], _lib_widgets_restrictions_restrictions_component__WEBPACK_IMPORTED_MODULE_78__["RestrictionsComponent"], _lib_widgets_restrictions_operator_restrictions_operator_component__WEBPACK_IMPORTED_MODULE_79__["RestrictionsOperatorComponent"]],
|
|
10886
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_81__["ɵɵsetNgModuleScope"](AppModule, {
|
|
10887
|
+
declarations: [_app_component__WEBPACK_IMPORTED_MODULE_2__["AppComponent"], _ngx_schema_form_ngx_schema_form_component__WEBPACK_IMPORTED_MODULE_26__["NgxSchemaFormComponent"], _item_item_component__WEBPACK_IMPORTED_MODULE_8__["ItemComponent"], _lib_widgets_item_json_editor_item_json_editor_component__WEBPACK_IMPORTED_MODULE_28__["ItemJsonEditorComponent"], _lib_widgets_grid_component_grid_component__WEBPACK_IMPORTED_MODULE_29__["GridComponent"], _lib_widgets_table_table_component__WEBPACK_IMPORTED_MODULE_30__["TableComponent"], _lib_widgets_string_string_component__WEBPACK_IMPORTED_MODULE_32__["StringComponent"], _lib_widgets_select_select_component__WEBPACK_IMPORTED_MODULE_33__["SelectComponent"], _lib_widgets_checkbox_component_checkbox_component__WEBPACK_IMPORTED_MODULE_34__["CheckboxComponent"], _lib_widgets_integer_integer_component__WEBPACK_IMPORTED_MODULE_35__["IntegerComponent"], _lib_widgets_form_element_form_element_component__WEBPACK_IMPORTED_MODULE_37__["AppFormElementComponent"], _lib_widgets_label_label_component__WEBPACK_IMPORTED_MODULE_38__["LabelComponent"], _lib_widgets_title_title_component__WEBPACK_IMPORTED_MODULE_39__["TitleComponent"], _lib_widgets_element_chooser_element_chooser_component__WEBPACK_IMPORTED_MODULE_40__["ElementChooserComponent"], _lib_widgets_auto_complete_auto_complete_component__WEBPACK_IMPORTED_MODULE_41__["AutoCompleteComponent"], _lib_widgets_radio_radio_component__WEBPACK_IMPORTED_MODULE_42__["RadioComponent"], _header_header_component__WEBPACK_IMPORTED_MODULE_43__["HeaderComponent"], _footer_footer_component__WEBPACK_IMPORTED_MODULE_44__["FooterComponent"], _lib_widgets_enable_when_source_enable_when_source_component__WEBPACK_IMPORTED_MODULE_46__["EnableWhenSourceComponent"], _lib_widgets_enable_operator_enable_operator_component__WEBPACK_IMPORTED_MODULE_47__["EnableOperatorComponent"], _lib_widgets_left_label_form_group_left_label_form_group_component__WEBPACK_IMPORTED_MODULE_48__["LeftLabelFormGroupComponent"], _lib_widgets_lfb_control_widget_lfb_control_widget_component__WEBPACK_IMPORTED_MODULE_49__["LfbControlWidgetComponent"], _lib_widgets_lfb_array_widget_lfb_array_widget_component__WEBPACK_IMPORTED_MODULE_50__["LfbArrayWidgetComponent"], _lib_widgets_side_label_checkbox_side_label_checkbox_component__WEBPACK_IMPORTED_MODULE_51__["SideLabelCheckboxComponent"], _lib_widgets_enablewhen_answer_coding_enablewhen_answer_coding_component__WEBPACK_IMPORTED_MODULE_52__["EnablewhenAnswerCodingComponent"], _lib_pipes_app_json_pipe__WEBPACK_IMPORTED_MODULE_53__["AppJsonPipe"], _base_page_base_page_component__WEBPACK_IMPORTED_MODULE_54__["BasePageComponent"], _form_fields_form_fields_component__WEBPACK_IMPORTED_MODULE_55__["FormFieldsComponent"], _lib_widgets_label_radio_label_radio_component__WEBPACK_IMPORTED_MODULE_56__["LabelRadioComponent"], _lib_widgets_boolean_controlled_boolean_controlled_component__WEBPACK_IMPORTED_MODULE_58__["BooleanControlledComponent"], _lib_widgets_row_layout_row_layout_component__WEBPACK_IMPORTED_MODULE_57__["RowLayoutComponent"], _lib_widgets_boolean_controlled_boolean_controlled_component__WEBPACK_IMPORTED_MODULE_58__["BooleanControlledComponent"], _lib_widgets_enable_behavior_enable_behavior_component__WEBPACK_IMPORTED_MODULE_59__["EnableBehaviorComponent"], _lib_widgets_message_dlg_message_dlg_component__WEBPACK_IMPORTED_MODULE_60__["MessageDlgComponent"], _lib_widgets_fhir_servers_dlg_fhir_servers_dlg_component__WEBPACK_IMPORTED_MODULE_61__["FhirServersDlgComponent"], _lib_widgets_user_specified_server_dlg_user_specified_server_dlg_component__WEBPACK_IMPORTED_MODULE_62__["UserSpecifiedServerDlgComponent"], _lib_widgets_fhir_search_dlg_fhir_search_dlg_component__WEBPACK_IMPORTED_MODULE_63__["FhirSearchDlgComponent"], _lib_widgets_boolean_radio_boolean_radio_component__WEBPACK_IMPORTED_MODULE_64__["BooleanRadioComponent"], _lib_widgets_units_units_component__WEBPACK_IMPORTED_MODULE_65__["UnitsComponent"], _lib_widgets_extensions_extensions_component__WEBPACK_IMPORTED_MODULE_66__["ExtensionsComponent"], _lib_widgets_total_score_total_score_component__WEBPACK_IMPORTED_MODULE_67__["TotalScoreComponent"], _lib_widgets_answer_option_answer_option_component__WEBPACK_IMPORTED_MODULE_69__["AnswerOptionComponent"], _lib_widgets_initial_initial_component__WEBPACK_IMPORTED_MODULE_70__["InitialComponent"], _lib_widgets_help_text_help_text_component__WEBPACK_IMPORTED_MODULE_71__["HelpTextComponent"], _sf_form_wrapper_sf_form_wrapper_component__WEBPACK_IMPORTED_MODULE_72__["SfFormWrapperComponent"], _lib_widgets_type_type_component__WEBPACK_IMPORTED_MODULE_73__["TypeComponent"], _lib_widgets_preview_dlg_preview_dlg_component__WEBPACK_IMPORTED_MODULE_74__["PreviewDlgComponent"], _lib_widgets_fhir_export_dlg_fhir_export_dlg_component__WEBPACK_IMPORTED_MODULE_75__["FhirExportDlgComponent"], _lib_widgets_loinc_notice_loinc_notice_component__WEBPACK_IMPORTED_MODULE_76__["LoincNoticeComponent"], _lib_widgets_string_with_css_string_with_css_component__WEBPACK_IMPORTED_MODULE_77__["StringWithCssComponent"], _lib_widgets_restrictions_restrictions_component__WEBPACK_IMPORTED_MODULE_78__["RestrictionsComponent"], _lib_widgets_restrictions_operator_restrictions_operator_component__WEBPACK_IMPORTED_MODULE_79__["RestrictionsOperatorComponent"], _lib_widgets_observation_link_period_observation_link_period_component__WEBPACK_IMPORTED_MODULE_80__["ObservationLinkPeriodComponent"]],
|
|
10856
10888
|
imports: [_app_routing_module__WEBPACK_IMPORTED_MODULE_3__["AppRoutingModule"], _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["BrowserAnimationsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormsModule"], _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_36__["FontAwesomeModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClientModule"], _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_7__["LayoutModule"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButtonModule"], _angular_material_card__WEBPACK_IMPORTED_MODULE_11__["MatCardModule"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_13__["MatExpansionModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_14__["MatFormFieldModule"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_15__["MatIconModule"], _angular_material_input__WEBPACK_IMPORTED_MODULE_16__["MatInputModule"], _angular_material_list__WEBPACK_IMPORTED_MODULE_17__["MatListModule"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_18__["MatMenuModule"], _angular_material_radio__WEBPACK_IMPORTED_MODULE_19__["MatRadioModule"], _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_20__["MatSidenavModule"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_21__["MatStepperModule"], _angular_material_tabs__WEBPACK_IMPORTED_MODULE_22__["MatTabsModule"], _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_23__["MatToolbarModule"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_24__["MatTooltipModule"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__["NgbModule"], rule_editor__WEBPACK_IMPORTED_MODULE_68__["RuleEditorModule"], ngx_schema_form__WEBPACK_IMPORTED_MODULE_1__["SchemaFormModule"], _circlon_angular_tree_component__WEBPACK_IMPORTED_MODULE_27__["TreeModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ReactiveFormsModule"], _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_10__["MatAutocompleteModule"], _angular_material_select__WEBPACK_IMPORTED_MODULE_45__["MatSelectModule"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_12__["MatDialogModule"]]
|
|
10857
10889
|
});
|
|
10858
10890
|
})();
|
|
10859
10891
|
|
|
10860
|
-
|
|
10892
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_81__["ɵɵsetComponentScope"](_item_item_component__WEBPACK_IMPORTED_MODULE_8__["ItemComponent"], [_angular_material_sidenav__WEBPACK_IMPORTED_MODULE_20__["MatSidenavContainer"], _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_20__["MatSidenav"], _circlon_angular_tree_component__WEBPACK_IMPORTED_MODULE_27__["TreeComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_82__["NgClass"], _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_20__["MatSidenavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_82__["NgIf"], _ngx_schema_form_ngx_schema_form_component__WEBPACK_IMPORTED_MODULE_26__["NgxSchemaFormComponent"], _lib_widgets_item_json_editor_item_json_editor_component__WEBPACK_IMPORTED_MODULE_28__["ItemJsonEditorComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_ba"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgForm"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__["NgbRadioGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_82__["NgForOf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__["NgbButtonLabel"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__["NgbRadio"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["DefaultValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__["NgbTypeahead"]], []);
|
|
10861
10893
|
/***/
|
|
10862
10894
|
|
|
10863
10895
|
},
|
|
@@ -11959,7 +11991,7 @@
|
|
|
11959
11991
|
|
|
11960
11992
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
11961
11993
|
|
|
11962
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", option_r4 +
|
|
11994
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", "booleanControlled_" + option_r4 + ctx_r3._id);
|
|
11963
11995
|
|
|
11964
11996
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
11965
11997
|
|
|
@@ -12043,11 +12075,14 @@
|
|
|
12043
12075
|
var BooleanControlledComponent = function BooleanControlledComponent() {
|
|
12044
12076
|
_classCallCheck(this, BooleanControlledComponent);
|
|
12045
12077
|
|
|
12078
|
+
this._id = BooleanControlledComponent.ID++;
|
|
12046
12079
|
this.labelPosition = 'left';
|
|
12047
12080
|
this.disabled = false;
|
|
12048
12081
|
this.boolChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
|
|
12049
12082
|
};
|
|
12050
12083
|
|
|
12084
|
+
BooleanControlledComponent.ID = 0;
|
|
12085
|
+
|
|
12051
12086
|
BooleanControlledComponent.ɵfac = function BooleanControlledComponent_Factory(t) {
|
|
12052
12087
|
return new (t || BooleanControlledComponent)();
|
|
12053
12088
|
};
|
|
@@ -12269,7 +12304,13 @@
|
|
|
12269
12304
|
/* harmony import */
|
|
12270
12305
|
|
|
12271
12306
|
|
|
12272
|
-
var
|
|
12307
|
+
var _widgets_observation_link_period_observation_link_period_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
|
|
12308
|
+
/*! ./widgets/observation-link-period/observation-link-period.component */
|
|
12309
|
+
"fDl6");
|
|
12310
|
+
/* harmony import */
|
|
12311
|
+
|
|
12312
|
+
|
|
12313
|
+
var _angular_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
|
|
12273
12314
|
/*! @angular/core */
|
|
12274
12315
|
"8Y7J");
|
|
12275
12316
|
/**
|
|
@@ -12346,6 +12387,8 @@
|
|
|
12346
12387
|
|
|
12347
12388
|
_this44.register('restrictions-operator', _widgets_restrictions_operator_restrictions_operator_component__WEBPACK_IMPORTED_MODULE_25__["RestrictionsOperatorComponent"]);
|
|
12348
12389
|
|
|
12390
|
+
_this44.register('observation-link-period', _widgets_observation_link_period_observation_link_period_component__WEBPACK_IMPORTED_MODULE_26__["ObservationLinkPeriodComponent"]);
|
|
12391
|
+
|
|
12349
12392
|
return _this44;
|
|
12350
12393
|
}
|
|
12351
12394
|
|
|
@@ -12356,7 +12399,7 @@
|
|
|
12356
12399
|
return new (t || LformsWidgetRegistry)();
|
|
12357
12400
|
};
|
|
12358
12401
|
|
|
12359
|
-
LformsWidgetRegistry.ɵprov =
|
|
12402
|
+
LformsWidgetRegistry.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵdefineInjectable"]({
|
|
12360
12403
|
token: LformsWidgetRegistry,
|
|
12361
12404
|
factory: LformsWidgetRegistry.ɵfac
|
|
12362
12405
|
});
|
|
@@ -12539,236 +12582,790 @@
|
|
|
12539
12582
|
},
|
|
12540
12583
|
|
|
12541
12584
|
/***/
|
|
12542
|
-
"
|
|
12543
|
-
|
|
12544
|
-
!*** ./src/app/
|
|
12545
|
-
|
|
12585
|
+
"fDl6":
|
|
12586
|
+
/*!******************************************************************************************!*\
|
|
12587
|
+
!*** ./src/app/lib/widgets/observation-link-period/observation-link-period.component.ts ***!
|
|
12588
|
+
\******************************************************************************************/
|
|
12546
12589
|
|
|
12547
|
-
/*! exports provided:
|
|
12590
|
+
/*! exports provided: ObservationLinkPeriodComponent */
|
|
12548
12591
|
|
|
12549
12592
|
/***/
|
|
12550
|
-
function
|
|
12593
|
+
function fDl6(module, __webpack_exports__, __webpack_require__) {
|
|
12551
12594
|
"use strict";
|
|
12552
12595
|
|
|
12553
12596
|
__webpack_require__.r(__webpack_exports__);
|
|
12554
12597
|
/* harmony export (binding) */
|
|
12555
12598
|
|
|
12556
12599
|
|
|
12557
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
12558
|
-
return
|
|
12600
|
+
__webpack_require__.d(__webpack_exports__, "ObservationLinkPeriodComponent", function () {
|
|
12601
|
+
return ObservationLinkPeriodComponent;
|
|
12559
12602
|
});
|
|
12560
12603
|
/* harmony import */
|
|
12561
12604
|
|
|
12562
12605
|
|
|
12563
|
-
var
|
|
12564
|
-
/*!
|
|
12565
|
-
"
|
|
12606
|
+
var _units_units_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
12607
|
+
/*! ../units/units.component */
|
|
12608
|
+
"E+b4");
|
|
12566
12609
|
/* harmony import */
|
|
12567
12610
|
|
|
12568
12611
|
|
|
12569
|
-
var
|
|
12570
|
-
/*! ../
|
|
12571
|
-
"
|
|
12612
|
+
var _string_string_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
12613
|
+
/*! ../string/string.component */
|
|
12614
|
+
"EsPq");
|
|
12572
12615
|
/* harmony import */
|
|
12573
12616
|
|
|
12574
12617
|
|
|
12575
|
-
var
|
|
12576
|
-
/*! @angular/
|
|
12577
|
-
"
|
|
12618
|
+
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
12619
|
+
/*! @angular/core */
|
|
12620
|
+
"8Y7J");
|
|
12578
12621
|
/* harmony import */
|
|
12579
12622
|
|
|
12580
12623
|
|
|
12581
|
-
var
|
|
12582
|
-
/*!
|
|
12583
|
-
"
|
|
12624
|
+
var _services_extensions_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
12625
|
+
/*! ../../../services/extensions.service */
|
|
12626
|
+
"sFzh");
|
|
12584
12627
|
/* harmony import */
|
|
12585
12628
|
|
|
12586
12629
|
|
|
12587
|
-
var
|
|
12588
|
-
/*! @angular/
|
|
12589
|
-
"
|
|
12630
|
+
var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
12631
|
+
/*! @angular/common */
|
|
12632
|
+
"SVse");
|
|
12590
12633
|
/* harmony import */
|
|
12591
12634
|
|
|
12592
12635
|
|
|
12593
|
-
var
|
|
12594
|
-
/*! @
|
|
12595
|
-
"
|
|
12636
|
+
var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
12637
|
+
/*! @ng-bootstrap/ng-bootstrap */
|
|
12638
|
+
"G0yt");
|
|
12596
12639
|
/* harmony import */
|
|
12597
12640
|
|
|
12598
12641
|
|
|
12599
|
-
var
|
|
12600
|
-
/*! @angular/
|
|
12601
|
-
"
|
|
12642
|
+
var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
12643
|
+
/*! @angular/forms */
|
|
12644
|
+
"s7LF");
|
|
12602
12645
|
/* harmony import */
|
|
12603
12646
|
|
|
12604
12647
|
|
|
12605
|
-
var
|
|
12606
|
-
/*!
|
|
12607
|
-
"
|
|
12608
|
-
/* harmony import */
|
|
12648
|
+
var _label_label_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
12649
|
+
/*! ../label/label.component */
|
|
12650
|
+
"2GUZ");
|
|
12609
12651
|
|
|
12652
|
+
function ObservationLinkPeriodComponent_lfb_label_1_Template(rf, ctx) {
|
|
12653
|
+
if (rf & 1) {
|
|
12654
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "lfb-label", 6);
|
|
12655
|
+
}
|
|
12610
12656
|
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
"G0yt");
|
|
12657
|
+
if (rf & 2) {
|
|
12658
|
+
var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
12614
12659
|
|
|
12615
|
-
|
|
12660
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("for", ctx_r0.elementId)("title", ctx_r0.schema.title)("helpMessage", ctx_r0.schema.description)("ngClass", ctx_r0.labelWidthClass + " pl-0 pr-1");
|
|
12661
|
+
}
|
|
12662
|
+
}
|
|
12663
|
+
|
|
12664
|
+
function ObservationLinkPeriodComponent_ng_container_4_Template(rf, ctx) {
|
|
12616
12665
|
if (rf & 1) {
|
|
12617
|
-
|
|
12666
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0, 7);
|
|
12618
12667
|
|
|
12619
|
-
|
|
12668
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 8);
|
|
12620
12669
|
|
|
12621
|
-
|
|
12670
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 9);
|
|
12622
12671
|
|
|
12623
|
-
|
|
12624
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5);
|
|
12672
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
|
|
12625
12673
|
|
|
12626
|
-
|
|
12674
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12627
12675
|
|
|
12628
|
-
|
|
12629
|
-
|
|
12676
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
12677
|
+
}
|
|
12630
12678
|
|
|
12631
|
-
|
|
12679
|
+
if (rf & 2) {
|
|
12680
|
+
var option_r5 = ctx.$implicit;
|
|
12632
12681
|
|
|
12633
|
-
|
|
12682
|
+
var ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
12634
12683
|
|
|
12635
|
-
|
|
12684
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
12636
12685
|
|
|
12637
|
-
|
|
12686
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx_r1.name + "_" + option_r5);
|
|
12638
12687
|
|
|
12639
|
-
|
|
12688
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
12689
|
+
|
|
12690
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", option_r5 === "Yes");
|
|
12691
|
+
|
|
12692
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r1.schema.readOnly ? "" : null)("aria-controls", "timeWindowGroup_" + ctx_r1.elementId);
|
|
12693
|
+
|
|
12694
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
12695
|
+
|
|
12696
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", option_r5, " ");
|
|
12640
12697
|
}
|
|
12641
12698
|
}
|
|
12642
12699
|
|
|
12643
|
-
function
|
|
12700
|
+
function ObservationLinkPeriodComponent_div_5_div_1_option_9_Template(rf, ctx) {
|
|
12644
12701
|
if (rf & 1) {
|
|
12645
|
-
|
|
12702
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 19);
|
|
12646
12703
|
|
|
12647
|
-
|
|
12704
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
|
|
12648
12705
|
|
|
12649
|
-
|
|
12706
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12707
|
+
}
|
|
12650
12708
|
|
|
12651
|
-
|
|
12709
|
+
if (rf & 2) {
|
|
12710
|
+
var option_r8 = ctx.$implicit;
|
|
12711
|
+
var i_r9 = ctx.index;
|
|
12652
12712
|
|
|
12653
|
-
|
|
12713
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", i_r9);
|
|
12654
12714
|
|
|
12655
|
-
|
|
12715
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
12656
12716
|
|
|
12657
|
-
|
|
12658
|
-
|
|
12717
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](option_r8.unit);
|
|
12718
|
+
}
|
|
12719
|
+
}
|
|
12659
12720
|
|
|
12660
|
-
|
|
12721
|
+
function ObservationLinkPeriodComponent_div_5_div_1_Template(rf, ctx) {
|
|
12722
|
+
if (rf & 1) {
|
|
12723
|
+
var _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
12661
12724
|
|
|
12662
|
-
|
|
12663
|
-
});
|
|
12725
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
|
|
12664
12726
|
|
|
12665
|
-
|
|
12727
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 12);
|
|
12666
12728
|
|
|
12667
|
-
|
|
12729
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 13);
|
|
12668
12730
|
|
|
12669
|
-
|
|
12731
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 14);
|
|
12670
12732
|
|
|
12671
|
-
|
|
12733
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Time window");
|
|
12672
12734
|
|
|
12673
|
-
|
|
12674
|
-
}
|
|
12735
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12675
12736
|
|
|
12676
|
-
|
|
12677
|
-
var ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
|
|
12737
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12678
12738
|
|
|
12679
|
-
|
|
12739
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 15);
|
|
12680
12740
|
|
|
12681
|
-
|
|
12741
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function ObservationLinkPeriodComponent_div_5_div_1_Template_input_change_5_listener($event) {
|
|
12742
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r11);
|
|
12682
12743
|
|
|
12683
|
-
|
|
12744
|
+
var ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
|
|
12684
12745
|
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
}
|
|
12746
|
+
return ctx_r10.onValueChange($event);
|
|
12747
|
+
});
|
|
12688
12748
|
|
|
12689
|
-
|
|
12690
|
-
if (rf & 1) {
|
|
12691
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
|
|
12749
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12692
12750
|
|
|
12693
|
-
|
|
12751
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 16);
|
|
12694
12752
|
|
|
12695
|
-
|
|
12696
|
-
}
|
|
12753
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "select", 17);
|
|
12697
12754
|
|
|
12698
|
-
|
|
12699
|
-
|
|
12755
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function ObservationLinkPeriodComponent_div_5_div_1_Template_select_ngModelChange_7_listener($event) {
|
|
12756
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r11);
|
|
12700
12757
|
|
|
12701
|
-
|
|
12758
|
+
var ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
|
|
12702
12759
|
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
}
|
|
12760
|
+
return ctx_r12.onUnitChange($event);
|
|
12761
|
+
});
|
|
12706
12762
|
|
|
12707
|
-
|
|
12708
|
-
if (rf & 1) {
|
|
12709
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 5);
|
|
12763
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](8);
|
|
12710
12764
|
|
|
12711
|
-
|
|
12765
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, ObservationLinkPeriodComponent_div_5_div_1_option_9_Template, 2, 2, "option", 18);
|
|
12712
12766
|
|
|
12713
|
-
|
|
12767
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
12714
12768
|
|
|
12715
|
-
|
|
12769
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12716
12770
|
|
|
12717
|
-
|
|
12771
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12772
|
+
|
|
12773
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12774
|
+
|
|
12775
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12718
12776
|
}
|
|
12719
12777
|
|
|
12720
12778
|
if (rf & 2) {
|
|
12721
|
-
var
|
|
12779
|
+
var ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
|
|
12722
12780
|
|
|
12723
|
-
|
|
12781
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
12724
12782
|
|
|
12725
|
-
|
|
12783
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", "timeWindowGroup_" + ctx_r6.elementId);
|
|
12726
12784
|
|
|
12727
|
-
|
|
12785
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
12728
12786
|
|
|
12729
|
-
|
|
12787
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", "timeWindow_" + ctx_r6.elementId);
|
|
12730
12788
|
|
|
12731
|
-
|
|
12789
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
12732
12790
|
|
|
12733
|
-
|
|
12791
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r6.value);
|
|
12792
|
+
|
|
12793
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx_r6.elementId)("aria-labelledby", "timeWindow_" + ctx_r6.elementId);
|
|
12794
|
+
|
|
12795
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
12796
|
+
|
|
12797
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r6.unitIndex);
|
|
12798
|
+
|
|
12799
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", "select_" + ctx_r6.elementId);
|
|
12800
|
+
|
|
12801
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
12802
|
+
|
|
12803
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r6.unitOptions);
|
|
12734
12804
|
}
|
|
12735
12805
|
}
|
|
12736
12806
|
|
|
12737
|
-
|
|
12738
|
-
|
|
12739
|
-
|
|
12807
|
+
function ObservationLinkPeriodComponent_div_5_Template(rf, ctx) {
|
|
12808
|
+
if (rf & 1) {
|
|
12809
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
|
|
12740
12810
|
|
|
12741
|
-
|
|
12742
|
-
this.iconRegistry = iconRegistry;
|
|
12743
|
-
this.sanitizer = sanitizer;
|
|
12744
|
-
this.userProfile = {};
|
|
12745
|
-
this.isUserSignedIn = false;
|
|
12746
|
-
this.isFirebaseEnabled = false;
|
|
12747
|
-
this.loginError = null; // Register our icon(s)
|
|
12811
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ObservationLinkPeriodComponent_div_5_div_1_Template, 10, 8, "div", 10);
|
|
12748
12812
|
|
|
12749
|
-
|
|
12813
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12750
12814
|
}
|
|
12751
|
-
/**
|
|
12752
|
-
* Initialize login service
|
|
12753
|
-
*/
|
|
12754
12815
|
|
|
12816
|
+
if (rf & 2) {
|
|
12817
|
+
var ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
12755
12818
|
|
|
12756
|
-
|
|
12757
|
-
key: "ngOnInit",
|
|
12758
|
-
value: function ngOnInit() {
|
|
12759
|
-
var _this45 = this;
|
|
12819
|
+
var _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](7);
|
|
12760
12820
|
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12821
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
12822
|
+
|
|
12823
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.isCodePresent())("ngIfElse", _r3);
|
|
12824
|
+
}
|
|
12825
|
+
}
|
|
12826
|
+
|
|
12827
|
+
function ObservationLinkPeriodComponent_ng_template_6_Template(rf, ctx) {
|
|
12828
|
+
if (rf & 1) {
|
|
12829
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p", 20);
|
|
12830
|
+
|
|
12831
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Linking to FHIR Observation requires a code assigned to this item. Please enter a code before entering the time window.");
|
|
12832
|
+
|
|
12833
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
12834
|
+
}
|
|
12835
|
+
}
|
|
12836
|
+
|
|
12837
|
+
var _c0 = function _c0(a0) {
|
|
12838
|
+
return {
|
|
12839
|
+
"row": a0,
|
|
12840
|
+
"m-0": true
|
|
12841
|
+
};
|
|
12842
|
+
};
|
|
12843
|
+
|
|
12844
|
+
var _c1 = function _c1() {
|
|
12845
|
+
return ["No", "Yes"];
|
|
12846
|
+
};
|
|
12847
|
+
|
|
12848
|
+
var ObservationLinkPeriodComponent = /*#__PURE__*/function (_string_string_compon3) {
|
|
12849
|
+
_inherits(ObservationLinkPeriodComponent, _string_string_compon3);
|
|
12850
|
+
|
|
12851
|
+
var _super21 = _createSuper(ObservationLinkPeriodComponent);
|
|
12852
|
+
|
|
12853
|
+
function ObservationLinkPeriodComponent(extensionsService) {
|
|
12854
|
+
var _this45;
|
|
12855
|
+
|
|
12856
|
+
_classCallCheck(this, ObservationLinkPeriodComponent);
|
|
12857
|
+
|
|
12858
|
+
_this45 = _super21.call(this);
|
|
12859
|
+
_this45.extensionsService = extensionsService;
|
|
12860
|
+
_this45.unitIndex = 0;
|
|
12861
|
+
_this45.adjustVAlignClass = 'd-flex';
|
|
12862
|
+
_this45.showOlp = false;
|
|
12863
|
+
_this45.unitOptions = [{
|
|
12864
|
+
code: 'a',
|
|
12865
|
+
unit: 'years'
|
|
12866
|
+
}, {
|
|
12867
|
+
code: 'mo',
|
|
12868
|
+
unit: 'months'
|
|
12869
|
+
}, {
|
|
12870
|
+
code: 'wk',
|
|
12871
|
+
unit: 'weeks'
|
|
12872
|
+
}, {
|
|
12873
|
+
code: 'd',
|
|
12874
|
+
unit: 'days'
|
|
12875
|
+
}, {
|
|
12876
|
+
code: 'h',
|
|
12877
|
+
unit: 'hours'
|
|
12878
|
+
}, {
|
|
12879
|
+
code: 'min',
|
|
12880
|
+
unit: 'minutes'
|
|
12881
|
+
}, {
|
|
12882
|
+
code: 's',
|
|
12883
|
+
unit: 'seconds'
|
|
12884
|
+
}, {
|
|
12885
|
+
code: 'ms',
|
|
12886
|
+
unit: 'milliseconds'
|
|
12887
|
+
}];
|
|
12888
|
+
_this45.elementId = 'observationLinkPeriod' + ObservationLinkPeriodComponent.seqNum++;
|
|
12889
|
+
_this45.subscriptions = [];
|
|
12890
|
+
return _this45;
|
|
12891
|
+
}
|
|
12892
|
+
/**
|
|
12893
|
+
* Read extension and initialize properties.
|
|
12894
|
+
*/
|
|
12895
|
+
|
|
12896
|
+
|
|
12897
|
+
_createClass(ObservationLinkPeriodComponent, [{
|
|
12898
|
+
key: "ngAfterViewInit",
|
|
12899
|
+
value: function ngAfterViewInit() {
|
|
12900
|
+
var _this46 = this;
|
|
12901
|
+
|
|
12902
|
+
_get(_getPrototypeOf(ObservationLinkPeriodComponent.prototype), "ngAfterViewInit", this).call(this);
|
|
12903
|
+
|
|
12904
|
+
this.extensionsService.extensionsObservable.subscribe(function () {
|
|
12905
|
+
setTimeout(function () {
|
|
12906
|
+
var ext = _this46.getExtension();
|
|
12907
|
+
|
|
12908
|
+
if (ext) {
|
|
12909
|
+
_this46.showOlp = true;
|
|
12910
|
+
_this46.adjustVAlignClass = '';
|
|
12911
|
+
|
|
12912
|
+
_this46.setUnitIndex(ext);
|
|
12913
|
+
|
|
12914
|
+
_this46.value = '' + ext.valueDuration.value;
|
|
12915
|
+
}
|
|
12916
|
+
});
|
|
12917
|
+
});
|
|
12918
|
+
}
|
|
12919
|
+
/**
|
|
12920
|
+
* Get extension object representing observation link period.
|
|
12921
|
+
*/
|
|
12922
|
+
|
|
12923
|
+
}, {
|
|
12924
|
+
key: "getExtension",
|
|
12925
|
+
value: function getExtension() {
|
|
12926
|
+
var ext = this.extensionsService.getExtensionsByUrl(ObservationLinkPeriodComponent.extUrl);
|
|
12927
|
+
return ext && ext.length > 0 ? ext[0] : null;
|
|
12928
|
+
}
|
|
12929
|
+
/**
|
|
12930
|
+
* Check to see if an item.code is set.
|
|
12931
|
+
*/
|
|
12932
|
+
|
|
12933
|
+
}, {
|
|
12934
|
+
key: "isCodePresent",
|
|
12935
|
+
value: function isCodePresent() {
|
|
12936
|
+
var _a, _b;
|
|
12937
|
+
|
|
12938
|
+
var code = this.formProperty.root.getProperty('code').value;
|
|
12939
|
+
return (code === null || code === void 0 ? void 0 : code.length) > 0 && ((_b = (_a = code[0]) === null || _a === void 0 ? void 0 : _a.code) === null || _b === void 0 ? void 0 : _b.trim().length) > 0;
|
|
12940
|
+
}
|
|
12941
|
+
/**
|
|
12942
|
+
* Set unit index based on the input extension. The unit is read either from code or unit field.
|
|
12943
|
+
* @param extension - fhir.Extension object
|
|
12944
|
+
*/
|
|
12945
|
+
|
|
12946
|
+
}, {
|
|
12947
|
+
key: "setUnitIndex",
|
|
12948
|
+
value: function setUnitIndex(extension) {
|
|
12949
|
+
var _this47 = this;
|
|
12950
|
+
|
|
12951
|
+
var index = -1;
|
|
12952
|
+
var code = extension.valueDuration.code; // Look for either code or unit in that order.
|
|
12953
|
+
|
|
12954
|
+
['code', 'unit'].some(function (field) {
|
|
12955
|
+
var fieldVal = extension.valueDuration[field];
|
|
12956
|
+
|
|
12957
|
+
if (fieldVal) {
|
|
12958
|
+
index = _this47.unitOptions.findIndex(function (opt) {
|
|
12959
|
+
return opt[field] === fieldVal;
|
|
12960
|
+
});
|
|
12961
|
+
}
|
|
12962
|
+
|
|
12963
|
+
return index >= 0;
|
|
12964
|
+
});
|
|
12965
|
+
this.unitIndex = index > 0 ? index : 0;
|
|
12966
|
+
}
|
|
12967
|
+
/**
|
|
12968
|
+
* Use for yes/no.
|
|
12969
|
+
* @param show - Angular event.
|
|
12970
|
+
*/
|
|
12971
|
+
|
|
12972
|
+
}, {
|
|
12973
|
+
key: "onBooleanChange",
|
|
12974
|
+
value: function onBooleanChange(show) {
|
|
12975
|
+
this.showOlp = show;
|
|
12976
|
+
this.adjustVAlignClass = show ? '' : 'd-flex';
|
|
12977
|
+
|
|
12978
|
+
if (show) {
|
|
12979
|
+
this.updateExtension();
|
|
12980
|
+
} else {
|
|
12981
|
+
this.extensionsService.removeExtensionsByUrl(ObservationLinkPeriodComponent.extUrl);
|
|
12982
|
+
}
|
|
12983
|
+
}
|
|
12984
|
+
/**
|
|
12985
|
+
* Use for unit selection.
|
|
12986
|
+
* @param event - Angular event.
|
|
12987
|
+
*/
|
|
12988
|
+
|
|
12989
|
+
}, {
|
|
12990
|
+
key: "onUnitChange",
|
|
12991
|
+
value: function onUnitChange(event) {
|
|
12992
|
+
this.unitIndex = event;
|
|
12993
|
+
this.updateExtension();
|
|
12994
|
+
}
|
|
12995
|
+
/**
|
|
12996
|
+
* Use for input change event
|
|
12997
|
+
* @param event - DOM event
|
|
12998
|
+
*/
|
|
12999
|
+
|
|
13000
|
+
}, {
|
|
13001
|
+
key: "onValueChange",
|
|
13002
|
+
value: function onValueChange(event) {
|
|
13003
|
+
this.value = event.target.value;
|
|
13004
|
+
this.updateExtension();
|
|
13005
|
+
}
|
|
13006
|
+
/**
|
|
13007
|
+
* Update extension in the form property.
|
|
13008
|
+
*/
|
|
13009
|
+
|
|
13010
|
+
}, {
|
|
13011
|
+
key: "updateExtension",
|
|
13012
|
+
value: function updateExtension() {
|
|
13013
|
+
this.reset(this.createExtension(this.value, this.unitOptions[this.unitIndex].code, this.unitOptions[this.unitIndex].unit));
|
|
13014
|
+
}
|
|
13015
|
+
/**
|
|
13016
|
+
* Set the extension if the input has a value, otherwise remove if exists.
|
|
13017
|
+
* @param ext - fhir.Extension object representing observation link period.
|
|
13018
|
+
*/
|
|
13019
|
+
|
|
13020
|
+
}, {
|
|
13021
|
+
key: "reset",
|
|
13022
|
+
value: function reset(ext) {
|
|
13023
|
+
var _a;
|
|
13024
|
+
|
|
13025
|
+
if ((_a = ext === null || ext === void 0 ? void 0 : ext.valueDuration) === null || _a === void 0 ? void 0 : _a.value) {
|
|
13026
|
+
this.extensionsService.resetExtension(ObservationLinkPeriodComponent.extUrl, ext, 'valueDuration', false);
|
|
13027
|
+
} else {
|
|
13028
|
+
this.extensionsService.removeExtensionsByUrl(ext.url);
|
|
13029
|
+
}
|
|
13030
|
+
}
|
|
13031
|
+
/**
|
|
13032
|
+
* Create observation link period extension object
|
|
13033
|
+
*
|
|
13034
|
+
* @param value - value in valueDuration.
|
|
13035
|
+
* @param unitCode - UCUM unit code in valueDuration.
|
|
13036
|
+
* @param unitText - unit text in valueDuration.
|
|
13037
|
+
*/
|
|
13038
|
+
|
|
13039
|
+
}, {
|
|
13040
|
+
key: "createExtension",
|
|
13041
|
+
value: function createExtension(value, unitCode, unitText) {
|
|
13042
|
+
var ret = {
|
|
13043
|
+
url: ObservationLinkPeriodComponent.extUrl,
|
|
13044
|
+
valueDuration: {
|
|
13045
|
+
value: parseFloat(value)
|
|
13046
|
+
}
|
|
13047
|
+
};
|
|
13048
|
+
ret.valueDuration.system = _units_units_component__WEBPACK_IMPORTED_MODULE_0__["UnitsComponent"].ucumSystemUrl;
|
|
13049
|
+
|
|
13050
|
+
if (unitCode) {
|
|
13051
|
+
ret.valueDuration.code = unitCode;
|
|
13052
|
+
}
|
|
13053
|
+
|
|
13054
|
+
if (unitText) {
|
|
13055
|
+
ret.valueDuration.unit = unitText;
|
|
13056
|
+
}
|
|
13057
|
+
|
|
13058
|
+
return ret;
|
|
13059
|
+
}
|
|
13060
|
+
}]);
|
|
13061
|
+
|
|
13062
|
+
return ObservationLinkPeriodComponent;
|
|
13063
|
+
}(_string_string_component__WEBPACK_IMPORTED_MODULE_1__["StringComponent"]);
|
|
13064
|
+
|
|
13065
|
+
ObservationLinkPeriodComponent.extUrl = 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-observationLinkPeriod';
|
|
13066
|
+
ObservationLinkPeriodComponent.seqNum = 0;
|
|
13067
|
+
|
|
13068
|
+
ObservationLinkPeriodComponent.ɵfac = function ObservationLinkPeriodComponent_Factory(t) {
|
|
13069
|
+
return new (t || ObservationLinkPeriodComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_extensions_service__WEBPACK_IMPORTED_MODULE_3__["ExtensionsService"]));
|
|
13070
|
+
};
|
|
13071
|
+
|
|
13072
|
+
ObservationLinkPeriodComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
|
|
13073
|
+
type: ObservationLinkPeriodComponent,
|
|
13074
|
+
selectors: [["lfb-observation-link-period"]],
|
|
13075
|
+
features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
|
|
13076
|
+
decls: 8,
|
|
13077
|
+
vars: 13,
|
|
13078
|
+
consts: [[3, "ngClass"], [3, "for", "title", "helpMessage", "ngClass", 4, "ngIf"], ["ngbRadioGroup", "", 1, "btn-group", "form-check-inline", "btn-group-sm", "btn-group-toggle", 3, "ngModel", "ngModelChange"], ["class", "radio", 4, "ngFor", "ngForOf"], [4, "ngIf"], ["warning", ""], [3, "for", "title", "helpMessage", "ngClass"], [1, "radio"], ["ngbButtonLabel", "", 1, "btn-outline-success", "m-auto"], ["ngbButton", "", "type", "radio", 3, "value"], ["class", "row mt-1 ml-auto mr-auto", 4, "ngIf", "ngIfElse"], [1, "row", "mt-1", "ml-auto", "mr-auto"], ["role", "region", "aria-live", "polite", 1, "input-group", "input-group-sm"], [1, "input-group-prepend"], [1, "input-group-text"], ["autocomplete", "off", "type", "number", "placeholder", "", 1, "form-control", 3, "ngModel", "change"], [1, "input-group-append"], ["aria-label", "Time window units", 1, "form-control", "lfb-select-append", 3, "ngModel", "ngModelChange"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["role", "alert", 1, "alert", "alert-warning", "mt-1"]],
|
|
13079
|
+
template: function ObservationLinkPeriodComponent_Template(rf, ctx) {
|
|
13080
|
+
if (rf & 1) {
|
|
13081
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
|
|
13082
|
+
|
|
13083
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ObservationLinkPeriodComponent_lfb_label_1_Template, 1, 4, "lfb-label", 1);
|
|
13084
|
+
|
|
13085
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div");
|
|
13086
|
+
|
|
13087
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 2);
|
|
13088
|
+
|
|
13089
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function ObservationLinkPeriodComponent_Template_div_ngModelChange_3_listener($event) {
|
|
13090
|
+
return ctx.onBooleanChange($event);
|
|
13091
|
+
});
|
|
13092
|
+
|
|
13093
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ObservationLinkPeriodComponent_ng_container_4_Template, 4, 5, "ng-container", 3);
|
|
13094
|
+
|
|
13095
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
13096
|
+
|
|
13097
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, ObservationLinkPeriodComponent_div_5_Template, 2, 2, "div", 4);
|
|
13098
|
+
|
|
13099
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, ObservationLinkPeriodComponent_ng_template_6_Template, 2, 0, "ng-template", null, 5, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
|
|
13100
|
+
|
|
13101
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
13102
|
+
|
|
13103
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
13104
|
+
}
|
|
13105
|
+
|
|
13106
|
+
if (rf & 2) {
|
|
13107
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](10, _c0, ctx.labelPosition === "left"));
|
|
13108
|
+
|
|
13109
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
13110
|
+
|
|
13111
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.nolabel);
|
|
13112
|
+
|
|
13113
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
13114
|
+
|
|
13115
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate2"]("", ctx.controlWidthClass, " p-0 ", ctx.adjustVAlignClass, "");
|
|
13116
|
+
|
|
13117
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
13118
|
+
|
|
13119
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.showOlp);
|
|
13120
|
+
|
|
13121
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("name", ctx.name);
|
|
13122
|
+
|
|
13123
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
13124
|
+
|
|
13125
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](12, _c1));
|
|
13126
|
+
|
|
13127
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
13128
|
+
|
|
13129
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.showOlp);
|
|
13130
|
+
}
|
|
13131
|
+
},
|
|
13132
|
+
directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbRadioGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgForOf"], _label_label_component__WEBPACK_IMPORTED_MODULE_7__["LabelComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbButtonLabel"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbRadio"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵangular_packages_forms_forms_z"]],
|
|
13133
|
+
styles: [".lfb-select-append[_ngcontent-%COMP%] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n height: auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9ic2VydmF0aW9uLWxpbmstcGVyaW9kLmNvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBeUI7RUFDekIsNEJBQTRCO0VBQzVCLFlBQVk7QUFDZCIsImZpbGUiOiJvYnNlcnZhdGlvbi1saW5rLXBlcmlvZC5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmxmYi1zZWxlY3QtYXBwZW5kIHtcbiAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogMDtcbiAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMDtcbiAgaGVpZ2h0OiBhdXRvO1xufVxuIl19 */"]
|
|
13134
|
+
});
|
|
13135
|
+
/***/
|
|
13136
|
+
},
|
|
13137
|
+
|
|
13138
|
+
/***/
|
|
13139
|
+
"fECr":
|
|
13140
|
+
/*!********************************************!*\
|
|
13141
|
+
!*** ./src/app/header/header.component.ts ***!
|
|
13142
|
+
\********************************************/
|
|
13143
|
+
|
|
13144
|
+
/*! exports provided: HeaderComponent */
|
|
13145
|
+
|
|
13146
|
+
/***/
|
|
13147
|
+
function fECr(module, __webpack_exports__, __webpack_require__) {
|
|
13148
|
+
"use strict";
|
|
13149
|
+
|
|
13150
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13151
|
+
/* harmony export (binding) */
|
|
13152
|
+
|
|
13153
|
+
|
|
13154
|
+
__webpack_require__.d(__webpack_exports__, "HeaderComponent", function () {
|
|
13155
|
+
return HeaderComponent;
|
|
13156
|
+
});
|
|
13157
|
+
/* harmony import */
|
|
13158
|
+
|
|
13159
|
+
|
|
13160
|
+
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
13161
|
+
/*! @angular/core */
|
|
13162
|
+
"8Y7J");
|
|
13163
|
+
/* harmony import */
|
|
13164
|
+
|
|
13165
|
+
|
|
13166
|
+
var _services_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
13167
|
+
/*! ../services/login.service */
|
|
13168
|
+
"EFyh");
|
|
13169
|
+
/* harmony import */
|
|
13170
|
+
|
|
13171
|
+
|
|
13172
|
+
var _angular_material_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
13173
|
+
/*! @angular/material/icon */
|
|
13174
|
+
"Tj54");
|
|
13175
|
+
/* harmony import */
|
|
13176
|
+
|
|
13177
|
+
|
|
13178
|
+
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
13179
|
+
/*! @angular/platform-browser */
|
|
13180
|
+
"cUpR");
|
|
13181
|
+
/* harmony import */
|
|
13182
|
+
|
|
13183
|
+
|
|
13184
|
+
var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
13185
|
+
/*! @angular/material/toolbar */
|
|
13186
|
+
"l0rg");
|
|
13187
|
+
/* harmony import */
|
|
13188
|
+
|
|
13189
|
+
|
|
13190
|
+
var _angular_material_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
13191
|
+
/*! @angular/material/button */
|
|
13192
|
+
"Dxy4");
|
|
13193
|
+
/* harmony import */
|
|
13194
|
+
|
|
13195
|
+
|
|
13196
|
+
var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
13197
|
+
/*! @angular/common */
|
|
13198
|
+
"SVse");
|
|
13199
|
+
/* harmony import */
|
|
13200
|
+
|
|
13201
|
+
|
|
13202
|
+
var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
13203
|
+
/*! @angular/material/tooltip */
|
|
13204
|
+
"ZFy/");
|
|
13205
|
+
/* harmony import */
|
|
13206
|
+
|
|
13207
|
+
|
|
13208
|
+
var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
13209
|
+
/*! @ng-bootstrap/ng-bootstrap */
|
|
13210
|
+
"G0yt");
|
|
13211
|
+
|
|
13212
|
+
function HeaderComponent_div_5_div_1_Template(rf, ctx) {
|
|
13213
|
+
if (rf & 1) {
|
|
13214
|
+
var _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
|
|
13215
|
+
|
|
13216
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
|
|
13217
|
+
|
|
13218
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 7);
|
|
13219
|
+
|
|
13220
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function HeaderComponent_div_5_div_1_Template_button_click_1_listener() {
|
|
13221
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5);
|
|
13222
|
+
|
|
13223
|
+
var ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
|
|
13224
|
+
|
|
13225
|
+
return ctx_r4.showSignInDialog();
|
|
13226
|
+
});
|
|
13227
|
+
|
|
13228
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 8);
|
|
13229
|
+
|
|
13230
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Sign in");
|
|
13231
|
+
|
|
13232
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13233
|
+
|
|
13234
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13235
|
+
|
|
13236
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13237
|
+
}
|
|
13238
|
+
}
|
|
13239
|
+
|
|
13240
|
+
function HeaderComponent_div_5_div_2_Template(rf, ctx) {
|
|
13241
|
+
if (rf & 1) {
|
|
13242
|
+
var _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
|
|
13243
|
+
|
|
13244
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
|
|
13245
|
+
|
|
13246
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
|
|
13247
|
+
|
|
13248
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
|
|
13249
|
+
|
|
13250
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13251
|
+
|
|
13252
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 7);
|
|
13253
|
+
|
|
13254
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function HeaderComponent_div_5_div_2_Template_button_click_3_listener() {
|
|
13255
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7);
|
|
13256
|
+
|
|
13257
|
+
var ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
|
|
13258
|
+
|
|
13259
|
+
return ctx_r6.signOut();
|
|
13260
|
+
});
|
|
13261
|
+
|
|
13262
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 9);
|
|
13263
|
+
|
|
13264
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Sign out");
|
|
13265
|
+
|
|
13266
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13267
|
+
|
|
13268
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13269
|
+
|
|
13270
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13271
|
+
}
|
|
13272
|
+
|
|
13273
|
+
if (rf & 2) {
|
|
13274
|
+
var ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
|
|
13275
|
+
|
|
13276
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
|
|
13277
|
+
|
|
13278
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.userProfile.displayName);
|
|
13279
|
+
|
|
13280
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
|
|
13281
|
+
|
|
13282
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbTooltip", ctx_r2.userProfile.displayName + ctx_r2.userProfile.email ? " : " + ctx_r2.userProfile.email : "");
|
|
13283
|
+
}
|
|
13284
|
+
}
|
|
13285
|
+
|
|
13286
|
+
function HeaderComponent_div_5_div_3_Template(rf, ctx) {
|
|
13287
|
+
if (rf & 1) {
|
|
13288
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
|
|
13289
|
+
|
|
13290
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
|
|
13291
|
+
|
|
13292
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13293
|
+
}
|
|
13294
|
+
|
|
13295
|
+
if (rf & 2) {
|
|
13296
|
+
var ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
|
|
13297
|
+
|
|
13298
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
13299
|
+
|
|
13300
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r3.loginError.message);
|
|
13301
|
+
}
|
|
13302
|
+
}
|
|
13303
|
+
|
|
13304
|
+
function HeaderComponent_div_5_Template(rf, ctx) {
|
|
13305
|
+
if (rf & 1) {
|
|
13306
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 5);
|
|
13307
|
+
|
|
13308
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, HeaderComponent_div_5_div_1_Template, 4, 0, "div", 6);
|
|
13309
|
+
|
|
13310
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, HeaderComponent_div_5_div_2_Template, 6, 2, "div", 6);
|
|
13311
|
+
|
|
13312
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, HeaderComponent_div_5_div_3_Template, 2, 1, "div", 6);
|
|
13313
|
+
|
|
13314
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
13315
|
+
}
|
|
13316
|
+
|
|
13317
|
+
if (rf & 2) {
|
|
13318
|
+
var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
|
|
13319
|
+
|
|
13320
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
13321
|
+
|
|
13322
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.isUserSignedIn);
|
|
13323
|
+
|
|
13324
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
13325
|
+
|
|
13326
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.isUserSignedIn);
|
|
13327
|
+
|
|
13328
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
13329
|
+
|
|
13330
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.loginError);
|
|
13331
|
+
}
|
|
13332
|
+
}
|
|
13333
|
+
|
|
13334
|
+
var HeaderComponent = /*#__PURE__*/function () {
|
|
13335
|
+
function HeaderComponent(loginService, iconRegistry, sanitizer) {
|
|
13336
|
+
_classCallCheck(this, HeaderComponent);
|
|
13337
|
+
|
|
13338
|
+
this.loginService = loginService;
|
|
13339
|
+
this.iconRegistry = iconRegistry;
|
|
13340
|
+
this.sanitizer = sanitizer;
|
|
13341
|
+
this.userProfile = {};
|
|
13342
|
+
this.isUserSignedIn = false;
|
|
13343
|
+
this.isFirebaseEnabled = false;
|
|
13344
|
+
this.loginError = null; // Register our icon(s)
|
|
13345
|
+
|
|
13346
|
+
this.iconRegistry.addSvgIcon('home', this.sanitizer.bypassSecurityTrustResourceUrl('../../assets/images/lhncbc.svg'));
|
|
13347
|
+
}
|
|
13348
|
+
/**
|
|
13349
|
+
* Initialize login service
|
|
13350
|
+
*/
|
|
13351
|
+
|
|
13352
|
+
|
|
13353
|
+
_createClass(HeaderComponent, [{
|
|
13354
|
+
key: "ngOnInit",
|
|
13355
|
+
value: function ngOnInit() {
|
|
13356
|
+
var _this48 = this;
|
|
13357
|
+
|
|
13358
|
+
this.loginService.service().subscribe(function (loginEvent) {
|
|
13359
|
+
if (loginEvent.event === 'signedIn') {
|
|
13360
|
+
_this48.userProfile = loginEvent.userProfile;
|
|
13361
|
+
_this48.isUserSignedIn = true;
|
|
13362
|
+
} else if (loginEvent.event === 'signedOut') {
|
|
13363
|
+
_this48.userProfile = {};
|
|
13364
|
+
_this48.isUserSignedIn = false;
|
|
13365
|
+
}
|
|
13366
|
+
});
|
|
13367
|
+
}
|
|
13368
|
+
/**
|
|
12772
13369
|
* Logout
|
|
12773
13370
|
*/
|
|
12774
13371
|
|
|
@@ -12979,7 +13576,7 @@
|
|
|
12979
13576
|
_createClass(AutoCompleteComponent, [{
|
|
12980
13577
|
key: "ngOnInit",
|
|
12981
13578
|
value: function ngOnInit() {
|
|
12982
|
-
var
|
|
13579
|
+
var _this49 = this;
|
|
12983
13580
|
|
|
12984
13581
|
if (!this.options.httpOptions.observe) {
|
|
12985
13582
|
this.options.httpOptions.observe = 'body';
|
|
@@ -12995,7 +13592,7 @@
|
|
|
12995
13592
|
Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(100), // Wait for 100 millis of typing delays
|
|
12996
13593
|
Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), // Input should be changed
|
|
12997
13594
|
Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["switchMap"])(function (value) {
|
|
12998
|
-
return
|
|
13595
|
+
return _this49._search(value);
|
|
12999
13596
|
}) // Final search term
|
|
13000
13597
|
);
|
|
13001
13598
|
}
|
|
@@ -13028,7 +13625,7 @@
|
|
|
13028
13625
|
}, {
|
|
13029
13626
|
key: "_search",
|
|
13030
13627
|
value: function _search(value) {
|
|
13031
|
-
return this.searchCallback(value);
|
|
13628
|
+
return this.searchCallback(value);
|
|
13032
13629
|
}
|
|
13033
13630
|
}]);
|
|
13034
13631
|
|
|
@@ -13989,20 +14586,20 @@
|
|
|
13989
14586
|
var SelectComponent = /*#__PURE__*/function (_lfb_control_widget_l4) {
|
|
13990
14587
|
_inherits(SelectComponent, _lfb_control_widget_l4);
|
|
13991
14588
|
|
|
13992
|
-
var
|
|
14589
|
+
var _super22 = _createSuper(SelectComponent);
|
|
13993
14590
|
|
|
13994
14591
|
function SelectComponent() {
|
|
13995
|
-
var
|
|
14592
|
+
var _this50;
|
|
13996
14593
|
|
|
13997
14594
|
_classCallCheck(this, SelectComponent);
|
|
13998
14595
|
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14596
|
+
_this50 = _super22.apply(this, arguments);
|
|
14597
|
+
_this50.faInfo = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_0__["faInfoCircle"];
|
|
14598
|
+
_this50.nolabel = false; // A mapping for options display string. Typically, the display strings are from schema definition.
|
|
14002
14599
|
// This map helps to redefine the display string.
|
|
14003
14600
|
|
|
14004
|
-
|
|
14005
|
-
return
|
|
14601
|
+
_this50.selectOptionsMap = {};
|
|
14602
|
+
return _this50;
|
|
14006
14603
|
}
|
|
14007
14604
|
/**
|
|
14008
14605
|
* Initialize component, mainly the options list.
|
|
@@ -14012,16 +14609,16 @@
|
|
|
14012
14609
|
_createClass(SelectComponent, [{
|
|
14013
14610
|
key: "ngAfterViewInit",
|
|
14014
14611
|
value: function ngAfterViewInit() {
|
|
14015
|
-
var
|
|
14612
|
+
var _this51 = this;
|
|
14016
14613
|
|
|
14017
14614
|
_get(_getPrototypeOf(SelectComponent.prototype), "ngAfterViewInit", this).call(this);
|
|
14018
14615
|
|
|
14019
14616
|
this.selectOptionsMap = this.schema.widget.selectOptionsMap || {};
|
|
14020
14617
|
var allowedOptions = this.schema["enum"].map(function (e) {
|
|
14021
|
-
return
|
|
14618
|
+
return _this51.mapOption(e);
|
|
14022
14619
|
});
|
|
14023
14620
|
this.allowedOptions = allowedOptions.filter(function (e) {
|
|
14024
|
-
return
|
|
14621
|
+
return _this51.isIncluded(e.value);
|
|
14025
14622
|
});
|
|
14026
14623
|
}
|
|
14027
14624
|
/**
|
|
@@ -14131,17 +14728,17 @@
|
|
|
14131
14728
|
var ElementChooserComponent = /*#__PURE__*/function (_ngx_schema_form__WEB8) {
|
|
14132
14729
|
_inherits(ElementChooserComponent, _ngx_schema_form__WEB8);
|
|
14133
14730
|
|
|
14134
|
-
var
|
|
14731
|
+
var _super23 = _createSuper(ElementChooserComponent);
|
|
14135
14732
|
|
|
14136
14733
|
function ElementChooserComponent() {
|
|
14137
|
-
var
|
|
14734
|
+
var _this52;
|
|
14138
14735
|
|
|
14139
14736
|
_classCallCheck(this, ElementChooserComponent);
|
|
14140
14737
|
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
return
|
|
14738
|
+
_this52 = _super23.apply(this, arguments);
|
|
14739
|
+
_this52.nolabel = true;
|
|
14740
|
+
_this52.booleanControlled = false;
|
|
14741
|
+
return _this52;
|
|
14145
14742
|
}
|
|
14146
14743
|
|
|
14147
14744
|
return ElementChooserComponent;
|
|
@@ -14376,19 +14973,19 @@
|
|
|
14376
14973
|
var EnableBehaviorComponent = /*#__PURE__*/function (_lfb_control_widget_l5) {
|
|
14377
14974
|
_inherits(EnableBehaviorComponent, _lfb_control_widget_l5);
|
|
14378
14975
|
|
|
14379
|
-
var
|
|
14976
|
+
var _super24 = _createSuper(EnableBehaviorComponent);
|
|
14380
14977
|
|
|
14381
14978
|
function EnableBehaviorComponent() {
|
|
14382
|
-
var
|
|
14979
|
+
var _this53;
|
|
14383
14980
|
|
|
14384
14981
|
_classCallCheck(this, EnableBehaviorComponent);
|
|
14385
14982
|
|
|
14386
|
-
|
|
14387
|
-
|
|
14983
|
+
_this53 = _super24.apply(this, arguments);
|
|
14984
|
+
_this53.displayTexts = {
|
|
14388
14985
|
all: 'All conditions are true',
|
|
14389
14986
|
any: 'Any condition is true'
|
|
14390
14987
|
};
|
|
14391
|
-
return
|
|
14988
|
+
return _this53;
|
|
14392
14989
|
}
|
|
14393
14990
|
|
|
14394
14991
|
return EnableBehaviorComponent;
|
|
@@ -14708,12 +15305,12 @@
|
|
|
14708
15305
|
var RadioComponent = /*#__PURE__*/function (_ngx_schema_form__WEB9) {
|
|
14709
15306
|
_inherits(RadioComponent, _ngx_schema_form__WEB9);
|
|
14710
15307
|
|
|
14711
|
-
var
|
|
15308
|
+
var _super25 = _createSuper(RadioComponent);
|
|
14712
15309
|
|
|
14713
15310
|
function RadioComponent() {
|
|
14714
15311
|
_classCallCheck(this, RadioComponent);
|
|
14715
15312
|
|
|
14716
|
-
return
|
|
15313
|
+
return _super25.apply(this, arguments);
|
|
14717
15314
|
}
|
|
14718
15315
|
|
|
14719
15316
|
return RadioComponent;
|
|
@@ -14936,12 +15533,12 @@
|
|
|
14936
15533
|
var BooleanRadioComponent = /*#__PURE__*/function (_lfb_control_widget_l6) {
|
|
14937
15534
|
_inherits(BooleanRadioComponent, _lfb_control_widget_l6);
|
|
14938
15535
|
|
|
14939
|
-
var
|
|
15536
|
+
var _super26 = _createSuper(BooleanRadioComponent);
|
|
14940
15537
|
|
|
14941
15538
|
function BooleanRadioComponent() {
|
|
14942
15539
|
_classCallCheck(this, BooleanRadioComponent);
|
|
14943
15540
|
|
|
14944
|
-
return
|
|
15541
|
+
return _super26.apply(this, arguments);
|
|
14945
15542
|
}
|
|
14946
15543
|
|
|
14947
15544
|
_createClass(BooleanRadioComponent, [{
|
|
@@ -15702,16 +16299,16 @@
|
|
|
15702
16299
|
var RowLayoutComponent = /*#__PURE__*/function (_grid_component_grid_2) {
|
|
15703
16300
|
_inherits(RowLayoutComponent, _grid_component_grid_2);
|
|
15704
16301
|
|
|
15705
|
-
var
|
|
16302
|
+
var _super27 = _createSuper(RowLayoutComponent);
|
|
15706
16303
|
|
|
15707
16304
|
function RowLayoutComponent() {
|
|
15708
|
-
var
|
|
16305
|
+
var _this54;
|
|
15709
16306
|
|
|
15710
16307
|
_classCallCheck(this, RowLayoutComponent);
|
|
15711
16308
|
|
|
15712
|
-
|
|
15713
|
-
|
|
15714
|
-
return
|
|
16309
|
+
_this54 = _super27.apply(this, arguments);
|
|
16310
|
+
_this54.rows = [];
|
|
16311
|
+
return _this54;
|
|
15715
16312
|
}
|
|
15716
16313
|
/**
|
|
15717
16314
|
* Initialize
|
|
@@ -15839,7 +16436,7 @@
|
|
|
15839
16436
|
_createClass(ItemJsonEditorComponent, [{
|
|
15840
16437
|
key: "ngAfterViewInit",
|
|
15841
16438
|
value: function ngAfterViewInit() {
|
|
15842
|
-
var
|
|
16439
|
+
var _this55 = this;
|
|
15843
16440
|
|
|
15844
16441
|
ace_builds__WEBPACK_IMPORTED_MODULE_0__["config"].set('fontSize', '14px');
|
|
15845
16442
|
ace_builds__WEBPACK_IMPORTED_MODULE_0__["config"].set('basePath', 'https://unpkg.com/ace-builds@1.4.12/src-noconflict');
|
|
@@ -15849,17 +16446,17 @@
|
|
|
15849
16446
|
aceEditor.on('change', function () {
|
|
15850
16447
|
var val = aceEditor.getValue();
|
|
15851
16448
|
|
|
15852
|
-
if (val !==
|
|
15853
|
-
|
|
16449
|
+
if (val !== _this55.val) {
|
|
16450
|
+
_this55.val = val;
|
|
15854
16451
|
|
|
15855
|
-
|
|
16452
|
+
_this55.itemSrv.setObject(_this55.val);
|
|
15856
16453
|
}
|
|
15857
16454
|
}); // Update this editor's content with any update to the item from outside.
|
|
15858
16455
|
|
|
15859
16456
|
this.itemSrv.currentItem$.subscribe(function (item) {
|
|
15860
|
-
if (item !==
|
|
15861
|
-
|
|
15862
|
-
aceEditor.setValue(new _pipes_app_json_pipe__WEBPACK_IMPORTED_MODULE_1__["AppJsonPipe"]().transform(
|
|
16457
|
+
if (item !== _this55.val) {
|
|
16458
|
+
_this55.val = item;
|
|
16459
|
+
aceEditor.setValue(new _pipes_app_json_pipe__WEBPACK_IMPORTED_MODULE_1__["AppJsonPipe"]().transform(_this55.val));
|
|
15863
16460
|
}
|
|
15864
16461
|
});
|
|
15865
16462
|
}
|
|
@@ -16028,7 +16625,7 @@
|
|
|
16028
16625
|
}, {
|
|
16029
16626
|
key: "validateFHIRUrl",
|
|
16030
16627
|
value: function validateFHIRUrl(baseUrl) {
|
|
16031
|
-
var
|
|
16628
|
+
var _this56 = this;
|
|
16032
16629
|
|
|
16033
16630
|
this.message = null;
|
|
16034
16631
|
this.errorMessage = null;
|
|
@@ -16059,7 +16656,7 @@
|
|
|
16059
16656
|
var ver = null;
|
|
16060
16657
|
|
|
16061
16658
|
if (resp.status !== 200) {
|
|
16062
|
-
|
|
16659
|
+
_this56.errorMessage = resp.statusText;
|
|
16063
16660
|
return;
|
|
16064
16661
|
}
|
|
16065
16662
|
|
|
@@ -16075,21 +16672,21 @@
|
|
|
16075
16672
|
|
|
16076
16673
|
if (ver) {
|
|
16077
16674
|
var newServerObj = {
|
|
16078
|
-
id:
|
|
16675
|
+
id: _this56.fhirService.fhirServerList.length + 1,
|
|
16079
16676
|
endpoint: ((_a = body.implementation) === null || _a === void 0 ? void 0 : _a.url) || baseUrl,
|
|
16080
16677
|
desc: ((_b = body.implementation) === null || _b === void 0 ? void 0 : _b.description) || '',
|
|
16081
16678
|
version: ver
|
|
16082
16679
|
}; // Remove any trailing slashes.
|
|
16083
16680
|
|
|
16084
16681
|
newServerObj.endpoint = newServerObj.endpoint.replace(/\/+$/, '');
|
|
16085
|
-
|
|
16086
|
-
|
|
16682
|
+
_this56.message = "".concat(baseUrl, " was verified to be a FHIR server.");
|
|
16683
|
+
_this56.newServerObj = newServerObj;
|
|
16087
16684
|
} else {
|
|
16088
|
-
|
|
16685
|
+
_this56.errorMessage = "".concat(baseUrl, " returned an unsupported FHIR version: ").concat(body.fhirVersion);
|
|
16089
16686
|
}
|
|
16090
16687
|
}, function (error) {
|
|
16091
16688
|
console.error(error.message);
|
|
16092
|
-
|
|
16689
|
+
_this56.errorMessage = 'Unable to confirm that that URL is a FHIR server.';
|
|
16093
16690
|
});
|
|
16094
16691
|
}
|
|
16095
16692
|
}]);
|
|
@@ -16423,7 +17020,7 @@
|
|
|
16423
17020
|
var EnableWhenSourceComponent = /*#__PURE__*/function (_ngx_schema_form__WEB10) {
|
|
16424
17021
|
_inherits(EnableWhenSourceComponent, _ngx_schema_form__WEB10);
|
|
16425
17022
|
|
|
16426
|
-
var
|
|
17023
|
+
var _super28 = _createSuper(EnableWhenSourceComponent);
|
|
16427
17024
|
|
|
16428
17025
|
/**
|
|
16429
17026
|
* Invoke super class constructor.
|
|
@@ -16431,39 +17028,39 @@
|
|
|
16431
17028
|
* @param formService - Service to help with collection of sources
|
|
16432
17029
|
*/
|
|
16433
17030
|
function EnableWhenSourceComponent(formService) {
|
|
16434
|
-
var
|
|
17031
|
+
var _this57;
|
|
16435
17032
|
|
|
16436
17033
|
_classCallCheck(this, EnableWhenSourceComponent);
|
|
16437
17034
|
|
|
16438
|
-
|
|
16439
|
-
|
|
17035
|
+
_this57 = _super28.call(this);
|
|
17036
|
+
_this57.formService = formService; // Info icon.
|
|
16440
17037
|
|
|
16441
|
-
|
|
16442
|
-
|
|
16443
|
-
|
|
16444
|
-
|
|
17038
|
+
_this57.faInfo = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faInfoCircle"];
|
|
17039
|
+
_this57.nolabel = false;
|
|
17040
|
+
_this57.focus$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
|
|
17041
|
+
_this57.click$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
|
|
16445
17042
|
/**
|
|
16446
17043
|
* Search through text of the source items, with input string. For empty term, show all items.
|
|
16447
17044
|
*
|
|
16448
17045
|
* @param input$ - Observation for input string.
|
|
16449
17046
|
*/
|
|
16450
17047
|
|
|
16451
|
-
|
|
17048
|
+
_this57.search = function (input$) {
|
|
16452
17049
|
var debouncedText$ = input$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["debounceTime"])(100), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["distinctUntilChanged"])());
|
|
16453
17050
|
|
|
16454
|
-
var clicksWithClosedPopup$ =
|
|
16455
|
-
return !
|
|
17051
|
+
var clicksWithClosedPopup$ = _this57.click$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["filter"])(function () {
|
|
17052
|
+
return !_this57.instance.isPopupOpen();
|
|
16456
17053
|
}));
|
|
16457
17054
|
|
|
16458
|
-
var inputFocus$ =
|
|
17055
|
+
var inputFocus$ = _this57.focus$;
|
|
16459
17056
|
return Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["merge"])(debouncedText$, inputFocus$, clicksWithClosedPopup$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])(function (term) {
|
|
16460
|
-
return term === '' ?
|
|
17057
|
+
return term === '' ? _this57.sources : _this57.sources.filter(function (el) {
|
|
16461
17058
|
return el.data.text.toLowerCase().indexOf(term.toLowerCase()) > -1;
|
|
16462
17059
|
});
|
|
16463
17060
|
}));
|
|
16464
17061
|
};
|
|
16465
17062
|
|
|
16466
|
-
return
|
|
17063
|
+
return _this57;
|
|
16467
17064
|
}
|
|
16468
17065
|
/**
|
|
16469
17066
|
* Initialize the component
|
|
@@ -16852,6 +17449,291 @@
|
|
|
16852
17449
|
/***/
|
|
16853
17450
|
},
|
|
16854
17451
|
|
|
17452
|
+
/***/
|
|
17453
|
+
"sFzh":
|
|
17454
|
+
/*!************************************************!*\
|
|
17455
|
+
!*** ./src/app/services/extensions.service.ts ***!
|
|
17456
|
+
\************************************************/
|
|
17457
|
+
|
|
17458
|
+
/*! exports provided: ExtensionsService */
|
|
17459
|
+
|
|
17460
|
+
/***/
|
|
17461
|
+
function sFzh(module, __webpack_exports__, __webpack_require__) {
|
|
17462
|
+
"use strict";
|
|
17463
|
+
|
|
17464
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17465
|
+
/* harmony export (binding) */
|
|
17466
|
+
|
|
17467
|
+
|
|
17468
|
+
__webpack_require__.d(__webpack_exports__, "ExtensionsService", function () {
|
|
17469
|
+
return ExtensionsService;
|
|
17470
|
+
});
|
|
17471
|
+
/* harmony import */
|
|
17472
|
+
|
|
17473
|
+
|
|
17474
|
+
var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17475
|
+
/*! rxjs */
|
|
17476
|
+
"qCKp");
|
|
17477
|
+
/* harmony import */
|
|
17478
|
+
|
|
17479
|
+
|
|
17480
|
+
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
17481
|
+
/*! @angular/core */
|
|
17482
|
+
"8Y7J");
|
|
17483
|
+
/**
|
|
17484
|
+
* This class is intended for components which needs to interact with extension field.
|
|
17485
|
+
* The service is instantiated along with sf-form. The host component instantiating sf-form,
|
|
17486
|
+
* should instantiate this service. Also make sure to get fresh reference
|
|
17487
|
+
* to extension: ArrayProperty whenever the model has changed, typically in ngOnChanges().
|
|
17488
|
+
*/
|
|
17489
|
+
// @ts-ignore
|
|
17490
|
+
|
|
17491
|
+
|
|
17492
|
+
var ExtensionsService = /*#__PURE__*/function () {
|
|
17493
|
+
function ExtensionsService() {
|
|
17494
|
+
_classCallCheck(this, ExtensionsService);
|
|
17495
|
+
|
|
17496
|
+
this._propertyMap = new Map();
|
|
17497
|
+
this._extMap = new Map();
|
|
17498
|
+
this.subscriptions = [];
|
|
17499
|
+
this.extensionsChange$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
|
|
17500
|
+
}
|
|
17501
|
+
/**
|
|
17502
|
+
* Set extensions ArrayProperty. This is the form property obtained
|
|
17503
|
+
* from form.rootProperty.get('extension'). It should be set any time the form's model is changed.
|
|
17504
|
+
*
|
|
17505
|
+
* @param extensions - ArrayProperty of 'extension' field.
|
|
17506
|
+
*/
|
|
17507
|
+
|
|
17508
|
+
|
|
17509
|
+
_createClass(ExtensionsService, [{
|
|
17510
|
+
key: "setExtensions",
|
|
17511
|
+
value: function setExtensions(extensions) {
|
|
17512
|
+
var _this58 = this;
|
|
17513
|
+
|
|
17514
|
+
this.subscriptions.forEach(function (s) {
|
|
17515
|
+
s.unsubscribe();
|
|
17516
|
+
});
|
|
17517
|
+
this.subscriptions = [];
|
|
17518
|
+
this.extensionsProp = extensions;
|
|
17519
|
+
var sub = this.extensionsProp.valueChanges.subscribe(function (vals) {
|
|
17520
|
+
_this58.updateMaps();
|
|
17521
|
+
|
|
17522
|
+
_this58.extensionsChange$.next(vals);
|
|
17523
|
+
});
|
|
17524
|
+
this.subscriptions.push(sub);
|
|
17525
|
+
}
|
|
17526
|
+
/**
|
|
17527
|
+
* Access observable to subscribe for notifications on changes.
|
|
17528
|
+
*/
|
|
17529
|
+
|
|
17530
|
+
}, {
|
|
17531
|
+
key: "extensionsObservable",
|
|
17532
|
+
get: function get() {
|
|
17533
|
+
return this.extensionsChange$.asObservable();
|
|
17534
|
+
}
|
|
17535
|
+
/**
|
|
17536
|
+
* Group the extensions by their url.
|
|
17537
|
+
*/
|
|
17538
|
+
|
|
17539
|
+
}, {
|
|
17540
|
+
key: "updateMaps",
|
|
17541
|
+
value: function updateMaps() {
|
|
17542
|
+
var _this59 = this;
|
|
17543
|
+
|
|
17544
|
+
this._extMap.clear();
|
|
17545
|
+
|
|
17546
|
+
this._propertyMap.clear();
|
|
17547
|
+
|
|
17548
|
+
this._propertyMap = this.extensionsProp.properties.reduce(function (acc, property, index) {
|
|
17549
|
+
var properties = acc.get(property.value.url);
|
|
17550
|
+
|
|
17551
|
+
var values = _this59._extMap.get(property.value.url);
|
|
17552
|
+
|
|
17553
|
+
if (!properties) {
|
|
17554
|
+
properties = [];
|
|
17555
|
+
values = [];
|
|
17556
|
+
acc.set(property.value.url, properties);
|
|
17557
|
+
|
|
17558
|
+
_this59._extMap.set(property.value.url, values);
|
|
17559
|
+
}
|
|
17560
|
+
|
|
17561
|
+
properties.push(property);
|
|
17562
|
+
values.push(property.value);
|
|
17563
|
+
return acc;
|
|
17564
|
+
}, this._propertyMap);
|
|
17565
|
+
}
|
|
17566
|
+
/**
|
|
17567
|
+
* Get an array of all extension objects identified by the url.
|
|
17568
|
+
* @param extUrl - Url to identify the extensions.
|
|
17569
|
+
*/
|
|
17570
|
+
|
|
17571
|
+
}, {
|
|
17572
|
+
key: "getExtensionsByUrl",
|
|
17573
|
+
value: function getExtensionsByUrl(extUrl) {
|
|
17574
|
+
return this._extMap.get(extUrl);
|
|
17575
|
+
}
|
|
17576
|
+
/**
|
|
17577
|
+
* Get first extension object identified by the url.
|
|
17578
|
+
* @param extUrl - Url to identify the extension.
|
|
17579
|
+
*/
|
|
17580
|
+
|
|
17581
|
+
}, {
|
|
17582
|
+
key: "getFirstExtensionByUrl",
|
|
17583
|
+
value: function getFirstExtensionByUrl(extUrl) {
|
|
17584
|
+
var extensions = this._extMap.get(extUrl);
|
|
17585
|
+
|
|
17586
|
+
return (extensions === null || extensions === void 0 ? void 0 : extensions.length) > 0 ? extensions[0] : null;
|
|
17587
|
+
}
|
|
17588
|
+
/**
|
|
17589
|
+
* Get an array of all extension form properties for a given extension url.
|
|
17590
|
+
* @param extUrl - Url to identify the extension.
|
|
17591
|
+
*/
|
|
17592
|
+
|
|
17593
|
+
}, {
|
|
17594
|
+
key: "getExtensionFormPropertiesByUrl",
|
|
17595
|
+
value: function getExtensionFormPropertiesByUrl(extUrl) {
|
|
17596
|
+
return this._propertyMap.get(extUrl);
|
|
17597
|
+
}
|
|
17598
|
+
/**
|
|
17599
|
+
* Get a single extension form property.
|
|
17600
|
+
* @param extUrl - Url to identify the extension.
|
|
17601
|
+
*/
|
|
17602
|
+
|
|
17603
|
+
}, {
|
|
17604
|
+
key: "getFirstExtensionFormPropertyByUrl",
|
|
17605
|
+
value: function getFirstExtensionFormPropertyByUrl(extUrl) {
|
|
17606
|
+
var props = this._propertyMap.get(extUrl);
|
|
17607
|
+
|
|
17608
|
+
return (props === null || props === void 0 ? void 0 : props.length) > 0 ? props[0] : null;
|
|
17609
|
+
}
|
|
17610
|
+
/**
|
|
17611
|
+
* Remove all extensions matching the given url.
|
|
17612
|
+
* @param extUrl - Url to identify the extension.
|
|
17613
|
+
*/
|
|
17614
|
+
|
|
17615
|
+
}, {
|
|
17616
|
+
key: "removeExtensionsByUrl",
|
|
17617
|
+
value: function removeExtensionsByUrl(extUrl) {
|
|
17618
|
+
this.removeAllExtensions(function (ext) {
|
|
17619
|
+
return ext.value.url === extUrl;
|
|
17620
|
+
});
|
|
17621
|
+
}
|
|
17622
|
+
/**
|
|
17623
|
+
* Remove all extensions that match a given criteria.
|
|
17624
|
+
* A callback method 'match` is called for each extension. Al
|
|
17625
|
+
* If it returns true, that extension is included in the removal list.
|
|
17626
|
+
* @param match - Callback with argument of FormProperty for an extension in the ArrayProperty.
|
|
17627
|
+
*/
|
|
17628
|
+
|
|
17629
|
+
}, {
|
|
17630
|
+
key: "removeAllExtensions",
|
|
17631
|
+
value: function removeAllExtensions(match) {
|
|
17632
|
+
var otherExts = this.extensionsProp.properties.filter(function (ext) {
|
|
17633
|
+
return !match(ext);
|
|
17634
|
+
}).map(function (p) {
|
|
17635
|
+
return p.value;
|
|
17636
|
+
});
|
|
17637
|
+
|
|
17638
|
+
if (otherExts.length !== this.extensionsProp.properties.length) {
|
|
17639
|
+
this.extensionsProp.reset(otherExts, false);
|
|
17640
|
+
}
|
|
17641
|
+
}
|
|
17642
|
+
/**
|
|
17643
|
+
* Remove the first extension that matches a criteria. A callback method 'match` is called for each extension
|
|
17644
|
+
* The first extension that returns true is removed.
|
|
17645
|
+
* @param match - Callback with argument of FormProperty for an extension in the ArrayProperty.
|
|
17646
|
+
*/
|
|
17647
|
+
|
|
17648
|
+
}, {
|
|
17649
|
+
key: "removeExtension",
|
|
17650
|
+
value: function removeExtension(match) {
|
|
17651
|
+
var extension = this.extensionsProp.properties.find(function (ext) {
|
|
17652
|
+
return match(ext);
|
|
17653
|
+
});
|
|
17654
|
+
this.extensionsProp.removeItem(extension);
|
|
17655
|
+
}
|
|
17656
|
+
/**
|
|
17657
|
+
* Add extension property.
|
|
17658
|
+
* Extension will include only one of several possible value[x] fields. If the value type is passed, removes all other
|
|
17659
|
+
* empty value[x].
|
|
17660
|
+
*
|
|
17661
|
+
* @param ext - Extension object
|
|
17662
|
+
* @param valueType - Key of valueType. It starts with 'value' prefix. If given,
|
|
17663
|
+
* all other value[x] will be deleted from the property value.
|
|
17664
|
+
*
|
|
17665
|
+
*/
|
|
17666
|
+
|
|
17667
|
+
}, {
|
|
17668
|
+
key: "addExtension",
|
|
17669
|
+
value: function addExtension(ext, valueType) {
|
|
17670
|
+
var extProp = this.extensionsProp.addItem(ext);
|
|
17671
|
+
|
|
17672
|
+
if (valueType) {
|
|
17673
|
+
this.pruneUnusedValues(extProp, valueType);
|
|
17674
|
+
}
|
|
17675
|
+
|
|
17676
|
+
return extProp;
|
|
17677
|
+
}
|
|
17678
|
+
/**
|
|
17679
|
+
* Remove unused value[x] fields from extension.
|
|
17680
|
+
*
|
|
17681
|
+
* @param extProperty - Extension form property
|
|
17682
|
+
* @param keepValueType - value[x] to keep.
|
|
17683
|
+
*/
|
|
17684
|
+
|
|
17685
|
+
}, {
|
|
17686
|
+
key: "pruneUnusedValues",
|
|
17687
|
+
value: function pruneUnusedValues(extProperty, keepValueType) {
|
|
17688
|
+
var value = extProperty.value;
|
|
17689
|
+
var keys = Object.keys(value);
|
|
17690
|
+
|
|
17691
|
+
for (var _i4 = 0, _keys3 = keys; _i4 < _keys3.length; _i4++) {
|
|
17692
|
+
var key = _keys3[_i4];
|
|
17693
|
+
|
|
17694
|
+
if (value.hasOwnProperty(key) && key.startsWith('value') && key !== keepValueType) {
|
|
17695
|
+
delete value[key];
|
|
17696
|
+
}
|
|
17697
|
+
}
|
|
17698
|
+
|
|
17699
|
+
return extProperty;
|
|
17700
|
+
}
|
|
17701
|
+
/**
|
|
17702
|
+
* Reset the extension's form property
|
|
17703
|
+
* @param extUrl - Url of the extension to identify
|
|
17704
|
+
* @param value - New value to reset with.
|
|
17705
|
+
* @param valueType - This is one of the value[x] applicable to this extension
|
|
17706
|
+
* @param selfOnly - Emit change event to only self. False, emits the event to parent.
|
|
17707
|
+
* Refer angular's reactive form documentation for more information.
|
|
17708
|
+
*/
|
|
17709
|
+
|
|
17710
|
+
}, {
|
|
17711
|
+
key: "resetExtension",
|
|
17712
|
+
value: function resetExtension(extUrl, value, valueType, selfOnly) {
|
|
17713
|
+
var extProp = this.getFirstExtensionFormPropertyByUrl(extUrl);
|
|
17714
|
+
|
|
17715
|
+
if (extProp) {
|
|
17716
|
+
extProp.reset(value, selfOnly);
|
|
17717
|
+
} else {
|
|
17718
|
+
this.addExtension(value, valueType);
|
|
17719
|
+
}
|
|
17720
|
+
}
|
|
17721
|
+
}]);
|
|
17722
|
+
|
|
17723
|
+
return ExtensionsService;
|
|
17724
|
+
}();
|
|
17725
|
+
|
|
17726
|
+
ExtensionsService.ɵfac = function ExtensionsService_Factory(t) {
|
|
17727
|
+
return new (t || ExtensionsService)();
|
|
17728
|
+
};
|
|
17729
|
+
|
|
17730
|
+
ExtensionsService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
|
|
17731
|
+
token: ExtensionsService,
|
|
17732
|
+
factory: ExtensionsService.ɵfac
|
|
17733
|
+
});
|
|
17734
|
+
/***/
|
|
17735
|
+
},
|
|
17736
|
+
|
|
16855
17737
|
/***/
|
|
16856
17738
|
"vY5A":
|
|
16857
17739
|
/*!***************************************!*\
|
|
@@ -17376,28 +18258,28 @@
|
|
|
17376
18258
|
var TypeComponent = /*#__PURE__*/function (_select_select_compon3) {
|
|
17377
18259
|
_inherits(TypeComponent, _select_select_compon3);
|
|
17378
18260
|
|
|
17379
|
-
var
|
|
18261
|
+
var _super29 = _createSuper(TypeComponent);
|
|
17380
18262
|
|
|
17381
18263
|
function TypeComponent() {
|
|
17382
18264
|
_classCallCheck(this, TypeComponent);
|
|
17383
18265
|
|
|
17384
|
-
return
|
|
18266
|
+
return _super29.call(this);
|
|
17385
18267
|
}
|
|
17386
18268
|
|
|
17387
18269
|
_createClass(TypeComponent, [{
|
|
17388
18270
|
key: "ngOnInit",
|
|
17389
18271
|
value: function ngOnInit() {
|
|
17390
|
-
var
|
|
18272
|
+
var _this60 = this;
|
|
17391
18273
|
|
|
17392
18274
|
this.formProperty.valueChanges.subscribe(function (type) {
|
|
17393
|
-
var initialProp =
|
|
18275
|
+
var initialProp = _this60.formProperty.findRoot().getProperty('initial');
|
|
17394
18276
|
|
|
17395
18277
|
var widget = initialProp.schema.widget;
|
|
17396
18278
|
widget.id = type === 'choice' || type === 'open-choice' ? 'hidden' : 'initial'; // Internally represent display type as group. Identifying display/group type is deferred until
|
|
17397
18279
|
// the form is converted to json output.
|
|
17398
18280
|
|
|
17399
18281
|
if (type === 'display') {
|
|
17400
|
-
|
|
18282
|
+
_this60.formProperty.setValue('group', true);
|
|
17401
18283
|
}
|
|
17402
18284
|
});
|
|
17403
18285
|
}
|
|
@@ -17997,30 +18879,30 @@
|
|
|
17997
18879
|
var AnswerOptionComponent = /*#__PURE__*/function (_table_table_componen2) {
|
|
17998
18880
|
_inherits(AnswerOptionComponent, _table_table_componen2);
|
|
17999
18881
|
|
|
18000
|
-
var
|
|
18882
|
+
var _super30 = _createSuper(AnswerOptionComponent);
|
|
18001
18883
|
|
|
18002
18884
|
function AnswerOptionComponent(treeService) {
|
|
18003
|
-
var
|
|
18885
|
+
var _this61;
|
|
18004
18886
|
|
|
18005
18887
|
_classCallCheck(this, AnswerOptionComponent);
|
|
18006
18888
|
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
return
|
|
18889
|
+
_this61 = _super30.call(this);
|
|
18890
|
+
_this61.treeService = treeService;
|
|
18891
|
+
_this61.subscriptions = [];
|
|
18892
|
+
return _this61;
|
|
18011
18893
|
}
|
|
18012
18894
|
|
|
18013
18895
|
_createClass(AnswerOptionComponent, [{
|
|
18014
18896
|
key: "ngOnInit",
|
|
18015
18897
|
value: function ngOnInit() {
|
|
18016
|
-
var
|
|
18898
|
+
var _this62 = this;
|
|
18017
18899
|
|
|
18018
18900
|
_get(_getPrototypeOf(AnswerOptionComponent.prototype), "ngOnInit", this).call(this);
|
|
18019
18901
|
|
|
18020
18902
|
var repeatProp = this.formProperty.findRoot().getProperty('repeats');
|
|
18021
18903
|
this.setSelectionType(repeatProp.value);
|
|
18022
18904
|
var sub = repeatProp.valueChanges.subscribe(function (isRepeating) {
|
|
18023
|
-
|
|
18905
|
+
_this62.setSelectionType(isRepeating);
|
|
18024
18906
|
});
|
|
18025
18907
|
this.subscriptions.push(sub);
|
|
18026
18908
|
}
|
|
@@ -18045,14 +18927,14 @@
|
|
|
18045
18927
|
}, {
|
|
18046
18928
|
key: "ngAfterViewInit",
|
|
18047
18929
|
value: function ngAfterViewInit() {
|
|
18048
|
-
var
|
|
18930
|
+
var _this63 = this;
|
|
18049
18931
|
|
|
18050
18932
|
_get(_getPrototypeOf(AnswerOptionComponent.prototype), "ngAfterViewInit", this).call(this);
|
|
18051
18933
|
|
|
18052
18934
|
var repeatProp = this.formProperty.findRoot().getProperty('repeats');
|
|
18053
18935
|
this.setSelectionType(repeatProp.value);
|
|
18054
18936
|
var sub = repeatProp.valueChanges.subscribe(function (isRepeating) {
|
|
18055
|
-
|
|
18937
|
+
_this63.setSelectionType(isRepeating);
|
|
18056
18938
|
});
|
|
18057
18939
|
this.subscriptions.push(sub);
|
|
18058
18940
|
var aOptions = this.formProperty.value;
|
|
@@ -18060,7 +18942,7 @@
|
|
|
18060
18942
|
this.setDefaultSelections(initials || [], aOptions || []);
|
|
18061
18943
|
this.setAnswerOptions(aOptions);
|
|
18062
18944
|
sub = this.formProperty.valueChanges.subscribe(function (newValue) {
|
|
18063
|
-
|
|
18945
|
+
_this63.updateScoreExtensions(newValue);
|
|
18064
18946
|
});
|
|
18065
18947
|
this.subscriptions.push(sub);
|
|
18066
18948
|
}
|
|
@@ -18137,15 +19019,15 @@
|
|
|
18137
19019
|
}, {
|
|
18138
19020
|
key: "setDefaultSelections",
|
|
18139
19021
|
value: function setDefaultSelections(initialArray, answerOptionArray) {
|
|
18140
|
-
var
|
|
19022
|
+
var _this64 = this;
|
|
18141
19023
|
|
|
18142
19024
|
answerOptionArray.forEach(function (prop, index) {
|
|
18143
19025
|
var rowFromInitial = initialArray.find(function (initial) {
|
|
18144
|
-
return
|
|
19026
|
+
return _this64.isEqualCoding(initial.valueCoding, prop.valueCoding);
|
|
18145
19027
|
});
|
|
18146
19028
|
|
|
18147
19029
|
if (rowFromInitial) {
|
|
18148
|
-
if (
|
|
19030
|
+
if (_this64.rowSelectionType === 'radio') _this64.selectionRadio = index;else if (_this64.rowSelectionType === 'checkbox') _this64.selectionCheckbox[index] = true;
|
|
18149
19031
|
}
|
|
18150
19032
|
});
|
|
18151
19033
|
this.radioSelection(null);
|
|
@@ -18215,14 +19097,14 @@
|
|
|
18215
19097
|
}, {
|
|
18216
19098
|
key: "checkboxSelection",
|
|
18217
19099
|
value: function checkboxSelection(event) {
|
|
18218
|
-
var
|
|
19100
|
+
var _this65 = this;
|
|
18219
19101
|
|
|
18220
19102
|
_get(_getPrototypeOf(AnswerOptionComponent.prototype), "checkboxSelection", this).call(this, event);
|
|
18221
19103
|
|
|
18222
19104
|
var selectedCodings = [];
|
|
18223
19105
|
this.selectionCheckbox.forEach(function (selected, index) {
|
|
18224
19106
|
if (selected) {
|
|
18225
|
-
var valueCoding = JSON.parse(JSON.stringify(
|
|
19107
|
+
var valueCoding = JSON.parse(JSON.stringify(_this65.formProperty.value[index].valueCoding));
|
|
18226
19108
|
selectedCodings.push({
|
|
18227
19109
|
valueCoding: valueCoding
|
|
18228
19110
|
});
|
|
@@ -18318,21 +19200,21 @@
|
|
|
18318
19200
|
var LfbControlWidgetComponent = /*#__PURE__*/function (_ngx_schema_form__WEB11) {
|
|
18319
19201
|
_inherits(LfbControlWidgetComponent, _ngx_schema_form__WEB11);
|
|
18320
19202
|
|
|
18321
|
-
var
|
|
19203
|
+
var _super31 = _createSuper(LfbControlWidgetComponent);
|
|
18322
19204
|
|
|
18323
19205
|
function LfbControlWidgetComponent() {
|
|
18324
|
-
var
|
|
19206
|
+
var _this66;
|
|
18325
19207
|
|
|
18326
19208
|
_classCallCheck(this, LfbControlWidgetComponent);
|
|
18327
19209
|
|
|
18328
|
-
|
|
19210
|
+
_this66 = _super31.apply(this, arguments); // Info icon
|
|
18329
19211
|
|
|
18330
|
-
|
|
19212
|
+
_this66.faInfo = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faInfoCircle"]; // Properties to customize the layout, typically read from widget layout json.
|
|
18331
19213
|
|
|
18332
|
-
|
|
18333
|
-
|
|
18334
|
-
|
|
18335
|
-
return
|
|
19214
|
+
_this66.nolabel = false;
|
|
19215
|
+
_this66.booleanControlled = false;
|
|
19216
|
+
_this66.booleanControlledInitial = true;
|
|
19217
|
+
return _this66;
|
|
18336
19218
|
}
|
|
18337
19219
|
|
|
18338
19220
|
_createClass(LfbControlWidgetComponent, [{
|
|
@@ -18946,19 +19828,19 @@
|
|
|
18946
19828
|
var RestrictionsComponent = /*#__PURE__*/function (_table_table_componen3) {
|
|
18947
19829
|
_inherits(RestrictionsComponent, _table_table_componen3);
|
|
18948
19830
|
|
|
18949
|
-
var
|
|
19831
|
+
var _super32 = _createSuper(RestrictionsComponent);
|
|
18950
19832
|
|
|
18951
19833
|
function RestrictionsComponent(restrictionOperatorService) {
|
|
18952
|
-
var
|
|
19834
|
+
var _this67;
|
|
18953
19835
|
|
|
18954
19836
|
_classCallCheck(this, RestrictionsComponent);
|
|
18955
19837
|
|
|
18956
|
-
|
|
18957
|
-
|
|
19838
|
+
_this67 = _super32.call(this);
|
|
19839
|
+
_this67.restrictionOperatorService = restrictionOperatorService; // maxLength = -1;
|
|
18958
19840
|
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
return
|
|
19841
|
+
_this67.appliedOptions = [];
|
|
19842
|
+
_this67.selectedOptions = new Set();
|
|
19843
|
+
return _this67;
|
|
18962
19844
|
}
|
|
18963
19845
|
/**
|
|
18964
19846
|
* Get list of optionsDef objects for list of options.
|
|
@@ -18969,7 +19851,7 @@
|
|
|
18969
19851
|
_createClass(RestrictionsComponent, [{
|
|
18970
19852
|
key: "ngOnInit",
|
|
18971
19853
|
value: function ngOnInit() {
|
|
18972
|
-
var
|
|
19854
|
+
var _this68 = this;
|
|
18973
19855
|
|
|
18974
19856
|
_get(_getPrototypeOf(RestrictionsComponent.prototype), "ngOnInit", this).call(this);
|
|
18975
19857
|
/*
|
|
@@ -18981,8 +19863,8 @@
|
|
|
18981
19863
|
|
|
18982
19864
|
|
|
18983
19865
|
var sub = this.formProperty.root.getProperty('type').valueChanges.subscribe(function (type) {
|
|
18984
|
-
|
|
18985
|
-
|
|
19866
|
+
_this68.dataType = type;
|
|
19867
|
+
_this68.appliedOptions = RestrictionsComponent.typeToOptions[type];
|
|
18986
19868
|
});
|
|
18987
19869
|
this.subscriptions.push(sub);
|
|
18988
19870
|
var restrictions = this.getRestrictions(this.formProperty.root, this.appliedOptions);
|
|
@@ -18990,18 +19872,18 @@
|
|
|
18990
19872
|
|
|
18991
19873
|
this.formProperty.setValue(restrictions, true);
|
|
18992
19874
|
this.formProperty.valueChanges.subscribe(function (restrictionsArray) {
|
|
18993
|
-
|
|
19875
|
+
_this68.updateSelectedOptions(restrictionsArray); // Reset cache.
|
|
18994
19876
|
|
|
18995
19877
|
|
|
18996
|
-
var extensionProperty =
|
|
19878
|
+
var extensionProperty = _this68.formProperty.root.getProperty('extension');
|
|
18997
19879
|
|
|
18998
|
-
|
|
19880
|
+
_this68.updateRelevantExtensions(extensionProperty.value, restrictionsArray);
|
|
18999
19881
|
|
|
19000
19882
|
extensionProperty.setValue(extensionProperty.value, true);
|
|
19001
19883
|
}); // Watch changes in operator to reject unwanted selections.
|
|
19002
19884
|
|
|
19003
19885
|
this.restrictionOperatorService.subscribe(function (change) {
|
|
19004
|
-
if (
|
|
19886
|
+
if (_this68.selectedOptions.has(change.newValue)) {
|
|
19005
19887
|
change.reject = true;
|
|
19006
19888
|
}
|
|
19007
19889
|
});
|
|
@@ -19014,11 +19896,11 @@
|
|
|
19014
19896
|
}, {
|
|
19015
19897
|
key: "updateSelectedOptions",
|
|
19016
19898
|
value: function updateSelectedOptions(restrictions) {
|
|
19017
|
-
var
|
|
19899
|
+
var _this69 = this;
|
|
19018
19900
|
|
|
19019
19901
|
this.selectedOptions.clear();
|
|
19020
19902
|
restrictions === null || restrictions === void 0 ? void 0 : restrictions.forEach(function (res) {
|
|
19021
|
-
|
|
19903
|
+
_this69.selectedOptions.add(res.operator);
|
|
19022
19904
|
});
|
|
19023
19905
|
}
|
|
19024
19906
|
/**
|
|
@@ -19030,7 +19912,7 @@
|
|
|
19030
19912
|
}, {
|
|
19031
19913
|
key: "getRestrictions",
|
|
19032
19914
|
value: function getRestrictions(rootProperty, appliedOptions) {
|
|
19033
|
-
var
|
|
19915
|
+
var _this70 = this;
|
|
19034
19916
|
|
|
19035
19917
|
var ret = [];
|
|
19036
19918
|
this.selectedOptions.clear();
|
|
@@ -19051,12 +19933,12 @@
|
|
|
19051
19933
|
}));
|
|
19052
19934
|
});
|
|
19053
19935
|
extensionsFound === null || extensionsFound === void 0 ? void 0 : extensionsFound.forEach(function (ext) {
|
|
19054
|
-
var restriction =
|
|
19936
|
+
var restriction = _this70.getRestrictionValue(ext);
|
|
19055
19937
|
|
|
19056
19938
|
if (restriction) {
|
|
19057
19939
|
ret.push(restriction);
|
|
19058
19940
|
|
|
19059
|
-
|
|
19941
|
+
_this70.selectedOptions.add(restriction.operator);
|
|
19060
19942
|
}
|
|
19061
19943
|
});
|
|
19062
19944
|
return ret;
|
|
@@ -19105,7 +19987,7 @@
|
|
|
19105
19987
|
}, {
|
|
19106
19988
|
key: "updateRelevantExtensions",
|
|
19107
19989
|
value: function updateRelevantExtensions(extensions, restrictions) {
|
|
19108
|
-
var
|
|
19990
|
+
var _this71 = this;
|
|
19109
19991
|
|
|
19110
19992
|
var indices = this.getRelevantExtensionIndices(extensions);
|
|
19111
19993
|
Object.keys(RestrictionsComponent.optionsDef).forEach(function (opt) {
|
|
@@ -19116,7 +19998,7 @@
|
|
|
19116
19998
|
});
|
|
19117
19999
|
|
|
19118
20000
|
if (opt === 'maxLength') {
|
|
19119
|
-
|
|
20001
|
+
_this71.updateMaxLength((restriction === null || restriction === void 0 ? void 0 : restriction.value) || null);
|
|
19120
20002
|
} else if (restriction === null || restriction === void 0 ? void 0 : restriction.value) {
|
|
19121
20003
|
if (indices && indices[extUrl] !== undefined && indices[extUrl] !== null) {
|
|
19122
20004
|
// Update
|
|
@@ -19133,9 +20015,9 @@
|
|
|
19133
20015
|
extensions.push(ext);
|
|
19134
20016
|
}
|
|
19135
20017
|
|
|
19136
|
-
var fieldInfo =
|
|
20018
|
+
var fieldInfo = _this71.getValueFieldName(opt, _this71.dataType);
|
|
19137
20019
|
|
|
19138
|
-
ext[fieldInfo.fieldName] =
|
|
20020
|
+
ext[fieldInfo.fieldName] = _this71.getValue(restriction.value, fieldInfo.fieldType);
|
|
19139
20021
|
} else if (indices && indices[extUrl] !== undefined && indices[extUrl] !== null) {
|
|
19140
20022
|
// delete
|
|
19141
20023
|
extensions.splice(indices[extUrl], 1);
|