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