questionnaireresponse-signature.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="questionnaireresponse-signature" />
  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-signature" />
 11   <version value="4.0.1" />
 12   <name value="signature" />
 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="Represents a wet or electronic signature for either the form overall or for the question or item it's associated with." />
 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   <context>
 36     <type value="element" />
 37     <expression value="QuestionnaireResponse.item" />
 38   </context>
 39   <context>
 40     <type value="element" />
 41     <expression value="QuestionnaireResponse.item.item" />
 42   </context>
 43   <type value="Extension" />
 44   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 45   <derivation value="constraint" />
 46   <snapshot>
 47     <element id="Extension">
 48       <path value="Extension" />
 49       <short value="A signature attesting to the content" />
 50       <definition value="Represents a wet or electronic signature for either the form overall or for the question or item it's associated with." />
 51       <min value="0" />
 52       <max value="*" />
 53       <base>
 54         <path value="Extension" />
 55         <min value="0" />
 56         <max value="*" />
 57       </base>
 58       <condition value="ele-1" />
 59       <constraint>
 60         <key value="ele-1" />
 61         <severity value="error" />
 62         <human value="All FHIR elements must have a @value or children" />
 63         <expression value="hasValue() or (children().count() > id.count())" />
 64         <xpath value="@value|f:*|h:div" />
 65         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 66       </constraint>
 67       <constraint>
 68         <key value="ext-1" />
 69         <severity value="error" />
 70         <human value="Must have either extensions or value[x], not both" />
 71         <expression value="extension.exists() != value.exists()" />
 72         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 73         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 74       </constraint>
 75       <isModifier value="false" />
 76     </element>
 77     <element id="Extension.id">
 78       <path value="Extension.id" />
 79       <representation value="xmlAttr" />
 80       <short value="Unique id for inter-element referencing" />
 81       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 82       <min value="0" />
 83       <max value="1" />
 84       <base>
 85         <path value="Element.id" />
 86         <min value="0" />
 87         <max value="1" />
 88       </base>
 89       <type>
 90         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 91           <valueUrl value="string" />
 92         </extension>
 93         <code value="http://hl7.org/fhirpath/System.String" />
 94       </type>
 95       <isModifier value="false" />
 96       <isSummary value="false" />
 97       <mapping>
 98         <identity value="rim" />
 99         <map value="n/a" />
100       </mapping>
101     </element>
102     <element id="Extension.extension">
103       <path value="Extension.extension" />
104       <slicing>
105         <discriminator>
106           <type value="value" />
107           <path value="url" />
108         </discriminator>
109         <description value="Extensions are always sliced by (at least) url" />
110         <rules value="open" />
111       </slicing>
112       <short value="Extension" />
113       <definition value="An Extension" />
114       <min value="0" />
115       <max value="0" />
116       <base>
117         <path value="Element.extension" />
118         <min value="0" />
119         <max value="*" />
120       </base>
121       <type>
122         <code value="Extension" />
123       </type>
124       <constraint>
125         <key value="ele-1" />
126         <severity value="error" />
127         <human value="All FHIR elements must have a @value or children" />
128         <expression value="hasValue() or (children().count() > id.count())" />
129         <xpath value="@value|f:*|h:div" />
130         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
131       </constraint>
132       <constraint>
133         <key value="ext-1" />
134         <severity value="error" />
135         <human value="Must have either extensions or value[x], not both" />
136         <expression value="extension.exists() != value.exists()" />
137         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
138         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
139       </constraint>
140       <isModifier value="false" />
141       <isSummary value="false" />
142     </element>
143     <element id="Extension.url">
144       <path value="Extension.url" />
145       <representation value="xmlAttr" />
146       <short value="identifies the meaning of the extension" />
147       <definition value="Source of the definition for the extension code - a logical name or a URL." />
148       <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." />
149       <min value="1" />
150       <max value="1" />
151       <base>
152         <path value="Extension.url" />
153         <min value="1" />
154         <max value="1" />
155       </base>
156       <type>
157         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
158           <valueUrl value="uri" />
159         </extension>
160         <code value="http://hl7.org/fhirpath/System.String" />
161       </type>
162       <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature" />
163       <isModifier value="false" />
164       <isSummary value="false" />
165       <mapping>
166         <identity value="rim" />
167         <map value="N/A" />
168       </mapping>
169     </element>
170     <element id="Extension.value[x]">
171       <path value="Extension.value[x]" />
172       <short value="Value of extension" />
173       <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)." />
174       <min value="1" />
175       <max value="1" />
176       <base>
177         <path value="Extension.value[x]" />
178         <min value="0" />
179         <max value="1" />
180       </base>
181       <type>
182         <code value="Signature" />
183       </type>
184       <constraint>
185         <key value="ele-1" />
186         <severity value="error" />
187         <human value="All FHIR elements must have a @value or children" />
188         <expression value="hasValue() or (children().count() > id.count())" />
189         <xpath value="@value|f:*|h:div" />
190         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
191       </constraint>
192       <isModifier value="false" />
193       <isSummary value="false" />
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="A signature attesting to the content" />
204       <definition value="Represents a wet or electronic signature for either the form overall or for the question or item it's associated with." />
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/questionnaireresponse-signature" />
215     </element>
216     <element id="Extension.value[x]">
217       <path value="Extension.value[x]" />
218       <min value="1" />
219       <type>
220         <code value="Signature" />
221       </type>
222     </element>
223   </differential>
224 </StructureDefinition>