goal-relationship.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="goal-relationship" />
  4   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
  5     <valueCode value="pc" />
  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/goal-relationship" />
 11   <version value="4.0.1" />
 12   <name value="relationship" />
 13   <title value="related goal" />
 14   <status value="draft" />
 15   <date value="2014-12-07" />
 16   <publisher value="Health Level Seven, Inc. - FHIR WG" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="http://hl7.org/special/committees/fhir" />
 21     </telecom>
 22   </contact>
 23   <description value="Establishes a relationship between this goal and other goals." />
 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="Goal" />
 35   </context>
 36   <type value="Extension" />
 37   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 38   <derivation value="constraint" />
 39   <snapshot>
 40     <element id="Extension">
 41       <path value="Extension" />
 42       <short value="Goals related to this Goal" />
 43       <definition value="Establishes a relationship between this goal and other goals." />
 44       <min value="0" />
 45       <max value="*" />
 46       <base>
 47         <path value="Extension" />
 48         <min value="0" />
 49         <max value="*" />
 50       </base>
 51       <condition value="ele-1" />
 52       <constraint>
 53         <key value="ele-1" />
 54         <severity value="error" />
 55         <human value="All FHIR elements must have a @value or children" />
 56         <expression value="hasValue() or (children().count() > id.count())" />
 57         <xpath value="@value|f:*|h:div" />
 58         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 59       </constraint>
 60       <constraint>
 61         <key value="ext-1" />
 62         <severity value="error" />
 63         <human value="Must have either extensions or value[x], not both" />
 64         <expression value="extension.exists() != value.exists()" />
 65         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 66         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 67       </constraint>
 68       <isModifier value="false" />
 69     </element>
 70     <element id="Extension.id">
 71       <path value="Extension.id" />
 72       <representation value="xmlAttr" />
 73       <short value="Unique id for inter-element referencing" />
 74       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 75       <min value="0" />
 76       <max value="1" />
 77       <base>
 78         <path value="Element.id" />
 79         <min value="0" />
 80         <max value="1" />
 81       </base>
 82       <type>
 83         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 84           <valueUrl value="string" />
 85         </extension>
 86         <code value="http://hl7.org/fhirpath/System.String" />
 87       </type>
 88       <isModifier value="false" />
 89       <isSummary value="false" />
 90       <mapping>
 91         <identity value="rim" />
 92         <map value="n/a" />
 93       </mapping>
 94     </element>
 95     <element id="Extension.extension">
 96       <path value="Extension.extension" />
 97       <slicing>
 98         <discriminator>
 99           <type value="value" />
100           <path value="url" />
101         </discriminator>
102         <description value="Extensions are always sliced by (at least) url" />
103         <rules value="open" />
104       </slicing>
105       <short value="Additional content defined by implementations" />
106       <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." />
107       <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." />
108       <alias value="extensions" />
109       <alias value="user content" />
110       <min value="0" />
111       <max value="*" />
112       <base>
113         <path value="Element.extension" />
114         <min value="0" />
115         <max value="*" />
116       </base>
117       <type>
118         <code value="Extension" />
119       </type>
120       <constraint>
121         <key value="ele-1" />
122         <severity value="error" />
123         <human value="All FHIR elements must have a @value or children" />
124         <expression value="hasValue() or (children().count() > id.count())" />
125         <xpath value="@value|f:*|h:div" />
126         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
127       </constraint>
128       <constraint>
129         <key value="ext-1" />
130         <severity value="error" />
131         <human value="Must have either extensions or value[x], not both" />
132         <expression value="extension.exists() != value.exists()" />
133         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
134         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
135       </constraint>
136       <isModifier value="false" />
137       <isSummary value="false" />
138       <mapping>
139         <identity value="rim" />
140         <map value="n/a" />
141       </mapping>
142     </element>
143     <element id="Extension.extension:type">
144       <path value="Extension.extension" />
145       <sliceName value="type" />
146       <short value="predecessor | successor | replacement | other" />
147       <definition value="Identifies what kind of relationship exists between source and target goal." />
148       <min value="1" />
149       <max value="1" />
150       <base>
151         <path value="Element.extension" />
152         <min value="0" />
153         <max value="*" />
154       </base>
155       <type>
156         <code value="Extension" />
157       </type>
158       <constraint>
159         <key value="ele-1" />
160         <severity value="error" />
161         <human value="All FHIR elements must have a @value or children" />
162         <expression value="hasValue() or (children().count() > id.count())" />
163         <xpath value="@value|f:*|h:div" />
164         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
165       </constraint>
166       <constraint>
167         <key value="ext-1" />
168         <severity value="error" />
169         <human value="Must have either extensions or value[x], not both" />
170         <expression value="extension.exists() != value.exists()" />
171         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
172         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
173       </constraint>
174       <isModifier value="false" />
175       <isSummary value="false" />
176     </element>
177     <element id="Extension.extension:type.id">
178       <path value="Extension.extension.id" />
179       <representation value="xmlAttr" />
180       <short value="Unique id for inter-element referencing" />
181       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
182       <min value="0" />
183       <max value="1" />
184       <base>
185         <path value="Element.id" />
186         <min value="0" />
187         <max value="1" />
188       </base>
189       <type>
190         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
191           <valueUrl value="string" />
192         </extension>
193         <code value="http://hl7.org/fhirpath/System.String" />
194       </type>
195       <isModifier value="false" />
196       <isSummary value="false" />
197       <mapping>
198         <identity value="rim" />
199         <map value="n/a" />
200       </mapping>
201     </element>
202     <element id="Extension.extension:type.extension">
203       <path value="Extension.extension.extension" />
204       <slicing>
205         <discriminator>
206           <type value="value" />
207           <path value="url" />
208         </discriminator>
209         <description value="Extensions are always sliced by (at least) url" />
210         <rules value="open" />
211       </slicing>
212       <short value="Extension" />
213       <definition value="An Extension" />
214       <min value="0" />
215       <max value="0" />
216       <base>
217         <path value="Element.extension" />
218         <min value="0" />
219         <max value="*" />
220       </base>
221       <type>
222         <code value="Extension" />
223       </type>
224       <constraint>
225         <key value="ele-1" />
226         <severity value="error" />
227         <human value="All FHIR elements must have a @value or children" />
228         <expression value="hasValue() or (children().count() > id.count())" />
229         <xpath value="@value|f:*|h:div" />
230         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
231       </constraint>
232       <constraint>
233         <key value="ext-1" />
234         <severity value="error" />
235         <human value="Must have either extensions or value[x], not both" />
236         <expression value="extension.exists() != value.exists()" />
237         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
238         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
239       </constraint>
240       <isModifier value="false" />
241       <isSummary value="false" />
242     </element>
243     <element id="Extension.extension:type.url">
244       <path value="Extension.extension.url" />
245       <representation value="xmlAttr" />
246       <short value="identifies the meaning of the extension" />
247       <definition value="Source of the definition for the extension code - a logical name or a URL." />
248       <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." />
249       <min value="1" />
250       <max value="1" />
251       <base>
252         <path value="Extension.url" />
253         <min value="1" />
254         <max value="1" />
255       </base>
256       <type>
257         <code value="uri" />
258       </type>
259       <fixedUri value="type" />
260       <isModifier value="false" />
261       <isSummary value="false" />
262       <mapping>
263         <identity value="rim" />
264         <map value="N/A" />
265       </mapping>
266     </element>
267     <element id="Extension.extension:type.value[x]">
268       <path value="Extension.extension.value[x]" />
269       <short value="Value of extension" />
270       <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)." />
271       <min value="1" />
272       <max value="1" />
273       <base>
274         <path value="Extension.value[x]" />
275         <min value="0" />
276         <max value="1" />
277       </base>
278       <type>
279         <code value="CodeableConcept" />
280       </type>
281       <constraint>
282         <key value="ele-1" />
283         <severity value="error" />
284         <human value="All FHIR elements must have a @value or children" />
285         <expression value="hasValue() or (children().count() > id.count())" />
286         <xpath value="@value|f:*|h:div" />
287         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
288       </constraint>
289       <isModifier value="false" />
290       <isSummary value="false" />
291       <binding>
292         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
293           <valueString value="GoalRelationshipType" />
294         </extension>
295         <strength value="extensible" />
296         <description value="Types of relationships between two goals." />
297         <valueSet value="http://hl7.org/fhir/ValueSet/goal-relationship-type" />
298       </binding>
299       <mapping>
300         <identity value="rim" />
301         <map value="N/A" />
302       </mapping>
303     </element>
304     <element id="Extension.extension:target">
305       <path value="Extension.extension" />
306       <sliceName value="target" />
307       <short value="Related goal" />
308       <definition value="The goal the relationship exists with." />
309       <min value="1" />
310       <max value="1" />
311       <base>
312         <path value="Element.extension" />
313         <min value="0" />
314         <max value="*" />
315       </base>
316       <type>
317         <code value="Extension" />
318       </type>
319       <constraint>
320         <key value="ele-1" />
321         <severity value="error" />
322         <human value="All FHIR elements must have a @value or children" />
323         <expression value="hasValue() or (children().count() > id.count())" />
324         <xpath value="@value|f:*|h:div" />
325         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
326       </constraint>
327       <constraint>
328         <key value="ext-1" />
329         <severity value="error" />
330         <human value="Must have either extensions or value[x], not both" />
331         <expression value="extension.exists() != value.exists()" />
332         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
333         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
334       </constraint>
335       <isModifier value="false" />
336       <isSummary value="false" />
337     </element>
338     <element id="Extension.extension:target.id">
339       <path value="Extension.extension.id" />
340       <representation value="xmlAttr" />
341       <short value="Unique id for inter-element referencing" />
342       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
343       <min value="0" />
344       <max value="1" />
345       <base>
346         <path value="Element.id" />
347         <min value="0" />
348         <max value="1" />
349       </base>
350       <type>
351         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
352           <valueUrl value="string" />
353         </extension>
354         <code value="http://hl7.org/fhirpath/System.String" />
355       </type>
356       <isModifier value="false" />
357       <isSummary value="false" />
358       <mapping>
359         <identity value="rim" />
360         <map value="n/a" />
361       </mapping>
362     </element>
363     <element id="Extension.extension:target.extension">
364       <path value="Extension.extension.extension" />
365       <slicing>
366         <discriminator>
367           <type value="value" />
368           <path value="url" />
369         </discriminator>
370         <description value="Extensions are always sliced by (at least) url" />
371         <rules value="open" />
372       </slicing>
373       <short value="Extension" />
374       <definition value="An Extension" />
375       <min value="0" />
376       <max value="0" />
377       <base>
378         <path value="Element.extension" />
379         <min value="0" />
380         <max value="*" />
381       </base>
382       <type>
383         <code value="Extension" />
384       </type>
385       <constraint>
386         <key value="ele-1" />
387         <severity value="error" />
388         <human value="All FHIR elements must have a @value or children" />
389         <expression value="hasValue() or (children().count() > id.count())" />
390         <xpath value="@value|f:*|h:div" />
391         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
392       </constraint>
393       <constraint>
394         <key value="ext-1" />
395         <severity value="error" />
396         <human value="Must have either extensions or value[x], not both" />
397         <expression value="extension.exists() != value.exists()" />
398         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
399         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
400       </constraint>
401       <isModifier value="false" />
402       <isSummary value="false" />
403     </element>
404     <element id="Extension.extension:target.url">
405       <path value="Extension.extension.url" />
406       <representation value="xmlAttr" />
407       <short value="identifies the meaning of the extension" />
408       <definition value="Source of the definition for the extension code - a logical name or a URL." />
409       <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." />
410       <min value="1" />
411       <max value="1" />
412       <base>
413         <path value="Extension.url" />
414         <min value="1" />
415         <max value="1" />
416       </base>
417       <type>
418         <code value="uri" />
419       </type>
420       <fixedUri value="target" />
421       <isModifier value="false" />
422       <isSummary value="false" />
423       <mapping>
424         <identity value="rim" />
425         <map value="N/A" />
426       </mapping>
427     </element>
428     <element id="Extension.extension:target.value[x]">
429       <path value="Extension.extension.value[x]" />
430       <short value="Value of extension" />
431       <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)." />
432       <min value="1" />
433       <max value="1" />
434       <base>
435         <path value="Extension.value[x]" />
436         <min value="0" />
437         <max value="1" />
438       </base>
439       <type>
440         <code value="Reference" />
441         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal" />
442       </type>
443       <constraint>
444         <key value="ele-1" />
445         <severity value="error" />
446         <human value="All FHIR elements must have a @value or children" />
447         <expression value="hasValue() or (children().count() > id.count())" />
448         <xpath value="@value|f:*|h:div" />
449         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
450       </constraint>
451       <isModifier value="false" />
452       <isSummary value="false" />
453       <mapping>
454         <identity value="rim" />
455         <map value="N/A" />
456       </mapping>
457     </element>
458     <element id="Extension.url">
459       <path value="Extension.url" />
460       <representation value="xmlAttr" />
461       <short value="identifies the meaning of the extension" />
462       <definition value="Source of the definition for the extension code - a logical name or a URL." />
463       <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." />
464       <min value="1" />
465       <max value="1" />
466       <base>
467         <path value="Extension.url" />
468         <min value="1" />
469         <max value="1" />
470       </base>
471       <type>
472         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
473           <valueUrl value="uri" />
474         </extension>
475         <code value="http://hl7.org/fhirpath/System.String" />
476       </type>
477       <fixedUri value="http://hl7.org/fhir/StructureDefinition/goal-relationship" />
478       <isModifier value="false" />
479       <isSummary value="false" />
480       <mapping>
481         <identity value="rim" />
482         <map value="N/A" />
483       </mapping>
484     </element>
485     <element id="Extension.value[x]">
486       <path value="Extension.value[x]" />
487       <short value="Value of extension" />
488       <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)." />
489       <min value="0" />
490       <max value="0" />
491       <base>
492         <path value="Extension.value[x]" />
493         <min value="0" />
494         <max value="1" />
495       </base>
496       <type>
497         <code value="base64Binary" />
498       </type>
499       <type>
500         <code value="boolean" />
501       </type>
502       <type>
503         <code value="canonical" />
504       </type>
505       <type>
506         <code value="code" />
507       </type>
508       <type>
509         <code value="date" />
510       </type>
511       <type>
512         <code value="dateTime" />
513       </type>
514       <type>
515         <code value="decimal" />
516       </type>
517       <type>
518         <code value="id" />
519       </type>
520       <type>
521         <code value="instant" />
522       </type>
523       <type>
524         <code value="integer" />
525       </type>
526       <type>
527         <code value="markdown" />
528       </type>
529       <type>
530         <code value="oid" />
531       </type>
532       <type>
533         <code value="positiveInt" />
534       </type>
535       <type>
536         <code value="string" />
537       </type>
538       <type>
539         <code value="time" />
540       </type>
541       <type>
542         <code value="unsignedInt" />
543       </type>
544       <type>
545         <code value="uri" />
546       </type>
547       <type>
548         <code value="url" />
549       </type>
550       <type>
551         <code value="uuid" />
552       </type>
553       <type>
554         <code value="Address" />
555       </type>
556       <type>
557         <code value="Age" />
558       </type>
559       <type>
560         <code value="Annotation" />
561       </type>
562       <type>
563         <code value="Attachment" />
564       </type>
565       <type>
566         <code value="CodeableConcept" />
567       </type>
568       <type>
569         <code value="Coding" />
570       </type>
571       <type>
572         <code value="ContactPoint" />
573       </type>
574       <type>
575         <code value="Count" />
576       </type>
577       <type>
578         <code value="Distance" />
579       </type>
580       <type>
581         <code value="Duration" />
582       </type>
583       <type>
584         <code value="HumanName" />
585       </type>
586       <type>
587         <code value="Identifier" />
588       </type>
589       <type>
590         <code value="Money" />
591       </type>
592       <type>
593         <code value="Period" />
594       </type>
595       <type>
596         <code value="Quantity" />
597       </type>
598       <type>
599         <code value="Range" />
600       </type>
601       <type>
602         <code value="Ratio" />
603       </type>
604       <type>
605         <code value="Reference" />
606       </type>
607       <type>
608         <code value="SampledData" />
609       </type>
610       <type>
611         <code value="Signature" />
612       </type>
613       <type>
614         <code value="Timing" />
615       </type>
616       <type>
617         <code value="ContactDetail" />
618       </type>
619       <type>
620         <code value="Contributor" />
621       </type>
622       <type>
623         <code value="DataRequirement" />
624       </type>
625       <type>
626         <code value="Expression" />
627       </type>
628       <type>
629         <code value="ParameterDefinition" />
630       </type>
631       <type>
632         <code value="RelatedArtifact" />
633       </type>
634       <type>
635         <code value="TriggerDefinition" />
636       </type>
637       <type>
638         <code value="UsageContext" />
639       </type>
640       <type>
641         <code value="Dosage" />
642       </type>
643       <type>
644         <code value="Meta" />
645       </type>
646       <constraint>
647         <key value="ele-1" />
648         <severity value="error" />
649         <human value="All FHIR elements must have a @value or children" />
650         <expression value="hasValue() or (children().count() > id.count())" />
651         <xpath value="@value|f:*|h:div" />
652         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
653       </constraint>
654       <isModifier value="false" />
655       <isSummary value="false" />
656       <mapping>
657         <identity value="rim" />
658         <map value="N/A" />
659       </mapping>
660     </element>
661   </snapshot>
662   <differential>
663     <element id="Extension">
664       <path value="Extension" />
665       <short value="Goals related to this Goal" />
666       <definition value="Establishes a relationship between this goal and other goals." />
667       <min value="0" />
668       <max value="*" />
669     </element>
670     <element id="Extension.extension:type">
671       <path value="Extension.extension" />
672       <sliceName value="type" />
673       <short value="predecessor | successor | replacement | other" />
674       <definition value="Identifies what kind of relationship exists between source and target goal." />
675       <min value="1" />
676       <max value="1" />
677       <type>
678         <code value="Extension" />
679       </type>
680     </element>
681     <element id="Extension.extension:type.extension">
682       <path value="Extension.extension.extension" />
683       <max value="0" />
684     </element>
685     <element id="Extension.extension:type.url">
686       <path value="Extension.extension.url" />
687       <type>
688         <code value="uri" />
689       </type>
690       <fixedUri value="type" />
691     </element>
692     <element id="Extension.extension:type.value[x]">
693       <path value="Extension.extension.value[x]" />
694       <min value="1" />
695       <type>
696         <code value="CodeableConcept" />
697       </type>
698       <binding>
699         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
700           <valueString value="GoalRelationshipType" />
701         </extension>
702         <strength value="extensible" />
703         <description value="Types of relationships between two goals." />
704         <valueSet value="http://hl7.org/fhir/ValueSet/goal-relationship-type" />
705       </binding>
706     </element>
707     <element id="Extension.extension:target">
708       <path value="Extension.extension" />
709       <sliceName value="target" />
710       <short value="Related goal" />
711       <definition value="The goal the relationship exists with." />
712       <min value="1" />
713       <max value="1" />
714       <type>
715         <code value="Extension" />
716       </type>
717     </element>
718     <element id="Extension.extension:target.extension">
719       <path value="Extension.extension.extension" />
720       <max value="0" />
721     </element>
722     <element id="Extension.extension:target.url">
723       <path value="Extension.extension.url" />
724       <type>
725         <code value="uri" />
726       </type>
727       <fixedUri value="target" />
728     </element>
729     <element id="Extension.extension:target.value[x]">
730       <path value="Extension.extension.value[x]" />
731       <min value="1" />
732       <type>
733         <code value="Reference" />
734         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal" />
735       </type>
736     </element>
737     <element id="Extension.url">
738       <path value="Extension.url" />
739       <fixedUri value="http://hl7.org/fhir/StructureDefinition/goal-relationship" />
740     </element>
741     <element id="Extension.value[x]">
742       <path value="Extension.value[x]" />
743       <min value="0" />
744       <max value="0" />
745     </element>
746   </differential>
747 </StructureDefinition>