workflow-relatedArtifact.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="workflow-relatedArtifact" />
  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/workflow-relatedArtifact" />
 11   <version value="4.0.1" />
 12   <name value="relatedArtifact" />
 13   <title value="Related Artifact" />
 14   <status value="draft" />
 15   <date value="2017-12-06" />
 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/fwg" />
 21     </telecom>
 22   </contact>
 23   <description value="Documentation  or 'knowledge artifacts' relevant to the base resource such as citations, supporting evidence, documentation of processes, caveats around testing methodology." />
 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="DiagnosticReport" />
 35   </context>
 36   <context>
 37     <type value="element" />
 38     <expression value="Observation" />
 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="Documentation relevant to the 'parent' resource" />
 47       <definition value="Documentation  or 'knowledge artifacts' relevant to the base resource such as citations, supporting evidence, documentation of processes, caveats around testing methodology." />
 48       <comment value="Note that in contrast this extension, the [supportingInfo extension](extension-workflow-supportinginfo.html) references other resources *from the patient record* that were used in creating the resource." />
 49       <min value="0" />
 50       <max value="*" />
 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="Extension" />
111       <definition value="An Extension" />
112       <min value="0" />
113       <max value="0" />
114       <base>
115         <path value="Element.extension" />
116         <min value="0" />
117         <max value="*" />
118       </base>
119       <type>
120         <code value="Extension" />
121       </type>
122       <constraint>
123         <key value="ele-1" />
124         <severity value="error" />
125         <human value="All FHIR elements must have a @value or children" />
126         <expression value="hasValue() or (children().count() > id.count())" />
127         <xpath value="@value|f:*|h:div" />
128         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
129       </constraint>
130       <constraint>
131         <key value="ext-1" />
132         <severity value="error" />
133         <human value="Must have either extensions or value[x], not both" />
134         <expression value="extension.exists() != value.exists()" />
135         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
136         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
137       </constraint>
138       <isModifier value="false" />
139       <isSummary value="false" />
140     </element>
141     <element id="Extension.url">
142       <path value="Extension.url" />
143       <representation value="xmlAttr" />
144       <short value="identifies the meaning of the extension" />
145       <definition value="Source of the definition for the extension code - a logical name or a URL." />
146       <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." />
147       <min value="1" />
148       <max value="1" />
149       <base>
150         <path value="Extension.url" />
151         <min value="1" />
152         <max value="1" />
153       </base>
154       <type>
155         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
156           <valueUrl value="uri" />
157         </extension>
158         <code value="http://hl7.org/fhirpath/System.String" />
159       </type>
160       <fixedUri value="http://hl7.org/fhir/StructureDefinition/workflow-relatedArtifact" />
161       <isModifier value="false" />
162       <isSummary value="false" />
163       <mapping>
164         <identity value="rim" />
165         <map value="N/A" />
166       </mapping>
167     </element>
168     <element id="Extension.value[x]">
169       <path value="Extension.value[x]" />
170       <short value="Value of extension" />
171       <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)." />
172       <min value="1" />
173       <max value="1" />
174       <base>
175         <path value="Extension.value[x]" />
176         <min value="0" />
177         <max value="1" />
178       </base>
179       <type>
180         <code value="RelatedArtifact" />
181       </type>
182       <constraint>
183         <key value="ele-1" />
184         <severity value="error" />
185         <human value="All FHIR elements must have a @value or children" />
186         <expression value="hasValue() or (children().count() > id.count())" />
187         <xpath value="@value|f:*|h:div" />
188         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
189       </constraint>
190       <isModifier value="false" />
191       <isSummary value="false" />
192       <mapping>
193         <identity value="rim" />
194         <map value="N/A" />
195       </mapping>
196     </element>
197   </snapshot>
198   <differential>
199     <element id="Extension">
200       <path value="Extension" />
201       <short value="Documentation relevant to the 'parent' resource" />
202       <definition value="Documentation  or 'knowledge artifacts' relevant to the base resource such as citations, supporting evidence, documentation of processes, caveats around testing methodology." />
203       <comment value="Note that in contrast this extension, the [supportingInfo extension](extension-workflow-supportinginfo.html) references other resources *from the patient record* that were used in creating the resource." />
204       <min value="0" />
205       <max value="*" />
206     </element>
207     <element id="Extension.extension">
208       <path value="Extension.extension" />
209       <max value="0" />
210     </element>
211     <element id="Extension.url">
212       <path value="Extension.url" />
213       <fixedUri value="http://hl7.org/fhir/StructureDefinition/workflow-relatedArtifact" />
214     </element>
215     <element id="Extension.value[x]">
216       <path value="Extension.value[x]" />
217       <min value="1" />
218       <type>
219         <code value="RelatedArtifact" />
220       </type>
221     </element>
222   </differential>
223 </StructureDefinition>