contactpoint-local.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="contactpoint-local" />
  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/contactpoint-local" />
 11   <version value="4.0.1" />
 12   <name value="local" />
 13   <title value="Local Number" />
 14   <status value="draft" />
 15   <date value="2015-02-28" />
 16   <publisher value="Health Level Seven, Inc. - FHIR Core WG" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="http://hl7.org/special/committees/FHIR" />
 21     </telecom>
 22   </contact>
 23   <description value="The local number that must be dialed to connect within the area/city/zone. This extension is used when a system wishes to designate specific parts of a phone number (and potentially place constraints on which components must be present and how they're filled in)." />
 24   <fhirVersion value="4.0.1" />
 25   <mapping>
 26     <identity value="rim" />
 27     <uri value="http://hl7.org/v3" />
 28     <name value="RIM Mapping" />
 29   </mapping>
 30   <kind value="complex-type" />
 31   <abstract value="false" />
 32   <context>
 33     <type value="element" />
 34     <expression value="ContactPoint" />
 35   </context>
 36   <type value="Extension" />
 37   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 38   <derivation value="constraint" />
 39   <snapshot>
 40     <element id="Extension">
 41       <path value="Extension" />
 42       <short value="Local number that must always be dialled" />
 43       <definition value="The local number that must be dialed to connect within the area/city/zone. This extension is used when a system wishes to designate specific parts of a phone number (and potentially place constraints on which components must be present and how they're filled in)." />
 44       <comment value="The ContactPoint.value element SHOULD still be populated even if the extension is present." />
 45       <min value="0" />
 46       <max value="1" />
 47       <base>
 48         <path value="Extension" />
 49         <min value="0" />
 50         <max value="*" />
 51       </base>
 52       <condition value="ele-1" />
 53       <constraint>
 54         <key value="ele-1" />
 55         <severity value="error" />
 56         <human value="All FHIR elements must have a @value or children" />
 57         <expression value="hasValue() or (children().count() > id.count())" />
 58         <xpath value="@value|f:*|h:div" />
 59         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 60       </constraint>
 61       <constraint>
 62         <key value="ext-1" />
 63         <severity value="error" />
 64         <human value="Must have either extensions or value[x], not both" />
 65         <expression value="extension.exists() != value.exists()" />
 66         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 67         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 68       </constraint>
 69       <isModifier value="false" />
 70     </element>
 71     <element id="Extension.id">
 72       <path value="Extension.id" />
 73       <representation value="xmlAttr" />
 74       <short value="Unique id for inter-element referencing" />
 75       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 76       <min value="0" />
 77       <max value="1" />
 78       <base>
 79         <path value="Element.id" />
 80         <min value="0" />
 81         <max value="1" />
 82       </base>
 83       <type>
 84         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 85           <valueUrl value="string" />
 86         </extension>
 87         <code value="http://hl7.org/fhirpath/System.String" />
 88       </type>
 89       <isModifier value="false" />
 90       <isSummary value="false" />
 91       <mapping>
 92         <identity value="rim" />
 93         <map value="n/a" />
 94       </mapping>
 95     </element>
 96     <element id="Extension.extension">
 97       <path value="Extension.extension" />
 98       <slicing>
 99         <discriminator>
100           <type value="value" />
101           <path value="url" />
102         </discriminator>
103         <description value="Extensions are always sliced by (at least) url" />
104         <rules value="open" />
105       </slicing>
106       <short value="Extension" />
107       <definition value="An Extension" />
108       <min value="0" />
109       <max value="0" />
110       <base>
111         <path value="Element.extension" />
112         <min value="0" />
113         <max value="*" />
114       </base>
115       <type>
116         <code value="Extension" />
117       </type>
118       <constraint>
119         <key value="ele-1" />
120         <severity value="error" />
121         <human value="All FHIR elements must have a @value or children" />
122         <expression value="hasValue() or (children().count() > id.count())" />
123         <xpath value="@value|f:*|h:div" />
124         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
125       </constraint>
126       <constraint>
127         <key value="ext-1" />
128         <severity value="error" />
129         <human value="Must have either extensions or value[x], not both" />
130         <expression value="extension.exists() != value.exists()" />
131         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
132         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
133       </constraint>
134       <isModifier value="false" />
135       <isSummary value="false" />
136     </element>
137     <element id="Extension.url">
138       <path value="Extension.url" />
139       <representation value="xmlAttr" />
140       <short value="identifies the meaning of the extension" />
141       <definition value="Source of the definition for the extension code - a logical name or a URL." />
142       <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." />
143       <min value="1" />
144       <max value="1" />
145       <base>
146         <path value="Extension.url" />
147         <min value="1" />
148         <max value="1" />
149       </base>
150       <type>
151         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
152           <valueUrl value="uri" />
153         </extension>
154         <code value="http://hl7.org/fhirpath/System.String" />
155       </type>
156       <fixedUri value="http://hl7.org/fhir/StructureDefinition/contactpoint-local" />
157       <isModifier value="false" />
158       <isSummary value="false" />
159       <mapping>
160         <identity value="rim" />
161         <map value="N/A" />
162       </mapping>
163     </element>
164     <element id="Extension.value[x]">
165       <path value="Extension.value[x]" />
166       <short value="Value of extension" />
167       <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)." />
168       <min value="1" />
169       <max value="1" />
170       <base>
171         <path value="Extension.value[x]" />
172         <min value="0" />
173         <max value="1" />
174       </base>
175       <type>
176         <code value="string" />
177       </type>
178       <constraint>
179         <key value="ele-1" />
180         <severity value="error" />
181         <human value="All FHIR elements must have a @value or children" />
182         <expression value="hasValue() or (children().count() > id.count())" />
183         <xpath value="@value|f:*|h:div" />
184         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
185       </constraint>
186       <isModifier value="false" />
187       <isSummary value="false" />
188       <mapping>
189         <identity value="rim" />
190         <map value="N/A" />
191       </mapping>
192     </element>
193   </snapshot>
194   <differential>
195     <element id="Extension">
196       <path value="Extension" />
197       <short value="Local number that must always be dialled" />
198       <definition value="The local number that must be dialed to connect within the area/city/zone. This extension is used when a system wishes to designate specific parts of a phone number (and potentially place constraints on which components must be present and how they're filled in)." />
199       <comment value="The ContactPoint.value element SHOULD still be populated even if the extension is present." />
200       <min value="0" />
201       <max value="1" />
202     </element>
203     <element id="Extension.extension">
204       <path value="Extension.extension" />
205       <max value="0" />
206     </element>
207     <element id="Extension.url">
208       <path value="Extension.url" />
209       <fixedUri value="http://hl7.org/fhir/StructureDefinition/contactpoint-local" />
210     </element>
211     <element id="Extension.value[x]">
212       <path value="Extension.value[x]" />
213       <min value="1" />
214       <type>
215         <code value="string" />
216       </type>
217     </element>
218   </differential>
219 </StructureDefinition>