questionnaire-referenceProfile.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="questionnaire-referenceProfile" />
  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-referenceProfile" />
 11   <version value="4.0.1" />
 12   <name value="referenceProfile" />
 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="Where the type for a question is "Reference", indicates a profile that the resource instances pointed to in answers to this question must be valid against." />
 23   <fhirVersion value="4.0.1" />
 24   <mapping>
 25     <identity value="rim" />
 26     <uri value="http://hl7.org/v3" />
 27     <name value="RIM Mapping" />
 28   </mapping>
 29   <kind value="complex-type" />
 30   <abstract value="false" />
 31   <context>
 32     <type value="element" />
 33     <expression value="Questionnaire.item" />
 34   </context>
 35   <context>
 36     <type value="element" />
 37     <expression value="Questionnaire.item.item" />
 38   </context>
 39   <contextInvariant value="type='reference'" />
 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="Allowed profile for reference" />
 47       <definition value="Where the type for a question is "Reference", indicates a profile that the resource instances pointed to in answers to this question must be valid against." />
 48       <comment value="If multiple profiles are present, then the resource must be valid against at least one of them." />
 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/questionnaire-referenceProfile" />
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="canonical" />
181         <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
182       </type>
183       <constraint>
184         <key value="ele-1" />
185         <severity value="error" />
186         <human value="All FHIR elements must have a @value or children" />
187         <expression value="hasValue() or (children().count() > id.count())" />
188         <xpath value="@value|f:*|h:div" />
189         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
190       </constraint>
191       <isModifier value="false" />
192       <isSummary value="false" />
193       <mapping>
194         <identity value="rim" />
195         <map value="N/A" />
196       </mapping>
197     </element>
198   </snapshot>
199   <differential>
200     <element id="Extension">
201       <path value="Extension" />
202       <short value="Allowed profile for reference" />
203       <definition value="Where the type for a question is "Reference", indicates a profile that the resource instances pointed to in answers to this question must be valid against." />
204       <comment value="If multiple profiles are present, then the resource must be valid against at least one of them." />
205       <min value="0" />
206       <max value="*" />
207     </element>
208     <element id="Extension.extension">
209       <path value="Extension.extension" />
210       <max value="0" />
211     </element>
212     <element id="Extension.url">
213       <path value="Extension.url" />
214       <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaire-referenceProfile" />
215     </element>
216     <element id="Extension.value[x]">
217       <path value="Extension.value[x]" />
218       <min value="1" />
219       <type>
220         <code value="canonical" />
221         <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
222       </type>
223     </element>
224   </differential>
225 </StructureDefinition>