questionnaireresponse-reason.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="questionnaireresponse-reason" />
  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/questionnaireresponse-reason" />
 11   <version value="4.0.1" />
 12   <name value="reason" />
 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="The factor(s) that caused the questionnaire to be answered." />
 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="QuestionnaireResponse" />
 34   </context>
 35   <type value="Extension" />
 36   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 37   <derivation value="constraint" />
 38   <snapshot>
 39     <element id="Extension">
 40       <path value="Extension" />
 41       <short value="Why response was created" />
 42       <definition value="The factor(s) that caused the questionnaire to be answered." />
 43       <comment value="The reason for completion is typically implicit in the form design or may be explicit as a question in the form itself.  This element exists when neither of these other two means suffice." />
 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="Extension" />
106       <definition value="An Extension" />
107       <min value="0" />
108       <max value="0" />
109       <base>
110         <path value="Element.extension" />
111         <min value="0" />
112         <max value="*" />
113       </base>
114       <type>
115         <code value="Extension" />
116       </type>
117       <constraint>
118         <key value="ele-1" />
119         <severity value="error" />
120         <human value="All FHIR elements must have a @value or children" />
121         <expression value="hasValue() or (children().count() > id.count())" />
122         <xpath value="@value|f:*|h:div" />
123         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
124       </constraint>
125       <constraint>
126         <key value="ext-1" />
127         <severity value="error" />
128         <human value="Must have either extensions or value[x], not both" />
129         <expression value="extension.exists() != value.exists()" />
130         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
131         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
132       </constraint>
133       <isModifier value="false" />
134       <isSummary value="false" />
135     </element>
136     <element id="Extension.url">
137       <path value="Extension.url" />
138       <representation value="xmlAttr" />
139       <short value="identifies the meaning of the extension" />
140       <definition value="Source of the definition for the extension code - a logical name or a URL." />
141       <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." />
142       <min value="1" />
143       <max value="1" />
144       <base>
145         <path value="Extension.url" />
146         <min value="1" />
147         <max value="1" />
148       </base>
149       <type>
150         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
151           <valueUrl value="uri" />
152         </extension>
153         <code value="http://hl7.org/fhirpath/System.String" />
154       </type>
155       <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-reason" />
156       <isModifier value="false" />
157       <isSummary value="false" />
158       <mapping>
159         <identity value="rim" />
160         <map value="N/A" />
161       </mapping>
162     </element>
163     <element id="Extension.value[x]">
164       <path value="Extension.value[x]" />
165       <short value="Value of extension" />
166       <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)." />
167       <min value="1" />
168       <max value="1" />
169       <base>
170         <path value="Extension.value[x]" />
171         <min value="0" />
172         <max value="1" />
173       </base>
174       <type>
175         <code value="CodeableConcept" />
176       </type>
177       <constraint>
178         <key value="ele-1" />
179         <severity value="error" />
180         <human value="All FHIR elements must have a @value or children" />
181         <expression value="hasValue() or (children().count() > id.count())" />
182         <xpath value="@value|f:*|h:div" />
183         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
184       </constraint>
185       <isModifier value="false" />
186       <isSummary value="false" />
187       <binding>
188         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
189           <valueString value="QuestionnaireResponseReason" />
190         </extension>
191         <strength value="example" />
192         <description value="Codes indicating why the response was captured.  For example, admitting, referral, insurance claim, etc." />
193       </binding>
194       <mapping>
195         <identity value="rim" />
196         <map value="N/A" />
197       </mapping>
198     </element>
199   </snapshot>
200   <differential>
201     <element id="Extension">
202       <path value="Extension" />
203       <short value="Why response was created" />
204       <definition value="The factor(s) that caused the questionnaire to be answered." />
205       <comment value="The reason for completion is typically implicit in the form design or may be explicit as a question in the form itself.  This element exists when neither of these other two means suffice." />
206       <min value="0" />
207       <max value="*" />
208     </element>
209     <element id="Extension.extension">
210       <path value="Extension.extension" />
211       <max value="0" />
212     </element>
213     <element id="Extension.url">
214       <path value="Extension.url" />
215       <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-reason" />
216     </element>
217     <element id="Extension.value[x]">
218       <path value="Extension.value[x]" />
219       <min value="1" />
220       <type>
221         <code value="CodeableConcept" />
222       </type>
223       <binding>
224         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
225           <valueString value="QuestionnaireResponseReason" />
226         </extension>
227         <strength value="example" />
228         <description value="Codes indicating why the response was captured.  For example, admitting, referral, insurance claim, etc." />
229       </binding>
230     </element>
231   </differential>
232 </StructureDefinition>