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