relative-date.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="relative-date" />
  4   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
  5     <valueCode value="fhir" />
  6   </extension>
  7   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
  8     <valueInteger value="1" />
  9   </extension>
 10   <url value="http://hl7.org/fhir/StructureDefinition/relative-date" />
 11   <version value="4.0.1" />
 12   <name value="Relative Date Criteria" />
 13   <title value="Relative Date Criteria" />
 14   <status value="draft" />
 15   <date value="2013-12-05" />
 16   <publisher value="Health Level Seven International (FHIR Infrastructure)" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="http://www.hl7.org/Special/committees/fiwg" />
 21     </telecom>
 22   </contact>
 23   <description value="Specifies that a date is relative to some event. The event happens [Duration] after [Event]." />
 24   <fhirVersion value="4.0.1" />
 25   <mapping>
 26     <identity value="rim" />
 27     <uri value="http://hl7.org/v3" />
 28     <name value="RIM Mapping" />
 29   </mapping>
 30   <kind value="complex-type" />
 31   <abstract value="false" />
 32   <context>
 33     <type value="element" />
 34     <expression value="date" />
 35   </context>
 36   <context>
 37     <type value="element" />
 38     <expression value="dateTime" />
 39   </context>
 40   <type value="Extension" />
 41   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 42   <derivation value="constraint" />
 43   <snapshot>
 44     <element id="Extension">
 45       <path value="Extension" />
 46       <short value="Relative Date Criteria" />
 47       <definition value="Specifies that a date is relative to some event. The event happens [Duration] after [Event]." />
 48       <comment value="This extension is used when a precise date is not known, but rather, the date will be relative to some future event (e.g. Do this 2 weeks after an operation)." />
 49       <min value="0" />
 50       <max value="1" />
 51       <base>
 52         <path value="Extension" />
 53         <min value="0" />
 54         <max value="*" />
 55       </base>
 56       <condition value="ele-1" />
 57       <constraint>
 58         <key value="ele-1" />
 59         <severity value="error" />
 60         <human value="All FHIR elements must have a @value or children" />
 61         <expression value="hasValue() or (children().count() > id.count())" />
 62         <xpath value="@value|f:*|h:div" />
 63         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 64       </constraint>
 65       <constraint>
 66         <key value="ext-1" />
 67         <severity value="error" />
 68         <human value="Must have either extensions or value[x], not both" />
 69         <expression value="extension.exists() != value.exists()" />
 70         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 71         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 72       </constraint>
 73       <isModifier value="false" />
 74     </element>
 75     <element id="Extension.id">
 76       <path value="Extension.id" />
 77       <representation value="xmlAttr" />
 78       <short value="Unique id for inter-element referencing" />
 79       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 80       <min value="0" />
 81       <max value="1" />
 82       <base>
 83         <path value="Element.id" />
 84         <min value="0" />
 85         <max value="1" />
 86       </base>
 87       <type>
 88         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 89           <valueUrl value="string" />
 90         </extension>
 91         <code value="http://hl7.org/fhirpath/System.String" />
 92       </type>
 93       <isModifier value="false" />
 94       <isSummary value="false" />
 95       <mapping>
 96         <identity value="rim" />
 97         <map value="n/a" />
 98       </mapping>
 99     </element>
100     <element id="Extension.extension">
101       <path value="Extension.extension" />
102       <slicing>
103         <discriminator>
104           <type value="value" />
105           <path value="url" />
106         </discriminator>
107         <description value="Extensions are always sliced by (at least) url" />
108         <rules value="open" />
109       </slicing>
110       <short value="Additional content defined by implementations" />
111       <definition value="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." />
112       <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
113       <alias value="extensions" />
114       <alias value="user content" />
115       <min value="0" />
116       <max value="*" />
117       <base>
118         <path value="Element.extension" />
119         <min value="0" />
120         <max value="*" />
121       </base>
122       <type>
123         <code value="Extension" />
124       </type>
125       <constraint>
126         <key value="ele-1" />
127         <severity value="error" />
128         <human value="All FHIR elements must have a @value or children" />
129         <expression value="hasValue() or (children().count() > id.count())" />
130         <xpath value="@value|f:*|h:div" />
131         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
132       </constraint>
133       <constraint>
134         <key value="ext-1" />
135         <severity value="error" />
136         <human value="Must have either extensions or value[x], not both" />
137         <expression value="extension.exists() != value.exists()" />
138         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
139         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
140       </constraint>
141       <isModifier value="false" />
142       <isSummary value="false" />
143       <mapping>
144         <identity value="rim" />
145         <map value="n/a" />
146       </mapping>
147     </element>
148     <element id="Extension.extension:event">
149       <path value="Extension.extension" />
150       <sliceName value="event" />
151       <short value="Event that the date is relative to" />
152       <definition value="The event that the date(time) is relative to." />
153       <comment value="This can be a reference to a particular event, or a kind of event (usually where the kind would not happen very frequently)." />
154       <min value="1" />
155       <max value="1" />
156       <base>
157         <path value="Element.extension" />
158         <min value="0" />
159         <max value="*" />
160       </base>
161       <type>
162         <code value="Extension" />
163       </type>
164       <constraint>
165         <key value="ele-1" />
166         <severity value="error" />
167         <human value="All FHIR elements must have a @value or children" />
168         <expression value="hasValue() or (children().count() > id.count())" />
169         <xpath value="@value|f:*|h:div" />
170         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
171       </constraint>
172       <constraint>
173         <key value="ext-1" />
174         <severity value="error" />
175         <human value="Must have either extensions or value[x], not both" />
176         <expression value="extension.exists() != value.exists()" />
177         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
178         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
179       </constraint>
180       <isModifier value="false" />
181       <isSummary value="false" />
182     </element>
183     <element id="Extension.extension:event.id">
184       <path value="Extension.extension.id" />
185       <representation value="xmlAttr" />
186       <short value="Unique id for inter-element referencing" />
187       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
188       <min value="0" />
189       <max value="1" />
190       <base>
191         <path value="Element.id" />
192         <min value="0" />
193         <max value="1" />
194       </base>
195       <type>
196         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
197           <valueUrl value="string" />
198         </extension>
199         <code value="http://hl7.org/fhirpath/System.String" />
200       </type>
201       <isModifier value="false" />
202       <isSummary value="false" />
203       <mapping>
204         <identity value="rim" />
205         <map value="n/a" />
206       </mapping>
207     </element>
208     <element id="Extension.extension:event.extension">
209       <path value="Extension.extension.extension" />
210       <slicing>
211         <discriminator>
212           <type value="value" />
213           <path value="url" />
214         </discriminator>
215         <description value="Extensions are always sliced by (at least) url" />
216         <rules value="open" />
217       </slicing>
218       <short value="Extension" />
219       <definition value="An Extension" />
220       <min value="0" />
221       <max value="0" />
222       <base>
223         <path value="Element.extension" />
224         <min value="0" />
225         <max value="*" />
226       </base>
227       <type>
228         <code value="Extension" />
229       </type>
230       <constraint>
231         <key value="ele-1" />
232         <severity value="error" />
233         <human value="All FHIR elements must have a @value or children" />
234         <expression value="hasValue() or (children().count() > id.count())" />
235         <xpath value="@value|f:*|h:div" />
236         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
237       </constraint>
238       <constraint>
239         <key value="ext-1" />
240         <severity value="error" />
241         <human value="Must have either extensions or value[x], not both" />
242         <expression value="extension.exists() != value.exists()" />
243         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
244         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
245       </constraint>
246       <isModifier value="false" />
247       <isSummary value="false" />
248     </element>
249     <element id="Extension.extension:event.url">
250       <path value="Extension.extension.url" />
251       <representation value="xmlAttr" />
252       <short value="identifies the meaning of the extension" />
253       <definition value="Source of the definition for the extension code - a logical name or a URL." />
254       <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." />
255       <min value="1" />
256       <max value="1" />
257       <base>
258         <path value="Extension.url" />
259         <min value="1" />
260         <max value="1" />
261       </base>
262       <type>
263         <code value="uri" />
264       </type>
265       <fixedUri value="event" />
266       <isModifier value="false" />
267       <isSummary value="false" />
268       <mapping>
269         <identity value="rim" />
270         <map value="N/A" />
271       </mapping>
272     </element>
273     <element id="Extension.extension:event.value[x]">
274       <path value="Extension.extension.value[x]" />
275       <short value="Value of extension" />
276       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list)." />
277       <min value="1" />
278       <max value="1" />
279       <base>
280         <path value="Extension.value[x]" />
281         <min value="0" />
282         <max value="1" />
283       </base>
284       <type>
285         <code value="Reference" />
286         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
287       </type>
288       <type>
289         <code value="CodeableConcept" />
290       </type>
291       <constraint>
292         <key value="ele-1" />
293         <severity value="error" />
294         <human value="All FHIR elements must have a @value or children" />
295         <expression value="hasValue() or (children().count() > id.count())" />
296         <xpath value="@value|f:*|h:div" />
297         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
298       </constraint>
299       <isModifier value="false" />
300       <isSummary value="false" />
301       <mapping>
302         <identity value="rim" />
303         <map value="N/A" />
304       </mapping>
305     </element>
306     <element id="Extension.extension:relationship">
307       <path value="Extension.extension" />
308       <sliceName value="relationship" />
309       <short value="before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end" />
310       <definition value="Defines the relationship between the event and the date." />
311       <min value="1" />
312       <max value="1" />
313       <base>
314         <path value="Element.extension" />
315         <min value="0" />
316         <max value="*" />
317       </base>
318       <type>
319         <code value="Extension" />
320       </type>
321       <constraint>
322         <key value="ele-1" />
323         <severity value="error" />
324         <human value="All FHIR elements must have a @value or children" />
325         <expression value="hasValue() or (children().count() > id.count())" />
326         <xpath value="@value|f:*|h:div" />
327         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
328       </constraint>
329       <constraint>
330         <key value="ext-1" />
331         <severity value="error" />
332         <human value="Must have either extensions or value[x], not both" />
333         <expression value="extension.exists() != value.exists()" />
334         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
335         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
336       </constraint>
337       <isModifier value="false" />
338       <isSummary value="false" />
339     </element>
340     <element id="Extension.extension:relationship.id">
341       <path value="Extension.extension.id" />
342       <representation value="xmlAttr" />
343       <short value="Unique id for inter-element referencing" />
344       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
345       <min value="0" />
346       <max value="1" />
347       <base>
348         <path value="Element.id" />
349         <min value="0" />
350         <max value="1" />
351       </base>
352       <type>
353         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
354           <valueUrl value="string" />
355         </extension>
356         <code value="http://hl7.org/fhirpath/System.String" />
357       </type>
358       <isModifier value="false" />
359       <isSummary value="false" />
360       <mapping>
361         <identity value="rim" />
362         <map value="n/a" />
363       </mapping>
364     </element>
365     <element id="Extension.extension:relationship.extension">
366       <path value="Extension.extension.extension" />
367       <slicing>
368         <discriminator>
369           <type value="value" />
370           <path value="url" />
371         </discriminator>
372         <description value="Extensions are always sliced by (at least) url" />
373         <rules value="open" />
374       </slicing>
375       <short value="Extension" />
376       <definition value="An Extension" />
377       <min value="0" />
378       <max value="0" />
379       <base>
380         <path value="Element.extension" />
381         <min value="0" />
382         <max value="*" />
383       </base>
384       <type>
385         <code value="Extension" />
386       </type>
387       <constraint>
388         <key value="ele-1" />
389         <severity value="error" />
390         <human value="All FHIR elements must have a @value or children" />
391         <expression value="hasValue() or (children().count() > id.count())" />
392         <xpath value="@value|f:*|h:div" />
393         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
394       </constraint>
395       <constraint>
396         <key value="ext-1" />
397         <severity value="error" />
398         <human value="Must have either extensions or value[x], not both" />
399         <expression value="extension.exists() != value.exists()" />
400         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
401         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
402       </constraint>
403       <isModifier value="false" />
404       <isSummary value="false" />
405     </element>
406     <element id="Extension.extension:relationship.url">
407       <path value="Extension.extension.url" />
408       <representation value="xmlAttr" />
409       <short value="identifies the meaning of the extension" />
410       <definition value="Source of the definition for the extension code - a logical name or a URL." />
411       <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." />
412       <min value="1" />
413       <max value="1" />
414       <base>
415         <path value="Extension.url" />
416         <min value="1" />
417         <max value="1" />
418       </base>
419       <type>
420         <code value="uri" />
421       </type>
422       <fixedUri value="relationship" />
423       <isModifier value="false" />
424       <isSummary value="false" />
425       <mapping>
426         <identity value="rim" />
427         <map value="N/A" />
428       </mapping>
429     </element>
430     <element id="Extension.extension:relationship.value[x]">
431       <path value="Extension.extension.value[x]" />
432       <short value="Value of extension" />
433       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list)." />
434       <min value="1" />
435       <max value="1" />
436       <base>
437         <path value="Extension.value[x]" />
438         <min value="0" />
439         <max value="1" />
440       </base>
441       <type>
442         <code value="code" />
443       </type>
444       <constraint>
445         <key value="ele-1" />
446         <severity value="error" />
447         <human value="All FHIR elements must have a @value or children" />
448         <expression value="hasValue() or (children().count() > id.count())" />
449         <xpath value="@value|f:*|h:div" />
450         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
451       </constraint>
452       <isModifier value="false" />
453       <isSummary value="false" />
454       <binding>
455         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
456           <valueString value="ActionRelationshipType" />
457         </extension>
458         <strength value="required" />
459         <description value="Defines the types of relationships between actions." />
460         <valueSet value="http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1" />
461       </binding>
462       <mapping>
463         <identity value="rim" />
464         <map value="N/A" />
465       </mapping>
466     </element>
467     <element id="Extension.extension:offset">
468       <path value="Extension.extension" />
469       <sliceName value="offset" />
470       <short value="Duration after the event" />
471       <definition value="The duration after the event that the date(time) will happen." />
472       <min value="1" />
473       <max value="1" />
474       <base>
475         <path value="Element.extension" />
476         <min value="0" />
477         <max value="*" />
478       </base>
479       <type>
480         <code value="Extension" />
481       </type>
482       <constraint>
483         <key value="ele-1" />
484         <severity value="error" />
485         <human value="All FHIR elements must have a @value or children" />
486         <expression value="hasValue() or (children().count() > id.count())" />
487         <xpath value="@value|f:*|h:div" />
488         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
489       </constraint>
490       <constraint>
491         <key value="ext-1" />
492         <severity value="error" />
493         <human value="Must have either extensions or value[x], not both" />
494         <expression value="extension.exists() != value.exists()" />
495         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
496         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
497       </constraint>
498       <isModifier value="false" />
499       <isSummary value="false" />
500     </element>
501     <element id="Extension.extension:offset.id">
502       <path value="Extension.extension.id" />
503       <representation value="xmlAttr" />
504       <short value="Unique id for inter-element referencing" />
505       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
506       <min value="0" />
507       <max value="1" />
508       <base>
509         <path value="Element.id" />
510         <min value="0" />
511         <max value="1" />
512       </base>
513       <type>
514         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
515           <valueUrl value="string" />
516         </extension>
517         <code value="http://hl7.org/fhirpath/System.String" />
518       </type>
519       <isModifier value="false" />
520       <isSummary value="false" />
521       <mapping>
522         <identity value="rim" />
523         <map value="n/a" />
524       </mapping>
525     </element>
526     <element id="Extension.extension:offset.extension">
527       <path value="Extension.extension.extension" />
528       <slicing>
529         <discriminator>
530           <type value="value" />
531           <path value="url" />
532         </discriminator>
533         <description value="Extensions are always sliced by (at least) url" />
534         <rules value="open" />
535       </slicing>
536       <short value="Extension" />
537       <definition value="An Extension" />
538       <min value="0" />
539       <max value="0" />
540       <base>
541         <path value="Element.extension" />
542         <min value="0" />
543         <max value="*" />
544       </base>
545       <type>
546         <code value="Extension" />
547       </type>
548       <constraint>
549         <key value="ele-1" />
550         <severity value="error" />
551         <human value="All FHIR elements must have a @value or children" />
552         <expression value="hasValue() or (children().count() > id.count())" />
553         <xpath value="@value|f:*|h:div" />
554         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
555       </constraint>
556       <constraint>
557         <key value="ext-1" />
558         <severity value="error" />
559         <human value="Must have either extensions or value[x], not both" />
560         <expression value="extension.exists() != value.exists()" />
561         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
562         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
563       </constraint>
564       <isModifier value="false" />
565       <isSummary value="false" />
566     </element>
567     <element id="Extension.extension:offset.url">
568       <path value="Extension.extension.url" />
569       <representation value="xmlAttr" />
570       <short value="identifies the meaning of the extension" />
571       <definition value="Source of the definition for the extension code - a logical name or a URL." />
572       <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." />
573       <min value="1" />
574       <max value="1" />
575       <base>
576         <path value="Extension.url" />
577         <min value="1" />
578         <max value="1" />
579       </base>
580       <type>
581         <code value="uri" />
582       </type>
583       <fixedUri value="offset" />
584       <isModifier value="false" />
585       <isSummary value="false" />
586       <mapping>
587         <identity value="rim" />
588         <map value="N/A" />
589       </mapping>
590     </element>
591     <element id="Extension.extension:offset.value[x]">
592       <path value="Extension.extension.value[x]" />
593       <short value="Value of extension" />
594       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list)." />
595       <min value="1" />
596       <max value="1" />
597       <base>
598         <path value="Extension.value[x]" />
599         <min value="0" />
600         <max value="1" />
601       </base>
602       <type>
603         <code value="Duration" />
604       </type>
605       <constraint>
606         <key value="ele-1" />
607         <severity value="error" />
608         <human value="All FHIR elements must have a @value or children" />
609         <expression value="hasValue() or (children().count() > id.count())" />
610         <xpath value="@value|f:*|h:div" />
611         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
612       </constraint>
613       <isModifier value="false" />
614       <isSummary value="false" />
615       <mapping>
616         <identity value="rim" />
617         <map value="N/A" />
618       </mapping>
619     </element>
620     <element id="Extension.url">
621       <path value="Extension.url" />
622       <representation value="xmlAttr" />
623       <short value="identifies the meaning of the extension" />
624       <definition value="Source of the definition for the extension code - a logical name or a URL." />
625       <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." />
626       <min value="1" />
627       <max value="1" />
628       <base>
629         <path value="Extension.url" />
630         <min value="1" />
631         <max value="1" />
632       </base>
633       <type>
634         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
635           <valueUrl value="uri" />
636         </extension>
637         <code value="http://hl7.org/fhirpath/System.String" />
638       </type>
639       <fixedUri value="http://hl7.org/fhir/StructureDefinition/relative-date" />
640       <isModifier value="false" />
641       <isSummary value="false" />
642       <mapping>
643         <identity value="rim" />
644         <map value="N/A" />
645       </mapping>
646     </element>
647     <element id="Extension.value[x]">
648       <path value="Extension.value[x]" />
649       <short value="Value of extension" />
650       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list)." />
651       <min value="0" />
652       <max value="0" />
653       <base>
654         <path value="Extension.value[x]" />
655         <min value="0" />
656         <max value="1" />
657       </base>
658       <type>
659         <code value="base64Binary" />
660       </type>
661       <type>
662         <code value="boolean" />
663       </type>
664       <type>
665         <code value="canonical" />
666       </type>
667       <type>
668         <code value="code" />
669       </type>
670       <type>
671         <code value="date" />
672       </type>
673       <type>
674         <code value="dateTime" />
675       </type>
676       <type>
677         <code value="decimal" />
678       </type>
679       <type>
680         <code value="id" />
681       </type>
682       <type>
683         <code value="instant" />
684       </type>
685       <type>
686         <code value="integer" />
687       </type>
688       <type>
689         <code value="markdown" />
690       </type>
691       <type>
692         <code value="oid" />
693       </type>
694       <type>
695         <code value="positiveInt" />
696       </type>
697       <type>
698         <code value="string" />
699       </type>
700       <type>
701         <code value="time" />
702       </type>
703       <type>
704         <code value="unsignedInt" />
705       </type>
706       <type>
707         <code value="uri" />
708       </type>
709       <type>
710         <code value="url" />
711       </type>
712       <type>
713         <code value="uuid" />
714       </type>
715       <type>
716         <code value="Address" />
717       </type>
718       <type>
719         <code value="Age" />
720       </type>
721       <type>
722         <code value="Annotation" />
723       </type>
724       <type>
725         <code value="Attachment" />
726       </type>
727       <type>
728         <code value="CodeableConcept" />
729       </type>
730       <type>
731         <code value="Coding" />
732       </type>
733       <type>
734         <code value="ContactPoint" />
735       </type>
736       <type>
737         <code value="Count" />
738       </type>
739       <type>
740         <code value="Distance" />
741       </type>
742       <type>
743         <code value="Duration" />
744       </type>
745       <type>
746         <code value="HumanName" />
747       </type>
748       <type>
749         <code value="Identifier" />
750       </type>
751       <type>
752         <code value="Money" />
753       </type>
754       <type>
755         <code value="Period" />
756       </type>
757       <type>
758         <code value="Quantity" />
759       </type>
760       <type>
761         <code value="Range" />
762       </type>
763       <type>
764         <code value="Ratio" />
765       </type>
766       <type>
767         <code value="Reference" />
768       </type>
769       <type>
770         <code value="SampledData" />
771       </type>
772       <type>
773         <code value="Signature" />
774       </type>
775       <type>
776         <code value="Timing" />
777       </type>
778       <type>
779         <code value="ContactDetail" />
780       </type>
781       <type>
782         <code value="Contributor" />
783       </type>
784       <type>
785         <code value="DataRequirement" />
786       </type>
787       <type>
788         <code value="Expression" />
789       </type>
790       <type>
791         <code value="ParameterDefinition" />
792       </type>
793       <type>
794         <code value="RelatedArtifact" />
795       </type>
796       <type>
797         <code value="TriggerDefinition" />
798       </type>
799       <type>
800         <code value="UsageContext" />
801       </type>
802       <type>
803         <code value="Dosage" />
804       </type>
805       <type>
806         <code value="Meta" />
807       </type>
808       <constraint>
809         <key value="ele-1" />
810         <severity value="error" />
811         <human value="All FHIR elements must have a @value or children" />
812         <expression value="hasValue() or (children().count() > id.count())" />
813         <xpath value="@value|f:*|h:div" />
814         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
815       </constraint>
816       <isModifier value="false" />
817       <isSummary value="false" />
818       <mapping>
819         <identity value="rim" />
820         <map value="N/A" />
821       </mapping>
822     </element>
823   </snapshot>
824   <differential>
825     <element id="Extension">
826       <path value="Extension" />
827       <short value="Relative Date Criteria" />
828       <definition value="Specifies that a date is relative to some event. The event happens [Duration] after [Event]." />
829       <comment value="This extension is used when a precise date is not known, but rather, the date will be relative to some future event (e.g. Do this 2 weeks after an operation)." />
830       <min value="0" />
831       <max value="1" />
832     </element>
833     <element id="Extension.extension:event">
834       <path value="Extension.extension" />
835       <sliceName value="event" />
836       <short value="Event that the date is relative to" />
837       <definition value="The event that the date(time) is relative to." />
838       <comment value="This can be a reference to a particular event, or a kind of event (usually where the kind would not happen very frequently)." />
839       <min value="1" />
840       <max value="1" />
841       <type>
842         <code value="Extension" />
843       </type>
844     </element>
845     <element id="Extension.extension:event.extension">
846       <path value="Extension.extension.extension" />
847       <max value="0" />
848     </element>
849     <element id="Extension.extension:event.url">
850       <path value="Extension.extension.url" />
851       <type>
852         <code value="uri" />
853       </type>
854       <fixedUri value="event" />
855     </element>
856     <element id="Extension.extension:event.value[x]">
857       <path value="Extension.extension.value[x]" />
858       <min value="1" />
859       <type>
860         <code value="Reference" />
861         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
862       </type>
863       <type>
864         <code value="CodeableConcept" />
865       </type>
866     </element>
867     <element id="Extension.extension:relationship">
868       <path value="Extension.extension" />
869       <sliceName value="relationship" />
870       <short value="before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end" />
871       <definition value="Defines the relationship between the event and the date." />
872       <min value="1" />
873       <max value="1" />
874       <type>
875         <code value="Extension" />
876       </type>
877     </element>
878     <element id="Extension.extension:relationship.extension">
879       <path value="Extension.extension.extension" />
880       <max value="0" />
881     </element>
882     <element id="Extension.extension:relationship.url">
883       <path value="Extension.extension.url" />
884       <type>
885         <code value="uri" />
886       </type>
887       <fixedUri value="relationship" />
888     </element>
889     <element id="Extension.extension:relationship.value[x]">
890       <path value="Extension.extension.value[x]" />
891       <min value="1" />
892       <type>
893         <code value="code" />
894       </type>
895       <binding>
896         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
897           <valueString value="ActionRelationshipType" />
898         </extension>
899         <strength value="required" />
900         <description value="Defines the types of relationships between actions." />
901         <valueSet value="http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1" />
902       </binding>
903     </element>
904     <element id="Extension.extension:offset">
905       <path value="Extension.extension" />
906       <sliceName value="offset" />
907       <short value="Duration after the event" />
908       <definition value="The duration after the event that the date(time) will happen." />
909       <min value="1" />
910       <max value="1" />
911       <type>
912         <code value="Extension" />
913       </type>
914     </element>
915     <element id="Extension.extension:offset.extension">
916       <path value="Extension.extension.extension" />
917       <max value="0" />
918     </element>
919     <element id="Extension.extension:offset.url">
920       <path value="Extension.extension.url" />
921       <type>
922         <code value="uri" />
923       </type>
924       <fixedUri value="offset" />
925     </element>
926     <element id="Extension.extension:offset.value[x]">
927       <path value="Extension.extension.value[x]" />
928       <min value="1" />
929       <type>
930         <code value="Duration" />
931       </type>
932     </element>
933     <element id="Extension.url">
934       <path value="Extension.url" />
935       <fixedUri value="http://hl7.org/fhir/StructureDefinition/relative-date" />
936     </element>
937     <element id="Extension.value[x]">
938       <path value="Extension.value[x]" />
939       <min value="0" />
940       <max value="0" />
941     </element>
942   </differential>
943 </StructureDefinition>