geolocation.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="geolocation" />
  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/geolocation" />
 11   <version value="4.0.1" />
 12   <name value="Geolocation" />
 13   <title value="Geolocation" />
 14   <status value="draft" />
 15   <date value="2013-12-05" />
 16   <publisher value="Health Level Seven International (FHIR Infrastructure)" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="http://www.hl7.org/Special/committees/fiwg" />
 21     </telecom>
 22   </contact>
 23   <description value="The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML)." />
 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="Address" />
 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="The absolute geographic location" />
 43       <definition value="The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML)." />
 44       <comment value="The extension can be further extended to include unique geolocation identifiers, confidence, altitude, etc." />
 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="Additional content defined by implementations" />
107       <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
108       <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
109       <alias value="extensions" />
110       <alias value="user content" />
111       <min value="0" />
112       <max value="*" />
113       <base>
114         <path value="Element.extension" />
115         <min value="0" />
116         <max value="*" />
117       </base>
118       <type>
119         <code value="Extension" />
120       </type>
121       <constraint>
122         <key value="ele-1" />
123         <severity value="error" />
124         <human value="All FHIR elements must have a @value or children" />
125         <expression value="hasValue() or (children().count() > id.count())" />
126         <xpath value="@value|f:*|h:div" />
127         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
128       </constraint>
129       <constraint>
130         <key value="ext-1" />
131         <severity value="error" />
132         <human value="Must have either extensions or value[x], not both" />
133         <expression value="extension.exists() != value.exists()" />
134         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
135         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
136       </constraint>
137       <isModifier value="false" />
138       <isSummary value="false" />
139       <mapping>
140         <identity value="rim" />
141         <map value="n/a" />
142       </mapping>
143     </element>
144     <element id="Extension.extension:latitude">
145       <path value="Extension.extension" />
146       <sliceName value="latitude" />
147       <short value="Latitude with WGS84 datum" />
148       <definition value="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)." />
149       <min value="1" />
150       <max value="1" />
151       <base>
152         <path value="Element.extension" />
153         <min value="0" />
154         <max value="*" />
155       </base>
156       <type>
157         <code value="Extension" />
158       </type>
159       <constraint>
160         <key value="ele-1" />
161         <severity value="error" />
162         <human value="All FHIR elements must have a @value or children" />
163         <expression value="hasValue() or (children().count() > id.count())" />
164         <xpath value="@value|f:*|h:div" />
165         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
166       </constraint>
167       <constraint>
168         <key value="ext-1" />
169         <severity value="error" />
170         <human value="Must have either extensions or value[x], not both" />
171         <expression value="extension.exists() != value.exists()" />
172         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
173         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
174       </constraint>
175       <isModifier value="false" />
176       <isSummary value="false" />
177     </element>
178     <element id="Extension.extension:latitude.id">
179       <path value="Extension.extension.id" />
180       <representation value="xmlAttr" />
181       <short value="Unique id for inter-element referencing" />
182       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
183       <min value="0" />
184       <max value="1" />
185       <base>
186         <path value="Element.id" />
187         <min value="0" />
188         <max value="1" />
189       </base>
190       <type>
191         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
192           <valueUrl value="string" />
193         </extension>
194         <code value="http://hl7.org/fhirpath/System.String" />
195       </type>
196       <isModifier value="false" />
197       <isSummary value="false" />
198       <mapping>
199         <identity value="rim" />
200         <map value="n/a" />
201       </mapping>
202     </element>
203     <element id="Extension.extension:latitude.extension">
204       <path value="Extension.extension.extension" />
205       <slicing>
206         <discriminator>
207           <type value="value" />
208           <path value="url" />
209         </discriminator>
210         <description value="Extensions are always sliced by (at least) url" />
211         <rules value="open" />
212       </slicing>
213       <short value="Extension" />
214       <definition value="An Extension" />
215       <min value="0" />
216       <max value="0" />
217       <base>
218         <path value="Element.extension" />
219         <min value="0" />
220         <max value="*" />
221       </base>
222       <type>
223         <code value="Extension" />
224       </type>
225       <constraint>
226         <key value="ele-1" />
227         <severity value="error" />
228         <human value="All FHIR elements must have a @value or children" />
229         <expression value="hasValue() or (children().count() > id.count())" />
230         <xpath value="@value|f:*|h:div" />
231         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
232       </constraint>
233       <constraint>
234         <key value="ext-1" />
235         <severity value="error" />
236         <human value="Must have either extensions or value[x], not both" />
237         <expression value="extension.exists() != value.exists()" />
238         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
239         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
240       </constraint>
241       <isModifier value="false" />
242       <isSummary value="false" />
243     </element>
244     <element id="Extension.extension:latitude.url">
245       <path value="Extension.extension.url" />
246       <representation value="xmlAttr" />
247       <short value="identifies the meaning of the extension" />
248       <definition value="Source of the definition for the extension code - a logical name or a URL." />
249       <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." />
250       <min value="1" />
251       <max value="1" />
252       <base>
253         <path value="Extension.url" />
254         <min value="1" />
255         <max value="1" />
256       </base>
257       <type>
258         <code value="uri" />
259       </type>
260       <fixedUri value="latitude" />
261       <isModifier value="false" />
262       <isSummary value="false" />
263       <mapping>
264         <identity value="rim" />
265         <map value="N/A" />
266       </mapping>
267     </element>
268     <element id="Extension.extension:latitude.value[x]">
269       <path value="Extension.extension.value[x]" />
270       <short value="Value of extension" />
271       <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)." />
272       <min value="1" />
273       <max value="1" />
274       <base>
275         <path value="Extension.value[x]" />
276         <min value="0" />
277         <max value="1" />
278       </base>
279       <type>
280         <code value="decimal" />
281       </type>
282       <constraint>
283         <key value="ele-1" />
284         <severity value="error" />
285         <human value="All FHIR elements must have a @value or children" />
286         <expression value="hasValue() or (children().count() > id.count())" />
287         <xpath value="@value|f:*|h:div" />
288         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
289       </constraint>
290       <isModifier value="false" />
291       <isSummary value="false" />
292       <mapping>
293         <identity value="rim" />
294         <map value="N/A" />
295       </mapping>
296     </element>
297     <element id="Extension.extension:longitude">
298       <path value="Extension.extension" />
299       <sliceName value="longitude" />
300       <short value="Longitude with WGS84 datum" />
301       <definition value="Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)." />
302       <min value="1" />
303       <max value="1" />
304       <base>
305         <path value="Element.extension" />
306         <min value="0" />
307         <max value="*" />
308       </base>
309       <type>
310         <code value="Extension" />
311       </type>
312       <constraint>
313         <key value="ele-1" />
314         <severity value="error" />
315         <human value="All FHIR elements must have a @value or children" />
316         <expression value="hasValue() or (children().count() > id.count())" />
317         <xpath value="@value|f:*|h:div" />
318         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
319       </constraint>
320       <constraint>
321         <key value="ext-1" />
322         <severity value="error" />
323         <human value="Must have either extensions or value[x], not both" />
324         <expression value="extension.exists() != value.exists()" />
325         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
326         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
327       </constraint>
328       <isModifier value="false" />
329       <isSummary value="false" />
330     </element>
331     <element id="Extension.extension:longitude.id">
332       <path value="Extension.extension.id" />
333       <representation value="xmlAttr" />
334       <short value="Unique id for inter-element referencing" />
335       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
336       <min value="0" />
337       <max value="1" />
338       <base>
339         <path value="Element.id" />
340         <min value="0" />
341         <max value="1" />
342       </base>
343       <type>
344         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
345           <valueUrl value="string" />
346         </extension>
347         <code value="http://hl7.org/fhirpath/System.String" />
348       </type>
349       <isModifier value="false" />
350       <isSummary value="false" />
351       <mapping>
352         <identity value="rim" />
353         <map value="n/a" />
354       </mapping>
355     </element>
356     <element id="Extension.extension:longitude.extension">
357       <path value="Extension.extension.extension" />
358       <slicing>
359         <discriminator>
360           <type value="value" />
361           <path value="url" />
362         </discriminator>
363         <description value="Extensions are always sliced by (at least) url" />
364         <rules value="open" />
365       </slicing>
366       <short value="Extension" />
367       <definition value="An Extension" />
368       <min value="0" />
369       <max value="0" />
370       <base>
371         <path value="Element.extension" />
372         <min value="0" />
373         <max value="*" />
374       </base>
375       <type>
376         <code value="Extension" />
377       </type>
378       <constraint>
379         <key value="ele-1" />
380         <severity value="error" />
381         <human value="All FHIR elements must have a @value or children" />
382         <expression value="hasValue() or (children().count() > id.count())" />
383         <xpath value="@value|f:*|h:div" />
384         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
385       </constraint>
386       <constraint>
387         <key value="ext-1" />
388         <severity value="error" />
389         <human value="Must have either extensions or value[x], not both" />
390         <expression value="extension.exists() != value.exists()" />
391         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
392         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
393       </constraint>
394       <isModifier value="false" />
395       <isSummary value="false" />
396     </element>
397     <element id="Extension.extension:longitude.url">
398       <path value="Extension.extension.url" />
399       <representation value="xmlAttr" />
400       <short value="identifies the meaning of the extension" />
401       <definition value="Source of the definition for the extension code - a logical name or a URL." />
402       <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." />
403       <min value="1" />
404       <max value="1" />
405       <base>
406         <path value="Extension.url" />
407         <min value="1" />
408         <max value="1" />
409       </base>
410       <type>
411         <code value="uri" />
412       </type>
413       <fixedUri value="longitude" />
414       <isModifier value="false" />
415       <isSummary value="false" />
416       <mapping>
417         <identity value="rim" />
418         <map value="N/A" />
419       </mapping>
420     </element>
421     <element id="Extension.extension:longitude.value[x]">
422       <path value="Extension.extension.value[x]" />
423       <short value="Value of extension" />
424       <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)." />
425       <min value="1" />
426       <max value="1" />
427       <base>
428         <path value="Extension.value[x]" />
429         <min value="0" />
430         <max value="1" />
431       </base>
432       <type>
433         <code value="decimal" />
434       </type>
435       <constraint>
436         <key value="ele-1" />
437         <severity value="error" />
438         <human value="All FHIR elements must have a @value or children" />
439         <expression value="hasValue() or (children().count() > id.count())" />
440         <xpath value="@value|f:*|h:div" />
441         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
442       </constraint>
443       <isModifier value="false" />
444       <isSummary value="false" />
445       <mapping>
446         <identity value="rim" />
447         <map value="N/A" />
448       </mapping>
449     </element>
450     <element id="Extension.url">
451       <path value="Extension.url" />
452       <representation value="xmlAttr" />
453       <short value="identifies the meaning of the extension" />
454       <definition value="Source of the definition for the extension code - a logical name or a URL." />
455       <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." />
456       <min value="1" />
457       <max value="1" />
458       <base>
459         <path value="Extension.url" />
460         <min value="1" />
461         <max value="1" />
462       </base>
463       <type>
464         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
465           <valueUrl value="uri" />
466         </extension>
467         <code value="http://hl7.org/fhirpath/System.String" />
468       </type>
469       <fixedUri value="http://hl7.org/fhir/StructureDefinition/geolocation" />
470       <isModifier value="false" />
471       <isSummary value="false" />
472       <mapping>
473         <identity value="rim" />
474         <map value="N/A" />
475       </mapping>
476     </element>
477     <element id="Extension.value[x]">
478       <path value="Extension.value[x]" />
479       <short value="Value of extension" />
480       <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)." />
481       <min value="0" />
482       <max value="0" />
483       <base>
484         <path value="Extension.value[x]" />
485         <min value="0" />
486         <max value="1" />
487       </base>
488       <type>
489         <code value="base64Binary" />
490       </type>
491       <type>
492         <code value="boolean" />
493       </type>
494       <type>
495         <code value="canonical" />
496       </type>
497       <type>
498         <code value="code" />
499       </type>
500       <type>
501         <code value="date" />
502       </type>
503       <type>
504         <code value="dateTime" />
505       </type>
506       <type>
507         <code value="decimal" />
508       </type>
509       <type>
510         <code value="id" />
511       </type>
512       <type>
513         <code value="instant" />
514       </type>
515       <type>
516         <code value="integer" />
517       </type>
518       <type>
519         <code value="markdown" />
520       </type>
521       <type>
522         <code value="oid" />
523       </type>
524       <type>
525         <code value="positiveInt" />
526       </type>
527       <type>
528         <code value="string" />
529       </type>
530       <type>
531         <code value="time" />
532       </type>
533       <type>
534         <code value="unsignedInt" />
535       </type>
536       <type>
537         <code value="uri" />
538       </type>
539       <type>
540         <code value="url" />
541       </type>
542       <type>
543         <code value="uuid" />
544       </type>
545       <type>
546         <code value="Address" />
547       </type>
548       <type>
549         <code value="Age" />
550       </type>
551       <type>
552         <code value="Annotation" />
553       </type>
554       <type>
555         <code value="Attachment" />
556       </type>
557       <type>
558         <code value="CodeableConcept" />
559       </type>
560       <type>
561         <code value="Coding" />
562       </type>
563       <type>
564         <code value="ContactPoint" />
565       </type>
566       <type>
567         <code value="Count" />
568       </type>
569       <type>
570         <code value="Distance" />
571       </type>
572       <type>
573         <code value="Duration" />
574       </type>
575       <type>
576         <code value="HumanName" />
577       </type>
578       <type>
579         <code value="Identifier" />
580       </type>
581       <type>
582         <code value="Money" />
583       </type>
584       <type>
585         <code value="Period" />
586       </type>
587       <type>
588         <code value="Quantity" />
589       </type>
590       <type>
591         <code value="Range" />
592       </type>
593       <type>
594         <code value="Ratio" />
595       </type>
596       <type>
597         <code value="Reference" />
598       </type>
599       <type>
600         <code value="SampledData" />
601       </type>
602       <type>
603         <code value="Signature" />
604       </type>
605       <type>
606         <code value="Timing" />
607       </type>
608       <type>
609         <code value="ContactDetail" />
610       </type>
611       <type>
612         <code value="Contributor" />
613       </type>
614       <type>
615         <code value="DataRequirement" />
616       </type>
617       <type>
618         <code value="Expression" />
619       </type>
620       <type>
621         <code value="ParameterDefinition" />
622       </type>
623       <type>
624         <code value="RelatedArtifact" />
625       </type>
626       <type>
627         <code value="TriggerDefinition" />
628       </type>
629       <type>
630         <code value="UsageContext" />
631       </type>
632       <type>
633         <code value="Dosage" />
634       </type>
635       <type>
636         <code value="Meta" />
637       </type>
638       <constraint>
639         <key value="ele-1" />
640         <severity value="error" />
641         <human value="All FHIR elements must have a @value or children" />
642         <expression value="hasValue() or (children().count() > id.count())" />
643         <xpath value="@value|f:*|h:div" />
644         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
645       </constraint>
646       <isModifier value="false" />
647       <isSummary value="false" />
648       <mapping>
649         <identity value="rim" />
650         <map value="N/A" />
651       </mapping>
652     </element>
653   </snapshot>
654   <differential>
655     <element id="Extension">
656       <path value="Extension" />
657       <short value="The absolute geographic location" />
658       <definition value="The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML)." />
659       <comment value="The extension can be further extended to include unique geolocation identifiers, confidence, altitude, etc." />
660       <min value="0" />
661       <max value="1" />
662     </element>
663     <element id="Extension.extension:latitude">
664       <path value="Extension.extension" />
665       <sliceName value="latitude" />
666       <short value="Latitude with WGS84 datum" />
667       <definition value="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)." />
668       <min value="1" />
669       <max value="1" />
670       <type>
671         <code value="Extension" />
672       </type>
673     </element>
674     <element id="Extension.extension:latitude.extension">
675       <path value="Extension.extension.extension" />
676       <max value="0" />
677     </element>
678     <element id="Extension.extension:latitude.url">
679       <path value="Extension.extension.url" />
680       <type>
681         <code value="uri" />
682       </type>
683       <fixedUri value="latitude" />
684     </element>
685     <element id="Extension.extension:latitude.value[x]">
686       <path value="Extension.extension.value[x]" />
687       <min value="1" />
688       <type>
689         <code value="decimal" />
690       </type>
691     </element>
692     <element id="Extension.extension:longitude">
693       <path value="Extension.extension" />
694       <sliceName value="longitude" />
695       <short value="Longitude with WGS84 datum" />
696       <definition value="Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)." />
697       <min value="1" />
698       <max value="1" />
699       <type>
700         <code value="Extension" />
701       </type>
702     </element>
703     <element id="Extension.extension:longitude.extension">
704       <path value="Extension.extension.extension" />
705       <max value="0" />
706     </element>
707     <element id="Extension.extension:longitude.url">
708       <path value="Extension.extension.url" />
709       <type>
710         <code value="uri" />
711       </type>
712       <fixedUri value="longitude" />
713     </element>
714     <element id="Extension.extension:longitude.value[x]">
715       <path value="Extension.extension.value[x]" />
716       <min value="1" />
717       <type>
718         <code value="decimal" />
719       </type>
720     </element>
721     <element id="Extension.url">
722       <path value="Extension.url" />
723       <fixedUri value="http://hl7.org/fhir/StructureDefinition/geolocation" />
724     </element>
725     <element id="Extension.value[x]">
726       <path value="Extension.value[x]" />
727       <min value="0" />
728       <max value="0" />
729     </element>
730   </differential>
731 </StructureDefinition>