patient-citizenship.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="patient-citizenship" />
  4   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
  5     <valueCode value="pa" />
  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/patient-citizenship" />
 11   <version value="4.0.1" />
 12   <name value="citizenship" />
 13   <title value="citizenship" />
 14   <status value="draft" />
 15   <date value="2019-10-31T23:29:23.0000000+01:00" />
 16   <publisher value="HL7" />
 17   <description value="The patient's legal status as citizen of a country." />
 18   <fhirVersion value="4.0.1" />
 19   <mapping>
 20     <identity value="rim" />
 21     <uri value="http://hl7.org/v3" />
 22     <name value="RIM Mapping" />
 23   </mapping>
 24   <kind value="complex-type" />
 25   <abstract value="false" />
 26   <context>
 27     <type value="element" />
 28     <expression value="Patient" />
 29   </context>
 30   <type value="Extension" />
 31   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 32   <derivation value="constraint" />
 33   <snapshot>
 34     <element id="Extension">
 35       <path value="Extension" />
 36       <short value="Nation(s) where the patient claims citizenship" />
 37       <definition value="The patient's legal status as citizen of a country." />
 38       <min value="0" />
 39       <max value="*" />
 40       <base>
 41         <path value="Extension" />
 42         <min value="0" />
 43         <max value="*" />
 44       </base>
 45       <condition value="ele-1" />
 46       <constraint>
 47         <key value="ele-1" />
 48         <severity value="error" />
 49         <human value="All FHIR elements must have a @value or children" />
 50         <expression value="hasValue() or (children().count() > id.count())" />
 51         <xpath value="@value|f:*|h:div" />
 52         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 53       </constraint>
 54       <constraint>
 55         <key value="ext-1" />
 56         <severity value="error" />
 57         <human value="Must have either extensions or value[x], not both" />
 58         <expression value="extension.exists() != value.exists()" />
 59         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 60         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 61       </constraint>
 62       <isModifier value="false" />
 63     </element>
 64     <element id="Extension.id">
 65       <path value="Extension.id" />
 66       <representation value="xmlAttr" />
 67       <short value="Unique id for inter-element referencing" />
 68       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 69       <min value="0" />
 70       <max value="1" />
 71       <base>
 72         <path value="Element.id" />
 73         <min value="0" />
 74         <max value="1" />
 75       </base>
 76       <type>
 77         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 78           <valueUrl value="string" />
 79         </extension>
 80         <code value="http://hl7.org/fhirpath/System.String" />
 81       </type>
 82       <isModifier value="false" />
 83       <isSummary value="false" />
 84       <mapping>
 85         <identity value="rim" />
 86         <map value="n/a" />
 87       </mapping>
 88     </element>
 89     <element id="Extension.extension">
 90       <path value="Extension.extension" />
 91       <slicing>
 92         <discriminator>
 93           <type value="value" />
 94           <path value="url" />
 95         </discriminator>
 96         <description value="Extensions are always sliced by (at least) url" />
 97         <rules value="open" />
 98       </slicing>
 99       <short value="Additional content defined by implementations" />
100       <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." />
101       <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." />
102       <alias value="extensions" />
103       <alias value="user content" />
104       <min value="0" />
105       <max value="*" />
106       <base>
107         <path value="Element.extension" />
108         <min value="0" />
109         <max value="*" />
110       </base>
111       <type>
112         <code value="Extension" />
113       </type>
114       <constraint>
115         <key value="ele-1" />
116         <severity value="error" />
117         <human value="All FHIR elements must have a @value or children" />
118         <expression value="hasValue() or (children().count() > id.count())" />
119         <xpath value="@value|f:*|h:div" />
120         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
121       </constraint>
122       <constraint>
123         <key value="ext-1" />
124         <severity value="error" />
125         <human value="Must have either extensions or value[x], not both" />
126         <expression value="extension.exists() != value.exists()" />
127         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
128         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
129       </constraint>
130       <isModifier value="false" />
131       <isSummary value="false" />
132       <mapping>
133         <identity value="rim" />
134         <map value="n/a" />
135       </mapping>
136     </element>
137     <element id="Extension.extension:code">
138       <path value="Extension.extension" />
139       <sliceName value="code" />
140       <short value="Nation code of citizenship" />
141       <definition value="Nation code representing the citizenship of patient." />
142       <min value="0" />
143       <max value="1" />
144       <base>
145         <path value="Element.extension" />
146         <min value="0" />
147         <max value="*" />
148       </base>
149       <type>
150         <code value="Extension" />
151       </type>
152       <constraint>
153         <key value="ele-1" />
154         <severity value="error" />
155         <human value="All FHIR elements must have a @value or children" />
156         <expression value="hasValue() or (children().count() > id.count())" />
157         <xpath value="@value|f:*|h:div" />
158         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
159       </constraint>
160       <constraint>
161         <key value="ext-1" />
162         <severity value="error" />
163         <human value="Must have either extensions or value[x], not both" />
164         <expression value="extension.exists() != value.exists()" />
165         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
166         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
167       </constraint>
168       <isModifier value="false" />
169       <isSummary value="false" />
170     </element>
171     <element id="Extension.extension:code.id">
172       <path value="Extension.extension.id" />
173       <representation value="xmlAttr" />
174       <short value="Unique id for inter-element referencing" />
175       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
176       <min value="0" />
177       <max value="1" />
178       <base>
179         <path value="Element.id" />
180         <min value="0" />
181         <max value="1" />
182       </base>
183       <type>
184         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
185           <valueUrl value="string" />
186         </extension>
187         <code value="http://hl7.org/fhirpath/System.String" />
188       </type>
189       <isModifier value="false" />
190       <isSummary value="false" />
191       <mapping>
192         <identity value="rim" />
193         <map value="n/a" />
194       </mapping>
195     </element>
196     <element id="Extension.extension:code.extension">
197       <path value="Extension.extension.extension" />
198       <slicing>
199         <discriminator>
200           <type value="value" />
201           <path value="url" />
202         </discriminator>
203         <description value="Extensions are always sliced by (at least) url" />
204         <rules value="open" />
205       </slicing>
206       <short value="Extension" />
207       <definition value="An Extension" />
208       <min value="0" />
209       <max value="0" />
210       <base>
211         <path value="Element.extension" />
212         <min value="0" />
213         <max value="*" />
214       </base>
215       <type>
216         <code value="Extension" />
217       </type>
218       <constraint>
219         <key value="ele-1" />
220         <severity value="error" />
221         <human value="All FHIR elements must have a @value or children" />
222         <expression value="hasValue() or (children().count() > id.count())" />
223         <xpath value="@value|f:*|h:div" />
224         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
225       </constraint>
226       <constraint>
227         <key value="ext-1" />
228         <severity value="error" />
229         <human value="Must have either extensions or value[x], not both" />
230         <expression value="extension.exists() != value.exists()" />
231         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
232         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
233       </constraint>
234       <isModifier value="false" />
235       <isSummary value="false" />
236     </element>
237     <element id="Extension.extension:code.url">
238       <path value="Extension.extension.url" />
239       <representation value="xmlAttr" />
240       <short value="identifies the meaning of the extension" />
241       <definition value="Source of the definition for the extension code - a logical name or a URL." />
242       <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." />
243       <min value="1" />
244       <max value="1" />
245       <base>
246         <path value="Extension.url" />
247         <min value="1" />
248         <max value="1" />
249       </base>
250       <type>
251         <code value="uri" />
252       </type>
253       <fixedUri value="code" />
254       <isModifier value="false" />
255       <isSummary value="false" />
256       <mapping>
257         <identity value="rim" />
258         <map value="N/A" />
259       </mapping>
260     </element>
261     <element id="Extension.extension:code.value[x]">
262       <path value="Extension.extension.value[x]" />
263       <short value="Value of extension" />
264       <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)." />
265       <min value="1" />
266       <max value="1" />
267       <base>
268         <path value="Extension.value[x]" />
269         <min value="0" />
270         <max value="1" />
271       </base>
272       <type>
273         <code value="CodeableConcept" />
274       </type>
275       <constraint>
276         <key value="ele-1" />
277         <severity value="error" />
278         <human value="All FHIR elements must have a @value or children" />
279         <expression value="hasValue() or (children().count() > id.count())" />
280         <xpath value="@value|f:*|h:div" />
281         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
282       </constraint>
283       <isModifier value="false" />
284       <isSummary value="false" />
285       <mapping>
286         <identity value="rim" />
287         <map value="N/A" />
288       </mapping>
289     </element>
290     <element id="Extension.extension:period">
291       <path value="Extension.extension" />
292       <sliceName value="period" />
293       <short value="Time period of citizenship" />
294       <definition value="Period when citizenship was effective." />
295       <min value="0" />
296       <max value="1" />
297       <base>
298         <path value="Element.extension" />
299         <min value="0" />
300         <max value="*" />
301       </base>
302       <type>
303         <code value="Extension" />
304       </type>
305       <constraint>
306         <key value="ele-1" />
307         <severity value="error" />
308         <human value="All FHIR elements must have a @value or children" />
309         <expression value="hasValue() or (children().count() > id.count())" />
310         <xpath value="@value|f:*|h:div" />
311         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
312       </constraint>
313       <constraint>
314         <key value="ext-1" />
315         <severity value="error" />
316         <human value="Must have either extensions or value[x], not both" />
317         <expression value="extension.exists() != value.exists()" />
318         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
319         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
320       </constraint>
321       <isModifier value="false" />
322       <isSummary value="false" />
323     </element>
324     <element id="Extension.extension:period.id">
325       <path value="Extension.extension.id" />
326       <representation value="xmlAttr" />
327       <short value="Unique id for inter-element referencing" />
328       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
329       <min value="0" />
330       <max value="1" />
331       <base>
332         <path value="Element.id" />
333         <min value="0" />
334         <max value="1" />
335       </base>
336       <type>
337         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
338           <valueUrl value="string" />
339         </extension>
340         <code value="http://hl7.org/fhirpath/System.String" />
341       </type>
342       <isModifier value="false" />
343       <isSummary value="false" />
344       <mapping>
345         <identity value="rim" />
346         <map value="n/a" />
347       </mapping>
348     </element>
349     <element id="Extension.extension:period.extension">
350       <path value="Extension.extension.extension" />
351       <slicing>
352         <discriminator>
353           <type value="value" />
354           <path value="url" />
355         </discriminator>
356         <description value="Extensions are always sliced by (at least) url" />
357         <rules value="open" />
358       </slicing>
359       <short value="Extension" />
360       <definition value="An Extension" />
361       <min value="0" />
362       <max value="0" />
363       <base>
364         <path value="Element.extension" />
365         <min value="0" />
366         <max value="*" />
367       </base>
368       <type>
369         <code value="Extension" />
370       </type>
371       <constraint>
372         <key value="ele-1" />
373         <severity value="error" />
374         <human value="All FHIR elements must have a @value or children" />
375         <expression value="hasValue() or (children().count() > id.count())" />
376         <xpath value="@value|f:*|h:div" />
377         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
378       </constraint>
379       <constraint>
380         <key value="ext-1" />
381         <severity value="error" />
382         <human value="Must have either extensions or value[x], not both" />
383         <expression value="extension.exists() != value.exists()" />
384         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
385         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
386       </constraint>
387       <isModifier value="false" />
388       <isSummary value="false" />
389     </element>
390     <element id="Extension.extension:period.url">
391       <path value="Extension.extension.url" />
392       <representation value="xmlAttr" />
393       <short value="identifies the meaning of the extension" />
394       <definition value="Source of the definition for the extension code - a logical name or a URL." />
395       <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." />
396       <min value="1" />
397       <max value="1" />
398       <base>
399         <path value="Extension.url" />
400         <min value="1" />
401         <max value="1" />
402       </base>
403       <type>
404         <code value="uri" />
405       </type>
406       <fixedUri value="period" />
407       <isModifier value="false" />
408       <isSummary value="false" />
409       <mapping>
410         <identity value="rim" />
411         <map value="N/A" />
412       </mapping>
413     </element>
414     <element id="Extension.extension:period.value[x]">
415       <path value="Extension.extension.value[x]" />
416       <short value="Value of extension" />
417       <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)." />
418       <min value="1" />
419       <max value="1" />
420       <base>
421         <path value="Extension.value[x]" />
422         <min value="0" />
423         <max value="1" />
424       </base>
425       <type>
426         <code value="Period" />
427       </type>
428       <constraint>
429         <key value="ele-1" />
430         <severity value="error" />
431         <human value="All FHIR elements must have a @value or children" />
432         <expression value="hasValue() or (children().count() > id.count())" />
433         <xpath value="@value|f:*|h:div" />
434         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
435       </constraint>
436       <isModifier value="false" />
437       <isSummary value="false" />
438       <mapping>
439         <identity value="rim" />
440         <map value="N/A" />
441       </mapping>
442     </element>
443     <element id="Extension.url">
444       <path value="Extension.url" />
445       <representation value="xmlAttr" />
446       <short value="identifies the meaning of the extension" />
447       <definition value="Source of the definition for the extension code - a logical name or a URL." />
448       <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." />
449       <min value="1" />
450       <max value="1" />
451       <base>
452         <path value="Extension.url" />
453         <min value="1" />
454         <max value="1" />
455       </base>
456       <type>
457         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
458           <valueUrl value="uri" />
459         </extension>
460         <code value="http://hl7.org/fhirpath/System.String" />
461       </type>
462       <fixedUri value="http://hl7.org/fhir/StructureDefinition/patient-citizenship" />
463       <isModifier value="false" />
464       <isSummary value="false" />
465       <mapping>
466         <identity value="rim" />
467         <map value="N/A" />
468       </mapping>
469     </element>
470     <element id="Extension.value[x]">
471       <path value="Extension.value[x]" />
472       <short value="Value of extension" />
473       <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)." />
474       <min value="0" />
475       <max value="0" />
476       <base>
477         <path value="Extension.value[x]" />
478         <min value="0" />
479         <max value="1" />
480       </base>
481       <type>
482         <code value="base64Binary" />
483       </type>
484       <type>
485         <code value="boolean" />
486       </type>
487       <type>
488         <code value="canonical" />
489       </type>
490       <type>
491         <code value="code" />
492       </type>
493       <type>
494         <code value="date" />
495       </type>
496       <type>
497         <code value="dateTime" />
498       </type>
499       <type>
500         <code value="decimal" />
501       </type>
502       <type>
503         <code value="id" />
504       </type>
505       <type>
506         <code value="instant" />
507       </type>
508       <type>
509         <code value="integer" />
510       </type>
511       <type>
512         <code value="markdown" />
513       </type>
514       <type>
515         <code value="oid" />
516       </type>
517       <type>
518         <code value="positiveInt" />
519       </type>
520       <type>
521         <code value="string" />
522       </type>
523       <type>
524         <code value="time" />
525       </type>
526       <type>
527         <code value="unsignedInt" />
528       </type>
529       <type>
530         <code value="uri" />
531       </type>
532       <type>
533         <code value="url" />
534       </type>
535       <type>
536         <code value="uuid" />
537       </type>
538       <type>
539         <code value="Address" />
540       </type>
541       <type>
542         <code value="Age" />
543       </type>
544       <type>
545         <code value="Annotation" />
546       </type>
547       <type>
548         <code value="Attachment" />
549       </type>
550       <type>
551         <code value="CodeableConcept" />
552       </type>
553       <type>
554         <code value="Coding" />
555       </type>
556       <type>
557         <code value="ContactPoint" />
558       </type>
559       <type>
560         <code value="Count" />
561       </type>
562       <type>
563         <code value="Distance" />
564       </type>
565       <type>
566         <code value="Duration" />
567       </type>
568       <type>
569         <code value="HumanName" />
570       </type>
571       <type>
572         <code value="Identifier" />
573       </type>
574       <type>
575         <code value="Money" />
576       </type>
577       <type>
578         <code value="Period" />
579       </type>
580       <type>
581         <code value="Quantity" />
582       </type>
583       <type>
584         <code value="Range" />
585       </type>
586       <type>
587         <code value="Ratio" />
588       </type>
589       <type>
590         <code value="Reference" />
591       </type>
592       <type>
593         <code value="SampledData" />
594       </type>
595       <type>
596         <code value="Signature" />
597       </type>
598       <type>
599         <code value="Timing" />
600       </type>
601       <type>
602         <code value="ContactDetail" />
603       </type>
604       <type>
605         <code value="Contributor" />
606       </type>
607       <type>
608         <code value="DataRequirement" />
609       </type>
610       <type>
611         <code value="Expression" />
612       </type>
613       <type>
614         <code value="ParameterDefinition" />
615       </type>
616       <type>
617         <code value="RelatedArtifact" />
618       </type>
619       <type>
620         <code value="TriggerDefinition" />
621       </type>
622       <type>
623         <code value="UsageContext" />
624       </type>
625       <type>
626         <code value="Dosage" />
627       </type>
628       <type>
629         <code value="Meta" />
630       </type>
631       <constraint>
632         <key value="ele-1" />
633         <severity value="error" />
634         <human value="All FHIR elements must have a @value or children" />
635         <expression value="hasValue() or (children().count() > id.count())" />
636         <xpath value="@value|f:*|h:div" />
637         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
638       </constraint>
639       <isModifier value="false" />
640       <isSummary value="false" />
641       <mapping>
642         <identity value="rim" />
643         <map value="N/A" />
644       </mapping>
645     </element>
646   </snapshot>
647   <differential>
648     <element id="Extension">
649       <path value="Extension" />
650       <short value="Nation(s) where the patient claims citizenship" />
651       <definition value="The patient's legal status as citizen of a country." />
652       <min value="0" />
653       <max value="*" />
654     </element>
655     <element id="Extension.extension:code">
656       <path value="Extension.extension" />
657       <sliceName value="code" />
658       <short value="Nation code of citizenship" />
659       <definition value="Nation code representing the citizenship of patient." />
660       <min value="0" />
661       <max value="1" />
662       <type>
663         <code value="Extension" />
664       </type>
665     </element>
666     <element id="Extension.extension:code.extension">
667       <path value="Extension.extension.extension" />
668       <max value="0" />
669     </element>
670     <element id="Extension.extension:code.url">
671       <path value="Extension.extension.url" />
672       <type>
673         <code value="uri" />
674       </type>
675       <fixedUri value="code" />
676     </element>
677     <element id="Extension.extension:code.value[x]">
678       <path value="Extension.extension.value[x]" />
679       <min value="1" />
680       <type>
681         <code value="CodeableConcept" />
682       </type>
683     </element>
684     <element id="Extension.extension:period">
685       <path value="Extension.extension" />
686       <sliceName value="period" />
687       <short value="Time period of citizenship" />
688       <definition value="Period when citizenship was effective." />
689       <min value="0" />
690       <max value="1" />
691       <type>
692         <code value="Extension" />
693       </type>
694     </element>
695     <element id="Extension.extension:period.extension">
696       <path value="Extension.extension.extension" />
697       <max value="0" />
698     </element>
699     <element id="Extension.extension:period.url">
700       <path value="Extension.extension.url" />
701       <type>
702         <code value="uri" />
703       </type>
704       <fixedUri value="period" />
705     </element>
706     <element id="Extension.extension:period.value[x]">
707       <path value="Extension.extension.value[x]" />
708       <min value="1" />
709       <type>
710         <code value="Period" />
711       </type>
712     </element>
713     <element id="Extension.url">
714       <path value="Extension.url" />
715       <fixedUri value="http://hl7.org/fhir/StructureDefinition/patient-citizenship" />
716     </element>
717     <element id="Extension.value[x]">
718       <path value="Extension.value[x]" />
719       <min value="0" />
720       <max value="0" />
721     </element>
722   </differential>
723 </StructureDefinition>