StructureDefinition-ch-core-address-ech-10.xml
   1 <?xml version="1.0" encoding="utf-8"?>
   2 <StructureDefinition xmlns="http://hl7.org/fhir">
   3   <id value="ch-core-address-ech-10" />
   4   <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-address-ech-10" />
   5   <version value="6.0.0-ballot-ci-build" />
   6   <name value="CHCoreAddressECH10" />
   7   <title value="CH Core Postal Address" />
   8   <status value="active" />
   9   <date value="2025-01-29T14:29:51.0000000+01:00" />
  10   <publisher value="HL7 Switzerland" />
  11   <contact>
  12     <name value="HL7 Switzerland" />
  13     <telecom>
  14       <system value="url" />
  15       <value value="https://www.hl7.ch/" />
  16     </telecom>
  17   </contact>
  18   <contact>
  19     <name value="HL7 Switzerland" />
  20     <telecom>
  21       <system value="url" />
  22       <value value="https://www.hl7.ch/" />
  23       <use value="work" />
  24     </telecom>
  25   </contact>
  26   <description value="Postal address according to eCH-0010" />
  27   <jurisdiction>
  28     <coding>
  29       <system value="urn:iso:std:iso:3166" />
  30       <code value="CH" />
  31     </coding>
  32   </jurisdiction>
  33   <copyright value="CC0-1.0" />
  34   <fhirVersion value="4.0.1" />
  35   <mapping>
  36     <identity value="eCH-0011" />
  37     <uri value="http://www.ech.ch/standards/39485" />
  38     <name value="eCH-0011 Datenstandard Personendaten" />
  39   </mapping>
  40   <mapping>
  41     <identity value="eCH" />
  42     <uri value="https://www.ech.ch/" />
  43     <name value="eCH Standards" />
  44   </mapping>
  45   <mapping>
  46     <identity value="v2" />
  47     <uri value="http://hl7.org/v2" />
  48     <name value="HL7 v2 Mapping" />
  49   </mapping>
  50   <mapping>
  51     <identity value="rim" />
  52     <uri value="http://hl7.org/v3" />
  53     <name value="RIM Mapping" />
  54   </mapping>
  55   <mapping>
  56     <identity value="servd" />
  57     <uri value="http://www.omg.org/spec/ServD/1.0/" />
  58     <name value="ServD" />
  59   </mapping>
  60   <mapping>
  61     <identity value="vcard" />
  62     <uri value="http://w3.org/vcard" />
  63     <name value="vCard Mapping" />
  64   </mapping>
  65   <kind value="complex-type" />
  66   <abstract value="false" />
  67   <type value="Address" />
  68   <baseDefinition value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-address" />
  69   <derivation value="constraint" />
  70   <snapshot>
  71     <element id="Address">
  72       <path value="Address" />
  73       <short value="An address expressed using postal conventions (as opposed to GPS or other location definition formats)" />
  74       <definition value="An address expressed using postal conventions (as opposed to GPS or other location definition formats).  This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery.  There are a variety of postal address formats defined around the world." />
  75       <comment value="Note: address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates.  Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource)." />
  76       <min value="0" />
  77       <max value="*" />
  78       <base>
  79         <path value="Address" />
  80         <min value="0" />
  81         <max value="*" />
  82       </base>
  83       <condition value="ele-1" />
  84       <constraint>
  85         <key value="ele-1" />
  86         <severity value="error" />
  87         <human value="All FHIR elements must have a @value or children" />
  88         <expression value="hasValue() or (children().count() > id.count())" />
  89         <xpath value="@value|f:*|h:div" />
  90         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
  91       </constraint>
  92       <constraint>
  93         <key value="ch-addr-2" />
  94         <severity value="error" />
  95         <human value="For a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used." />
  96         <expression value="country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').empty() or 
            (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH') = false) or 
            (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH').exists() and 
             (state.empty() or state.memberOf('http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation')))" />
  97         <source value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-address" />
  98       </constraint>
  99       <isModifier value="false" />
 100       <mapping>
 101         <identity value="eCH" />
 102         <map value="eCH-0010: addressInformation" />
 103       </mapping>
 104       <mapping>
 105         <identity value="rim" />
 106         <map value="n/a" />
 107       </mapping>
 108       <mapping>
 109         <identity value="v2" />
 110         <map value="XAD" />
 111       </mapping>
 112       <mapping>
 113         <identity value="rim" />
 114         <map value="AD" />
 115       </mapping>
 116       <mapping>
 117         <identity value="servd" />
 118         <map value="Address" />
 119       </mapping>
 120     </element>
 121     <element id="Address.id">
 122       <path value="Address.id" />
 123       <representation value="xmlAttr" />
 124       <short value="Unique id for inter-element referencing" />
 125       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 126       <min value="0" />
 127       <max value="1" />
 128       <base>
 129         <path value="Element.id" />
 130         <min value="0" />
 131         <max value="1" />
 132       </base>
 133       <type>
 134         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 135           <valueUrl value="string" />
 136         </extension>
 137         <code value="http://hl7.org/fhirpath/System.String" />
 138       </type>
 139       <isModifier value="false" />
 140       <isSummary value="false" />
 141       <mapping>
 142         <identity value="rim" />
 143         <map value="n/a" />
 144       </mapping>
 145     </element>
 146     <element id="Address.extension">
 147       <path value="Address.extension" />
 148       <slicing>
 149         <discriminator>
 150           <type value="value" />
 151           <path value="url" />
 152         </discriminator>
 153         <description value="Extensions are always sliced by (at least) url" />
 154         <rules value="open" />
 155       </slicing>
 156       <short value="Additional content defined by implementations" />
 157       <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." />
 158       <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." />
 159       <alias value="extensions" />
 160       <alias value="user content" />
 161       <min value="0" />
 162       <max value="*" />
 163       <base>
 164         <path value="Element.extension" />
 165         <min value="0" />
 166         <max value="*" />
 167       </base>
 168       <type>
 169         <code value="Extension" />
 170       </type>
 171       <constraint>
 172         <key value="ele-1" />
 173         <severity value="error" />
 174         <human value="All FHIR elements must have a @value or children" />
 175         <expression value="hasValue() or (children().count() > id.count())" />
 176         <xpath value="@value|f:*|h:div" />
 177         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 178       </constraint>
 179       <constraint>
 180         <key value="ext-1" />
 181         <severity value="error" />
 182         <human value="Must have either extensions or value[x], not both" />
 183         <expression value="extension.exists() != value.exists()" />
 184         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 185         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 186       </constraint>
 187       <isModifier value="false" />
 188       <isSummary value="false" />
 189       <mapping>
 190         <identity value="rim" />
 191         <map value="n/a" />
 192       </mapping>
 193     </element>
 194     <element id="Address.use">
 195       <path value="Address.use" />
 196       <short value="home | work | temp | old | billing - purpose of this address" />
 197       <definition value="The purpose of this address." />
 198       <comment value="Applications can assume that an address is current unless it explicitly says that it is temporary or old." />
 199       <requirements value="Allows an appropriate address to be chosen from a list of many." />
 200       <min value="0" />
 201       <max value="1" />
 202       <base>
 203         <path value="Address.use" />
 204         <min value="0" />
 205         <max value="1" />
 206       </base>
 207       <type>
 208         <code value="code" />
 209       </type>
 210       <example>
 211         <label value="General" />
 212         <valueCode value="home" />
 213       </example>
 214       <constraint>
 215         <key value="ele-1" />
 216         <severity value="error" />
 217         <human value="All FHIR elements must have a @value or children" />
 218         <expression value="hasValue() or (children().count() > id.count())" />
 219         <xpath value="@value|f:*|h:div" />
 220         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 221       </constraint>
 222       <isModifier value="true" />
 223       <isModifierReason value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one" />
 224       <isSummary value="true" />
 225       <binding>
 226         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
 227           <valueString value="AddressUse" />
 228         </extension>
 229         <strength value="required" />
 230         <description value="The use of an address." />
 231         <valueSet value="http://hl7.org/fhir/ValueSet/address-use|4.0.1" />
 232       </binding>
 233       <mapping>
 234         <identity value="v2" />
 235         <map value="XAD.7" />
 236       </mapping>
 237       <mapping>
 238         <identity value="rim" />
 239         <map value="unique(./use)" />
 240       </mapping>
 241       <mapping>
 242         <identity value="servd" />
 243         <map value="./AddressPurpose" />
 244       </mapping>
 245     </element>
 246     <element id="Address.type">
 247       <path value="Address.type" />
 248       <short value="postal" />
 249       <definition value="Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both." />
 250       <comment value="The definition of Address states that "address is intended to describe postal addresses, not physical locations". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource)." />
 251       <min value="0" />
 252       <max value="1" />
 253       <base>
 254         <path value="Address.type" />
 255         <min value="0" />
 256         <max value="1" />
 257       </base>
 258       <type>
 259         <code value="code" />
 260       </type>
 261       <fixedCode value="postal" />
 262       <example>
 263         <label value="General" />
 264         <valueCode value="both" />
 265       </example>
 266       <constraint>
 267         <key value="ele-1" />
 268         <severity value="error" />
 269         <human value="All FHIR elements must have a @value or children" />
 270         <expression value="hasValue() or (children().count() > id.count())" />
 271         <xpath value="@value|f:*|h:div" />
 272         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 273       </constraint>
 274       <isModifier value="false" />
 275       <isSummary value="true" />
 276       <binding>
 277         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
 278           <valueString value="AddressType" />
 279         </extension>
 280         <strength value="required" />
 281         <description value="The type of an address (physical / postal)." />
 282         <valueSet value="http://hl7.org/fhir/ValueSet/address-type|4.0.1" />
 283       </binding>
 284       <mapping>
 285         <identity value="v2" />
 286         <map value="XAD.18" />
 287       </mapping>
 288       <mapping>
 289         <identity value="rim" />
 290         <map value="unique(./use)" />
 291       </mapping>
 292       <mapping>
 293         <identity value="vcard" />
 294         <map value="address type parameter" />
 295       </mapping>
 296     </element>
 297     <element id="Address.text">
 298       <path value="Address.text" />
 299       <short value="Text representation of the address" />
 300       <definition value="Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts." />
 301       <comment value="Can provide both a text representation and parts. Applications updating an address SHALL ensure that  when both text and parts are present,  no content is included in the text that isn't found in a part." />
 302       <requirements value="A renderable, unencoded form." />
 303       <min value="0" />
 304       <max value="1" />
 305       <base>
 306         <path value="Address.text" />
 307         <min value="0" />
 308         <max value="1" />
 309       </base>
 310       <type>
 311         <code value="string" />
 312       </type>
 313       <example>
 314         <label value="General" />
 315         <valueString value="137 Nowhere Street, Erewhon 9132" />
 316       </example>
 317       <constraint>
 318         <key value="ele-1" />
 319         <severity value="error" />
 320         <human value="All FHIR elements must have a @value or children" />
 321         <expression value="hasValue() or (children().count() > id.count())" />
 322         <xpath value="@value|f:*|h:div" />
 323         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 324       </constraint>
 325       <isModifier value="false" />
 326       <isSummary value="true" />
 327       <mapping>
 328         <identity value="v2" />
 329         <map value="XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6" />
 330       </mapping>
 331       <mapping>
 332         <identity value="rim" />
 333         <map value="./formatted" />
 334       </mapping>
 335       <mapping>
 336         <identity value="vcard" />
 337         <map value="address label parameter" />
 338       </mapping>
 339     </element>
 340     <element id="Address.line">
 341       <path value="Address.line" />
 342       <short value="Street name, number, direction & P.O. Box etc." />
 343       <definition value="This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information." />
 344       <min value="0" />
 345       <max value="*" />
 346       <base>
 347         <path value="Address.line" />
 348         <min value="0" />
 349         <max value="*" />
 350       </base>
 351       <type>
 352         <code value="string" />
 353       </type>
 354       <orderMeaning value="The order in which lines should appear in an address label" />
 355       <example>
 356         <label value="General" />
 357         <valueString value="137 Nowhere Street" />
 358       </example>
 359       <constraint>
 360         <key value="ele-1" />
 361         <severity value="error" />
 362         <human value="All FHIR elements must have a @value or children" />
 363         <expression value="hasValue() or (children().count() > id.count())" />
 364         <xpath value="@value|f:*|h:div" />
 365         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 366       </constraint>
 367       <isModifier value="false" />
 368       <isSummary value="true" />
 369       <mapping>
 370         <identity value="v2" />
 371         <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" />
 372       </mapping>
 373       <mapping>
 374         <identity value="rim" />
 375         <map value="AD.part[parttype = AL]" />
 376       </mapping>
 377       <mapping>
 378         <identity value="vcard" />
 379         <map value="street" />
 380       </mapping>
 381       <mapping>
 382         <identity value="servd" />
 383         <map value="./StreetAddress (newline delimitted)" />
 384       </mapping>
 385     </element>
 386     <element id="Address.line.id">
 387       <path value="Address.line.id" />
 388       <representation value="xmlAttr" />
 389       <short value="xml:id (or equivalent in JSON)" />
 390       <definition value="unique id for the element within a resource (for internal references)" />
 391       <min value="0" />
 392       <max value="1" />
 393       <base>
 394         <path value="Element.id" />
 395         <min value="0" />
 396         <max value="1" />
 397       </base>
 398       <type>
 399         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 400           <valueUrl value="string" />
 401         </extension>
 402         <code value="http://hl7.org/fhirpath/System.String" />
 403       </type>
 404       <isModifier value="false" />
 405       <isSummary value="false" />
 406     </element>
 407     <element id="Address.line.extension">
 408       <path value="Address.line.extension" />
 409       <slicing>
 410         <discriminator>
 411           <type value="value" />
 412           <path value="url" />
 413         </discriminator>
 414         <discriminator>
 415           <type value="value" />
 416           <path value="value" />
 417         </discriminator>
 418         <ordered value="true" />
 419         <rules value="open" />
 420       </slicing>
 421       <short value="Extension" />
 422       <definition value="An Extension" />
 423       <min value="0" />
 424       <max value="*" />
 425       <base>
 426         <path value="Element.extension" />
 427         <min value="0" />
 428         <max value="*" />
 429       </base>
 430       <type>
 431         <code value="Extension" />
 432       </type>
 433       <constraint>
 434         <key value="ele-1" />
 435         <severity value="error" />
 436         <human value="All FHIR elements must have a @value or children" />
 437         <expression value="hasValue() or (children().count() > id.count())" />
 438         <xpath value="@value|f:*|h:div" />
 439         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 440       </constraint>
 441       <constraint>
 442         <key value="ext-1" />
 443         <severity value="error" />
 444         <human value="Must have either extensions or value[x], not both" />
 445         <expression value="extension.exists() != value.exists()" />
 446         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 447         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 448       </constraint>
 449       <isModifier value="false" />
 450       <isSummary value="false" />
 451     </element>
 452     <element id="Address.line.extension:addressLine1">
 453       <path value="Address.line.extension" />
 454       <sliceName value="addressLine1" />
 455       <short value="Extension" />
 456       <definition value="eCH-0010: Extension to define line types for an address" />
 457       <min value="0" />
 458       <max value="1" />
 459       <base>
 460         <path value="Element.extension" />
 461         <min value="0" />
 462         <max value="*" />
 463       </base>
 464       <type>
 465         <code value="Extension" />
 466         <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype" />
 467       </type>
 468       <condition value="ele-1" />
 469       <constraint>
 470         <key value="ele-1" />
 471         <severity value="error" />
 472         <human value="All FHIR elements must have a @value or children" />
 473         <expression value="hasValue() or (children().count() > id.count())" />
 474         <xpath value="@value|f:*|h:div" />
 475         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 476       </constraint>
 477       <constraint>
 478         <key value="ext-1" />
 479         <severity value="error" />
 480         <human value="Must have either extensions or value[x], not both" />
 481         <expression value="extension.exists() != value.exists()" />
 482         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 483         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 484       </constraint>
 485       <isModifier value="false" />
 486       <mapping>
 487         <identity value="eCH" />
 488         <map value="eCH-0010: addressLine1" />
 489       </mapping>
 490     </element>
 491     <element id="Address.line.extension:addressLine1.id">
 492       <path value="Address.line.extension.id" />
 493       <representation value="xmlAttr" />
 494       <short value="Unique id for inter-element referencing" />
 495       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 496       <min value="0" />
 497       <max value="1" />
 498       <base>
 499         <path value="Element.id" />
 500         <min value="0" />
 501         <max value="1" />
 502       </base>
 503       <type>
 504         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 505           <valueUrl value="string" />
 506         </extension>
 507         <code value="http://hl7.org/fhirpath/System.String" />
 508       </type>
 509       <isModifier value="false" />
 510       <isSummary value="false" />
 511       <mapping>
 512         <identity value="rim" />
 513         <map value="n/a" />
 514       </mapping>
 515     </element>
 516     <element id="Address.line.extension:addressLine1.extension">
 517       <path value="Address.line.extension.extension" />
 518       <slicing>
 519         <discriminator>
 520           <type value="value" />
 521           <path value="url" />
 522         </discriminator>
 523         <description value="Extensions are always sliced by (at least) url" />
 524         <rules value="open" />
 525       </slicing>
 526       <short value="Extension" />
 527       <definition value="An Extension" />
 528       <min value="0" />
 529       <max value="0" />
 530       <base>
 531         <path value="Element.extension" />
 532         <min value="0" />
 533         <max value="*" />
 534       </base>
 535       <type>
 536         <code value="Extension" />
 537       </type>
 538       <constraint>
 539         <key value="ele-1" />
 540         <severity value="error" />
 541         <human value="All FHIR elements must have a @value or children" />
 542         <expression value="hasValue() or (children().count() > id.count())" />
 543         <xpath value="@value|f:*|h:div" />
 544         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 545       </constraint>
 546       <constraint>
 547         <key value="ext-1" />
 548         <severity value="error" />
 549         <human value="Must have either extensions or value[x], not both" />
 550         <expression value="extension.exists() != value.exists()" />
 551         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 552         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 553       </constraint>
 554       <isModifier value="false" />
 555       <isSummary value="false" />
 556     </element>
 557     <element id="Address.line.extension:addressLine1.url">
 558       <path value="Address.line.extension.url" />
 559       <representation value="xmlAttr" />
 560       <short value="identifies the meaning of the extension" />
 561       <definition value="Source of the definition for the extension code - a logical name or a URL." />
 562       <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." />
 563       <min value="1" />
 564       <max value="1" />
 565       <base>
 566         <path value="Extension.url" />
 567         <min value="1" />
 568         <max value="1" />
 569       </base>
 570       <type>
 571         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 572           <valueUrl value="uri" />
 573         </extension>
 574         <code value="http://hl7.org/fhirpath/System.String" />
 575       </type>
 576       <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype" />
 577       <isModifier value="false" />
 578       <isSummary value="false" />
 579       <mapping>
 580         <identity value="rim" />
 581         <map value="N/A" />
 582       </mapping>
 583     </element>
 584     <element id="Address.line.extension:addressLine1.value[x]">
 585       <path value="Address.line.extension.value[x]" />
 586       <slicing>
 587         <discriminator>
 588           <type value="type" />
 589           <path value="$this" />
 590         </discriminator>
 591         <ordered value="false" />
 592         <rules value="closed" />
 593       </slicing>
 594       <short value="Value of extension" />
 595       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
 596       <min value="1" />
 597       <max value="1" />
 598       <base>
 599         <path value="Extension.value[x]" />
 600         <min value="0" />
 601         <max value="1" />
 602       </base>
 603       <type>
 604         <code value="code" />
 605       </type>
 606       <constraint>
 607         <key value="ele-1" />
 608         <severity value="error" />
 609         <human value="All FHIR elements must have a @value or children" />
 610         <expression value="hasValue() or (children().count() > id.count())" />
 611         <xpath value="@value|f:*|h:div" />
 612         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 613       </constraint>
 614       <isModifier value="false" />
 615       <isSummary value="false" />
 616       <mapping>
 617         <identity value="rim" />
 618         <map value="N/A" />
 619       </mapping>
 620     </element>
 621     <element id="Address.line.extension:addressLine1.value[x]:valueCode">
 622       <path value="Address.line.extension.value[x]" />
 623       <sliceName value="valueCode" />
 624       <short value="Value of extension" />
 625       <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see
       Extensibility in the spec for list)." />
 626       <min value="1" />
 627       <max value="1" />
 628       <base>
 629         <path value="Extension.value[x]" />
 630         <min value="0" />
 631         <max value="1" />
 632       </base>
 633       <type>
 634         <code value="code" />
 635       </type>
 636       <fixedCode value="addressLine1" />
 637       <constraint>
 638         <key value="ele-1" />
 639         <severity value="error" />
 640         <human value="All FHIR elements must have a @value or children" />
 641         <expression value="hasValue() or (children().count() > id.count())" />
 642         <xpath value="@value|f:*|h:div" />
 643         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 644       </constraint>
 645       <isModifier value="false" />
 646       <isSummary value="false" />
 647       <binding>
 648         <strength value="extensible" />
 649         <description value="A set of codes advising a system or user which name in a set of names to select for a
         given purpose." />
 650         <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-10-linetype" />
 651       </binding>
 652       <mapping>
 653         <identity value="rim" />
 654         <map value="N/A" />
 655       </mapping>
 656     </element>
 657     <element id="Address.line.extension:addressLine2">
 658       <path value="Address.line.extension" />
 659       <sliceName value="addressLine2" />
 660       <short value="Extension" />
 661       <definition value="eCH-0010: Extension to define line types for an address" />
 662       <min value="0" />
 663       <max value="1" />
 664       <base>
 665         <path value="Element.extension" />
 666         <min value="0" />
 667         <max value="*" />
 668       </base>
 669       <type>
 670         <code value="Extension" />
 671         <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype" />
 672       </type>
 673       <condition value="ele-1" />
 674       <constraint>
 675         <key value="ele-1" />
 676         <severity value="error" />
 677         <human value="All FHIR elements must have a @value or children" />
 678         <expression value="hasValue() or (children().count() > id.count())" />
 679         <xpath value="@value|f:*|h:div" />
 680         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 681       </constraint>
 682       <constraint>
 683         <key value="ext-1" />
 684         <severity value="error" />
 685         <human value="Must have either extensions or value[x], not both" />
 686         <expression value="extension.exists() != value.exists()" />
 687         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 688         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 689       </constraint>
 690       <isModifier value="false" />
 691       <mapping>
 692         <identity value="eCH" />
 693         <map value="eCH-0010: addressLine2" />
 694       </mapping>
 695     </element>
 696     <element id="Address.line.extension:addressLine2.id">
 697       <path value="Address.line.extension.id" />
 698       <representation value="xmlAttr" />
 699       <short value="Unique id for inter-element referencing" />
 700       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 701       <min value="0" />
 702       <max value="1" />
 703       <base>
 704         <path value="Element.id" />
 705         <min value="0" />
 706         <max value="1" />
 707       </base>
 708       <type>
 709         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 710           <valueUrl value="string" />
 711         </extension>
 712         <code value="http://hl7.org/fhirpath/System.String" />
 713       </type>
 714       <isModifier value="false" />
 715       <isSummary value="false" />
 716       <mapping>
 717         <identity value="rim" />
 718         <map value="n/a" />
 719       </mapping>
 720     </element>
 721     <element id="Address.line.extension:addressLine2.extension">
 722       <path value="Address.line.extension.extension" />
 723       <slicing>
 724         <discriminator>
 725           <type value="value" />
 726           <path value="url" />
 727         </discriminator>
 728         <description value="Extensions are always sliced by (at least) url" />
 729         <rules value="open" />
 730       </slicing>
 731       <short value="Extension" />
 732       <definition value="An Extension" />
 733       <min value="0" />
 734       <max value="0" />
 735       <base>
 736         <path value="Element.extension" />
 737         <min value="0" />
 738         <max value="*" />
 739       </base>
 740       <type>
 741         <code value="Extension" />
 742       </type>
 743       <constraint>
 744         <key value="ele-1" />
 745         <severity value="error" />
 746         <human value="All FHIR elements must have a @value or children" />
 747         <expression value="hasValue() or (children().count() > id.count())" />
 748         <xpath value="@value|f:*|h:div" />
 749         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 750       </constraint>
 751       <constraint>
 752         <key value="ext-1" />
 753         <severity value="error" />
 754         <human value="Must have either extensions or value[x], not both" />
 755         <expression value="extension.exists() != value.exists()" />
 756         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 757         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 758       </constraint>
 759       <isModifier value="false" />
 760       <isSummary value="false" />
 761     </element>
 762     <element id="Address.line.extension:addressLine2.url">
 763       <path value="Address.line.extension.url" />
 764       <representation value="xmlAttr" />
 765       <short value="identifies the meaning of the extension" />
 766       <definition value="Source of the definition for the extension code - a logical name or a URL." />
 767       <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." />
 768       <min value="1" />
 769       <max value="1" />
 770       <base>
 771         <path value="Extension.url" />
 772         <min value="1" />
 773         <max value="1" />
 774       </base>
 775       <type>
 776         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 777           <valueUrl value="uri" />
 778         </extension>
 779         <code value="http://hl7.org/fhirpath/System.String" />
 780       </type>
 781       <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype" />
 782       <isModifier value="false" />
 783       <isSummary value="false" />
 784       <mapping>
 785         <identity value="rim" />
 786         <map value="N/A" />
 787       </mapping>
 788     </element>
 789     <element id="Address.line.extension:addressLine2.value[x]">
 790       <path value="Address.line.extension.value[x]" />
 791       <slicing>
 792         <discriminator>
 793           <type value="type" />
 794           <path value="$this" />
 795         </discriminator>
 796         <ordered value="false" />
 797         <rules value="closed" />
 798       </slicing>
 799       <short value="Value of extension" />
 800       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
 801       <min value="1" />
 802       <max value="1" />
 803       <base>
 804         <path value="Extension.value[x]" />
 805         <min value="0" />
 806         <max value="1" />
 807       </base>
 808       <type>
 809         <code value="code" />
 810       </type>
 811       <constraint>
 812         <key value="ele-1" />
 813         <severity value="error" />
 814         <human value="All FHIR elements must have a @value or children" />
 815         <expression value="hasValue() or (children().count() > id.count())" />
 816         <xpath value="@value|f:*|h:div" />
 817         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 818       </constraint>
 819       <isModifier value="false" />
 820       <isSummary value="false" />
 821       <mapping>
 822         <identity value="rim" />
 823         <map value="N/A" />
 824       </mapping>
 825     </element>
 826     <element id="Address.line.extension:addressLine2.value[x]:valueCode">
 827       <path value="Address.line.extension.value[x]" />
 828       <sliceName value="valueCode" />
 829       <short value="Value of extension" />
 830       <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see
       Extensibility in the spec for list)." />
 831       <min value="1" />
 832       <max value="1" />
 833       <base>
 834         <path value="Extension.value[x]" />
 835         <min value="0" />
 836         <max value="1" />
 837       </base>
 838       <type>
 839         <code value="code" />
 840       </type>
 841       <fixedCode value="addressLine2" />
 842       <constraint>
 843         <key value="ele-1" />
 844         <severity value="error" />
 845         <human value="All FHIR elements must have a @value or children" />
 846         <expression value="hasValue() or (children().count() > id.count())" />
 847         <xpath value="@value|f:*|h:div" />
 848         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 849       </constraint>
 850       <isModifier value="false" />
 851       <isSummary value="false" />
 852       <binding>
 853         <strength value="extensible" />
 854         <description value="A set of codes advising a system or user which name in a set of names to select for a
         given purpose." />
 855         <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-10-linetype" />
 856       </binding>
 857       <mapping>
 858         <identity value="rim" />
 859         <map value="N/A" />
 860       </mapping>
 861     </element>
 862     <element id="Address.line.extension:street">
 863       <path value="Address.line.extension" />
 864       <sliceName value="street" />
 865       <short value="Extension" />
 866       <definition value="eCH-0010: Extension to define line types for an address" />
 867       <min value="0" />
 868       <max value="1" />
 869       <base>
 870         <path value="Element.extension" />
 871         <min value="0" />
 872         <max value="*" />
 873       </base>
 874       <type>
 875         <code value="Extension" />
 876         <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype" />
 877       </type>
 878       <condition value="ele-1" />
 879       <constraint>
 880         <key value="ele-1" />
 881         <severity value="error" />
 882         <human value="All FHIR elements must have a @value or children" />
 883         <expression value="hasValue() or (children().count() > id.count())" />
 884         <xpath value="@value|f:*|h:div" />
 885         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 886       </constraint>
 887       <constraint>
 888         <key value="ext-1" />
 889         <severity value="error" />
 890         <human value="Must have either extensions or value[x], not both" />
 891         <expression value="extension.exists() != value.exists()" />
 892         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 893         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 894       </constraint>
 895       <isModifier value="false" />
 896       <mapping>
 897         <identity value="eCH" />
 898         <map value="eCH-0010: street" />
 899       </mapping>
 900     </element>
 901     <element id="Address.line.extension:street.id">
 902       <path value="Address.line.extension.id" />
 903       <representation value="xmlAttr" />
 904       <short value="Unique id for inter-element referencing" />
 905       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 906       <min value="0" />
 907       <max value="1" />
 908       <base>
 909         <path value="Element.id" />
 910         <min value="0" />
 911         <max value="1" />
 912       </base>
 913       <type>
 914         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 915           <valueUrl value="string" />
 916         </extension>
 917         <code value="http://hl7.org/fhirpath/System.String" />
 918       </type>
 919       <isModifier value="false" />
 920       <isSummary value="false" />
 921       <mapping>
 922         <identity value="rim" />
 923         <map value="n/a" />
 924       </mapping>
 925     </element>
 926     <element id="Address.line.extension:street.extension">
 927       <path value="Address.line.extension.extension" />
 928       <slicing>
 929         <discriminator>
 930           <type value="value" />
 931           <path value="url" />
 932         </discriminator>
 933         <description value="Extensions are always sliced by (at least) url" />
 934         <rules value="open" />
 935       </slicing>
 936       <short value="Extension" />
 937       <definition value="An Extension" />
 938       <min value="0" />
 939       <max value="0" />
 940       <base>
 941         <path value="Element.extension" />
 942         <min value="0" />
 943         <max value="*" />
 944       </base>
 945       <type>
 946         <code value="Extension" />
 947       </type>
 948       <constraint>
 949         <key value="ele-1" />
 950         <severity value="error" />
 951         <human value="All FHIR elements must have a @value or children" />
 952         <expression value="hasValue() or (children().count() > id.count())" />
 953         <xpath value="@value|f:*|h:div" />
 954         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 955       </constraint>
 956       <constraint>
 957         <key value="ext-1" />
 958         <severity value="error" />
 959         <human value="Must have either extensions or value[x], not both" />
 960         <expression value="extension.exists() != value.exists()" />
 961         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 962         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 963       </constraint>
 964       <isModifier value="false" />
 965       <isSummary value="false" />
 966     </element>
 967     <element id="Address.line.extension:street.url">
 968       <path value="Address.line.extension.url" />
 969       <representation value="xmlAttr" />
 970       <short value="identifies the meaning of the extension" />
 971       <definition value="Source of the definition for the extension code - a logical name or a URL." />
 972       <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." />
 973       <min value="1" />
 974       <max value="1" />
 975       <base>
 976         <path value="Extension.url" />
 977         <min value="1" />
 978         <max value="1" />
 979       </base>
 980       <type>
 981         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 982           <valueUrl value="uri" />
 983         </extension>
 984         <code value="http://hl7.org/fhirpath/System.String" />
 985       </type>
 986       <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype" />
 987       <isModifier value="false" />
 988       <isSummary value="false" />
 989       <mapping>
 990         <identity value="rim" />
 991         <map value="N/A" />
 992       </mapping>
 993     </element>
 994     <element id="Address.line.extension:street.value[x]">
 995       <path value="Address.line.extension.value[x]" />
 996       <slicing>
 997         <discriminator>
 998           <type value="type" />
 999           <path value="$this" />
1000         </discriminator>
1001         <ordered value="false" />
1002         <rules value="closed" />
1003       </slicing>
1004       <short value="Value of extension" />
1005       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
1006       <min value="1" />
1007       <max value="1" />
1008       <base>
1009         <path value="Extension.value[x]" />
1010         <min value="0" />
1011         <max value="1" />
1012       </base>
1013       <type>
1014         <code value="code" />
1015       </type>
1016       <constraint>
1017         <key value="ele-1" />
1018         <severity value="error" />
1019         <human value="All FHIR elements must have a @value or children" />
1020         <expression value="hasValue() or (children().count() > id.count())" />
1021         <xpath value="@value|f:*|h:div" />
1022         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1023       </constraint>
1024       <isModifier value="false" />
1025       <isSummary value="false" />
1026       <mapping>
1027         <identity value="rim" />
1028         <map value="N/A" />
1029       </mapping>
1030     </element>
1031     <element id="Address.line.extension:street.value[x]:valueCode">
1032       <path value="Address.line.extension.value[x]" />
1033       <sliceName value="valueCode" />
1034       <short value="Value of extension" />
1035       <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see
       Extensibility in the spec for list)." />
1036       <min value="1" />
1037       <max value="1" />
1038       <base>
1039         <path value="Extension.value[x]" />
1040         <min value="0" />
1041         <max value="1" />
1042       </base>
1043       <type>
1044         <code value="code" />
1045       </type>
1046       <fixedCode value="street" />
1047       <constraint>
1048         <key value="ele-1" />
1049         <severity value="error" />
1050         <human value="All FHIR elements must have a @value or children" />
1051         <expression value="hasValue() or (children().count() > id.count())" />
1052         <xpath value="@value|f:*|h:div" />
1053         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1054       </constraint>
1055       <isModifier value="false" />
1056       <isSummary value="false" />
1057       <binding>
1058         <strength value="extensible" />
1059         <description value="A set of codes advising a system or user which name in a set of names to select for a
         given purpose." />
1060         <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-10-linetype" />
1061       </binding>
1062       <mapping>
1063         <identity value="rim" />
1064         <map value="N/A" />
1065       </mapping>
1066     </element>
1067     <element id="Address.line.extension:streetName">
1068       <path value="Address.line.extension" />
1069       <sliceName value="streetName" />
1070       <short value="street part of the street line, e.g. withouth housenumber" />
1071       <definition value="streetName." />
1072       <min value="0" />
1073       <max value="1" />
1074       <base>
1075         <path value="Element.extension" />
1076         <min value="0" />
1077         <max value="*" />
1078       </base>
1079       <type>
1080         <code value="Extension" />
1081         <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName" />
1082       </type>
1083       <constraint>
1084         <key value="ele-1" />
1085         <severity value="error" />
1086         <human value="All FHIR elements must have a @value or children" />
1087         <expression value="hasValue() or (children().count() > id.count())" />
1088         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1089       </constraint>
1090       <constraint>
1091         <key value="ext-1" />
1092         <severity value="error" />
1093         <human value="Must have either extensions or value[x], not both" />
1094         <expression value="extension.exists() != value.exists()" />
1095         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1096       </constraint>
1097       <isModifier value="false" />
1098       <mapping>
1099         <identity value="eCH" />
1100         <map value="eCH-0010: streetName" />
1101       </mapping>
1102       <mapping>
1103         <identity value="rim" />
1104         <map value="ADXP[partType=STR]" />
1105       </mapping>
1106     </element>
1107     <element id="Address.line.extension:houseNumber">
1108       <path value="Address.line.extension" />
1109       <sliceName value="houseNumber" />
1110       <short value="houseNumber part of the street line" />
1111       <definition value="The number of a building, house or lot alongside the street. Also known as "primary street number". This does not number the street but rather the building." />
1112       <min value="0" />
1113       <max value="1" />
1114       <base>
1115         <path value="Element.extension" />
1116         <min value="0" />
1117         <max value="*" />
1118       </base>
1119       <type>
1120         <code value="Extension" />
1121         <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber" />
1122       </type>
1123       <constraint>
1124         <key value="ele-1" />
1125         <severity value="error" />
1126         <human value="All FHIR elements must have a @value or children" />
1127         <expression value="hasValue() or (children().count() > id.count())" />
1128         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1129       </constraint>
1130       <constraint>
1131         <key value="ext-1" />
1132         <severity value="error" />
1133         <human value="Must have either extensions or value[x], not both" />
1134         <expression value="extension.exists() != value.exists()" />
1135         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1136       </constraint>
1137       <isModifier value="false" />
1138       <mapping>
1139         <identity value="eCH" />
1140         <map value="eCH-0010: houseNumber" />
1141       </mapping>
1142       <mapping>
1143         <identity value="rim" />
1144         <map value="ADXP[partType=BNR]" />
1145       </mapping>
1146     </element>
1147     <element id="Address.line.extension:unitID">
1148       <path value="Address.line.extension" />
1149       <sliceName value="unitID" />
1150       <short value="unitID, dwellingNumber part of the street line" />
1151       <definition value="The number or name of a specific unit contained within a building or complex, as assigned by that building or complex." />
1152       <min value="0" />
1153       <max value="1" />
1154       <base>
1155         <path value="Element.extension" />
1156         <min value="0" />
1157         <max value="*" />
1158       </base>
1159       <type>
1160         <code value="Extension" />
1161         <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID" />
1162       </type>
1163       <constraint>
1164         <key value="ele-1" />
1165         <severity value="error" />
1166         <human value="All FHIR elements must have a @value or children" />
1167         <expression value="hasValue() or (children().count() > id.count())" />
1168         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1169       </constraint>
1170       <constraint>
1171         <key value="ext-1" />
1172         <severity value="error" />
1173         <human value="Must have either extensions or value[x], not both" />
1174         <expression value="extension.exists() != value.exists()" />
1175         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1176       </constraint>
1177       <isModifier value="false" />
1178       <mapping>
1179         <identity value="eCH" />
1180         <map value="eCH-0010: dwellingNumber" />
1181       </mapping>
1182       <mapping>
1183         <identity value="rim" />
1184         <map value="ADXP[partType=UNID]" />
1185       </mapping>
1186     </element>
1187     <element id="Address.line.extension:postOfficeBoxText">
1188       <path value="Address.line.extension" />
1189       <sliceName value="postOfficeBoxText" />
1190       <short value="Postbox addresses need an postbox text and optional postbox number" />
1191       <definition value="eCH-0010: Extension to define line types for an address" />
1192       <min value="0" />
1193       <max value="1" />
1194       <base>
1195         <path value="Element.extension" />
1196         <min value="0" />
1197         <max value="*" />
1198       </base>
1199       <type>
1200         <code value="Extension" />
1201         <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype" />
1202       </type>
1203       <condition value="ele-1" />
1204       <constraint>
1205         <key value="ele-1" />
1206         <severity value="error" />
1207         <human value="All FHIR elements must have a @value or children" />
1208         <expression value="hasValue() or (children().count() > id.count())" />
1209         <xpath value="@value|f:*|h:div" />
1210         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1211       </constraint>
1212       <constraint>
1213         <key value="ext-1" />
1214         <severity value="error" />
1215         <human value="Must have either extensions or value[x], not both" />
1216         <expression value="extension.exists() != value.exists()" />
1217         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
1218         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1219       </constraint>
1220       <isModifier value="false" />
1221       <mapping>
1222         <identity value="eCH" />
1223         <map value="eCH-0010: postOfficeBoxText" />
1224       </mapping>
1225     </element>
1226     <element id="Address.line.extension:postOfficeBoxText.id">
1227       <path value="Address.line.extension.id" />
1228       <representation value="xmlAttr" />
1229       <short value="Unique id for inter-element referencing" />
1230       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
1231       <min value="0" />
1232       <max value="1" />
1233       <base>
1234         <path value="Element.id" />
1235         <min value="0" />
1236         <max value="1" />
1237       </base>
1238       <type>
1239         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
1240           <valueUrl value="string" />
1241         </extension>
1242         <code value="http://hl7.org/fhirpath/System.String" />
1243       </type>
1244       <isModifier value="false" />
1245       <isSummary value="false" />
1246       <mapping>
1247         <identity value="rim" />
1248         <map value="n/a" />
1249       </mapping>
1250     </element>
1251     <element id="Address.line.extension:postOfficeBoxText.extension">
1252       <path value="Address.line.extension.extension" />
1253       <slicing>
1254         <discriminator>
1255           <type value="value" />
1256           <path value="url" />
1257         </discriminator>
1258         <description value="Extensions are always sliced by (at least) url" />
1259         <rules value="open" />
1260       </slicing>
1261       <short value="Extension" />
1262       <definition value="An Extension" />
1263       <min value="0" />
1264       <max value="0" />
1265       <base>
1266         <path value="Element.extension" />
1267         <min value="0" />
1268         <max value="*" />
1269       </base>
1270       <type>
1271         <code value="Extension" />
1272       </type>
1273       <constraint>
1274         <key value="ele-1" />
1275         <severity value="error" />
1276         <human value="All FHIR elements must have a @value or children" />
1277         <expression value="hasValue() or (children().count() > id.count())" />
1278         <xpath value="@value|f:*|h:div" />
1279         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1280       </constraint>
1281       <constraint>
1282         <key value="ext-1" />
1283         <severity value="error" />
1284         <human value="Must have either extensions or value[x], not both" />
1285         <expression value="extension.exists() != value.exists()" />
1286         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
1287         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1288       </constraint>
1289       <isModifier value="false" />
1290       <isSummary value="false" />
1291     </element>
1292     <element id="Address.line.extension:postOfficeBoxText.url">
1293       <path value="Address.line.extension.url" />
1294       <representation value="xmlAttr" />
1295       <short value="identifies the meaning of the extension" />
1296       <definition value="Source of the definition for the extension code - a logical name or a URL." />
1297       <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." />
1298       <min value="1" />
1299       <max value="1" />
1300       <base>
1301         <path value="Extension.url" />
1302         <min value="1" />
1303         <max value="1" />
1304       </base>
1305       <type>
1306         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
1307           <valueUrl value="uri" />
1308         </extension>
1309         <code value="http://hl7.org/fhirpath/System.String" />
1310       </type>
1311       <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype" />
1312       <isModifier value="false" />
1313       <isSummary value="false" />
1314       <mapping>
1315         <identity value="rim" />
1316         <map value="N/A" />
1317       </mapping>
1318     </element>
1319     <element id="Address.line.extension:postOfficeBoxText.value[x]">
1320       <path value="Address.line.extension.value[x]" />
1321       <slicing>
1322         <discriminator>
1323           <type value="type" />
1324           <path value="$this" />
1325         </discriminator>
1326         <ordered value="false" />
1327         <rules value="closed" />
1328       </slicing>
1329       <short value="Value of extension" />
1330       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
1331       <min value="1" />
1332       <max value="1" />
1333       <base>
1334         <path value="Extension.value[x]" />
1335         <min value="0" />
1336         <max value="1" />
1337       </base>
1338       <type>
1339         <code value="code" />
1340       </type>
1341       <constraint>
1342         <key value="ele-1" />
1343         <severity value="error" />
1344         <human value="All FHIR elements must have a @value or children" />
1345         <expression value="hasValue() or (children().count() > id.count())" />
1346         <xpath value="@value|f:*|h:div" />
1347         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1348       </constraint>
1349       <isModifier value="false" />
1350       <isSummary value="false" />
1351       <mapping>
1352         <identity value="rim" />
1353         <map value="N/A" />
1354       </mapping>
1355     </element>
1356     <element id="Address.line.extension:postOfficeBoxText.value[x]:valueCode">
1357       <path value="Address.line.extension.value[x]" />
1358       <sliceName value="valueCode" />
1359       <short value="Value of extension" />
1360       <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see
       Extensibility in the spec for list)." />
1361       <min value="1" />
1362       <max value="1" />
1363       <base>
1364         <path value="Extension.value[x]" />
1365         <min value="0" />
1366         <max value="1" />
1367       </base>
1368       <type>
1369         <code value="code" />
1370       </type>
1371       <fixedCode value="postOfficeBoxText" />
1372       <constraint>
1373         <key value="ele-1" />
1374         <severity value="error" />
1375         <human value="All FHIR elements must have a @value or children" />
1376         <expression value="hasValue() or (children().count() > id.count())" />
1377         <xpath value="@value|f:*|h:div" />
1378         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1379       </constraint>
1380       <isModifier value="false" />
1381       <isSummary value="false" />
1382       <binding>
1383         <strength value="extensible" />
1384         <description value="A set of codes advising a system or user which name in a set of names to select for a
         given purpose." />
1385         <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-10-linetype" />
1386       </binding>
1387       <mapping>
1388         <identity value="rim" />
1389         <map value="N/A" />
1390       </mapping>
1391     </element>
1392     <element id="Address.line.extension:postOfficeBoxNumber">
1393       <path value="Address.line.extension" />
1394       <sliceName value="postOfficeBoxNumber" />
1395       <short value="Optional postOfficeBoxNumber as a separate part of the postOfficeBoxText" />
1396       <definition value="A numbered box located in a post station." />
1397       <min value="0" />
1398       <max value="1" />
1399       <base>
1400         <path value="Element.extension" />
1401         <min value="0" />
1402         <max value="*" />
1403       </base>
1404       <type>
1405         <code value="Extension" />
1406         <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox" />
1407       </type>
1408       <constraint>
1409         <key value="ele-1" />
1410         <severity value="error" />
1411         <human value="All FHIR elements must have a @value or children" />
1412         <expression value="hasValue() or (children().count() > id.count())" />
1413         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1414       </constraint>
1415       <constraint>
1416         <key value="ext-1" />
1417         <severity value="error" />
1418         <human value="Must have either extensions or value[x], not both" />
1419         <expression value="extension.exists() != value.exists()" />
1420         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1421       </constraint>
1422       <isModifier value="false" />
1423       <mapping>
1424         <identity value="eCH" />
1425         <map value="eCH-0010: postOfficeBoxNumber" />
1426       </mapping>
1427       <mapping>
1428         <identity value="rim" />
1429         <map value="ADXP[partType=POB]" />
1430       </mapping>
1431     </element>
1432     <element id="Address.line.value">
1433       <path value="Address.line.value" />
1434       <representation value="xmlAttr" />
1435       <short value="Primitive value for string" />
1436       <definition value="The actual value" />
1437       <min value="0" />
1438       <max value="1" />
1439       <base>
1440         <path value="string.value" />
1441         <min value="0" />
1442         <max value="1" />
1443       </base>
1444       <type>
1445         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
1446           <valueUrl value="string" />
1447         </extension>
1448         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
1449           <valueString value="[ \r\n\t\S]+" />
1450         </extension>
1451         <code value="http://hl7.org/fhirpath/System.String" />
1452       </type>
1453       <maxLength value="1048576" />
1454       <isModifier value="false" />
1455       <isSummary value="false" />
1456     </element>
1457     <element id="Address.city">
1458       <path value="Address.city" />
1459       <short value="Name of city, town etc." />
1460       <definition value="The name of the city, town, suburb, village or other community or delivery center." />
1461       <alias value="Municpality" />
1462       <min value="1" />
1463       <max value="1" />
1464       <base>
1465         <path value="Address.city" />
1466         <min value="0" />
1467         <max value="1" />
1468       </base>
1469       <type>
1470         <code value="string" />
1471       </type>
1472       <example>
1473         <label value="General" />
1474         <valueString value="Erewhon" />
1475       </example>
1476       <constraint>
1477         <key value="ele-1" />
1478         <severity value="error" />
1479         <human value="All FHIR elements must have a @value or children" />
1480         <expression value="hasValue() or (children().count() > id.count())" />
1481         <xpath value="@value|f:*|h:div" />
1482         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1483       </constraint>
1484       <isModifier value="false" />
1485       <isSummary value="true" />
1486       <mapping>
1487         <identity value="eCH" />
1488         <map value="eCH-0010: town" />
1489       </mapping>
1490       <mapping>
1491         <identity value="v2" />
1492         <map value="XAD.3" />
1493       </mapping>
1494       <mapping>
1495         <identity value="rim" />
1496         <map value="AD.part[parttype = CTY]" />
1497       </mapping>
1498       <mapping>
1499         <identity value="vcard" />
1500         <map value="locality" />
1501       </mapping>
1502       <mapping>
1503         <identity value="servd" />
1504         <map value="./Jurisdiction" />
1505       </mapping>
1506     </element>
1507     <element id="Address.city.id">
1508       <path value="Address.city.id" />
1509       <representation value="xmlAttr" />
1510       <short value="xml:id (or equivalent in JSON)" />
1511       <definition value="unique id for the element within a resource (for internal references)" />
1512       <min value="0" />
1513       <max value="1" />
1514       <base>
1515         <path value="Element.id" />
1516         <min value="0" />
1517         <max value="1" />
1518       </base>
1519       <type>
1520         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
1521           <valueUrl value="string" />
1522         </extension>
1523         <code value="http://hl7.org/fhirpath/System.String" />
1524       </type>
1525       <isModifier value="false" />
1526       <isSummary value="false" />
1527     </element>
1528     <element id="Address.city.extension">
1529       <path value="Address.city.extension" />
1530       <slicing>
1531         <discriminator>
1532           <type value="value" />
1533           <path value="url" />
1534         </discriminator>
1535         <rules value="open" />
1536       </slicing>
1537       <short value="Extension" />
1538       <definition value="An Extension" />
1539       <min value="0" />
1540       <max value="*" />
1541       <base>
1542         <path value="Element.extension" />
1543         <min value="0" />
1544         <max value="*" />
1545       </base>
1546       <type>
1547         <code value="Extension" />
1548       </type>
1549       <constraint>
1550         <key value="ele-1" />
1551         <severity value="error" />
1552         <human value="All FHIR elements must have a @value or children" />
1553         <expression value="hasValue() or (children().count() > id.count())" />
1554         <xpath value="@value|f:*|h:div" />
1555         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1556       </constraint>
1557       <constraint>
1558         <key value="ext-1" />
1559         <severity value="error" />
1560         <human value="Must have either extensions or value[x], not both" />
1561         <expression value="extension.exists() != value.exists()" />
1562         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
1563         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1564       </constraint>
1565       <isModifier value="false" />
1566       <isSummary value="false" />
1567     </element>
1568     <element id="Address.city.extension:bfs">
1569       <path value="Address.city.extension" />
1570       <sliceName value="bfs" />
1571       <short value="Extension" />
1572       <definition value="Extension for eCH-0011 - bfs number (ministry of statistics number)" />
1573       <min value="0" />
1574       <max value="1" />
1575       <base>
1576         <path value="Element.extension" />
1577         <min value="0" />
1578         <max value="*" />
1579       </base>
1580       <type>
1581         <code value="Extension" />
1582         <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid" />
1583       </type>
1584       <condition value="ele-1" />
1585       <constraint>
1586         <key value="ele-1" />
1587         <severity value="error" />
1588         <human value="All FHIR elements must have a @value or children" />
1589         <expression value="hasValue() or (children().count() > id.count())" />
1590         <xpath value="@value|f:*|h:div" />
1591         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1592       </constraint>
1593       <constraint>
1594         <key value="ext-1" />
1595         <severity value="error" />
1596         <human value="Must have either extensions or value[x], not both" />
1597         <expression value="extension.exists() != value.exists()" />
1598         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
1599         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1600       </constraint>
1601       <isModifier value="false" />
1602       <mapping>
1603         <identity value="eCH-0011" />
1604         <map value="BFS Number for municipality Switzerland" />
1605       </mapping>
1606     </element>
1607     <element id="Address.city.value">
1608       <path value="Address.city.value" />
1609       <representation value="xmlAttr" />
1610       <short value="Primitive value for string" />
1611       <definition value="The actual value" />
1612       <min value="0" />
1613       <max value="1" />
1614       <base>
1615         <path value="string.value" />
1616         <min value="0" />
1617         <max value="1" />
1618       </base>
1619       <type>
1620         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
1621           <valueUrl value="string" />
1622         </extension>
1623         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
1624           <valueString value="[ \r\n\t\S]+" />
1625         </extension>
1626         <code value="http://hl7.org/fhirpath/System.String" />
1627       </type>
1628       <maxLength value="1048576" />
1629       <isModifier value="false" />
1630       <isSummary value="false" />
1631     </element>
1632     <element id="Address.district">
1633       <path value="Address.district" />
1634       <short value="District name (aka county)" />
1635       <definition value="The name of the administrative area (county)." />
1636       <comment value="District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead." />
1637       <alias value="County" />
1638       <min value="0" />
1639       <max value="1" />
1640       <base>
1641         <path value="Address.district" />
1642         <min value="0" />
1643         <max value="1" />
1644       </base>
1645       <type>
1646         <code value="string" />
1647       </type>
1648       <example>
1649         <label value="General" />
1650         <valueString value="Madison" />
1651       </example>
1652       <constraint>
1653         <key value="ele-1" />
1654         <severity value="error" />
1655         <human value="All FHIR elements must have a @value or children" />
1656         <expression value="hasValue() or (children().count() > id.count())" />
1657         <xpath value="@value|f:*|h:div" />
1658         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1659       </constraint>
1660       <isModifier value="false" />
1661       <isSummary value="true" />
1662       <mapping>
1663         <identity value="eCH" />
1664         <map value="eCH-0010: locality" />
1665       </mapping>
1666       <mapping>
1667         <identity value="v2" />
1668         <map value="XAD.9" />
1669       </mapping>
1670       <mapping>
1671         <identity value="rim" />
1672         <map value="AD.part[parttype = CNT | CPA]" />
1673       </mapping>
1674     </element>
1675     <element id="Address.state">
1676       <path value="Address.state" />
1677       <short value="Sub-unit of country (abbreviations ok)" />
1678       <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes)." />
1679       <alias value="Province" />
1680       <alias value="Territory" />
1681       <min value="0" />
1682       <max value="1" />
1683       <base>
1684         <path value="Address.state" />
1685         <min value="0" />
1686         <max value="1" />
1687       </base>
1688       <type>
1689         <code value="string" />
1690       </type>
1691       <constraint>
1692         <key value="ele-1" />
1693         <severity value="error" />
1694         <human value="All FHIR elements must have a @value or children" />
1695         <expression value="hasValue() or (children().count() > id.count())" />
1696         <xpath value="@value|f:*|h:div" />
1697         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1698       </constraint>
1699       <isModifier value="false" />
1700       <isSummary value="true" />
1701       <binding>
1702         <strength value="example" />
1703         <description value="Use these values for a Swiss or Liechtenstein address" />
1704         <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation" />
1705       </binding>
1706       <mapping>
1707         <identity value="eCH" />
1708         <map value="eCH-0010: locality" />
1709       </mapping>
1710       <mapping>
1711         <identity value="v2" />
1712         <map value="XAD.4" />
1713       </mapping>
1714       <mapping>
1715         <identity value="rim" />
1716         <map value="AD.part[parttype = STA]" />
1717       </mapping>
1718       <mapping>
1719         <identity value="vcard" />
1720         <map value="region" />
1721       </mapping>
1722       <mapping>
1723         <identity value="servd" />
1724         <map value="./Region" />
1725       </mapping>
1726     </element>
1727     <element id="Address.postalCode">
1728       <path value="Address.postalCode" />
1729       <short value="Postal code for area" />
1730       <definition value="A postal code designating a region defined by the postal service." />
1731       <alias value="Zip" />
1732       <min value="1" />
1733       <max value="1" />
1734       <base>
1735         <path value="Address.postalCode" />
1736         <min value="0" />
1737         <max value="1" />
1738       </base>
1739       <type>
1740         <code value="string" />
1741       </type>
1742       <example>
1743         <label value="General" />
1744         <valueString value="9132" />
1745       </example>
1746       <constraint>
1747         <key value="ele-1" />
1748         <severity value="error" />
1749         <human value="All FHIR elements must have a @value or children" />
1750         <expression value="hasValue() or (children().count() > id.count())" />
1751         <xpath value="@value|f:*|h:div" />
1752         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1753       </constraint>
1754       <isModifier value="false" />
1755       <isSummary value="true" />
1756       <mapping>
1757         <identity value="eCH" />
1758         <map value="eCH-0010: swissZipCode, swissZipCodeAddOn, swissZipCodeId, foreignZipCode" />
1759       </mapping>
1760       <mapping>
1761         <identity value="v2" />
1762         <map value="XAD.5" />
1763       </mapping>
1764       <mapping>
1765         <identity value="rim" />
1766         <map value="AD.part[parttype = ZIP]" />
1767       </mapping>
1768       <mapping>
1769         <identity value="vcard" />
1770         <map value="code" />
1771       </mapping>
1772       <mapping>
1773         <identity value="servd" />
1774         <map value="./PostalIdentificationCode" />
1775       </mapping>
1776     </element>
1777     <element id="Address.country">
1778       <path value="Address.country" />
1779       <short value="Country (e.g. can be ISO 3166 2 or 3 letter code)" />
1780       <definition value="Country - a nation as commonly understood or generally accepted." />
1781       <comment value="ISO 3166 3 letter codes can be used in place of a human readable country name." />
1782       <min value="1" />
1783       <max value="1" />
1784       <base>
1785         <path value="Address.country" />
1786         <min value="0" />
1787         <max value="1" />
1788       </base>
1789       <type>
1790         <code value="string" />
1791       </type>
1792       <constraint>
1793         <key value="ele-1" />
1794         <severity value="error" />
1795         <human value="All FHIR elements must have a @value or children" />
1796         <expression value="hasValue() or (children().count() > id.count())" />
1797         <xpath value="@value|f:*|h:div" />
1798         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1799       </constraint>
1800       <isModifier value="false" />
1801       <isSummary value="true" />
1802       <mapping>
1803         <identity value="eCH" />
1804         <map value="eCH-0010: country" />
1805       </mapping>
1806       <mapping>
1807         <identity value="v2" />
1808         <map value="XAD.6" />
1809       </mapping>
1810       <mapping>
1811         <identity value="rim" />
1812         <map value="AD.part[parttype = CNT]" />
1813       </mapping>
1814       <mapping>
1815         <identity value="vcard" />
1816         <map value="country" />
1817       </mapping>
1818       <mapping>
1819         <identity value="servd" />
1820         <map value="./Country" />
1821       </mapping>
1822     </element>
1823     <element id="Address.country.id">
1824       <path value="Address.country.id" />
1825       <representation value="xmlAttr" />
1826       <short value="xml:id (or equivalent in JSON)" />
1827       <definition value="unique id for the element within a resource (for internal references)" />
1828       <min value="0" />
1829       <max value="1" />
1830       <base>
1831         <path value="Element.id" />
1832         <min value="0" />
1833         <max value="1" />
1834       </base>
1835       <type>
1836         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
1837           <valueUrl value="string" />
1838         </extension>
1839         <code value="http://hl7.org/fhirpath/System.String" />
1840       </type>
1841       <isModifier value="false" />
1842       <isSummary value="false" />
1843     </element>
1844     <element id="Address.country.extension">
1845       <path value="Address.country.extension" />
1846       <slicing>
1847         <discriminator>
1848           <type value="value" />
1849           <path value="url" />
1850         </discriminator>
1851         <rules value="open" />
1852       </slicing>
1853       <short value="Extension" />
1854       <definition value="An Extension" />
1855       <min value="0" />
1856       <max value="*" />
1857       <base>
1858         <path value="Element.extension" />
1859         <min value="0" />
1860         <max value="*" />
1861       </base>
1862       <type>
1863         <code value="Extension" />
1864       </type>
1865       <constraint>
1866         <key value="ele-1" />
1867         <severity value="error" />
1868         <human value="All FHIR elements must have a @value or children" />
1869         <expression value="hasValue() or (children().count() > id.count())" />
1870         <xpath value="@value|f:*|h:div" />
1871         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1872       </constraint>
1873       <constraint>
1874         <key value="ext-1" />
1875         <severity value="error" />
1876         <human value="Must have either extensions or value[x], not both" />
1877         <expression value="extension.exists() != value.exists()" />
1878         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
1879         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1880       </constraint>
1881       <isModifier value="false" />
1882       <isSummary value="false" />
1883     </element>
1884     <element id="Address.country.extension:countrycode">
1885       <path value="Address.country.extension" />
1886       <sliceName value="countrycode" />
1887       <short value="ISO Country Alpha-2 or ISO Country Alpha-3 code" />
1888       <definition value="The content of the country code element (if present) SHALL be selected EITHER from ValueSet ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2 OR MAY be selected from ISO Country Alpha-3 Value Set http://hl7.org/fhir/ValueSet/iso3166-1-3, if the country is not specified in value Set ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2." />
1889       <min value="0" />
1890       <max value="1" />
1891       <base>
1892         <path value="Element.extension" />
1893         <min value="0" />
1894         <max value="*" />
1895       </base>
1896       <type>
1897         <code value="Extension" />
1898         <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding" />
1899       </type>
1900       <condition value="ele-1" />
1901       <constraint>
1902         <key value="ele-1" />
1903         <severity value="error" />
1904         <human value="All FHIR elements must have a @value or children" />
1905         <expression value="hasValue() or (children().count() > id.count())" />
1906         <xpath value="@value|f:*|h:div" />
1907         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1908       </constraint>
1909       <constraint>
1910         <key value="ext-1" />
1911         <severity value="error" />
1912         <human value="Must have either extensions or value[x], not both" />
1913         <expression value="extension.exists() != value.exists()" />
1914         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
1915         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
1916       </constraint>
1917       <constraint>
1918         <key value="ch-addr-1" />
1919         <severity value="error" />
1920         <human value="ISO Country Alpha-2 or ISO Country Alpha-3 code" />
1921         <expression value="((value.code.length()=2) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((value.code.length() = 3) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))" />
1922         <source value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-address" />
1923       </constraint>
1924       <isModifier value="false" />
1925       <mapping>
1926         <identity value="rim" />
1927         <map value="SC.code" />
1928       </mapping>
1929     </element>
1930     <element id="Address.country.value">
1931       <path value="Address.country.value" />
1932       <representation value="xmlAttr" />
1933       <short value="Primitive value for string" />
1934       <definition value="The actual value" />
1935       <min value="0" />
1936       <max value="1" />
1937       <base>
1938         <path value="string.value" />
1939         <min value="0" />
1940         <max value="1" />
1941       </base>
1942       <type>
1943         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
1944           <valueUrl value="string" />
1945         </extension>
1946         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
1947           <valueString value="[ \r\n\t\S]+" />
1948         </extension>
1949         <code value="http://hl7.org/fhirpath/System.String" />
1950       </type>
1951       <maxLength value="1048576" />
1952       <isModifier value="false" />
1953       <isSummary value="false" />
1954     </element>
1955     <element id="Address.period">
1956       <path value="Address.period" />
1957       <short value="Time period when address was/is in use" />
1958       <definition value="Time period when address was/is in use." />
1959       <requirements value="Allows addresses to be placed in historical context." />
1960       <min value="0" />
1961       <max value="0" />
1962       <base>
1963         <path value="Address.period" />
1964         <min value="0" />
1965         <max value="1" />
1966       </base>
1967       <type>
1968         <code value="Period" />
1969       </type>
1970       <example>
1971         <label value="General" />
1972         <valuePeriod>
1973           <start value="2010-03-23" />
1974           <end value="2010-07-01" />
1975         </valuePeriod>
1976       </example>
1977       <constraint>
1978         <key value="ele-1" />
1979         <severity value="error" />
1980         <human value="All FHIR elements must have a @value or children" />
1981         <expression value="hasValue() or (children().count() > id.count())" />
1982         <xpath value="@value|f:*|h:div" />
1983         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
1984       </constraint>
1985       <isModifier value="false" />
1986       <isSummary value="true" />
1987       <mapping>
1988         <identity value="v2" />
1989         <map value="XAD.12 / XAD.13 + XAD.14" />
1990       </mapping>
1991       <mapping>
1992         <identity value="rim" />
1993         <map value="./usablePeriod[type="IVL<TS>"]" />
1994       </mapping>
1995       <mapping>
1996         <identity value="servd" />
1997         <map value="./StartDate and ./EndDate" />
1998       </mapping>
1999     </element>
2000   </snapshot>
2001   <differential>
2002     <element id="Address">
2003       <path value="Address" />
2004       <mapping>
2005         <identity value="eCH" />
2006         <map value="eCH-0010: addressInformation" />
2007       </mapping>
2008     </element>
2009     <element id="Address.type">
2010       <path value="Address.type" />
2011       <short value="postal" />
2012       <fixedCode value="postal" />
2013     </element>
2014     <element id="Address.city">
2015       <path value="Address.city" />
2016       <min value="1" />
2017       <mapping>
2018         <identity value="eCH" />
2019         <map value="eCH-0010: town" />
2020       </mapping>
2021     </element>
2022     <element id="Address.postalCode">
2023       <path value="Address.postalCode" />
2024       <min value="1" />
2025       <mapping>
2026         <identity value="eCH" />
2027         <map value="eCH-0010: swissZipCode, swissZipCodeAddOn, swissZipCodeId, foreignZipCode" />
2028       </mapping>
2029     </element>
2030     <element id="Address.country">
2031       <path value="Address.country" />
2032       <min value="1" />
2033       <mapping>
2034         <identity value="eCH" />
2035         <map value="eCH-0010: country" />
2036       </mapping>
2037     </element>
2038     <element id="Address.period">
2039       <path value="Address.period" />
2040       <max value="0" />
2041     </element>
2042   </differential>
2043 </StructureDefinition>