questionnaire-fhirType.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="questionnaire-fhirType" />
  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/questionnaire-fhirType" />
 11   <version value="4.0.1" />
 12   <name value="fhirType" />
 13   <status value="draft" />
 14   <date value="2013-07-04" />
 15   <publisher value="HL7" />
 16   <contact>
 17     <telecom>
 18       <system value="url" />
 19       <value value="http://www.hl7.org" />
 20     </telecom>
 21   </contact>
 22   <description value="For questionnaires generated from FHIR profiles, indicates the FHIR data type or resource type that corresponds to this node." />
 23   <fhirVersion value="4.0.1" />
 24   <mapping>
 25     <identity value="v2" />
 26     <uri value="http://hl7.org/v2" />
 27     <name value="HL7 v2 Mapping" />
 28   </mapping>
 29   <mapping>
 30     <identity value="rim" />
 31     <uri value="http://hl7.org/v3" />
 32     <name value="RIM Mapping" />
 33   </mapping>
 34   <kind value="complex-type" />
 35   <abstract value="false" />
 36   <context>
 37     <type value="element" />
 38     <expression value="Questionnaire.item" />
 39   </context>
 40   <context>
 41     <type value="element" />
 42     <expression value="Questionnaire.item.item" />
 43   </context>
 44   <contextInvariant value="type!='display'" />
 45   <type value="Extension" />
 46   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 47   <derivation value="constraint" />
 48   <snapshot>
 49     <element id="Extension">
 50       <path value="Extension" />
 51       <short value="The underlying FHIR data type" />
 52       <definition value="For questionnaires generated from FHIR profiles, indicates the FHIR data type or resource type that corresponds to this node." />
 53       <min value="0" />
 54       <max value="1" />
 55       <base>
 56         <path value="Extension" />
 57         <min value="0" />
 58         <max value="*" />
 59       </base>
 60       <condition value="ele-1" />
 61       <constraint>
 62         <key value="ele-1" />
 63         <severity value="error" />
 64         <human value="All FHIR elements must have a @value or children" />
 65         <expression value="hasValue() or (children().count() > id.count())" />
 66         <xpath value="@value|f:*|h:div" />
 67         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 68       </constraint>
 69       <constraint>
 70         <key value="ext-1" />
 71         <severity value="error" />
 72         <human value="Must have either extensions or value[x], not both" />
 73         <expression value="extension.exists() != value.exists()" />
 74         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 75         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 76       </constraint>
 77       <isModifier value="false" />
 78       <mapping>
 79         <identity value="v2" />
 80         <map value="N/A" />
 81       </mapping>
 82       <mapping>
 83         <identity value="rim" />
 84         <map value="N/A (MIF-level)" />
 85       </mapping>
 86     </element>
 87     <element id="Extension.id">
 88       <path value="Extension.id" />
 89       <representation value="xmlAttr" />
 90       <short value="Unique id for inter-element referencing" />
 91       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 92       <min value="0" />
 93       <max value="1" />
 94       <base>
 95         <path value="Element.id" />
 96         <min value="0" />
 97         <max value="1" />
 98       </base>
 99       <type>
100         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
101           <valueUrl value="string" />
102         </extension>
103         <code value="http://hl7.org/fhirpath/System.String" />
104       </type>
105       <isModifier value="false" />
106       <isSummary value="false" />
107       <mapping>
108         <identity value="rim" />
109         <map value="n/a" />
110       </mapping>
111     </element>
112     <element id="Extension.extension">
113       <path value="Extension.extension" />
114       <slicing>
115         <discriminator>
116           <type value="value" />
117           <path value="url" />
118         </discriminator>
119         <description value="Extensions are always sliced by (at least) url" />
120         <rules value="open" />
121       </slicing>
122       <short value="Extension" />
123       <definition value="An Extension" />
124       <min value="0" />
125       <max value="0" />
126       <base>
127         <path value="Element.extension" />
128         <min value="0" />
129         <max value="*" />
130       </base>
131       <type>
132         <code value="Extension" />
133       </type>
134       <constraint>
135         <key value="ele-1" />
136         <severity value="error" />
137         <human value="All FHIR elements must have a @value or children" />
138         <expression value="hasValue() or (children().count() > id.count())" />
139         <xpath value="@value|f:*|h:div" />
140         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
141       </constraint>
142       <constraint>
143         <key value="ext-1" />
144         <severity value="error" />
145         <human value="Must have either extensions or value[x], not both" />
146         <expression value="extension.exists() != value.exists()" />
147         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
148         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
149       </constraint>
150       <isModifier value="false" />
151       <isSummary value="false" />
152     </element>
153     <element id="Extension.url">
154       <path value="Extension.url" />
155       <representation value="xmlAttr" />
156       <short value="identifies the meaning of the extension" />
157       <definition value="Source of the definition for the extension code - a logical name or a URL." />
158       <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." />
159       <min value="1" />
160       <max value="1" />
161       <base>
162         <path value="Extension.url" />
163         <min value="1" />
164         <max value="1" />
165       </base>
166       <type>
167         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
168           <valueUrl value="uri" />
169         </extension>
170         <code value="http://hl7.org/fhirpath/System.String" />
171       </type>
172       <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType" />
173       <isModifier value="false" />
174       <isSummary value="false" />
175       <mapping>
176         <identity value="rim" />
177         <map value="N/A" />
178       </mapping>
179     </element>
180     <element id="Extension.value[x]">
181       <path value="Extension.value[x]" />
182       <short value="Value of extension" />
183       <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)." />
184       <min value="1" />
185       <max value="1" />
186       <base>
187         <path value="Extension.value[x]" />
188         <min value="0" />
189         <max value="1" />
190       </base>
191       <type>
192         <code value="string" />
193       </type>
194       <constraint>
195         <key value="ele-1" />
196         <severity value="error" />
197         <human value="All FHIR elements must have a @value or children" />
198         <expression value="hasValue() or (children().count() > id.count())" />
199         <xpath value="@value|f:*|h:div" />
200         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
201       </constraint>
202       <isModifier value="false" />
203       <isSummary value="false" />
204       <mapping>
205         <identity value="rim" />
206         <map value="N/A" />
207       </mapping>
208     </element>
209   </snapshot>
210   <differential>
211     <element id="Extension">
212       <path value="Extension" />
213       <short value="The underlying FHIR data type" />
214       <definition value="For questionnaires generated from FHIR profiles, indicates the FHIR data type or resource type that corresponds to this node." />
215       <min value="0" />
216       <max value="1" />
217       <mapping>
218         <identity value="v2" />
219         <map value="N/A" />
220       </mapping>
221       <mapping>
222         <identity value="rim" />
223         <map value="N/A (MIF-level)" />
224       </mapping>
225     </element>
226     <element id="Extension.extension">
227       <path value="Extension.extension" />
228       <max value="0" />
229     </element>
230     <element id="Extension.url">
231       <path value="Extension.url" />
232       <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType" />
233     </element>
234     <element id="Extension.value[x]">
235       <path value="Extension.value[x]" />
236       <min value="1" />
237       <type>
238         <code value="string" />
239       </type>
240     </element>
241   </differential>
242 </StructureDefinition>