StructureDefinition-sdc-questionnaire-definitionExtractValue.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <StructureDefinition xmlns="http://hl7.org/fhir">
3 <id value="sdc-questionnaire-definitionExtractValue" />
4 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
5 <valueCode value="draft" />
6 </extension>
7 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
8 <valueInteger value="0" />
9 </extension>
10 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
11 <valueCode value="fhir" />
12 </extension>
13 <url value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-definitionExtractValue" />
14 <identifier>
15 <system value="urn:ietf:rfc:3986" />
16 <value value="urn:oid:2.16.840.1.113883.4.642.40.17.42.82" />
17 </identifier>
18 <version value="4.0.0-ballot" />
19 <name value="DefinitionExtractValueExtension" />
20 <title value="Extract Definition - Extract value" />
21 <status value="draft" />
22 <date value="2024-12-22T04:48:38.0000000+01:00" />
23 <publisher value="HL7 International / FHIR Infrastructure" />
24 <contact>
25 <name value="HL7 International / FHIR Infrastructure" />
26 <telecom>
27 <system value="url" />
28 <value value="http://www.hl7.org/Special/committees/fiwg" />
29 </telecom>
30 </contact>
31 <contact>
32 <telecom>
33 <system value="url" />
34 <value value="http://www.hl7.org/Special/committees/fiwg" />
35 </telecom>
36 </contact>
37 <description value="Provide either a fixed value, or an expression to evaluate, to be used as the value for the extracted resource's property based on the `definition` value." />
38 <jurisdiction>
39 <coding>
40 <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
41 <code value="001" />
42 <display value="World" />
43 </coding>
44 </jurisdiction>
45 <fhirVersion value="4.0.1" />
46 <mapping>
47 <identity value="rim" />
48 <uri value="http://hl7.org/v3" />
49 <name value="RIM Mapping" />
50 </mapping>
51 <kind value="complex-type" />
52 <abstract value="false" />
53 <context>
54 <type value="element" />
55 <expression value="Questionnaire" />
56 </context>
57 <context>
58 <type value="element" />
59 <expression value="Questionnaire.item" />
60 </context>
61 <context>
62 <type value="element" />
63 <expression value="ElementDefinition" />
64 </context>
65 <type value="Extension" />
66 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
67 <derivation value="constraint" />
68 <snapshot>
69 <element id="Extension">
70 <path value="Extension" />
71 <short value="Fixed or calculated value to extract" />
72 <definition value="Provide either a fixed value, or an expression to evaluate, to be used as the value for the extracted resource's property based on the `definition` value." />
73 <min value="0" />
74 <max value="*" />
75 <base>
76 <path value="Extension" />
77 <min value="0" />
78 <max value="*" />
79 </base>
80 <condition value="ele-1" />
81 <constraint>
82 <key value="ele-1" />
83 <severity value="error" />
84 <human value="All FHIR elements must have a @value or children" />
85 <expression value="hasValue() or (children().count() > id.count())" />
86 <xpath value="@value|f:*|h:div" />
87 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
88 </constraint>
89 <constraint>
90 <key value="ext-1" />
91 <severity value="error" />
92 <human value="Must have either extensions or value[x], not both" />
93 <expression value="extension.exists() != value.exists()" />
94 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
95 <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
96 </constraint>
97 <constraint>
98 <key value="dev-1" />
99 <severity value="error" />
100 <human value="Either `expression` or a `fixed-value` must be provided." />
101 <expression value="extension('expression').value.exists() xor extension('fixed-value').value.exists()" />
102 <source value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-definitionExtractValue" />
103 </constraint>
104 <isModifier value="false" />
105 </element>
106 <element id="Extension.id">
107 <path value="Extension.id" />
108 <representation value="xmlAttr" />
109 <short value="Unique id for inter-element referencing" />
110 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
111 <min value="0" />
112 <max value="1" />
113 <base>
114 <path value="Element.id" />
115 <min value="0" />
116 <max value="1" />
117 </base>
118 <type>
119 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
120 <valueUrl value="string" />
121 </extension>
122 <code value="http://hl7.org/fhirpath/System.String" />
123 </type>
124 <isModifier value="false" />
125 <isSummary value="false" />
126 <mapping>
127 <identity value="rim" />
128 <map value="n/a" />
129 </mapping>
130 </element>
131 <element id="Extension.extension">
132 <path value="Extension.extension" />
133 <slicing>
134 <discriminator>
135 <type value="value" />
136 <path value="url" />
137 </discriminator>
138 <description value="Extensions are always sliced by (at least) url" />
139 <rules value="open" />
140 </slicing>
141 <short value="Extension" />
142 <definition value="An Extension" />
143 <min value="1" />
144 <max value="*" />
145 <base>
146 <path value="Element.extension" />
147 <min value="0" />
148 <max value="*" />
149 </base>
150 <type>
151 <code value="Extension" />
152 </type>
153 <constraint>
154 <key value="ele-1" />
155 <severity value="error" />
156 <human value="All FHIR elements must have a @value or children" />
157 <expression value="hasValue() or (children().count() > id.count())" />
158 <xpath value="@value|f:*|h:div" />
159 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
160 </constraint>
161 <constraint>
162 <key value="ext-1" />
163 <severity value="error" />
164 <human value="Must have either extensions or value[x], not both" />
165 <expression value="extension.exists() != value.exists()" />
166 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
167 <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
168 </constraint>
169 <isModifier value="false" />
170 <isSummary value="false" />
171 </element>
172 <element id="Extension.extension:definition">
173 <path value="Extension.extension" />
174 <sliceName value="definition" />
175 <short value="ElementDefintion to extract value into" />
176 <definition value="This is the profile canonical Url, followed by `#` and the element id, that the value should be extracted into." />
177 <min value="1" />
178 <max value="1" />
179 <base>
180 <path value="Element.extension" />
181 <min value="0" />
182 <max value="*" />
183 </base>
184 <type>
185 <code value="Extension" />
186 </type>
187 <constraint>
188 <key value="ele-1" />
189 <severity value="error" />
190 <human value="All FHIR elements must have a @value or children" />
191 <expression value="hasValue() or (children().count() > id.count())" />
192 <xpath value="@value|f:*|h:div" />
193 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
194 </constraint>
195 <constraint>
196 <key value="ext-1" />
197 <severity value="error" />
198 <human value="Must have either extensions or value[x], not both" />
199 <expression value="extension.exists() != value.exists()" />
200 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
201 <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
202 </constraint>
203 <isModifier value="false" />
204 <isSummary value="false" />
205 </element>
206 <element id="Extension.extension:definition.id">
207 <path value="Extension.extension.id" />
208 <representation value="xmlAttr" />
209 <short value="Unique id for inter-element referencing" />
210 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
211 <min value="0" />
212 <max value="1" />
213 <base>
214 <path value="Element.id" />
215 <min value="0" />
216 <max value="1" />
217 </base>
218 <type>
219 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
220 <valueUrl value="string" />
221 </extension>
222 <code value="http://hl7.org/fhirpath/System.String" />
223 </type>
224 <isModifier value="false" />
225 <isSummary value="false" />
226 <mapping>
227 <identity value="rim" />
228 <map value="n/a" />
229 </mapping>
230 </element>
231 <element id="Extension.extension:definition.extension">
232 <path value="Extension.extension.extension" />
233 <slicing>
234 <discriminator>
235 <type value="value" />
236 <path value="url" />
237 </discriminator>
238 <description value="Extensions are always sliced by (at least) url" />
239 <rules value="open" />
240 </slicing>
241 <short value="Extension" />
242 <definition value="An Extension" />
243 <min value="0" />
244 <max value="0" />
245 <base>
246 <path value="Element.extension" />
247 <min value="0" />
248 <max value="*" />
249 </base>
250 <type>
251 <code value="Extension" />
252 </type>
253 <constraint>
254 <key value="ele-1" />
255 <severity value="error" />
256 <human value="All FHIR elements must have a @value or children" />
257 <expression value="hasValue() or (children().count() > id.count())" />
258 <xpath value="@value|f:*|h:div" />
259 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
260 </constraint>
261 <constraint>
262 <key value="ext-1" />
263 <severity value="error" />
264 <human value="Must have either extensions or value[x], not both" />
265 <expression value="extension.exists() != value.exists()" />
266 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
267 <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
268 </constraint>
269 <isModifier value="false" />
270 <isSummary value="false" />
271 </element>
272 <element id="Extension.extension:definition.url">
273 <path value="Extension.extension.url" />
274 <representation value="xmlAttr" />
275 <short value="identifies the meaning of the extension" />
276 <definition value="Source of the definition for the extension code - a logical name or a URL." />
277 <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." />
278 <min value="1" />
279 <max value="1" />
280 <base>
281 <path value="Extension.url" />
282 <min value="1" />
283 <max value="1" />
284 </base>
285 <type>
286 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
287 <valueUrl value="uri" />
288 </extension>
289 <code value="http://hl7.org/fhirpath/System.String" />
290 </type>
291 <fixedUri value="definition" />
292 <isModifier value="false" />
293 <isSummary value="false" />
294 <mapping>
295 <identity value="rim" />
296 <map value="N/A" />
297 </mapping>
298 </element>
299 <element id="Extension.extension:definition.value[x]">
300 <path value="Extension.extension.value[x]" />
301 <short value="Profile canonical URL and element id" />
302 <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
303 <min value="1" />
304 <max value="1" />
305 <base>
306 <path value="Extension.value[x]" />
307 <min value="0" />
308 <max value="1" />
309 </base>
310 <type>
311 <code value="uri" />
312 </type>
313 <constraint>
314 <key value="ele-1" />
315 <severity value="error" />
316 <human value="All FHIR elements must have a @value or children" />
317 <expression value="hasValue() or (children().count() > id.count())" />
318 <xpath value="@value|f:*|h:div" />
319 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
320 </constraint>
321 <isModifier value="false" />
322 <isSummary value="false" />
323 <mapping>
324 <identity value="rim" />
325 <map value="N/A" />
326 </mapping>
327 </element>
328 <element id="Extension.extension:expression">
329 <path value="Extension.extension" />
330 <sliceName value="expression" />
331 <short value="An expression to evaluate" />
332 <definition value="An expression to evaluate to extract the value into the specified element definition. If no value is evaluated, then the element is not extracted." />
333 <min value="0" />
334 <max value="1" />
335 <base>
336 <path value="Element.extension" />
337 <min value="0" />
338 <max value="*" />
339 </base>
340 <type>
341 <code value="Extension" />
342 </type>
343 <constraint>
344 <key value="ele-1" />
345 <severity value="error" />
346 <human value="All FHIR elements must have a @value or children" />
347 <expression value="hasValue() or (children().count() > id.count())" />
348 <xpath value="@value|f:*|h:div" />
349 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
350 </constraint>
351 <constraint>
352 <key value="ext-1" />
353 <severity value="error" />
354 <human value="Must have either extensions or value[x], not both" />
355 <expression value="extension.exists() != value.exists()" />
356 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
357 <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
358 </constraint>
359 <isModifier value="false" />
360 <isSummary value="false" />
361 </element>
362 <element id="Extension.extension:expression.id">
363 <path value="Extension.extension.id" />
364 <representation value="xmlAttr" />
365 <short value="Unique id for inter-element referencing" />
366 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
367 <min value="0" />
368 <max value="1" />
369 <base>
370 <path value="Element.id" />
371 <min value="0" />
372 <max value="1" />
373 </base>
374 <type>
375 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
376 <valueUrl value="string" />
377 </extension>
378 <code value="http://hl7.org/fhirpath/System.String" />
379 </type>
380 <isModifier value="false" />
381 <isSummary value="false" />
382 <mapping>
383 <identity value="rim" />
384 <map value="n/a" />
385 </mapping>
386 </element>
387 <element id="Extension.extension:expression.extension">
388 <path value="Extension.extension.extension" />
389 <slicing>
390 <discriminator>
391 <type value="value" />
392 <path value="url" />
393 </discriminator>
394 <description value="Extensions are always sliced by (at least) url" />
395 <rules value="open" />
396 </slicing>
397 <short value="Extension" />
398 <definition value="An Extension" />
399 <min value="0" />
400 <max value="0" />
401 <base>
402 <path value="Element.extension" />
403 <min value="0" />
404 <max value="*" />
405 </base>
406 <type>
407 <code value="Extension" />
408 </type>
409 <constraint>
410 <key value="ele-1" />
411 <severity value="error" />
412 <human value="All FHIR elements must have a @value or children" />
413 <expression value="hasValue() or (children().count() > id.count())" />
414 <xpath value="@value|f:*|h:div" />
415 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
416 </constraint>
417 <constraint>
418 <key value="ext-1" />
419 <severity value="error" />
420 <human value="Must have either extensions or value[x], not both" />
421 <expression value="extension.exists() != value.exists()" />
422 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
423 <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
424 </constraint>
425 <isModifier value="false" />
426 <isSummary value="false" />
427 </element>
428 <element id="Extension.extension:expression.url">
429 <path value="Extension.extension.url" />
430 <representation value="xmlAttr" />
431 <short value="identifies the meaning of the extension" />
432 <definition value="Source of the definition for the extension code - a logical name or a URL." />
433 <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." />
434 <min value="1" />
435 <max value="1" />
436 <base>
437 <path value="Extension.url" />
438 <min value="1" />
439 <max value="1" />
440 </base>
441 <type>
442 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
443 <valueUrl value="uri" />
444 </extension>
445 <code value="http://hl7.org/fhirpath/System.String" />
446 </type>
447 <fixedUri value="expression" />
448 <isModifier value="false" />
449 <isSummary value="false" />
450 <mapping>
451 <identity value="rim" />
452 <map value="N/A" />
453 </mapping>
454 </element>
455 <element id="Extension.extension:expression.value[x]">
456 <path value="Extension.extension.value[x]" />
457 <short value="Expression value" />
458 <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
459 <min value="1" />
460 <max value="1" />
461 <base>
462 <path value="Extension.value[x]" />
463 <min value="0" />
464 <max value="1" />
465 </base>
466 <type>
467 <code value="Expression" />
468 </type>
469 <constraint>
470 <key value="ele-1" />
471 <severity value="error" />
472 <human value="All FHIR elements must have a @value or children" />
473 <expression value="hasValue() or (children().count() > id.count())" />
474 <xpath value="@value|f:*|h:div" />
475 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
476 </constraint>
477 <isModifier value="false" />
478 <isSummary value="false" />
479 <mapping>
480 <identity value="rim" />
481 <map value="N/A" />
482 </mapping>
483 </element>
484 <element id="Extension.extension:fixed-value">
485 <path value="Extension.extension" />
486 <sliceName value="fixed-value" />
487 <short value="A fixed value to extract" />
488 <definition value="A fixed value to extract into the specified element definition." />
489 <min value="0" />
490 <max value="1" />
491 <base>
492 <path value="Element.extension" />
493 <min value="0" />
494 <max value="*" />
495 </base>
496 <type>
497 <code value="Extension" />
498 </type>
499 <constraint>
500 <key value="ele-1" />
501 <severity value="error" />
502 <human value="All FHIR elements must have a @value or children" />
503 <expression value="hasValue() or (children().count() > id.count())" />
504 <xpath value="@value|f:*|h:div" />
505 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
506 </constraint>
507 <constraint>
508 <key value="ext-1" />
509 <severity value="error" />
510 <human value="Must have either extensions or value[x], not both" />
511 <expression value="extension.exists() != value.exists()" />
512 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
513 <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
514 </constraint>
515 <isModifier value="false" />
516 <isSummary value="false" />
517 </element>
518 <element id="Extension.extension:fixed-value.id">
519 <path value="Extension.extension.id" />
520 <representation value="xmlAttr" />
521 <short value="Unique id for inter-element referencing" />
522 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
523 <min value="0" />
524 <max value="1" />
525 <base>
526 <path value="Element.id" />
527 <min value="0" />
528 <max value="1" />
529 </base>
530 <type>
531 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
532 <valueUrl value="string" />
533 </extension>
534 <code value="http://hl7.org/fhirpath/System.String" />
535 </type>
536 <isModifier value="false" />
537 <isSummary value="false" />
538 <mapping>
539 <identity value="rim" />
540 <map value="n/a" />
541 </mapping>
542 </element>
543 <element id="Extension.extension:fixed-value.extension">
544 <path value="Extension.extension.extension" />
545 <slicing>
546 <discriminator>
547 <type value="value" />
548 <path value="url" />
549 </discriminator>
550 <description value="Extensions are always sliced by (at least) url" />
551 <rules value="open" />
552 </slicing>
553 <short value="Extension" />
554 <definition value="An Extension" />
555 <min value="0" />
556 <max value="0" />
557 <base>
558 <path value="Element.extension" />
559 <min value="0" />
560 <max value="*" />
561 </base>
562 <type>
563 <code value="Extension" />
564 </type>
565 <constraint>
566 <key value="ele-1" />
567 <severity value="error" />
568 <human value="All FHIR elements must have a @value or children" />
569 <expression value="hasValue() or (children().count() > id.count())" />
570 <xpath value="@value|f:*|h:div" />
571 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
572 </constraint>
573 <constraint>
574 <key value="ext-1" />
575 <severity value="error" />
576 <human value="Must have either extensions or value[x], not both" />
577 <expression value="extension.exists() != value.exists()" />
578 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
579 <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
580 </constraint>
581 <isModifier value="false" />
582 <isSummary value="false" />
583 </element>
584 <element id="Extension.extension:fixed-value.url">
585 <path value="Extension.extension.url" />
586 <representation value="xmlAttr" />
587 <short value="identifies the meaning of the extension" />
588 <definition value="Source of the definition for the extension code - a logical name or a URL." />
589 <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." />
590 <min value="1" />
591 <max value="1" />
592 <base>
593 <path value="Extension.url" />
594 <min value="1" />
595 <max value="1" />
596 </base>
597 <type>
598 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
599 <valueUrl value="uri" />
600 </extension>
601 <code value="http://hl7.org/fhirpath/System.String" />
602 </type>
603 <fixedUri value="fixed-value" />
604 <isModifier value="false" />
605 <isSummary value="false" />
606 <mapping>
607 <identity value="rim" />
608 <map value="N/A" />
609 </mapping>
610 </element>
611 <element id="Extension.extension:fixed-value.value[x]">
612 <path value="Extension.extension.value[x]" />
613 <short value="Fixed value" />
614 <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
615 <min value="1" />
616 <max value="1" />
617 <base>
618 <path value="Extension.value[x]" />
619 <min value="0" />
620 <max value="1" />
621 </base>
622 <type>
623 <code value="base64Binary" />
624 </type>
625 <type>
626 <code value="boolean" />
627 </type>
628 <type>
629 <code value="canonical" />
630 </type>
631 <type>
632 <code value="code" />
633 </type>
634 <type>
635 <code value="date" />
636 </type>
637 <type>
638 <code value="dateTime" />
639 </type>
640 <type>
641 <code value="decimal" />
642 </type>
643 <type>
644 <code value="id" />
645 </type>
646 <type>
647 <code value="instant" />
648 </type>
649 <type>
650 <code value="integer" />
651 </type>
652 <type>
653 <code value="markdown" />
654 </type>
655 <type>
656 <code value="oid" />
657 </type>
658 <type>
659 <code value="positiveInt" />
660 </type>
661 <type>
662 <code value="string" />
663 </type>
664 <type>
665 <code value="time" />
666 </type>
667 <type>
668 <code value="unsignedInt" />
669 </type>
670 <type>
671 <code value="uri" />
672 </type>
673 <type>
674 <code value="url" />
675 </type>
676 <type>
677 <code value="uuid" />
678 </type>
679 <type>
680 <code value="Address" />
681 </type>
682 <type>
683 <code value="Age" />
684 </type>
685 <type>
686 <code value="Annotation" />
687 </type>
688 <type>
689 <code value="Attachment" />
690 </type>
691 <type>
692 <code value="CodeableConcept" />
693 </type>
694 <type>
695 <code value="Coding" />
696 </type>
697 <type>
698 <code value="ContactPoint" />
699 </type>
700 <type>
701 <code value="Count" />
702 </type>
703 <type>
704 <code value="Distance" />
705 </type>
706 <type>
707 <code value="Duration" />
708 </type>
709 <type>
710 <code value="HumanName" />
711 </type>
712 <type>
713 <code value="Identifier" />
714 </type>
715 <type>
716 <code value="Money" />
717 </type>
718 <type>
719 <code value="Period" />
720 </type>
721 <type>
722 <code value="Quantity" />
723 </type>
724 <type>
725 <code value="Range" />
726 </type>
727 <type>
728 <code value="Ratio" />
729 </type>
730 <type>
731 <code value="Reference" />
732 </type>
733 <type>
734 <code value="SampledData" />
735 </type>
736 <type>
737 <code value="Signature" />
738 </type>
739 <type>
740 <code value="Timing" />
741 </type>
742 <type>
743 <code value="ContactDetail" />
744 </type>
745 <type>
746 <code value="Contributor" />
747 </type>
748 <type>
749 <code value="DataRequirement" />
750 </type>
751 <type>
752 <code value="Expression" />
753 </type>
754 <type>
755 <code value="ParameterDefinition" />
756 </type>
757 <type>
758 <code value="RelatedArtifact" />
759 </type>
760 <type>
761 <code value="TriggerDefinition" />
762 </type>
763 <type>
764 <code value="UsageContext" />
765 </type>
766 <type>
767 <code value="Dosage" />
768 </type>
769 <type>
770 <code value="Meta" />
771 </type>
772 <constraint>
773 <key value="ele-1" />
774 <severity value="error" />
775 <human value="All FHIR elements must have a @value or children" />
776 <expression value="hasValue() or (children().count() > id.count())" />
777 <xpath value="@value|f:*|h:div" />
778 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
779 </constraint>
780 <isModifier value="false" />
781 <isSummary value="false" />
782 <mapping>
783 <identity value="rim" />
784 <map value="N/A" />
785 </mapping>
786 </element>
787 <element id="Extension.url">
788 <path value="Extension.url" />
789 <representation value="xmlAttr" />
790 <short value="identifies the meaning of the extension" />
791 <definition value="Source of the definition for the extension code - a logical name or a URL." />
792 <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." />
793 <min value="1" />
794 <max value="1" />
795 <base>
796 <path value="Extension.url" />
797 <min value="1" />
798 <max value="1" />
799 </base>
800 <type>
801 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
802 <valueUrl value="uri" />
803 </extension>
804 <code value="http://hl7.org/fhirpath/System.String" />
805 </type>
806 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-definitionExtractValue" />
807 <isModifier value="false" />
808 <isSummary value="false" />
809 <mapping>
810 <identity value="rim" />
811 <map value="N/A" />
812 </mapping>
813 </element>
814 <element id="Extension.value[x]">
815 <path value="Extension.value[x]" />
816 <short value="Value of extension" />
817 <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
818 <min value="0" />
819 <max value="0" />
820 <base>
821 <path value="Extension.value[x]" />
822 <min value="0" />
823 <max value="1" />
824 </base>
825 <type>
826 <code value="base64Binary" />
827 </type>
828 <type>
829 <code value="boolean" />
830 </type>
831 <type>
832 <code value="canonical" />
833 </type>
834 <type>
835 <code value="code" />
836 </type>
837 <type>
838 <code value="date" />
839 </type>
840 <type>
841 <code value="dateTime" />
842 </type>
843 <type>
844 <code value="decimal" />
845 </type>
846 <type>
847 <code value="id" />
848 </type>
849 <type>
850 <code value="instant" />
851 </type>
852 <type>
853 <code value="integer" />
854 </type>
855 <type>
856 <code value="markdown" />
857 </type>
858 <type>
859 <code value="oid" />
860 </type>
861 <type>
862 <code value="positiveInt" />
863 </type>
864 <type>
865 <code value="string" />
866 </type>
867 <type>
868 <code value="time" />
869 </type>
870 <type>
871 <code value="unsignedInt" />
872 </type>
873 <type>
874 <code value="uri" />
875 </type>
876 <type>
877 <code value="url" />
878 </type>
879 <type>
880 <code value="uuid" />
881 </type>
882 <type>
883 <code value="Address" />
884 </type>
885 <type>
886 <code value="Age" />
887 </type>
888 <type>
889 <code value="Annotation" />
890 </type>
891 <type>
892 <code value="Attachment" />
893 </type>
894 <type>
895 <code value="CodeableConcept" />
896 </type>
897 <type>
898 <code value="Coding" />
899 </type>
900 <type>
901 <code value="ContactPoint" />
902 </type>
903 <type>
904 <code value="Count" />
905 </type>
906 <type>
907 <code value="Distance" />
908 </type>
909 <type>
910 <code value="Duration" />
911 </type>
912 <type>
913 <code value="HumanName" />
914 </type>
915 <type>
916 <code value="Identifier" />
917 </type>
918 <type>
919 <code value="Money" />
920 </type>
921 <type>
922 <code value="Period" />
923 </type>
924 <type>
925 <code value="Quantity" />
926 </type>
927 <type>
928 <code value="Range" />
929 </type>
930 <type>
931 <code value="Ratio" />
932 </type>
933 <type>
934 <code value="Reference" />
935 </type>
936 <type>
937 <code value="SampledData" />
938 </type>
939 <type>
940 <code value="Signature" />
941 </type>
942 <type>
943 <code value="Timing" />
944 </type>
945 <type>
946 <code value="ContactDetail" />
947 </type>
948 <type>
949 <code value="Contributor" />
950 </type>
951 <type>
952 <code value="DataRequirement" />
953 </type>
954 <type>
955 <code value="Expression" />
956 </type>
957 <type>
958 <code value="ParameterDefinition" />
959 </type>
960 <type>
961 <code value="RelatedArtifact" />
962 </type>
963 <type>
964 <code value="TriggerDefinition" />
965 </type>
966 <type>
967 <code value="UsageContext" />
968 </type>
969 <type>
970 <code value="Dosage" />
971 </type>
972 <type>
973 <code value="Meta" />
974 </type>
975 <constraint>
976 <key value="ele-1" />
977 <severity value="error" />
978 <human value="All FHIR elements must have a @value or children" />
979 <expression value="hasValue() or (children().count() > id.count())" />
980 <xpath value="@value|f:*|h:div" />
981 <source value="http://hl7.org/fhir/StructureDefinition/Element" />
982 </constraint>
983 <isModifier value="false" />
984 <isSummary value="false" />
985 <mapping>
986 <identity value="rim" />
987 <map value="N/A" />
988 </mapping>
989 </element>
990 </snapshot>
991 <differential>
992 <element id="Extension">
993 <path value="Extension" />
994 <short value="Fixed or calculated value to extract" />
995 <definition value="Provide either a fixed value, or an expression to evaluate, to be used as the value for the extracted resource's property based on the `definition` value." />
996 <constraint>
997 <key value="dev-1" />
998 <severity value="error" />
999 <human value="Either `expression` or a `fixed-value` must be provided." />
1000 <expression value="extension('expression').value.exists() xor extension('fixed-value').value.exists()" />
1001 <source value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-definitionExtractValue" />
1002 </constraint>
1003 </element>
1004 <element id="Extension.extension">
1005 <path value="Extension.extension" />
1006 <min value="1" />
1007 </element>
1008 <element id="Extension.extension:definition">
1009 <path value="Extension.extension" />
1010 <sliceName value="definition" />
1011 <short value="ElementDefintion to extract value into" />
1012 <definition value="This is the profile canonical Url, followed by `#` and the element id, that the value should be extracted into." />
1013 <min value="1" />
1014 <max value="1" />
1015 </element>
1016 <element id="Extension.extension:definition.extension">
1017 <path value="Extension.extension.extension" />
1018 <max value="0" />
1019 </element>
1020 <element id="Extension.extension:definition.url">
1021 <path value="Extension.extension.url" />
1022 <fixedUri value="definition" />
1023 </element>
1024 <element id="Extension.extension:definition.value[x]">
1025 <path value="Extension.extension.value[x]" />
1026 <short value="Profile canonical URL and element id" />
1027 <min value="1" />
1028 <type>
1029 <code value="uri" />
1030 </type>
1031 </element>
1032 <element id="Extension.extension:expression">
1033 <path value="Extension.extension" />
1034 <sliceName value="expression" />
1035 <short value="An expression to evaluate" />
1036 <definition value="An expression to evaluate to extract the value into the specified element definition. If no value is evaluated, then the element is not extracted." />
1037 <min value="0" />
1038 <max value="1" />
1039 </element>
1040 <element id="Extension.extension:expression.extension">
1041 <path value="Extension.extension.extension" />
1042 <max value="0" />
1043 </element>
1044 <element id="Extension.extension:expression.url">
1045 <path value="Extension.extension.url" />
1046 <fixedUri value="expression" />
1047 </element>
1048 <element id="Extension.extension:expression.value[x]">
1049 <path value="Extension.extension.value[x]" />
1050 <short value="Expression value" />
1051 <min value="1" />
1052 <type>
1053 <code value="Expression" />
1054 </type>
1055 </element>
1056 <element id="Extension.extension:fixed-value">
1057 <path value="Extension.extension" />
1058 <sliceName value="fixed-value" />
1059 <short value="A fixed value to extract" />
1060 <definition value="A fixed value to extract into the specified element definition." />
1061 <min value="0" />
1062 <max value="1" />
1063 </element>
1064 <element id="Extension.extension:fixed-value.extension">
1065 <path value="Extension.extension.extension" />
1066 <max value="0" />
1067 </element>
1068 <element id="Extension.extension:fixed-value.url">
1069 <path value="Extension.extension.url" />
1070 <fixedUri value="fixed-value" />
1071 </element>
1072 <element id="Extension.extension:fixed-value.value[x]">
1073 <path value="Extension.extension.value[x]" />
1074 <short value="Fixed value" />
1075 <min value="1" />
1076 </element>
1077 <element id="Extension.url">
1078 <path value="Extension.url" />
1079 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-definitionExtractValue" />
1080 </element>
1081 <element id="Extension.value[x]">
1082 <path value="Extension.value[x]" />
1083 <max value="0" />
1084 </element>
1085 </differential>
1086 </StructureDefinition>