StructureDefinition-cz-address.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="cz-address" /> 4 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"> 5 <valueInteger value="1" /> 6 </extension> 7 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 8 <valueCode value="draft" /> 9 </extension> 10 <url value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 11 <version value="0.2.1" /> 12 <name value="CZ_Address" /> 13 <title value="Address (CZ)" /> 14 <status value="draft" /> 15 <experimental value="false" /> 16 <date value="2025-01-27T23:02:05.0000000+01:00" /> 17 <publisher value="HL7 Czech Republic" /> 18 <contact> 19 <name value="HL7 Czech Republic" /> 20 <telecom> 21 <system value="url" /> 22 <value value="https://www.hl7.cz/" /> 23 </telecom> 24 </contact> 25 <description value="Czech national profile on address, to provide the possibility in the 'line' element to provide a seperate streetname, housenumber and postal box. It is always RECOMMENDED to give these elements separately. The national specification also includes the option of entering the address location according to the RUIAN register and marking the address as the permanent residence address." /> 26 <jurisdiction> 27 <coding> 28 <system value="urn:iso:std:iso:3166" /> 29 <code value="CZ" /> 30 <display value="Czechia" /> 31 </coding> 32 </jurisdiction> 33 <purpose value="This profile constrains the representation of address in the context of the Czech national interoperability project." /> 34 <fhirVersion value="4.0.1" /> 35 <mapping> 36 <identity value="v2" /> 37 <uri value="http://hl7.org/v2" /> 38 <name value="HL7 v2 Mapping" /> 39 </mapping> 40 <mapping> 41 <identity value="rim" /> 42 <uri value="http://hl7.org/v3" /> 43 <name value="RIM Mapping" /> 44 </mapping> 45 <mapping> 46 <identity value="servd" /> 47 <uri value="http://www.omg.org/spec/ServD/1.0/" /> 48 <name value="ServD" /> 49 </mapping> 50 <mapping> 51 <identity value="vcard" /> 52 <uri value="http://w3.org/vcard" /> 53 <name value="vCard Mapping" /> 54 </mapping> 55 <kind value="complex-type" /> 56 <abstract value="false" /> 57 <type value="Address" /> 58 <baseDefinition value="http://hl7.eu/fhir/base/StructureDefinition/Address-eu" /> 59 <derivation value="constraint" /> 60 <snapshot> 61 <element id="Address"> 62 <path value="Address" /> 63 <short value="Address according to Czech postal conventions" /> 64 <definition value="Address according to Czech postal conventions. The address can be used both for delivering mail and for locating locations that do not have a valid mailing address. The use of extensions is not mandatory." /> 65 <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](location.html#) resource)." /> 66 <min value="0" /> 67 <max value="*" /> 68 <base> 69 <path value="Address" /> 70 <min value="0" /> 71 <max value="*" /> 72 </base> 73 <condition value="ele-1" /> 74 <constraint> 75 <key value="ele-1" /> 76 <severity value="error" /> 77 <human value="All FHIR elements must have a @value or children" /> 78 <expression value="hasValue() or (children().count() > id.count())" /> 79 <xpath value="@value|f:*|h:div" /> 80 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 81 </constraint> 82 <constraint> 83 <key value="text-or-ctry" /> 84 <severity value="error" /> 85 <human value="Address must contain at least text or country element" /> 86 <expression value="( line.all($this.empty()) and city.empty() ) implies (text.exists() or country.exists())" /> 87 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 88 </constraint> 89 <constraint> 90 <key value="POB-and-PCS" /> 91 <severity value="error" /> 92 <human value="If P.O.Box extension is present, Postal code must be present too" /> 93 <expression value="line.all($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox').empty()) or (postalCode.exists())" /> 94 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 95 </constraint> 96 <constraint> 97 <key value="street-and-city" /> 98 <severity value="error" /> 99 <human value="If streetName extension is present, Postal code or city must be present too" /> 100 <expression value="line.all($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').empty()) or postalCode.exists() or city.exists()" /> 101 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 102 </constraint> 103 <constraint> 104 <key value="POB-only-postal" /> 105 <severity value="warning" /> 106 <human value="Address with P.O.Box cannot be "physical" or "both"" /> 107 <expression value="line.all($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox').empty()) or type='postal' or type.empty()" /> 108 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 109 </constraint> 110 <constraint> 111 <key value="POB-ext-only" /> 112 <severity value="warning" /> 113 <human value="If the extension 'P.O.Box' is used, the extensions 'Street' and 'House number' must not be used." /> 114 <expression value="line.all($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox').empty() or ($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').empty() and $this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber').empty()))" /> 115 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 116 </constraint> 117 <isModifier value="false" /> 118 <mapping> 119 <identity value="rim" /> 120 <map value="n/a" /> 121 </mapping> 122 <mapping> 123 <identity value="v2" /> 124 <map value="XAD" /> 125 </mapping> 126 <mapping> 127 <identity value="rim" /> 128 <map value="AD" /> 129 </mapping> 130 <mapping> 131 <identity value="servd" /> 132 <map value="Address" /> 133 </mapping> 134 </element> 135 <element id="Address.id"> 136 <path value="Address.id" /> 137 <representation value="xmlAttr" /> 138 <short value="Unique id for inter-element referencing" /> 139 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 140 <min value="0" /> 141 <max value="1" /> 142 <base> 143 <path value="Element.id" /> 144 <min value="0" /> 145 <max value="1" /> 146 </base> 147 <type> 148 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 149 <valueUrl value="string" /> 150 </extension> 151 <code value="http://hl7.org/fhirpath/System.String" /> 152 </type> 153 <isModifier value="false" /> 154 <isSummary value="false" /> 155 <mapping> 156 <identity value="rim" /> 157 <map value="n/a" /> 158 </mapping> 159 </element> 160 <element id="Address.extension"> 161 <path value="Address.extension" /> 162 <slicing> 163 <discriminator> 164 <type value="value" /> 165 <path value="url" /> 166 </discriminator> 167 <description value="Extensions are always sliced by (at least) url" /> 168 <rules value="open" /> 169 </slicing> 170 <short value="Additional content defined by implementations" /> 171 <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." /> 172 <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." /> 173 <alias value="extensions" /> 174 <alias value="user content" /> 175 <min value="0" /> 176 <max value="*" /> 177 <base> 178 <path value="Element.extension" /> 179 <min value="0" /> 180 <max value="*" /> 181 </base> 182 <type> 183 <code value="Extension" /> 184 </type> 185 <constraint> 186 <key value="ele-1" /> 187 <severity value="error" /> 188 <human value="All FHIR elements must have a @value or children" /> 189 <expression value="hasValue() or (children().count() > id.count())" /> 190 <xpath value="@value|f:*|h:div" /> 191 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 192 </constraint> 193 <constraint> 194 <key value="ext-1" /> 195 <severity value="error" /> 196 <human value="Must have either extensions or value[x], not both" /> 197 <expression value="extension.exists() != value.exists()" /> 198 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 199 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 200 </constraint> 201 <isModifier value="false" /> 202 <isSummary value="false" /> 203 <mapping> 204 <identity value="rim" /> 205 <map value="n/a" /> 206 </mapping> 207 </element> 208 <element id="Address.extension:addressPoint"> 209 <path value="Address.extension" /> 210 <sliceName value="addressPoint" /> 211 <short value="Address location code according to the system RÚIAN (ČÚZK)" /> 212 <definition value="If both the RUIAN code and the address are given, both must match." /> 213 <min value="0" /> 214 <max value="1" /> 215 <base> 216 <path value="Element.extension" /> 217 <min value="0" /> 218 <max value="*" /> 219 </base> 220 <type> 221 <code value="Extension" /> 222 <profile value="https://hl7.cz/fhir/core/StructureDefinition/address-point-cz" /> 223 </type> 224 <constraint> 225 <key value="ele-1" /> 226 <severity value="error" /> 227 <human value="All FHIR elements must have a @value or children" /> 228 <expression value="hasValue() or (children().count() > id.count())" /> 229 <xpath value="@value|f:*|h:div" /> 230 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 231 </constraint> 232 <constraint> 233 <key value="ext-1" /> 234 <severity value="error" /> 235 <human value="Must have either extensions or value[x], not both" /> 236 <expression value="extension.exists() != value.exists()" /> 237 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 238 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 239 </constraint> 240 <isModifier value="false" /> 241 <isSummary value="false" /> 242 </element> 243 <element id="Address.extension:permanentResidence"> 244 <path value="Address.extension" /> 245 <sliceName value="permanentResidence" /> 246 <short value="Address permanent residence" /> 247 <definition value="This extension allows to specify whether or not the address is an official address (permanent address) or to indicate that it is the official address for that country." /> 248 <min value="0" /> 249 <max value="1" /> 250 <base> 251 <path value="Element.extension" /> 252 <min value="0" /> 253 <max value="*" /> 254 </base> 255 <type> 256 <code value="Extension" /> 257 <profile value="https://hl7.cz/fhir/core/StructureDefinition/permanent-residencer-address-cz" /> 258 </type> 259 <constraint> 260 <key value="ele-1" /> 261 <severity value="error" /> 262 <human value="All FHIR elements must have a @value or children" /> 263 <expression value="hasValue() or (children().count() > id.count())" /> 264 <xpath value="@value|f:*|h:div" /> 265 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 266 </constraint> 267 <constraint> 268 <key value="ext-1" /> 269 <severity value="error" /> 270 <human value="Must have either extensions or value[x], not both" /> 271 <expression value="extension.exists() != value.exists()" /> 272 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 273 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 274 </constraint> 275 <isModifier value="false" /> 276 <isSummary value="false" /> 277 </element> 278 <element id="Address.use"> 279 <path value="Address.use" /> 280 <short value="home | work | temp | old | billing - purpose of this address" /> 281 <definition value="Address use" /> 282 <comment value="Applications can assume that an address is current unless it explicitly says that it is temporary or old." /> 283 <requirements value="Allows an appropriate address to be chosen from a list of many." /> 284 <min value="0" /> 285 <max value="1" /> 286 <base> 287 <path value="Address.use" /> 288 <min value="0" /> 289 <max value="1" /> 290 </base> 291 <type> 292 <code value="code" /> 293 </type> 294 <example> 295 <label value="General" /> 296 <valueCode value="home" /> 297 </example> 298 <constraint> 299 <key value="ele-1" /> 300 <severity value="error" /> 301 <human value="All FHIR elements must have a @value or children" /> 302 <expression value="hasValue() or (children().count() > id.count())" /> 303 <xpath value="@value|f:*|h:div" /> 304 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 305 </constraint> 306 <isModifier value="true" /> 307 <isModifierReason value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one" /> 308 <isSummary value="true" /> 309 <binding> 310 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 311 <valueString value="AddressUse" /> 312 </extension> 313 <strength value="required" /> 314 <description value="The use of an address." /> 315 <valueSet value="http://hl7.org/fhir/ValueSet/address-use|4.0.1" /> 316 </binding> 317 <mapping> 318 <identity value="v2" /> 319 <map value="XAD.7" /> 320 </mapping> 321 <mapping> 322 <identity value="rim" /> 323 <map value="unique(./use)" /> 324 </mapping> 325 <mapping> 326 <identity value="servd" /> 327 <map value="./AddressPurpose" /> 328 </mapping> 329 </element> 330 <element id="Address.type"> 331 <path value="Address.type" /> 332 <short value="postal | physical | both" /> 333 <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." /> 334 <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)." /> 335 <min value="0" /> 336 <max value="1" /> 337 <base> 338 <path value="Address.type" /> 339 <min value="0" /> 340 <max value="1" /> 341 </base> 342 <type> 343 <code value="code" /> 344 </type> 345 <example> 346 <label value="General" /> 347 <valueCode value="both" /> 348 </example> 349 <constraint> 350 <key value="ele-1" /> 351 <severity value="error" /> 352 <human value="All FHIR elements must have a @value or children" /> 353 <expression value="hasValue() or (children().count() > id.count())" /> 354 <xpath value="@value|f:*|h:div" /> 355 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 356 </constraint> 357 <isModifier value="false" /> 358 <isSummary value="true" /> 359 <binding> 360 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 361 <valueString value="AddressType" /> 362 </extension> 363 <strength value="required" /> 364 <description value="The type of an address (physical / postal)." /> 365 <valueSet value="http://hl7.org/fhir/ValueSet/address-type|4.0.1" /> 366 </binding> 367 <mapping> 368 <identity value="v2" /> 369 <map value="XAD.18" /> 370 </mapping> 371 <mapping> 372 <identity value="rim" /> 373 <map value="unique(./use)" /> 374 </mapping> 375 <mapping> 376 <identity value="vcard" /> 377 <map value="address type parameter" /> 378 </mapping> 379 </element> 380 <element id="Address.text"> 381 <path value="Address.text" /> 382 <short value="Text representation of the address" /> 383 <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." /> 384 <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." /> 385 <requirements value="A renderable, unencoded form." /> 386 <min value="0" /> 387 <max value="1" /> 388 <base> 389 <path value="Address.text" /> 390 <min value="0" /> 391 <max value="1" /> 392 </base> 393 <type> 394 <code value="string" /> 395 </type> 396 <example> 397 <label value="General" /> 398 <valueString value="137 Nowhere Street, Erewhon 9132" /> 399 </example> 400 <constraint> 401 <key value="ele-1" /> 402 <severity value="error" /> 403 <human value="All FHIR elements must have a @value or children" /> 404 <expression value="hasValue() or (children().count() > id.count())" /> 405 <xpath value="@value|f:*|h:div" /> 406 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 407 </constraint> 408 <isModifier value="false" /> 409 <isSummary value="true" /> 410 <mapping> 411 <identity value="v2" /> 412 <map value="XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6" /> 413 </mapping> 414 <mapping> 415 <identity value="rim" /> 416 <map value="./formatted" /> 417 </mapping> 418 <mapping> 419 <identity value="vcard" /> 420 <map value="address label parameter" /> 421 </mapping> 422 </element> 423 <element id="Address.line"> 424 <path value="Address.line" /> 425 <short value="Street name, number, direction & P.O. Box etc." /> 426 <definition value="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information." /> 427 <min value="0" /> 428 <max value="*" /> 429 <base> 430 <path value="Address.line" /> 431 <min value="0" /> 432 <max value="*" /> 433 </base> 434 <type> 435 <code value="string" /> 436 </type> 437 <orderMeaning value="The order in which lines should appear in an address label" /> 438 <example> 439 <label value="General" /> 440 <valueString value="137 Nowhere Street" /> 441 </example> 442 <constraint> 443 <key value="ele-1" /> 444 <severity value="error" /> 445 <human value="All FHIR elements must have a @value or children" /> 446 <expression value="hasValue() or (children().count() > id.count())" /> 447 <xpath value="@value|f:*|h:div" /> 448 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 449 </constraint> 450 <isModifier value="false" /> 451 <isSummary value="true" /> 452 <mapping> 453 <identity value="v2" /> 454 <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" /> 455 </mapping> 456 <mapping> 457 <identity value="rim" /> 458 <map value="AD.part[parttype = AL]" /> 459 </mapping> 460 <mapping> 461 <identity value="vcard" /> 462 <map value="street" /> 463 </mapping> 464 <mapping> 465 <identity value="servd" /> 466 <map value="./StreetAddress (newline delimitted)" /> 467 </mapping> 468 </element> 469 <element id="Address.line.id"> 470 <path value="Address.line.id" /> 471 <representation value="xmlAttr" /> 472 <short value="xml:id (or equivalent in JSON)" /> 473 <definition value="unique id for the element within a resource (for internal references)" /> 474 <min value="0" /> 475 <max value="1" /> 476 <base> 477 <path value="Element.id" /> 478 <min value="0" /> 479 <max value="1" /> 480 </base> 481 <type> 482 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 483 <valueUrl value="string" /> 484 </extension> 485 <code value="http://hl7.org/fhirpath/System.String" /> 486 </type> 487 <isModifier value="false" /> 488 <isSummary value="false" /> 489 </element> 490 <element id="Address.line.extension"> 491 <path value="Address.line.extension" /> 492 <slicing> 493 <discriminator> 494 <type value="value" /> 495 <path value="url" /> 496 </discriminator> 497 <rules value="open" /> 498 </slicing> 499 <short value="Extension" /> 500 <definition value="An Extension" /> 501 <min value="0" /> 502 <max value="*" /> 503 <base> 504 <path value="Element.extension" /> 505 <min value="0" /> 506 <max value="*" /> 507 </base> 508 <type> 509 <code value="Extension" /> 510 </type> 511 <constraint> 512 <key value="ele-1" /> 513 <severity value="error" /> 514 <human value="All FHIR elements must have a @value or children" /> 515 <expression value="hasValue() or (children().count() > id.count())" /> 516 <xpath value="@value|f:*|h:div" /> 517 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 518 </constraint> 519 <constraint> 520 <key value="ext-1" /> 521 <severity value="error" /> 522 <human value="Must have either extensions or value[x], not both" /> 523 <expression value="extension.exists() != value.exists()" /> 524 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 525 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 526 </constraint> 527 <isModifier value="false" /> 528 <isSummary value="false" /> 529 </element> 530 <element id="Address.line.extension:streetName"> 531 <path value="Address.line.extension" /> 532 <sliceName value="streetName" /> 533 <short value="streetName" /> 534 <definition value="streetName." /> 535 <min value="0" /> 536 <max value="*" /> 537 <base> 538 <path value="Element.extension" /> 539 <min value="0" /> 540 <max value="*" /> 541 </base> 542 <type> 543 <code value="Extension" /> 544 <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName" /> 545 </type> 546 <constraint> 547 <key value="ele-1" /> 548 <severity value="error" /> 549 <human value="All FHIR elements must have a @value or children" /> 550 <expression value="hasValue() or (children().count() > id.count())" /> 551 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 552 </constraint> 553 <constraint> 554 <key value="ext-1" /> 555 <severity value="error" /> 556 <human value="Must have either extensions or value[x], not both" /> 557 <expression value="extension.exists() != value.exists()" /> 558 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 559 </constraint> 560 <isModifier value="false" /> 561 <mapping> 562 <identity value="rim" /> 563 <map value="ADXP[partType=STR]" /> 564 </mapping> 565 </element> 566 <element id="Address.line.extension:houseNumber"> 567 <path value="Address.line.extension" /> 568 <sliceName value="houseNumber" /> 569 <short value="houseNumber" /> 570 <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." /> 571 <min value="0" /> 572 <max value="*" /> 573 <base> 574 <path value="Element.extension" /> 575 <min value="0" /> 576 <max value="*" /> 577 </base> 578 <type> 579 <code value="Extension" /> 580 <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber" /> 581 </type> 582 <constraint> 583 <key value="ele-1" /> 584 <severity value="error" /> 585 <human value="All FHIR elements must have a @value or children" /> 586 <expression value="hasValue() or (children().count() > id.count())" /> 587 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 588 </constraint> 589 <constraint> 590 <key value="ext-1" /> 591 <severity value="error" /> 592 <human value="Must have either extensions or value[x], not both" /> 593 <expression value="extension.exists() != value.exists()" /> 594 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 595 </constraint> 596 <isModifier value="false" /> 597 <mapping> 598 <identity value="rim" /> 599 <map value="ADXP[partType=BNR]" /> 600 </mapping> 601 </element> 602 <element id="Address.line.extension:postBox"> 603 <path value="Address.line.extension" /> 604 <sliceName value="postBox" /> 605 <short value="postBox" /> 606 <definition value="A numbered box located in a post station." /> 607 <min value="0" /> 608 <max value="*" /> 609 <base> 610 <path value="Element.extension" /> 611 <min value="0" /> 612 <max value="*" /> 613 </base> 614 <type> 615 <code value="Extension" /> 616 <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox" /> 617 </type> 618 <constraint> 619 <key value="ele-1" /> 620 <severity value="error" /> 621 <human value="All FHIR elements must have a @value or children" /> 622 <expression value="hasValue() or (children().count() > id.count())" /> 623 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 624 </constraint> 625 <constraint> 626 <key value="ext-1" /> 627 <severity value="error" /> 628 <human value="Must have either extensions or value[x], not both" /> 629 <expression value="extension.exists() != value.exists()" /> 630 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 631 </constraint> 632 <isModifier value="false" /> 633 <mapping> 634 <identity value="rim" /> 635 <map value="ADXP[partType=POB]" /> 636 </mapping> 637 </element> 638 <element id="Address.line.value"> 639 <path value="Address.line.value" /> 640 <representation value="xmlAttr" /> 641 <short value="Primitive value for string" /> 642 <definition value="The actual value" /> 643 <min value="0" /> 644 <max value="1" /> 645 <base> 646 <path value="string.value" /> 647 <min value="0" /> 648 <max value="1" /> 649 </base> 650 <type> 651 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 652 <valueUrl value="string" /> 653 </extension> 654 <extension url="http://hl7.org/fhir/StructureDefinition/regex"> 655 <valueString value="[ \r\n\t\S]+" /> 656 </extension> 657 <code value="http://hl7.org/fhirpath/System.String" /> 658 </type> 659 <maxLength value="1048576" /> 660 <isModifier value="false" /> 661 <isSummary value="false" /> 662 </element> 663 <element id="Address.city"> 664 <path value="Address.city" /> 665 <short value="Name of city, town etc." /> 666 <definition value="The name of the city, town, suburb, village or other community or delivery center." /> 667 <alias value="Municpality" /> 668 <min value="0" /> 669 <max value="1" /> 670 <base> 671 <path value="Address.city" /> 672 <min value="0" /> 673 <max value="1" /> 674 </base> 675 <type> 676 <code value="string" /> 677 </type> 678 <example> 679 <label value="General" /> 680 <valueString value="Erewhon" /> 681 </example> 682 <constraint> 683 <key value="ele-1" /> 684 <severity value="error" /> 685 <human value="All FHIR elements must have a @value or children" /> 686 <expression value="hasValue() or (children().count() > id.count())" /> 687 <xpath value="@value|f:*|h:div" /> 688 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 689 </constraint> 690 <isModifier value="false" /> 691 <isSummary value="true" /> 692 <mapping> 693 <identity value="v2" /> 694 <map value="XAD.3" /> 695 </mapping> 696 <mapping> 697 <identity value="rim" /> 698 <map value="AD.part[parttype = CTY]" /> 699 </mapping> 700 <mapping> 701 <identity value="vcard" /> 702 <map value="locality" /> 703 </mapping> 704 <mapping> 705 <identity value="servd" /> 706 <map value="./Jurisdiction" /> 707 </mapping> 708 </element> 709 <element id="Address.district"> 710 <path value="Address.district" /> 711 <short value="District name (aka county)" /> 712 <definition value="The name of the administrative area (county)." /> 713 <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." /> 714 <alias value="County" /> 715 <min value="0" /> 716 <max value="1" /> 717 <base> 718 <path value="Address.district" /> 719 <min value="0" /> 720 <max value="1" /> 721 </base> 722 <type> 723 <code value="string" /> 724 </type> 725 <example> 726 <label value="General" /> 727 <valueString value="Madison" /> 728 </example> 729 <constraint> 730 <key value="ele-1" /> 731 <severity value="error" /> 732 <human value="All FHIR elements must have a @value or children" /> 733 <expression value="hasValue() or (children().count() > id.count())" /> 734 <xpath value="@value|f:*|h:div" /> 735 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 736 </constraint> 737 <isModifier value="false" /> 738 <isSummary value="true" /> 739 <mapping> 740 <identity value="v2" /> 741 <map value="XAD.9" /> 742 </mapping> 743 <mapping> 744 <identity value="rim" /> 745 <map value="AD.part[parttype = CNT | CPA]" /> 746 </mapping> 747 </element> 748 <element id="Address.state"> 749 <path value="Address.state" /> 750 <short value="Sub-unit of country (abbreviations ok)" /> 751 <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)." /> 752 <alias value="Province" /> 753 <alias value="Territory" /> 754 <min value="0" /> 755 <max value="1" /> 756 <base> 757 <path value="Address.state" /> 758 <min value="0" /> 759 <max value="1" /> 760 </base> 761 <type> 762 <code value="string" /> 763 </type> 764 <constraint> 765 <key value="ele-1" /> 766 <severity value="error" /> 767 <human value="All FHIR elements must have a @value or children" /> 768 <expression value="hasValue() or (children().count() > id.count())" /> 769 <xpath value="@value|f:*|h:div" /> 770 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 771 </constraint> 772 <isModifier value="false" /> 773 <isSummary value="true" /> 774 <mapping> 775 <identity value="v2" /> 776 <map value="XAD.4" /> 777 </mapping> 778 <mapping> 779 <identity value="rim" /> 780 <map value="AD.part[parttype = STA]" /> 781 </mapping> 782 <mapping> 783 <identity value="vcard" /> 784 <map value="region" /> 785 </mapping> 786 <mapping> 787 <identity value="servd" /> 788 <map value="./Region" /> 789 </mapping> 790 </element> 791 <element id="Address.postalCode"> 792 <path value="Address.postalCode" /> 793 <short value="Postal code for area" /> 794 <definition value="A postal code designating a region defined by the postal service." /> 795 <alias value="Zip" /> 796 <min value="0" /> 797 <max value="1" /> 798 <base> 799 <path value="Address.postalCode" /> 800 <min value="0" /> 801 <max value="1" /> 802 </base> 803 <type> 804 <code value="string" /> 805 </type> 806 <example> 807 <label value="General" /> 808 <valueString value="9132" /> 809 </example> 810 <constraint> 811 <key value="ele-1" /> 812 <severity value="error" /> 813 <human value="All FHIR elements must have a @value or children" /> 814 <expression value="hasValue() or (children().count() > id.count())" /> 815 <xpath value="@value|f:*|h:div" /> 816 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 817 </constraint> 818 <isModifier value="false" /> 819 <isSummary value="true" /> 820 <mapping> 821 <identity value="v2" /> 822 <map value="XAD.5" /> 823 </mapping> 824 <mapping> 825 <identity value="rim" /> 826 <map value="AD.part[parttype = ZIP]" /> 827 </mapping> 828 <mapping> 829 <identity value="vcard" /> 830 <map value="code" /> 831 </mapping> 832 <mapping> 833 <identity value="servd" /> 834 <map value="./PostalIdentificationCode" /> 835 </mapping> 836 </element> 837 <element id="Address.country"> 838 <path value="Address.country" /> 839 <short value="Country (e.g. can be ISO 3166 2 or 3 letter code)" /> 840 <definition value="Country - a nation as commonly understood or generally accepted." /> 841 <comment value="ISO 3166 3 letter codes can be used in place of a human readable country name." /> 842 <min value="0" /> 843 <max value="1" /> 844 <base> 845 <path value="Address.country" /> 846 <min value="0" /> 847 <max value="1" /> 848 </base> 849 <type> 850 <code value="string" /> 851 </type> 852 <constraint> 853 <key value="ele-1" /> 854 <severity value="error" /> 855 <human value="All FHIR elements must have a @value or children" /> 856 <expression value="hasValue() or (children().count() > id.count())" /> 857 <xpath value="@value|f:*|h:div" /> 858 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 859 </constraint> 860 <isModifier value="false" /> 861 <isSummary value="true" /> 862 <mapping> 863 <identity value="v2" /> 864 <map value="XAD.6" /> 865 </mapping> 866 <mapping> 867 <identity value="rim" /> 868 <map value="AD.part[parttype = CNT]" /> 869 </mapping> 870 <mapping> 871 <identity value="vcard" /> 872 <map value="country" /> 873 </mapping> 874 <mapping> 875 <identity value="servd" /> 876 <map value="./Country" /> 877 </mapping> 878 </element> 879 <element id="Address.country.id"> 880 <path value="Address.country.id" /> 881 <representation value="xmlAttr" /> 882 <short value="xml:id (or equivalent in JSON)" /> 883 <definition value="unique id for the element within a resource (for internal references)" /> 884 <min value="0" /> 885 <max value="1" /> 886 <base> 887 <path value="Element.id" /> 888 <min value="0" /> 889 <max value="1" /> 890 </base> 891 <type> 892 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 893 <valueUrl value="string" /> 894 </extension> 895 <code value="http://hl7.org/fhirpath/System.String" /> 896 </type> 897 <isModifier value="false" /> 898 <isSummary value="false" /> 899 </element> 900 <element id="Address.country.extension"> 901 <path value="Address.country.extension" /> 902 <slicing> 903 <discriminator> 904 <type value="value" /> 905 <path value="url" /> 906 </discriminator> 907 <ordered value="false" /> 908 <rules value="open" /> 909 </slicing> 910 <short value="Extension" /> 911 <definition value="An Extension" /> 912 <min value="0" /> 913 <max value="*" /> 914 <base> 915 <path value="Element.extension" /> 916 <min value="0" /> 917 <max value="*" /> 918 </base> 919 <type> 920 <code value="Extension" /> 921 </type> 922 <constraint> 923 <key value="ele-1" /> 924 <severity value="error" /> 925 <human value="All FHIR elements must have a @value or children" /> 926 <expression value="hasValue() or (children().count() > id.count())" /> 927 <xpath value="@value|f:*|h:div" /> 928 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 929 </constraint> 930 <constraint> 931 <key value="ext-1" /> 932 <severity value="error" /> 933 <human value="Must have either extensions or value[x], not both" /> 934 <expression value="extension.exists() != value.exists()" /> 935 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 936 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 937 </constraint> 938 <isModifier value="false" /> 939 <isSummary value="false" /> 940 </element> 941 <element id="Address.country.extension:countryCode"> 942 <path value="Address.country.extension" /> 943 <sliceName value="countryCode" /> 944 <short value="code for string" /> 945 <definition value="Provides a coded expression for the content represented in a string." /> 946 <min value="0" /> 947 <max value="1" /> 948 <base> 949 <path value="Element.extension" /> 950 <min value="0" /> 951 <max value="*" /> 952 </base> 953 <type> 954 <code value="Extension" /> 955 <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding" /> 956 </type> 957 <condition value="ele-1" /> 958 <constraint> 959 <key value="ele-1" /> 960 <severity value="error" /> 961 <human value="All FHIR elements must have a @value or children" /> 962 <expression value="hasValue() or (children().count() > id.count())" /> 963 <xpath value="@value|f:*|h:div" /> 964 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 965 </constraint> 966 <constraint> 967 <key value="ext-1" /> 968 <severity value="error" /> 969 <human value="Must have either extensions or value[x], not both" /> 970 <expression value="extension.exists() != value.exists()" /> 971 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 972 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 973 </constraint> 974 <isModifier value="false" /> 975 <mapping> 976 <identity value="rim" /> 977 <map value="SC.code" /> 978 </mapping> 979 </element> 980 <element id="Address.country.extension:countryCode.id"> 981 <path value="Address.country.extension.id" /> 982 <representation value="xmlAttr" /> 983 <short value="Unique id for inter-element referencing" /> 984 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 985 <min value="0" /> 986 <max value="1" /> 987 <base> 988 <path value="Element.id" /> 989 <min value="0" /> 990 <max value="1" /> 991 </base> 992 <type> 993 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 994 <valueUrl value="string" /> 995 </extension> 996 <code value="http://hl7.org/fhirpath/System.String" /> 997 </type> 998 <isModifier value="false" /> 999 <isSummary value="false" /> 1000 <mapping> 1001 <identity value="rim" /> 1002 <map value="n/a" /> 1003 </mapping> 1004 </element> 1005 <element id="Address.country.extension:countryCode.extension"> 1006 <path value="Address.country.extension.extension" /> 1007 <slicing> 1008 <discriminator> 1009 <type value="value" /> 1010 <path value="url" /> 1011 </discriminator> 1012 <description value="Extensions are always sliced by (at least) url" /> 1013 <rules value="open" /> 1014 </slicing> 1015 <short value="Extension" /> 1016 <definition value="An Extension" /> 1017 <min value="0" /> 1018 <max value="0" /> 1019 <base> 1020 <path value="Element.extension" /> 1021 <min value="0" /> 1022 <max value="*" /> 1023 </base> 1024 <type> 1025 <code value="Extension" /> 1026 </type> 1027 <constraint> 1028 <key value="ele-1" /> 1029 <severity value="error" /> 1030 <human value="All FHIR elements must have a @value or children" /> 1031 <expression value="hasValue() or (children().count() > id.count())" /> 1032 <xpath value="@value|f:*|h:div" /> 1033 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 1034 </constraint> 1035 <constraint> 1036 <key value="ext-1" /> 1037 <severity value="error" /> 1038 <human value="Must have either extensions or value[x], not both" /> 1039 <expression value="extension.exists() != value.exists()" /> 1040 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 1041 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 1042 </constraint> 1043 <isModifier value="false" /> 1044 <isSummary value="false" /> 1045 </element> 1046 <element id="Address.country.extension:countryCode.url"> 1047 <path value="Address.country.extension.url" /> 1048 <representation value="xmlAttr" /> 1049 <short value="identifies the meaning of the extension" /> 1050 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 1051 <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." /> 1052 <min value="1" /> 1053 <max value="1" /> 1054 <base> 1055 <path value="Extension.url" /> 1056 <min value="1" /> 1057 <max value="1" /> 1058 </base> 1059 <type> 1060 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 1061 <valueUrl value="uri" /> 1062 </extension> 1063 <code value="http://hl7.org/fhirpath/System.String" /> 1064 </type> 1065 <fixedUri value="http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding" /> 1066 <isModifier value="false" /> 1067 <isSummary value="false" /> 1068 <mapping> 1069 <identity value="rim" /> 1070 <map value="N/A" /> 1071 </mapping> 1072 </element> 1073 <element id="Address.country.extension:countryCode.value[x]"> 1074 <path value="Address.country.extension.value[x]" /> 1075 <short value="Value of extension" /> 1076 <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)." /> 1077 <min value="1" /> 1078 <max value="1" /> 1079 <base> 1080 <path value="Extension.value[x]" /> 1081 <min value="0" /> 1082 <max value="1" /> 1083 </base> 1084 <type> 1085 <code value="Coding" /> 1086 </type> 1087 <constraint> 1088 <key value="ele-1" /> 1089 <severity value="error" /> 1090 <human value="All FHIR elements must have a @value or children" /> 1091 <expression value="hasValue() or (children().count() > id.count())" /> 1092 <xpath value="@value|f:*|h:div" /> 1093 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 1094 </constraint> 1095 <isModifier value="false" /> 1096 <isSummary value="false" /> 1097 <binding> 1098 <strength value="preferred" /> 1099 <valueSet value="http://hl7.org/fhir/ValueSet/iso3166-1-2" /> 1100 </binding> 1101 <mapping> 1102 <identity value="rim" /> 1103 <map value="N/A" /> 1104 </mapping> 1105 </element> 1106 <element id="Address.country.value"> 1107 <path value="Address.country.value" /> 1108 <representation value="xmlAttr" /> 1109 <short value="Primitive value for string" /> 1110 <definition value="The actual value" /> 1111 <min value="0" /> 1112 <max value="1" /> 1113 <base> 1114 <path value="string.value" /> 1115 <min value="0" /> 1116 <max value="1" /> 1117 </base> 1118 <type> 1119 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 1120 <valueUrl value="string" /> 1121 </extension> 1122 <extension url="http://hl7.org/fhir/StructureDefinition/regex"> 1123 <valueString value="[ \r\n\t\S]+" /> 1124 </extension> 1125 <code value="http://hl7.org/fhirpath/System.String" /> 1126 </type> 1127 <maxLength value="1048576" /> 1128 <isModifier value="false" /> 1129 <isSummary value="false" /> 1130 </element> 1131 <element id="Address.period"> 1132 <path value="Address.period" /> 1133 <short value="Time period when address was/is in use" /> 1134 <definition value="Time period when address was/is in use." /> 1135 <requirements value="Allows addresses to be placed in historical context." /> 1136 <min value="0" /> 1137 <max value="1" /> 1138 <base> 1139 <path value="Address.period" /> 1140 <min value="0" /> 1141 <max value="1" /> 1142 </base> 1143 <type> 1144 <code value="Period" /> 1145 </type> 1146 <example> 1147 <label value="General" /> 1148 <valuePeriod> 1149 <start value="2010-03-23" /> 1150 <end value="2010-07-01" /> 1151 </valuePeriod> 1152 </example> 1153 <constraint> 1154 <key value="ele-1" /> 1155 <severity value="error" /> 1156 <human value="All FHIR elements must have a @value or children" /> 1157 <expression value="hasValue() or (children().count() > id.count())" /> 1158 <xpath value="@value|f:*|h:div" /> 1159 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 1160 </constraint> 1161 <isModifier value="false" /> 1162 <isSummary value="true" /> 1163 <mapping> 1164 <identity value="v2" /> 1165 <map value="XAD.12 / XAD.13 + XAD.14" /> 1166 </mapping> 1167 <mapping> 1168 <identity value="rim" /> 1169 <map value="./usablePeriod[type="IVL<TS>"]" /> 1170 </mapping> 1171 <mapping> 1172 <identity value="servd" /> 1173 <map value="./StartDate and ./EndDate" /> 1174 </mapping> 1175 </element> 1176 </snapshot> 1177 <differential> 1178 <element id="Address"> 1179 <path value="Address" /> 1180 <short value="Address according to Czech postal conventions" /> 1181 <definition value="Address according to Czech postal conventions. The address can be used both for delivering mail and for locating locations that do not have a valid mailing address. The use of extensions is not mandatory." /> 1182 <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](location.html#) resource)." /> 1183 <constraint> 1184 <key value="text-or-ctry" /> 1185 <severity value="error" /> 1186 <human value="Address must contain at least text or country element" /> 1187 <expression value="( line.all($this.empty()) and city.empty() ) implies (text.exists() or country.exists())" /> 1188 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 1189 </constraint> 1190 <constraint> 1191 <key value="POB-and-PCS" /> 1192 <severity value="error" /> 1193 <human value="If P.O.Box extension is present, Postal code must be present too" /> 1194 <expression value="line.all($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox').empty()) or (postalCode.exists())" /> 1195 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 1196 </constraint> 1197 <constraint> 1198 <key value="street-and-city" /> 1199 <severity value="error" /> 1200 <human value="If streetName extension is present, Postal code or city must be present too" /> 1201 <expression value="line.all($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').empty()) or postalCode.exists() or city.exists()" /> 1202 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 1203 </constraint> 1204 <constraint> 1205 <key value="POB-only-postal" /> 1206 <severity value="warning" /> 1207 <human value="Address with P.O.Box cannot be "physical" or "both"" /> 1208 <expression value="line.all($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox').empty()) or type='postal' or type.empty()" /> 1209 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 1210 </constraint> 1211 <constraint> 1212 <key value="POB-ext-only" /> 1213 <severity value="warning" /> 1214 <human value="If the extension 'P.O.Box' is used, the extensions 'Street' and 'House number' must not be used." /> 1215 <expression value="line.all($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox').empty() or ($this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').empty() and $this.extension('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber').empty()))" /> 1216 <source value="https://hl7.cz/fhir/core/StructureDefinition/cz-address" /> 1217 </constraint> 1218 </element> 1219 <element id="Address.extension:addressPoint"> 1220 <path value="Address.extension" /> 1221 <sliceName value="addressPoint" /> 1222 <definition value="If both the RUIAN code and the address are given, both must match." /> 1223 <min value="0" /> 1224 <max value="1" /> 1225 <type> 1226 <code value="Extension" /> 1227 <profile value="https://hl7.cz/fhir/core/StructureDefinition/address-point-cz" /> 1228 </type> 1229 </element> 1230 <element id="Address.extension:permanentResidence"> 1231 <path value="Address.extension" /> 1232 <sliceName value="permanentResidence" /> 1233 <min value="0" /> 1234 <max value="1" /> 1235 <type> 1236 <code value="Extension" /> 1237 <profile value="https://hl7.cz/fhir/core/StructureDefinition/permanent-residencer-address-cz" /> 1238 </type> 1239 </element> 1240 <element id="Address.use"> 1241 <path value="Address.use" /> 1242 <definition value="Address use" /> 1243 </element> 1244 </differential> 1245 </StructureDefinition>