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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/*! no static exports found */
|
|
8
8
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9
9
|
|
|
10
|
-
module.exports = __webpack_require__(/*! /home/akanduru/formbuilder
|
|
10
|
+
module.exports = __webpack_require__(/*! /home/akanduru/formbuilder/src/main.ts */"zUnb");
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
/***/ }),
|
|
@@ -19,7 +19,7 @@ module.exports = __webpack_require__(/*! /home/akanduru/formbuilder.test/src/mai
|
|
|
19
19
|
/*! exports provided: formLayout, propertyLabels, default */
|
|
20
20
|
/***/ (function(module) {
|
|
21
21
|
|
|
22
|
-
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\"}}");
|
|
22
|
+
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\"}}");
|
|
23
23
|
|
|
24
24
|
/***/ }),
|
|
25
25
|
|
|
@@ -107,14 +107,6 @@ class NgxSchemaFormComponent {
|
|
|
107
107
|
if (changes.model) {
|
|
108
108
|
this.resetForm(changes.model.currentValue);
|
|
109
109
|
}
|
|
110
|
-
/*
|
|
111
|
-
if(changes.model.currentValue !== changes.model.previousValue) {
|
|
112
|
-
if(this.itemForm) {
|
|
113
|
-
this.itemForm.reset();
|
|
114
|
-
this.itemForm.writeValue(changes.model.currentValue);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
*/
|
|
118
110
|
}
|
|
119
111
|
/**
|
|
120
112
|
* The model is changed, emit the event.
|
|
@@ -124,10 +116,6 @@ class NgxSchemaFormComponent {
|
|
|
124
116
|
this.valueChange.emit(value);
|
|
125
117
|
this.modelService.currentItem = value;
|
|
126
118
|
}
|
|
127
|
-
updateModel(model) {
|
|
128
|
-
this.modelChange.emit(model);
|
|
129
|
-
this.modelService.currentItem = model;
|
|
130
|
-
}
|
|
131
119
|
/**
|
|
132
120
|
* Reset ngx- form with new model
|
|
133
121
|
*/
|
|
@@ -330,7 +318,7 @@ function BasePageComponent_div_1_nav_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
330
318
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Import LOINC forms:");
|
|
331
319
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
332
320
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "input", 25);
|
|
333
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function BasePageComponent_div_1_nav_3_Template_input_ngModelChange_23_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r26.acResult = $event; })("selectItem", function BasePageComponent_div_1_nav_3_Template_input_selectItem_23_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r27.
|
|
321
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function BasePageComponent_div_1_nav_3_Template_input_ngModelChange_23_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r26.acResult = $event; })("selectItem", function BasePageComponent_div_1_nav_3_Template_input_selectItem_23_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r27.getLoincForm($event.item.id); });
|
|
334
322
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
335
323
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
336
324
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
@@ -683,7 +671,7 @@ class BasePageComponent {
|
|
|
683
671
|
* @param term$ - Search term
|
|
684
672
|
*/
|
|
685
673
|
this.acSearch = (term$) => {
|
|
686
|
-
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"])((term) => term.length < 2 ? [] : this.dataSrv.
|
|
674
|
+
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"])((term) => term.length < 2 ? [] : this.dataSrv.searchLoincForms(term)));
|
|
687
675
|
};
|
|
688
676
|
this.acResult = null;
|
|
689
677
|
const isAutoSaved = this.formService.isAutoSaved();
|
|
@@ -787,7 +775,7 @@ class BasePageComponent {
|
|
|
787
775
|
}
|
|
788
776
|
else if (this.importOption === 'loinc') {
|
|
789
777
|
this.modalService.open(this.loincSearchDlg).result.then((qId) => {
|
|
790
|
-
this.dataSrv.
|
|
778
|
+
this.dataSrv.getLoincFormData(qId).subscribe((data) => {
|
|
791
779
|
this.setQuestionnaire(data);
|
|
792
780
|
this.setStep('fl-editor');
|
|
793
781
|
});
|
|
@@ -890,16 +878,16 @@ class BasePageComponent {
|
|
|
890
878
|
downloadLink.dispatchEvent(new MouseEvent('click'));
|
|
891
879
|
}
|
|
892
880
|
/**
|
|
893
|
-
* Get questionnaire
|
|
894
|
-
* @param
|
|
881
|
+
* Get LOINC form in questionnaire format using LOINC number.
|
|
882
|
+
* @param LOINCNumber - LOINC number of the form to fetch. If empty, return empty questionnaire.
|
|
895
883
|
*/
|
|
896
|
-
|
|
884
|
+
getLoincForm(LOINCNumber) {
|
|
897
885
|
const func = () => {
|
|
898
|
-
if (!
|
|
886
|
+
if (!LOINCNumber) {
|
|
899
887
|
this.setQuestionnaire(_lib_util__WEBPACK_IMPORTED_MODULE_8__["Util"].createDefaultForm());
|
|
900
888
|
}
|
|
901
889
|
else {
|
|
902
|
-
this.dataSrv.
|
|
890
|
+
this.dataSrv.getLoincFormData(LOINCNumber).subscribe((data) => {
|
|
903
891
|
this.setQuestionnaire(data);
|
|
904
892
|
this.acResult = null;
|
|
905
893
|
});
|
|
@@ -2880,7 +2868,7 @@ InitialComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineC
|
|
|
2880
2868
|
/*! exports provided: description, type, properties, required, additionalProperties, definitions, fieldsets, steps, widget, default */
|
|
2881
2869
|
/***/ (function(module) {
|
|
2882
2870
|
|
|
2883
|
-
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\"}}");
|
|
2871
|
+
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\"}}");
|
|
2884
2872
|
|
|
2885
2873
|
/***/ }),
|
|
2886
2874
|
|
|
@@ -2896,10 +2884,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2896
2884
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SfFormWrapperComponent", function() { return SfFormWrapperComponent; });
|
|
2897
2885
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "8Y7J");
|
|
2898
2886
|
/* harmony import */ var _item_item_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../item/item.component */ "ZfIV");
|
|
2899
|
-
/* harmony import */ var
|
|
2900
|
-
/* harmony import */ var
|
|
2901
|
-
/* harmony import */ var
|
|
2902
|
-
/* harmony import */ var
|
|
2887
|
+
/* harmony import */ var _services_extensions_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/extensions.service */ "sFzh");
|
|
2888
|
+
/* harmony import */ var _services_shared_object_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/shared-object.service */ "jOxg");
|
|
2889
|
+
/* harmony import */ var _services_form_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/form.service */ "md+p");
|
|
2890
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "SVse");
|
|
2891
|
+
/* harmony import */ var ngx_schema_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-schema-form */ "JOsq");
|
|
2892
|
+
|
|
2893
|
+
|
|
2903
2894
|
|
|
2904
2895
|
|
|
2905
2896
|
|
|
@@ -2917,12 +2908,14 @@ function SfFormWrapperComponent_sf_form_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
2917
2908
|
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
|
|
2918
2909
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("schema", ctx_r0.mySchema)("model", ctx_r0.model);
|
|
2919
2910
|
} }
|
|
2911
|
+
/**
|
|
2912
|
+
* This class is intended to isolate customization of sf-form instance.
|
|
2913
|
+
*/
|
|
2920
2914
|
class SfFormWrapperComponent {
|
|
2921
|
-
constructor(modelService, formService
|
|
2915
|
+
constructor(extensionsService, modelService, formService) {
|
|
2916
|
+
this.extensionsService = extensionsService;
|
|
2922
2917
|
this.modelService = modelService;
|
|
2923
2918
|
this.formService = formService;
|
|
2924
|
-
this.cfr = cfr;
|
|
2925
|
-
this.cd = cd;
|
|
2926
2919
|
this.mySchema = { properties: {} };
|
|
2927
2920
|
this.setLinkId = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
|
|
2928
2921
|
this.modelChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
|
|
@@ -2930,17 +2923,24 @@ class SfFormWrapperComponent {
|
|
|
2930
2923
|
this.linkIdCollection = new _item_item_component__WEBPACK_IMPORTED_MODULE_1__["LinkIdCollection"]();
|
|
2931
2924
|
this.mySchema = formService.getItemSchema();
|
|
2932
2925
|
}
|
|
2933
|
-
ngOnInit() {
|
|
2934
|
-
}
|
|
2935
2926
|
ngAfterViewInit() {
|
|
2927
|
+
this.extensionsService.setExtensions(this.itemForm.rootProperty.getProperty('extension'));
|
|
2936
2928
|
}
|
|
2929
|
+
/**
|
|
2930
|
+
* Handle onChange event.
|
|
2931
|
+
* @param changes - Changes from host component.
|
|
2932
|
+
*/
|
|
2937
2933
|
ngOnChanges(changes) {
|
|
2938
2934
|
console.log('sf-form-wrapper.ngOnChanges()');
|
|
2939
2935
|
if (changes.model) {
|
|
2940
2936
|
console.log('sf-form-wrapper.ngOnChanges(): model changed');
|
|
2941
|
-
this.
|
|
2937
|
+
this.extensionsService.setExtensions(this.itemForm.rootProperty.getProperty('extension'));
|
|
2942
2938
|
}
|
|
2943
2939
|
}
|
|
2940
|
+
/**
|
|
2941
|
+
* Handle value change event.
|
|
2942
|
+
* @param value - Angular event
|
|
2943
|
+
*/
|
|
2944
2944
|
updateValue(value) {
|
|
2945
2945
|
this.valueChange.emit(value);
|
|
2946
2946
|
this.modelChange.emit(this.model);
|
|
@@ -2948,17 +2948,17 @@ class SfFormWrapperComponent {
|
|
|
2948
2948
|
ngOnDestroy() {
|
|
2949
2949
|
}
|
|
2950
2950
|
}
|
|
2951
|
-
SfFormWrapperComponent.ɵfac = function SfFormWrapperComponent_Factory(t) { return new (t || SfFormWrapperComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](
|
|
2951
|
+
SfFormWrapperComponent.ɵfac = function SfFormWrapperComponent_Factory(t) { 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"])); };
|
|
2952
2952
|
SfFormWrapperComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SfFormWrapperComponent, selectors: [["lfb-sf-form-wrapper"]], viewQuery: function SfFormWrapperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2953
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 1
|
|
2953
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 1);
|
|
2954
2954
|
} if (rf & 2) {
|
|
2955
2955
|
let _t;
|
|
2956
2956
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.itemForm = _t.first);
|
|
2957
|
-
} }, inputs: { model: "model", linkIdCollection: "linkIdCollection" }, outputs: { setLinkId: "setLinkId", modelChange: "modelChange", valueChange: "valueChange" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 1, vars: 1, consts: [[3, "schema", "model", "onChange", 4, "ngIf"], [3, "schema", "model", "onChange"], ["itemForm", ""]], template: function SfFormWrapperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2957
|
+
} }, inputs: { model: "model", linkIdCollection: "linkIdCollection" }, outputs: { setLinkId: "setLinkId", modelChange: "modelChange", valueChange: "valueChange" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([_services_extensions_service__WEBPACK_IMPORTED_MODULE_2__["ExtensionsService"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 1, vars: 1, consts: [[3, "schema", "model", "onChange", 4, "ngIf"], [3, "schema", "model", "onChange"], ["itemForm", ""]], template: function SfFormWrapperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2958
2958
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, SfFormWrapperComponent_sf_form_0_Template, 2, 2, "sf-form", 0);
|
|
2959
2959
|
} if (rf & 2) {
|
|
2960
2960
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.model);
|
|
2961
|
-
} }, directives: [
|
|
2961
|
+
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], ngx_schema_form__WEBPACK_IMPORTED_MODULE_6__["FormComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzZi1mb3JtLXdyYXBwZXIuY29tcG9uZW50LmNzcyJ9 */"] });
|
|
2962
2962
|
|
|
2963
2963
|
|
|
2964
2964
|
/***/ }),
|
|
@@ -4167,9 +4167,22 @@ class FetchService {
|
|
|
4167
4167
|
* Get questionnaire by id from FHIR server.
|
|
4168
4168
|
* @param id - Id of the questionnaire
|
|
4169
4169
|
*/
|
|
4170
|
-
|
|
4170
|
+
getFhirFormData(id) {
|
|
4171
4171
|
return this.http.get(FetchService.fhirUrl + '/' + id, { responseType: 'json' });
|
|
4172
4172
|
}
|
|
4173
|
+
/**
|
|
4174
|
+
* Get questionnaire by id from LOINC.
|
|
4175
|
+
*
|
|
4176
|
+
* @param loincNum - LOINC number of the form.
|
|
4177
|
+
*/
|
|
4178
|
+
getLoincFormData(loincNum) {
|
|
4179
|
+
const options = { observe: 'body', responseType: 'json' };
|
|
4180
|
+
options.params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]().set('loinc_num', loincNum);
|
|
4181
|
+
return this.http.get(FetchService.loincFormsUrl + '?loinc_num=' + loincNum, { responseType: 'json' })
|
|
4182
|
+
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((response) => {
|
|
4183
|
+
return LForms.Util.getFormFHIRData('Questionnaire', 'R4', response);
|
|
4184
|
+
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])((error) => { console.log(`Loading loinc form ${loincNum}`, error); return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])([]); }));
|
|
4185
|
+
}
|
|
4173
4186
|
/**
|
|
4174
4187
|
* This is used to configure widget to edit item in json editor.
|
|
4175
4188
|
*/
|
|
@@ -4183,19 +4196,23 @@ class FetchService {
|
|
|
4183
4196
|
return this.treeOptions;
|
|
4184
4197
|
}
|
|
4185
4198
|
/**
|
|
4186
|
-
* Search questionnaires on
|
|
4199
|
+
* Search LOINC questionnaires on ctss, intended for auto completion for importing questionnaires.
|
|
4187
4200
|
*
|
|
4188
4201
|
* @param term - Search term
|
|
4189
4202
|
* @param options - http request options
|
|
4190
4203
|
*/
|
|
4191
|
-
|
|
4204
|
+
searchLoincForms(term, options) {
|
|
4192
4205
|
options = options || {};
|
|
4193
4206
|
options.observe = options.observe || 'body';
|
|
4194
4207
|
options.responseType = options.responseType || 'json';
|
|
4195
|
-
options.params = (options.params || new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]())
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4208
|
+
options.params = (options.params || new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]())
|
|
4209
|
+
.set('terms', term)
|
|
4210
|
+
.set('df', 'LOINC_NUM,text')
|
|
4211
|
+
.set('type', 'form_and_section')
|
|
4212
|
+
.set('available', 'true');
|
|
4213
|
+
return this.http.get(FetchService.loincSearchUrl, options).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["tap"])((resp) => { console.log(resp); }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((resp) => {
|
|
4214
|
+
return resp[3].map((e) => {
|
|
4215
|
+
return { id: e[0], title: e[1] };
|
|
4199
4216
|
});
|
|
4200
4217
|
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])((error) => { console.log('searching for ' + term, error); return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])([]); }));
|
|
4201
4218
|
}
|
|
@@ -4822,9 +4839,9 @@ class ExtensionsComponent extends _lfb_array_widget_lfb_array_widget_component__
|
|
|
4822
4839
|
/**
|
|
4823
4840
|
* Remove extension from the array, matching url, code and system. Code and system are optional
|
|
4824
4841
|
* and should be used to match with increased specificity.
|
|
4825
|
-
* @param url
|
|
4826
|
-
* @param code
|
|
4827
|
-
* @param system
|
|
4842
|
+
* @param url - Extension url
|
|
4843
|
+
* @param code - Code in valueCoding of the extension
|
|
4844
|
+
* @param system - System url of the code in valueCoding of the extension
|
|
4828
4845
|
*/
|
|
4829
4846
|
removeExt(url, code, system) {
|
|
4830
4847
|
const extension = this.extensionsProp.properties.find((ext) => {
|
|
@@ -4836,7 +4853,7 @@ class ExtensionsComponent extends _lfb_array_widget_lfb_array_widget_component__
|
|
|
4836
4853
|
}
|
|
4837
4854
|
/**
|
|
4838
4855
|
* Remove extensions by extension url.
|
|
4839
|
-
* @param extUrl
|
|
4856
|
+
* @param extUrl - Url to identify the extension.
|
|
4840
4857
|
*/
|
|
4841
4858
|
removeExtensionsByUrl(extUrl) {
|
|
4842
4859
|
const otherExts = this.extensionsProp.properties.filter((ext) => {
|
|
@@ -4848,7 +4865,7 @@ class ExtensionsComponent extends _lfb_array_widget_lfb_array_widget_component__
|
|
|
4848
4865
|
}
|
|
4849
4866
|
/**
|
|
4850
4867
|
* Remove extension comparing the fields of given extension.
|
|
4851
|
-
* @param ext
|
|
4868
|
+
* @param ext - Extension object to remove.
|
|
4852
4869
|
*/
|
|
4853
4870
|
removeExtension(ext) {
|
|
4854
4871
|
this.removeExt(ext.url, ext.valueCoding.code, ext.valueCoding.system);
|
|
@@ -5410,8 +5427,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5410
5427
|
/* harmony import */ var _lib_widgets_string_with_css_string_with_css_component__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./lib/widgets/string-with-css/string-with-css.component */ "Qva7");
|
|
5411
5428
|
/* harmony import */ var _lib_widgets_restrictions_restrictions_component__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./lib/widgets/restrictions/restrictions.component */ "ySaZ");
|
|
5412
5429
|
/* harmony import */ var _lib_widgets_restrictions_operator_restrictions_operator_component__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./lib/widgets/restrictions-operator/restrictions-operator.component */ "W1P/");
|
|
5413
|
-
/* harmony import */ var
|
|
5414
|
-
/* harmony import */ var
|
|
5430
|
+
/* harmony import */ var _lib_widgets_observation_link_period_observation_link_period_component__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./lib/widgets/observation-link-period/observation-link-period.component */ "fDl6");
|
|
5431
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! @angular/core */ "8Y7J");
|
|
5432
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! @angular/common */ "SVse");
|
|
5433
|
+
|
|
5415
5434
|
|
|
5416
5435
|
|
|
5417
5436
|
|
|
@@ -5502,8 +5521,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5502
5521
|
class AppModule {
|
|
5503
5522
|
}
|
|
5504
5523
|
AppModule.ɵfac = function AppModule_Factory(t) { return new (t || AppModule)(); };
|
|
5505
|
-
AppModule.ɵmod =
|
|
5506
|
-
AppModule.ɵinj =
|
|
5524
|
+
AppModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_81__["ɵɵdefineNgModule"]({ type: AppModule, bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_2__["AppComponent"]] });
|
|
5525
|
+
AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_81__["ɵɵdefineInjector"]({ providers: [{ provide: ngx_schema_form__WEBPACK_IMPORTED_MODULE_1__["WidgetRegistry"], useClass: _lib_lforms_widget_registry__WEBPACK_IMPORTED_MODULE_31__["LformsWidgetRegistry"] }, _lib_pipes_app_json_pipe__WEBPACK_IMPORTED_MODULE_53__["AppJsonPipe"]], imports: [[
|
|
5507
5526
|
_app_routing_module__WEBPACK_IMPORTED_MODULE_3__["AppRoutingModule"],
|
|
5508
5527
|
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
|
|
5509
5528
|
_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["BrowserAnimationsModule"],
|
|
@@ -5534,7 +5553,7 @@ AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_80__["ɵɵdefineInjecto
|
|
|
5534
5553
|
_angular_material_select__WEBPACK_IMPORTED_MODULE_45__["MatSelectModule"],
|
|
5535
5554
|
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_12__["MatDialogModule"],
|
|
5536
5555
|
]] });
|
|
5537
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) &&
|
|
5556
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_81__["ɵɵsetNgModuleScope"](AppModule, { declarations: [_app_component__WEBPACK_IMPORTED_MODULE_2__["AppComponent"],
|
|
5538
5557
|
_ngx_schema_form_ngx_schema_form_component__WEBPACK_IMPORTED_MODULE_26__["NgxSchemaFormComponent"],
|
|
5539
5558
|
_item_item_component__WEBPACK_IMPORTED_MODULE_8__["ItemComponent"],
|
|
5540
5559
|
_lib_widgets_item_json_editor_item_json_editor_component__WEBPACK_IMPORTED_MODULE_28__["ItemJsonEditorComponent"],
|
|
@@ -5585,7 +5604,8 @@ AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_80__["ɵɵdefineInjecto
|
|
|
5585
5604
|
_lib_widgets_loinc_notice_loinc_notice_component__WEBPACK_IMPORTED_MODULE_76__["LoincNoticeComponent"],
|
|
5586
5605
|
_lib_widgets_string_with_css_string_with_css_component__WEBPACK_IMPORTED_MODULE_77__["StringWithCssComponent"],
|
|
5587
5606
|
_lib_widgets_restrictions_restrictions_component__WEBPACK_IMPORTED_MODULE_78__["RestrictionsComponent"],
|
|
5588
|
-
_lib_widgets_restrictions_operator_restrictions_operator_component__WEBPACK_IMPORTED_MODULE_79__["RestrictionsOperatorComponent"]
|
|
5607
|
+
_lib_widgets_restrictions_operator_restrictions_operator_component__WEBPACK_IMPORTED_MODULE_79__["RestrictionsOperatorComponent"],
|
|
5608
|
+
_lib_widgets_observation_link_period_observation_link_period_component__WEBPACK_IMPORTED_MODULE_80__["ObservationLinkPeriodComponent"]], imports: [_app_routing_module__WEBPACK_IMPORTED_MODULE_3__["AppRoutingModule"],
|
|
5589
5609
|
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
|
|
5590
5610
|
_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["BrowserAnimationsModule"],
|
|
5591
5611
|
_angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormsModule"],
|
|
@@ -5612,8 +5632,8 @@ AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_80__["ɵɵdefineInjecto
|
|
|
5612
5632
|
_angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_10__["MatAutocompleteModule"],
|
|
5613
5633
|
_angular_material_select__WEBPACK_IMPORTED_MODULE_45__["MatSelectModule"],
|
|
5614
5634
|
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_12__["MatDialogModule"]] }); })();
|
|
5615
|
-
|
|
5616
|
-
_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"],
|
|
5635
|
+
_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"],
|
|
5636
|
+
_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"]], []);
|
|
5617
5637
|
|
|
5618
5638
|
|
|
5619
5639
|
/***/ }),
|
|
@@ -6236,7 +6256,7 @@ function BooleanControlledComponent_ng_template_0_ng_container_3_Template(rf, ct
|
|
|
6236
6256
|
const option_r4 = ctx.$implicit;
|
|
6237
6257
|
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
|
|
6238
6258
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
6239
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", option_r4 +
|
|
6259
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", "booleanControlled_" + option_r4 + ctx_r3._id);
|
|
6240
6260
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
6241
6261
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", option_r4 === "Yes");
|
|
6242
6262
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r3.disabled ? "" : null);
|
|
@@ -6270,11 +6290,13 @@ function BooleanControlledComponent_ng_container_2_Template(rf, ctx) { if (rf &
|
|
|
6270
6290
|
} }
|
|
6271
6291
|
class BooleanControlledComponent {
|
|
6272
6292
|
constructor() {
|
|
6293
|
+
this._id = BooleanControlledComponent.ID++;
|
|
6273
6294
|
this.labelPosition = 'left';
|
|
6274
6295
|
this.disabled = false;
|
|
6275
6296
|
this.boolChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
|
|
6276
6297
|
}
|
|
6277
6298
|
}
|
|
6299
|
+
BooleanControlledComponent.ID = 0;
|
|
6278
6300
|
BooleanControlledComponent.ɵfac = function BooleanControlledComponent_Factory(t) { return new (t || BooleanControlledComponent)(); };
|
|
6279
6301
|
BooleanControlledComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: BooleanControlledComponent, selectors: [["lfb-boolean-controlled"]], inputs: { bool: "bool", label: "label", labelPosition: "labelPosition", helpMessage: "helpMessage", labelWidthClass: "labelWidthClass", controlWidthClass: "controlWidthClass", disabled: "disabled" }, outputs: { boolChange: "boolChange" }, decls: 3, vars: 1, consts: [["controller", ""], [4, "ngTemplateOutlet"], [1, "widget", 3, "ngClass"], [3, "title", "helpMessage", "ngClass"], ["ngbRadioGroup", "", 1, "form-check-inline", "btn-group", "btn-group-sm", "btn-group-toggle", 3, "ngModel", "ngModelOptions", "ngModelChange"], [4, "ngFor", "ngForOf"], ["ngbButtonLabel", "", 1, "btn-outline-success"], ["ngbButton", "", "type", "radio", 3, "value"]], template: function BooleanControlledComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6280
6302
|
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, BooleanControlledComponent_ng_template_0_Template, 4, 11, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
|
|
@@ -6324,7 +6346,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6324
6346
|
/* harmony import */ var _widgets_string_with_css_string_with_css_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./widgets/string-with-css/string-with-css.component */ "Qva7");
|
|
6325
6347
|
/* harmony import */ var _widgets_restrictions_restrictions_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./widgets/restrictions/restrictions.component */ "ySaZ");
|
|
6326
6348
|
/* harmony import */ var _widgets_restrictions_operator_restrictions_operator_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./widgets/restrictions-operator/restrictions-operator.component */ "W1P/");
|
|
6327
|
-
/* harmony import */ var
|
|
6349
|
+
/* harmony import */ var _widgets_observation_link_period_observation_link_period_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./widgets/observation-link-period/observation-link-period.component */ "fDl6");
|
|
6350
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @angular/core */ "8Y7J");
|
|
6328
6351
|
/**
|
|
6329
6352
|
* Registry for custom widgets.
|
|
6330
6353
|
*
|
|
@@ -6356,6 +6379,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6356
6379
|
|
|
6357
6380
|
|
|
6358
6381
|
|
|
6382
|
+
|
|
6359
6383
|
|
|
6360
6384
|
|
|
6361
6385
|
class LformsWidgetRegistry extends ngx_schema_form__WEBPACK_IMPORTED_MODULE_0__["DefaultWidgetRegistry"] {
|
|
@@ -6388,10 +6412,11 @@ class LformsWidgetRegistry extends ngx_schema_form__WEBPACK_IMPORTED_MODULE_0__[
|
|
|
6388
6412
|
this.register('string-with-css', _widgets_string_with_css_string_with_css_component__WEBPACK_IMPORTED_MODULE_23__["StringWithCssComponent"]);
|
|
6389
6413
|
this.register('restrictions', _widgets_restrictions_restrictions_component__WEBPACK_IMPORTED_MODULE_24__["RestrictionsComponent"]);
|
|
6390
6414
|
this.register('restrictions-operator', _widgets_restrictions_operator_restrictions_operator_component__WEBPACK_IMPORTED_MODULE_25__["RestrictionsOperatorComponent"]);
|
|
6415
|
+
this.register('observation-link-period', _widgets_observation_link_period_observation_link_period_component__WEBPACK_IMPORTED_MODULE_26__["ObservationLinkPeriodComponent"]);
|
|
6391
6416
|
}
|
|
6392
6417
|
}
|
|
6393
6418
|
LformsWidgetRegistry.ɵfac = function LformsWidgetRegistry_Factory(t) { return new (t || LformsWidgetRegistry)(); };
|
|
6394
|
-
LformsWidgetRegistry.ɵprov =
|
|
6419
|
+
LformsWidgetRegistry.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵdefineInjectable"]({ token: LformsWidgetRegistry, factory: LformsWidgetRegistry.ɵfac });
|
|
6395
6420
|
|
|
6396
6421
|
|
|
6397
6422
|
/***/ }),
|
|
@@ -6477,6 +6502,296 @@ RestrictionOperatorService.ɵfac = function RestrictionOperatorService_Factory(t
|
|
|
6477
6502
|
RestrictionOperatorService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: RestrictionOperatorService, factory: RestrictionOperatorService.ɵfac });
|
|
6478
6503
|
|
|
6479
6504
|
|
|
6505
|
+
/***/ }),
|
|
6506
|
+
|
|
6507
|
+
/***/ "fDl6":
|
|
6508
|
+
/*!******************************************************************************************!*\
|
|
6509
|
+
!*** ./src/app/lib/widgets/observation-link-period/observation-link-period.component.ts ***!
|
|
6510
|
+
\******************************************************************************************/
|
|
6511
|
+
/*! exports provided: ObservationLinkPeriodComponent */
|
|
6512
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6513
|
+
|
|
6514
|
+
"use strict";
|
|
6515
|
+
__webpack_require__.r(__webpack_exports__);
|
|
6516
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObservationLinkPeriodComponent", function() { return ObservationLinkPeriodComponent; });
|
|
6517
|
+
/* harmony import */ var _units_units_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../units/units.component */ "E+b4");
|
|
6518
|
+
/* harmony import */ var _string_string_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../string/string.component */ "EsPq");
|
|
6519
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "8Y7J");
|
|
6520
|
+
/* harmony import */ var _services_extensions_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../services/extensions.service */ "sFzh");
|
|
6521
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "SVse");
|
|
6522
|
+
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "G0yt");
|
|
6523
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "s7LF");
|
|
6524
|
+
/* harmony import */ var _label_label_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../label/label.component */ "2GUZ");
|
|
6525
|
+
|
|
6526
|
+
|
|
6527
|
+
|
|
6528
|
+
|
|
6529
|
+
|
|
6530
|
+
|
|
6531
|
+
|
|
6532
|
+
|
|
6533
|
+
function ObservationLinkPeriodComponent_lfb_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
6534
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "lfb-label", 6);
|
|
6535
|
+
} if (rf & 2) {
|
|
6536
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
6537
|
+
_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");
|
|
6538
|
+
} }
|
|
6539
|
+
function ObservationLinkPeriodComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
6540
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0, 7);
|
|
6541
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 8);
|
|
6542
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 9);
|
|
6543
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
|
|
6544
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6545
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
6546
|
+
} if (rf & 2) {
|
|
6547
|
+
const option_r5 = ctx.$implicit;
|
|
6548
|
+
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
6549
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6550
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx_r1.name + "_" + option_r5);
|
|
6551
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6552
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", option_r5 === "Yes");
|
|
6553
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r1.schema.readOnly ? "" : null)("aria-controls", "timeWindowGroup_" + ctx_r1.elementId);
|
|
6554
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6555
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", option_r5, " ");
|
|
6556
|
+
} }
|
|
6557
|
+
function ObservationLinkPeriodComponent_div_5_div_1_option_9_Template(rf, ctx) { if (rf & 1) {
|
|
6558
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 19);
|
|
6559
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
|
|
6560
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6561
|
+
} if (rf & 2) {
|
|
6562
|
+
const option_r8 = ctx.$implicit;
|
|
6563
|
+
const i_r9 = ctx.index;
|
|
6564
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", i_r9);
|
|
6565
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6566
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](option_r8.unit);
|
|
6567
|
+
} }
|
|
6568
|
+
function ObservationLinkPeriodComponent_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
6569
|
+
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
6570
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
|
|
6571
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 12);
|
|
6572
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 13);
|
|
6573
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 14);
|
|
6574
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Time window");
|
|
6575
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6576
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6577
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 15);
|
|
6578
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function ObservationLinkPeriodComponent_div_5_div_1_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r10.onValueChange($event); });
|
|
6579
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6580
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 16);
|
|
6581
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "select", 17);
|
|
6582
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function ObservationLinkPeriodComponent_div_5_div_1_Template_select_ngModelChange_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r12.onUnitChange($event); });
|
|
6583
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](8);
|
|
6584
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, ObservationLinkPeriodComponent_div_5_div_1_option_9_Template, 2, 2, "option", 18);
|
|
6585
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
6586
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6587
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6588
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6589
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6590
|
+
} if (rf & 2) {
|
|
6591
|
+
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
|
|
6592
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6593
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", "timeWindowGroup_" + ctx_r6.elementId);
|
|
6594
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
6595
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", "timeWindow_" + ctx_r6.elementId);
|
|
6596
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
6597
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r6.value);
|
|
6598
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx_r6.elementId)("aria-labelledby", "timeWindow_" + ctx_r6.elementId);
|
|
6599
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
6600
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r6.unitIndex);
|
|
6601
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", "select_" + ctx_r6.elementId);
|
|
6602
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
6603
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r6.unitOptions);
|
|
6604
|
+
} }
|
|
6605
|
+
function ObservationLinkPeriodComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
6606
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
|
|
6607
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ObservationLinkPeriodComponent_div_5_div_1_Template, 10, 8, "div", 10);
|
|
6608
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6609
|
+
} if (rf & 2) {
|
|
6610
|
+
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
6611
|
+
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](7);
|
|
6612
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6613
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.isCodePresent())("ngIfElse", _r3);
|
|
6614
|
+
} }
|
|
6615
|
+
function ObservationLinkPeriodComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
6616
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p", 20);
|
|
6617
|
+
_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.");
|
|
6618
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6619
|
+
} }
|
|
6620
|
+
const _c0 = function (a0) { return { "row": a0, "m-0": true }; };
|
|
6621
|
+
const _c1 = function () { return ["No", "Yes"]; };
|
|
6622
|
+
class ObservationLinkPeriodComponent extends _string_string_component__WEBPACK_IMPORTED_MODULE_1__["StringComponent"] {
|
|
6623
|
+
constructor(extensionsService) {
|
|
6624
|
+
super();
|
|
6625
|
+
this.extensionsService = extensionsService;
|
|
6626
|
+
this.unitIndex = 0;
|
|
6627
|
+
this.adjustVAlignClass = 'd-flex';
|
|
6628
|
+
this.showOlp = false;
|
|
6629
|
+
this.unitOptions = [
|
|
6630
|
+
{ code: 'a', unit: 'years' },
|
|
6631
|
+
{ code: 'mo', unit: 'months' },
|
|
6632
|
+
{ code: 'wk', unit: 'weeks' },
|
|
6633
|
+
{ code: 'd', unit: 'days' },
|
|
6634
|
+
{ code: 'h', unit: 'hours' },
|
|
6635
|
+
{ code: 'min', unit: 'minutes' },
|
|
6636
|
+
{ code: 's', unit: 'seconds' },
|
|
6637
|
+
{ code: 'ms', unit: 'milliseconds' }
|
|
6638
|
+
];
|
|
6639
|
+
this.elementId = 'observationLinkPeriod' + ObservationLinkPeriodComponent.seqNum++;
|
|
6640
|
+
this.subscriptions = [];
|
|
6641
|
+
}
|
|
6642
|
+
/**
|
|
6643
|
+
* Read extension and initialize properties.
|
|
6644
|
+
*/
|
|
6645
|
+
ngAfterViewInit() {
|
|
6646
|
+
super.ngAfterViewInit();
|
|
6647
|
+
this.extensionsService.extensionsObservable.subscribe(() => {
|
|
6648
|
+
setTimeout(() => {
|
|
6649
|
+
const ext = this.getExtension();
|
|
6650
|
+
if (ext) {
|
|
6651
|
+
this.showOlp = true;
|
|
6652
|
+
this.adjustVAlignClass = '';
|
|
6653
|
+
this.setUnitIndex(ext);
|
|
6654
|
+
this.value = '' + ext.valueDuration.value;
|
|
6655
|
+
}
|
|
6656
|
+
});
|
|
6657
|
+
});
|
|
6658
|
+
}
|
|
6659
|
+
/**
|
|
6660
|
+
* Get extension object representing observation link period.
|
|
6661
|
+
*/
|
|
6662
|
+
getExtension() {
|
|
6663
|
+
const ext = this.extensionsService.getExtensionsByUrl(ObservationLinkPeriodComponent.extUrl);
|
|
6664
|
+
return ext && ext.length > 0 ? ext[0] : null;
|
|
6665
|
+
}
|
|
6666
|
+
/**
|
|
6667
|
+
* Check to see if an item.code is set.
|
|
6668
|
+
*/
|
|
6669
|
+
isCodePresent() {
|
|
6670
|
+
var _a, _b;
|
|
6671
|
+
const code = this.formProperty.root.getProperty('code').value;
|
|
6672
|
+
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;
|
|
6673
|
+
}
|
|
6674
|
+
/**
|
|
6675
|
+
* Set unit index based on the input extension. The unit is read either from code or unit field.
|
|
6676
|
+
* @param extension - fhir.Extension object
|
|
6677
|
+
*/
|
|
6678
|
+
setUnitIndex(extension) {
|
|
6679
|
+
let index = -1;
|
|
6680
|
+
const code = extension.valueDuration.code;
|
|
6681
|
+
// Look for either code or unit in that order.
|
|
6682
|
+
['code', 'unit'].some((field) => {
|
|
6683
|
+
const fieldVal = extension.valueDuration[field];
|
|
6684
|
+
if (fieldVal) {
|
|
6685
|
+
index = this.unitOptions.findIndex((opt) => {
|
|
6686
|
+
return opt[field] === fieldVal;
|
|
6687
|
+
});
|
|
6688
|
+
}
|
|
6689
|
+
return index >= 0;
|
|
6690
|
+
});
|
|
6691
|
+
this.unitIndex = index > 0 ? index : 0;
|
|
6692
|
+
}
|
|
6693
|
+
/**
|
|
6694
|
+
* Use for yes/no.
|
|
6695
|
+
* @param show - Angular event.
|
|
6696
|
+
*/
|
|
6697
|
+
onBooleanChange(show) {
|
|
6698
|
+
this.showOlp = show;
|
|
6699
|
+
this.adjustVAlignClass = show ? '' : 'd-flex';
|
|
6700
|
+
if (show) {
|
|
6701
|
+
this.updateExtension();
|
|
6702
|
+
}
|
|
6703
|
+
else {
|
|
6704
|
+
this.extensionsService.removeExtensionsByUrl(ObservationLinkPeriodComponent.extUrl);
|
|
6705
|
+
}
|
|
6706
|
+
}
|
|
6707
|
+
/**
|
|
6708
|
+
* Use for unit selection.
|
|
6709
|
+
* @param event - Angular event.
|
|
6710
|
+
*/
|
|
6711
|
+
onUnitChange(event) {
|
|
6712
|
+
this.unitIndex = event;
|
|
6713
|
+
this.updateExtension();
|
|
6714
|
+
}
|
|
6715
|
+
/**
|
|
6716
|
+
* Use for input change event
|
|
6717
|
+
* @param event - DOM event
|
|
6718
|
+
*/
|
|
6719
|
+
onValueChange(event) {
|
|
6720
|
+
this.value = event.target.value;
|
|
6721
|
+
this.updateExtension();
|
|
6722
|
+
}
|
|
6723
|
+
/**
|
|
6724
|
+
* Update extension in the form property.
|
|
6725
|
+
*/
|
|
6726
|
+
updateExtension() {
|
|
6727
|
+
this.reset(this.createExtension(this.value, this.unitOptions[this.unitIndex].code, this.unitOptions[this.unitIndex].unit));
|
|
6728
|
+
}
|
|
6729
|
+
/**
|
|
6730
|
+
* Set the extension if the input has a value, otherwise remove if exists.
|
|
6731
|
+
* @param ext - fhir.Extension object representing observation link period.
|
|
6732
|
+
*/
|
|
6733
|
+
reset(ext) {
|
|
6734
|
+
var _a;
|
|
6735
|
+
if ((_a = ext === null || ext === void 0 ? void 0 : ext.valueDuration) === null || _a === void 0 ? void 0 : _a.value) {
|
|
6736
|
+
this.extensionsService.resetExtension(ObservationLinkPeriodComponent.extUrl, ext, 'valueDuration', false);
|
|
6737
|
+
}
|
|
6738
|
+
else {
|
|
6739
|
+
this.extensionsService.removeExtensionsByUrl(ext.url);
|
|
6740
|
+
}
|
|
6741
|
+
}
|
|
6742
|
+
/**
|
|
6743
|
+
* Create observation link period extension object
|
|
6744
|
+
*
|
|
6745
|
+
* @param value - value in valueDuration.
|
|
6746
|
+
* @param unitCode - UCUM unit code in valueDuration.
|
|
6747
|
+
* @param unitText - unit text in valueDuration.
|
|
6748
|
+
*/
|
|
6749
|
+
createExtension(value, unitCode, unitText) {
|
|
6750
|
+
const ret = {
|
|
6751
|
+
url: ObservationLinkPeriodComponent.extUrl,
|
|
6752
|
+
valueDuration: { value: parseFloat(value) }
|
|
6753
|
+
};
|
|
6754
|
+
ret.valueDuration.system = _units_units_component__WEBPACK_IMPORTED_MODULE_0__["UnitsComponent"].ucumSystemUrl;
|
|
6755
|
+
if (unitCode) {
|
|
6756
|
+
ret.valueDuration.code = unitCode;
|
|
6757
|
+
}
|
|
6758
|
+
if (unitText) {
|
|
6759
|
+
ret.valueDuration.unit = unitText;
|
|
6760
|
+
}
|
|
6761
|
+
return ret;
|
|
6762
|
+
}
|
|
6763
|
+
}
|
|
6764
|
+
ObservationLinkPeriodComponent.extUrl = 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-observationLinkPeriod';
|
|
6765
|
+
ObservationLinkPeriodComponent.seqNum = 0;
|
|
6766
|
+
ObservationLinkPeriodComponent.ɵfac = function ObservationLinkPeriodComponent_Factory(t) { return new (t || ObservationLinkPeriodComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_extensions_service__WEBPACK_IMPORTED_MODULE_3__["ExtensionsService"])); };
|
|
6767
|
+
ObservationLinkPeriodComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ObservationLinkPeriodComponent, selectors: [["lfb-observation-link-period"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 8, vars: 13, 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"]], template: function ObservationLinkPeriodComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6768
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
|
|
6769
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ObservationLinkPeriodComponent_lfb_label_1_Template, 1, 4, "lfb-label", 1);
|
|
6770
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div");
|
|
6771
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 2);
|
|
6772
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function ObservationLinkPeriodComponent_Template_div_ngModelChange_3_listener($event) { return ctx.onBooleanChange($event); });
|
|
6773
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ObservationLinkPeriodComponent_ng_container_4_Template, 4, 5, "ng-container", 3);
|
|
6774
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6775
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, ObservationLinkPeriodComponent_div_5_Template, 2, 2, "div", 4);
|
|
6776
|
+
_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"]);
|
|
6777
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6778
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
6779
|
+
} if (rf & 2) {
|
|
6780
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](10, _c0, ctx.labelPosition === "left"));
|
|
6781
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6782
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.nolabel);
|
|
6783
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6784
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate2"]("", ctx.controlWidthClass, " p-0 ", ctx.adjustVAlignClass, "");
|
|
6785
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6786
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.showOlp);
|
|
6787
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("name", ctx.name);
|
|
6788
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6789
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](12, _c1));
|
|
6790
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
6791
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.showOlp);
|
|
6792
|
+
} }, 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"]], 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 */"] });
|
|
6793
|
+
|
|
6794
|
+
|
|
6480
6795
|
/***/ }),
|
|
6481
6796
|
|
|
6482
6797
|
/***/ "fECr":
|
|
@@ -6719,7 +7034,6 @@ class AutoCompleteComponent {
|
|
|
6719
7034
|
*/
|
|
6720
7035
|
_search(value) {
|
|
6721
7036
|
return this.searchCallback(value);
|
|
6722
|
-
// return this.lformsService.searchForms(value);
|
|
6723
7037
|
}
|
|
6724
7038
|
}
|
|
6725
7039
|
AutoCompleteComponent.ɵfac = function AutoCompleteComponent_Factory(t) { return new (t || AutoCompleteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_fetch_service__WEBPACK_IMPORTED_MODULE_4__["FetchService"])); };
|
|
@@ -8747,6 +9061,200 @@ FhirExportDlgComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵd
|
|
|
8747
9061
|
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["JsonPipe"]], styles: [".fhir-response[_ngcontent-%COMP%] {\n white-space: pre-wrap;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZoaXItZXhwb3J0LWRsZy5jb21wb25lbnQuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UscUJBQXFCO0FBQ3ZCIiwiZmlsZSI6ImZoaXItZXhwb3J0LWRsZy5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZoaXItcmVzcG9uc2Uge1xuICB3aGl0ZS1zcGFjZTogcHJlLXdyYXA7XG59XG4iXX0= */"] });
|
|
8748
9062
|
|
|
8749
9063
|
|
|
9064
|
+
/***/ }),
|
|
9065
|
+
|
|
9066
|
+
/***/ "sFzh":
|
|
9067
|
+
/*!************************************************!*\
|
|
9068
|
+
!*** ./src/app/services/extensions.service.ts ***!
|
|
9069
|
+
\************************************************/
|
|
9070
|
+
/*! exports provided: ExtensionsService */
|
|
9071
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9072
|
+
|
|
9073
|
+
"use strict";
|
|
9074
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9075
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtensionsService", function() { return ExtensionsService; });
|
|
9076
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp");
|
|
9077
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "8Y7J");
|
|
9078
|
+
|
|
9079
|
+
|
|
9080
|
+
/**
|
|
9081
|
+
* This class is intended for components which needs to interact with extension field.
|
|
9082
|
+
* The service is instantiated along with sf-form. The host component instantiating sf-form,
|
|
9083
|
+
* should instantiate this service. Also make sure to get fresh reference
|
|
9084
|
+
* to extension: ArrayProperty whenever the model has changed, typically in ngOnChanges().
|
|
9085
|
+
*/
|
|
9086
|
+
// @ts-ignore
|
|
9087
|
+
class ExtensionsService {
|
|
9088
|
+
constructor() {
|
|
9089
|
+
this._propertyMap = new Map();
|
|
9090
|
+
this._extMap = new Map();
|
|
9091
|
+
this.subscriptions = [];
|
|
9092
|
+
this.extensionsChange$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
|
|
9093
|
+
}
|
|
9094
|
+
/**
|
|
9095
|
+
* Set extensions ArrayProperty. This is the form property obtained
|
|
9096
|
+
* from form.rootProperty.get('extension'). It should be set any time the form's model is changed.
|
|
9097
|
+
*
|
|
9098
|
+
* @param extensions - ArrayProperty of 'extension' field.
|
|
9099
|
+
*/
|
|
9100
|
+
setExtensions(extensions) {
|
|
9101
|
+
this.subscriptions.forEach((s) => {
|
|
9102
|
+
s.unsubscribe();
|
|
9103
|
+
});
|
|
9104
|
+
this.subscriptions = [];
|
|
9105
|
+
this.extensionsProp = extensions;
|
|
9106
|
+
const sub = this.extensionsProp.valueChanges.subscribe((vals) => {
|
|
9107
|
+
this.updateMaps();
|
|
9108
|
+
this.extensionsChange$.next(vals);
|
|
9109
|
+
});
|
|
9110
|
+
this.subscriptions.push(sub);
|
|
9111
|
+
}
|
|
9112
|
+
/**
|
|
9113
|
+
* Access observable to subscribe for notifications on changes.
|
|
9114
|
+
*/
|
|
9115
|
+
get extensionsObservable() {
|
|
9116
|
+
return this.extensionsChange$.asObservable();
|
|
9117
|
+
}
|
|
9118
|
+
/**
|
|
9119
|
+
* Group the extensions by their url.
|
|
9120
|
+
*/
|
|
9121
|
+
updateMaps() {
|
|
9122
|
+
this._extMap.clear();
|
|
9123
|
+
this._propertyMap.clear();
|
|
9124
|
+
this._propertyMap = this.extensionsProp.properties
|
|
9125
|
+
.reduce((acc, property, index) => {
|
|
9126
|
+
let properties = acc.get(property.value.url);
|
|
9127
|
+
let values = this._extMap.get(property.value.url);
|
|
9128
|
+
if (!properties) {
|
|
9129
|
+
properties = [];
|
|
9130
|
+
values = [];
|
|
9131
|
+
acc.set(property.value.url, properties);
|
|
9132
|
+
this._extMap.set(property.value.url, values);
|
|
9133
|
+
}
|
|
9134
|
+
properties.push(property);
|
|
9135
|
+
values.push(property.value);
|
|
9136
|
+
return acc;
|
|
9137
|
+
}, this._propertyMap);
|
|
9138
|
+
}
|
|
9139
|
+
/**
|
|
9140
|
+
* Get an array of all extension objects identified by the url.
|
|
9141
|
+
* @param extUrl - Url to identify the extensions.
|
|
9142
|
+
*/
|
|
9143
|
+
getExtensionsByUrl(extUrl) {
|
|
9144
|
+
return this._extMap.get(extUrl);
|
|
9145
|
+
}
|
|
9146
|
+
/**
|
|
9147
|
+
* Get first extension object identified by the url.
|
|
9148
|
+
* @param extUrl - Url to identify the extension.
|
|
9149
|
+
*/
|
|
9150
|
+
getFirstExtensionByUrl(extUrl) {
|
|
9151
|
+
const extensions = this._extMap.get(extUrl);
|
|
9152
|
+
return (extensions === null || extensions === void 0 ? void 0 : extensions.length) > 0 ? extensions[0] : null;
|
|
9153
|
+
}
|
|
9154
|
+
/**
|
|
9155
|
+
* Get an array of all extension form properties for a given extension url.
|
|
9156
|
+
* @param extUrl - Url to identify the extension.
|
|
9157
|
+
*/
|
|
9158
|
+
getExtensionFormPropertiesByUrl(extUrl) {
|
|
9159
|
+
return this._propertyMap.get(extUrl);
|
|
9160
|
+
}
|
|
9161
|
+
/**
|
|
9162
|
+
* Get a single extension form property.
|
|
9163
|
+
* @param extUrl - Url to identify the extension.
|
|
9164
|
+
*/
|
|
9165
|
+
getFirstExtensionFormPropertyByUrl(extUrl) {
|
|
9166
|
+
const props = this._propertyMap.get(extUrl);
|
|
9167
|
+
return (props === null || props === void 0 ? void 0 : props.length) > 0 ? props[0] : null;
|
|
9168
|
+
}
|
|
9169
|
+
/**
|
|
9170
|
+
* Remove all extensions matching the given url.
|
|
9171
|
+
* @param extUrl - Url to identify the extension.
|
|
9172
|
+
*/
|
|
9173
|
+
removeExtensionsByUrl(extUrl) {
|
|
9174
|
+
this.removeAllExtensions((ext) => {
|
|
9175
|
+
return ext.value.url === extUrl;
|
|
9176
|
+
});
|
|
9177
|
+
}
|
|
9178
|
+
/**
|
|
9179
|
+
* Remove all extensions that match a given criteria.
|
|
9180
|
+
* A callback method 'match` is called for each extension. Al
|
|
9181
|
+
* If it returns true, that extension is included in the removal list.
|
|
9182
|
+
* @param match - Callback with argument of FormProperty for an extension in the ArrayProperty.
|
|
9183
|
+
*/
|
|
9184
|
+
removeAllExtensions(match) {
|
|
9185
|
+
const otherExts = this.extensionsProp.properties.filter((ext) => {
|
|
9186
|
+
return !match(ext);
|
|
9187
|
+
}).map(p => p.value);
|
|
9188
|
+
if (otherExts.length !== this.extensionsProp.properties.length) {
|
|
9189
|
+
this.extensionsProp.reset(otherExts, false);
|
|
9190
|
+
}
|
|
9191
|
+
}
|
|
9192
|
+
/**
|
|
9193
|
+
* Remove the first extension that matches a criteria. A callback method 'match` is called for each extension
|
|
9194
|
+
* The first extension that returns true is removed.
|
|
9195
|
+
* @param match - Callback with argument of FormProperty for an extension in the ArrayProperty.
|
|
9196
|
+
*/
|
|
9197
|
+
removeExtension(match) {
|
|
9198
|
+
const extension = this.extensionsProp.properties.find((ext) => {
|
|
9199
|
+
return match(ext);
|
|
9200
|
+
});
|
|
9201
|
+
this.extensionsProp.removeItem(extension);
|
|
9202
|
+
}
|
|
9203
|
+
/**
|
|
9204
|
+
* Add extension property.
|
|
9205
|
+
* Extension will include only one of several possible value[x] fields. If the value type is passed, removes all other
|
|
9206
|
+
* empty value[x].
|
|
9207
|
+
*
|
|
9208
|
+
* @param ext - Extension object
|
|
9209
|
+
* @param valueType - Key of valueType. It starts with 'value' prefix. If given,
|
|
9210
|
+
* all other value[x] will be deleted from the property value.
|
|
9211
|
+
*
|
|
9212
|
+
*/
|
|
9213
|
+
addExtension(ext, valueType) {
|
|
9214
|
+
const extProp = this.extensionsProp.addItem(ext);
|
|
9215
|
+
if (valueType) {
|
|
9216
|
+
this.pruneUnusedValues(extProp, valueType);
|
|
9217
|
+
}
|
|
9218
|
+
return extProp;
|
|
9219
|
+
}
|
|
9220
|
+
/**
|
|
9221
|
+
* Remove unused value[x] fields from extension.
|
|
9222
|
+
*
|
|
9223
|
+
* @param extProperty - Extension form property
|
|
9224
|
+
* @param keepValueType - value[x] to keep.
|
|
9225
|
+
*/
|
|
9226
|
+
pruneUnusedValues(extProperty, keepValueType) {
|
|
9227
|
+
const value = extProperty.value;
|
|
9228
|
+
const keys = Object.keys(value);
|
|
9229
|
+
for (const key of keys) {
|
|
9230
|
+
if (value.hasOwnProperty(key) && key.startsWith('value') && key !== keepValueType) {
|
|
9231
|
+
delete value[key];
|
|
9232
|
+
}
|
|
9233
|
+
}
|
|
9234
|
+
return extProperty;
|
|
9235
|
+
}
|
|
9236
|
+
/**
|
|
9237
|
+
* Reset the extension's form property
|
|
9238
|
+
* @param extUrl - Url of the extension to identify
|
|
9239
|
+
* @param value - New value to reset with.
|
|
9240
|
+
* @param valueType - This is one of the value[x] applicable to this extension
|
|
9241
|
+
* @param selfOnly - Emit change event to only self. False, emits the event to parent.
|
|
9242
|
+
* Refer angular's reactive form documentation for more information.
|
|
9243
|
+
*/
|
|
9244
|
+
resetExtension(extUrl, value, valueType, selfOnly) {
|
|
9245
|
+
const extProp = this.getFirstExtensionFormPropertyByUrl(extUrl);
|
|
9246
|
+
if (extProp) {
|
|
9247
|
+
extProp.reset(value, selfOnly);
|
|
9248
|
+
}
|
|
9249
|
+
else {
|
|
9250
|
+
this.addExtension(value, valueType);
|
|
9251
|
+
}
|
|
9252
|
+
}
|
|
9253
|
+
}
|
|
9254
|
+
ExtensionsService.ɵfac = function ExtensionsService_Factory(t) { return new (t || ExtensionsService)(); };
|
|
9255
|
+
ExtensionsService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: ExtensionsService, factory: ExtensionsService.ɵfac });
|
|
9256
|
+
|
|
9257
|
+
|
|
8750
9258
|
/***/ }),
|
|
8751
9259
|
|
|
8752
9260
|
/***/ "vY5A":
|