patient-animal.xml
   1 <?xml version="1.0" encoding="utf-8"?>
   2 <StructureDefinition xmlns="http://hl7.org/fhir">
   3   <id value="patient-animal" />
   4   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
   5     <valueCode value="pa" />
   6   </extension>
   7   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
   8     <valueInteger value="1" />
   9   </extension>
  10   <url value="http://hl7.org/fhir/StructureDefinition/patient-animal" />
  11   <version value="4.0.1" />
  12   <name value="animal" />
  13   <title value="animal" />
  14   <status value="draft" />
  15   <date value="2019-10-31T23:29:23.0000000+01:00" />
  16   <publisher value="HL7" />
  17   <description value="This patient is known to be an animal." />
  18   <fhirVersion value="4.0.1" />
  19   <mapping>
  20     <identity value="rim" />
  21     <uri value="http://hl7.org/v3" />
  22     <name value="RIM Mapping" />
  23   </mapping>
  24   <mapping>
  25     <identity value="v2" />
  26     <uri value="http://hl7.org/v2" />
  27     <name value="HL7 v2 Mapping" />
  28   </mapping>
  29   <kind value="complex-type" />
  30   <abstract value="false" />
  31   <context>
  32     <type value="element" />
  33     <expression value="Patient" />
  34   </context>
  35   <type value="Extension" />
  36   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  37   <derivation value="constraint" />
  38   <snapshot>
  39     <element id="Extension">
  40       <path value="Extension" />
  41       <short value="This patient is known to be an animal (non-human)" />
  42       <definition value="This patient is known to be an animal." />
  43       <comment value="The absence of the animal extension does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required.  (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal)." />
  44       <min value="0" />
  45       <max value="1" />
  46       <base>
  47         <path value="Extension" />
  48         <min value="0" />
  49         <max value="*" />
  50       </base>
  51       <condition value="ele-1" />
  52       <constraint>
  53         <key value="ele-1" />
  54         <severity value="error" />
  55         <human value="All FHIR elements must have a @value or children" />
  56         <expression value="hasValue() or (children().count() > id.count())" />
  57         <xpath value="@value|f:*|h:div" />
  58         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
  59       </constraint>
  60       <constraint>
  61         <key value="ext-1" />
  62         <severity value="error" />
  63         <human value="Must have either extensions or value[x], not both" />
  64         <expression value="extension.exists() != value.exists()" />
  65         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
  66         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
  67       </constraint>
  68       <isModifier value="false" />
  69       <mapping>
  70         <identity value="rim" />
  71         <map value="player[classCode=ANM]" />
  72       </mapping>
  73     </element>
  74     <element id="Extension.id">
  75       <path value="Extension.id" />
  76       <representation value="xmlAttr" />
  77       <short value="Unique id for inter-element referencing" />
  78       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
  79       <min value="0" />
  80       <max value="1" />
  81       <base>
  82         <path value="Element.id" />
  83         <min value="0" />
  84         <max value="1" />
  85       </base>
  86       <type>
  87         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
  88           <valueUrl value="string" />
  89         </extension>
  90         <code value="http://hl7.org/fhirpath/System.String" />
  91       </type>
  92       <isModifier value="false" />
  93       <isSummary value="false" />
  94       <mapping>
  95         <identity value="rim" />
  96         <map value="n/a" />
  97       </mapping>
  98     </element>
  99     <element id="Extension.extension">
 100       <path value="Extension.extension" />
 101       <slicing>
 102         <discriminator>
 103           <type value="value" />
 104           <path value="url" />
 105         </discriminator>
 106         <description value="Extensions are always sliced by (at least) url" />
 107         <rules value="open" />
 108       </slicing>
 109       <short value="Additional content defined by implementations" />
 110       <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." />
 111       <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." />
 112       <alias value="extensions" />
 113       <alias value="user content" />
 114       <min value="0" />
 115       <max value="*" />
 116       <base>
 117         <path value="Element.extension" />
 118         <min value="0" />
 119         <max value="*" />
 120       </base>
 121       <type>
 122         <code value="Extension" />
 123       </type>
 124       <constraint>
 125         <key value="ele-1" />
 126         <severity value="error" />
 127         <human value="All FHIR elements must have a @value or children" />
 128         <expression value="hasValue() or (children().count() > id.count())" />
 129         <xpath value="@value|f:*|h:div" />
 130         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 131       </constraint>
 132       <constraint>
 133         <key value="ext-1" />
 134         <severity value="error" />
 135         <human value="Must have either extensions or value[x], not both" />
 136         <expression value="extension.exists() != value.exists()" />
 137         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 138         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 139       </constraint>
 140       <isModifier value="false" />
 141       <isSummary value="false" />
 142       <mapping>
 143         <identity value="rim" />
 144         <map value="n/a" />
 145       </mapping>
 146     </element>
 147     <element id="Extension.extension:species">
 148       <path value="Extension.extension" />
 149       <sliceName value="species" />
 150       <short value="The animal species.  E.g. Dog, Cow." />
 151       <definition value="Identifies the high level taxonomic categorization of the kind of animal." />
 152       <comment value="If the patient is non-human, at least a species SHALL be specified. Species SHALL be a widely recognized taxonomic classification.  It might or might not be Linnaean taxonomy and might or might not be at the level of species. If the level is finer than species--such as a breed code--the code system used SHALL allow inference of the species.  (The common example is that the word "Hereford" does not allow inference of the species Bos taurus, because there is a Hereford pig breed, but the SNOMED CT code for "Hereford Cattle Breed" does.)." />
 153       <min value="1" />
 154       <max value="1" />
 155       <base>
 156         <path value="Element.extension" />
 157         <min value="0" />
 158         <max value="*" />
 159       </base>
 160       <type>
 161         <code value="Extension" />
 162       </type>
 163       <constraint>
 164         <key value="ele-1" />
 165         <severity value="error" />
 166         <human value="All FHIR elements must have a @value or children" />
 167         <expression value="hasValue() or (children().count() > id.count())" />
 168         <xpath value="@value|f:*|h:div" />
 169         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 170       </constraint>
 171       <constraint>
 172         <key value="ext-1" />
 173         <severity value="error" />
 174         <human value="Must have either extensions or value[x], not both" />
 175         <expression value="extension.exists() != value.exists()" />
 176         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 177         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 178       </constraint>
 179       <isModifier value="false" />
 180       <isSummary value="false" />
 181       <mapping>
 182         <identity value="v2" />
 183         <map value="PID-35" />
 184       </mapping>
 185       <mapping>
 186         <identity value="rim" />
 187         <map value="code" />
 188       </mapping>
 189     </element>
 190     <element id="Extension.extension:species.id">
 191       <path value="Extension.extension.id" />
 192       <representation value="xmlAttr" />
 193       <short value="Unique id for inter-element referencing" />
 194       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 195       <min value="0" />
 196       <max value="1" />
 197       <base>
 198         <path value="Element.id" />
 199         <min value="0" />
 200         <max value="1" />
 201       </base>
 202       <type>
 203         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 204           <valueUrl value="string" />
 205         </extension>
 206         <code value="http://hl7.org/fhirpath/System.String" />
 207       </type>
 208       <isModifier value="false" />
 209       <isSummary value="false" />
 210       <mapping>
 211         <identity value="rim" />
 212         <map value="n/a" />
 213       </mapping>
 214     </element>
 215     <element id="Extension.extension:species.extension">
 216       <path value="Extension.extension.extension" />
 217       <slicing>
 218         <discriminator>
 219           <type value="value" />
 220           <path value="url" />
 221         </discriminator>
 222         <description value="Extensions are always sliced by (at least) url" />
 223         <rules value="open" />
 224       </slicing>
 225       <short value="Extension" />
 226       <definition value="An Extension" />
 227       <min value="0" />
 228       <max value="0" />
 229       <base>
 230         <path value="Element.extension" />
 231         <min value="0" />
 232         <max value="*" />
 233       </base>
 234       <type>
 235         <code value="Extension" />
 236       </type>
 237       <constraint>
 238         <key value="ele-1" />
 239         <severity value="error" />
 240         <human value="All FHIR elements must have a @value or children" />
 241         <expression value="hasValue() or (children().count() > id.count())" />
 242         <xpath value="@value|f:*|h:div" />
 243         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 244       </constraint>
 245       <constraint>
 246         <key value="ext-1" />
 247         <severity value="error" />
 248         <human value="Must have either extensions or value[x], not both" />
 249         <expression value="extension.exists() != value.exists()" />
 250         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 251         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 252       </constraint>
 253       <isModifier value="false" />
 254       <isSummary value="false" />
 255     </element>
 256     <element id="Extension.extension:species.url">
 257       <path value="Extension.extension.url" />
 258       <representation value="xmlAttr" />
 259       <short value="identifies the meaning of the extension" />
 260       <definition value="Source of the definition for the extension code - a logical name or a URL." />
 261       <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." />
 262       <min value="1" />
 263       <max value="1" />
 264       <base>
 265         <path value="Extension.url" />
 266         <min value="1" />
 267         <max value="1" />
 268       </base>
 269       <type>
 270         <code value="uri" />
 271       </type>
 272       <fixedUri value="species" />
 273       <isModifier value="false" />
 274       <isSummary value="false" />
 275       <mapping>
 276         <identity value="rim" />
 277         <map value="N/A" />
 278       </mapping>
 279     </element>
 280     <element id="Extension.extension:species.value[x]">
 281       <path value="Extension.extension.value[x]" />
 282       <short value="Value of extension" />
 283       <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)." />
 284       <min value="1" />
 285       <max value="1" />
 286       <base>
 287         <path value="Extension.value[x]" />
 288         <min value="0" />
 289         <max value="1" />
 290       </base>
 291       <type>
 292         <code value="CodeableConcept" />
 293       </type>
 294       <constraint>
 295         <key value="ele-1" />
 296         <severity value="error" />
 297         <human value="All FHIR elements must have a @value or children" />
 298         <expression value="hasValue() or (children().count() > id.count())" />
 299         <xpath value="@value|f:*|h:div" />
 300         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 301       </constraint>
 302       <isModifier value="false" />
 303       <isSummary value="false" />
 304       <binding>
 305         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
 306           <valueString value="AnimalSpecies" />
 307         </extension>
 308         <strength value="example" />
 309         <description value="The species of an animal." />
 310         <valueSet value="http://hl7.org/fhir/ValueSet/animal-species" />
 311       </binding>
 312       <mapping>
 313         <identity value="rim" />
 314         <map value="N/A" />
 315       </mapping>
 316     </element>
 317     <element id="Extension.extension:breed">
 318       <path value="Extension.extension" />
 319       <sliceName value="breed" />
 320       <short value="The animal breed.  E.g. Poodle, Angus." />
 321       <definition value="Identifies the detailed categorization of the kind of animal." />
 322       <comment value="Breed MAY be used to provide further taxonomic or non-taxonomic classification.  It may involve local or proprietary designation--such as commercial strain--and/or additional information such as production type." />
 323       <min value="0" />
 324       <max value="1" />
 325       <base>
 326         <path value="Element.extension" />
 327         <min value="0" />
 328         <max value="*" />
 329       </base>
 330       <type>
 331         <code value="Extension" />
 332       </type>
 333       <constraint>
 334         <key value="ele-1" />
 335         <severity value="error" />
 336         <human value="All FHIR elements must have a @value or children" />
 337         <expression value="hasValue() or (children().count() > id.count())" />
 338         <xpath value="@value|f:*|h:div" />
 339         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 340       </constraint>
 341       <constraint>
 342         <key value="ext-1" />
 343         <severity value="error" />
 344         <human value="Must have either extensions or value[x], not both" />
 345         <expression value="extension.exists() != value.exists()" />
 346         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 347         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 348       </constraint>
 349       <isModifier value="false" />
 350       <isSummary value="false" />
 351       <mapping>
 352         <identity value="v2" />
 353         <map value="PID-35 (where more detailed value is present)" />
 354       </mapping>
 355       <mapping>
 356         <identity value="rim" />
 357         <map value="playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code" />
 358       </mapping>
 359     </element>
 360     <element id="Extension.extension:breed.id">
 361       <path value="Extension.extension.id" />
 362       <representation value="xmlAttr" />
 363       <short value="Unique id for inter-element referencing" />
 364       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 365       <min value="0" />
 366       <max value="1" />
 367       <base>
 368         <path value="Element.id" />
 369         <min value="0" />
 370         <max value="1" />
 371       </base>
 372       <type>
 373         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 374           <valueUrl value="string" />
 375         </extension>
 376         <code value="http://hl7.org/fhirpath/System.String" />
 377       </type>
 378       <isModifier value="false" />
 379       <isSummary value="false" />
 380       <mapping>
 381         <identity value="rim" />
 382         <map value="n/a" />
 383       </mapping>
 384     </element>
 385     <element id="Extension.extension:breed.extension">
 386       <path value="Extension.extension.extension" />
 387       <slicing>
 388         <discriminator>
 389           <type value="value" />
 390           <path value="url" />
 391         </discriminator>
 392         <description value="Extensions are always sliced by (at least) url" />
 393         <rules value="open" />
 394       </slicing>
 395       <short value="Extension" />
 396       <definition value="An Extension" />
 397       <min value="0" />
 398       <max value="0" />
 399       <base>
 400         <path value="Element.extension" />
 401         <min value="0" />
 402         <max value="*" />
 403       </base>
 404       <type>
 405         <code value="Extension" />
 406       </type>
 407       <constraint>
 408         <key value="ele-1" />
 409         <severity value="error" />
 410         <human value="All FHIR elements must have a @value or children" />
 411         <expression value="hasValue() or (children().count() > id.count())" />
 412         <xpath value="@value|f:*|h:div" />
 413         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 414       </constraint>
 415       <constraint>
 416         <key value="ext-1" />
 417         <severity value="error" />
 418         <human value="Must have either extensions or value[x], not both" />
 419         <expression value="extension.exists() != value.exists()" />
 420         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 421         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 422       </constraint>
 423       <isModifier value="false" />
 424       <isSummary value="false" />
 425     </element>
 426     <element id="Extension.extension:breed.url">
 427       <path value="Extension.extension.url" />
 428       <representation value="xmlAttr" />
 429       <short value="identifies the meaning of the extension" />
 430       <definition value="Source of the definition for the extension code - a logical name or a URL." />
 431       <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." />
 432       <min value="1" />
 433       <max value="1" />
 434       <base>
 435         <path value="Extension.url" />
 436         <min value="1" />
 437         <max value="1" />
 438       </base>
 439       <type>
 440         <code value="uri" />
 441       </type>
 442       <fixedUri value="breed" />
 443       <isModifier value="false" />
 444       <isSummary value="false" />
 445       <mapping>
 446         <identity value="rim" />
 447         <map value="N/A" />
 448       </mapping>
 449     </element>
 450     <element id="Extension.extension:breed.value[x]">
 451       <path value="Extension.extension.value[x]" />
 452       <short value="Value of extension" />
 453       <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)." />
 454       <min value="1" />
 455       <max value="1" />
 456       <base>
 457         <path value="Extension.value[x]" />
 458         <min value="0" />
 459         <max value="1" />
 460       </base>
 461       <type>
 462         <code value="CodeableConcept" />
 463       </type>
 464       <constraint>
 465         <key value="ele-1" />
 466         <severity value="error" />
 467         <human value="All FHIR elements must have a @value or children" />
 468         <expression value="hasValue() or (children().count() > id.count())" />
 469         <xpath value="@value|f:*|h:div" />
 470         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 471       </constraint>
 472       <isModifier value="false" />
 473       <isSummary value="false" />
 474       <binding>
 475         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
 476           <valueString value="AnimalBreed" />
 477         </extension>
 478         <strength value="example" />
 479         <description value="The breed of an animal." />
 480         <valueSet value="http://hl7.org/fhir/ValueSet/animal-breeds" />
 481       </binding>
 482       <mapping>
 483         <identity value="rim" />
 484         <map value="N/A" />
 485       </mapping>
 486     </element>
 487     <element id="Extension.extension:genderStatus">
 488       <path value="Extension.extension" />
 489       <sliceName value="genderStatus" />
 490       <short value="The status of the animal's reproductive parts.  E.g. Neutered, Intact." />
 491       <definition value="Indicates the current state of the animal's reproductive organs." />
 492       <min value="0" />
 493       <max value="1" />
 494       <base>
 495         <path value="Element.extension" />
 496         <min value="0" />
 497         <max value="*" />
 498       </base>
 499       <type>
 500         <code value="Extension" />
 501       </type>
 502       <constraint>
 503         <key value="ele-1" />
 504         <severity value="error" />
 505         <human value="All FHIR elements must have a @value or children" />
 506         <expression value="hasValue() or (children().count() > id.count())" />
 507         <xpath value="@value|f:*|h:div" />
 508         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 509       </constraint>
 510       <constraint>
 511         <key value="ext-1" />
 512         <severity value="error" />
 513         <human value="Must have either extensions or value[x], not both" />
 514         <expression value="extension.exists() != value.exists()" />
 515         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 516         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 517       </constraint>
 518       <isModifier value="false" />
 519       <isSummary value="false" />
 520       <mapping>
 521         <identity value="v2" />
 522         <map value="N/A" />
 523       </mapping>
 524       <mapping>
 525         <identity value="rim" />
 526         <map value="genderStatusCode" />
 527       </mapping>
 528     </element>
 529     <element id="Extension.extension:genderStatus.id">
 530       <path value="Extension.extension.id" />
 531       <representation value="xmlAttr" />
 532       <short value="Unique id for inter-element referencing" />
 533       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 534       <min value="0" />
 535       <max value="1" />
 536       <base>
 537         <path value="Element.id" />
 538         <min value="0" />
 539         <max value="1" />
 540       </base>
 541       <type>
 542         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 543           <valueUrl value="string" />
 544         </extension>
 545         <code value="http://hl7.org/fhirpath/System.String" />
 546       </type>
 547       <isModifier value="false" />
 548       <isSummary value="false" />
 549       <mapping>
 550         <identity value="rim" />
 551         <map value="n/a" />
 552       </mapping>
 553     </element>
 554     <element id="Extension.extension:genderStatus.extension">
 555       <path value="Extension.extension.extension" />
 556       <slicing>
 557         <discriminator>
 558           <type value="value" />
 559           <path value="url" />
 560         </discriminator>
 561         <description value="Extensions are always sliced by (at least) url" />
 562         <rules value="open" />
 563       </slicing>
 564       <short value="Extension" />
 565       <definition value="An Extension" />
 566       <min value="0" />
 567       <max value="0" />
 568       <base>
 569         <path value="Element.extension" />
 570         <min value="0" />
 571         <max value="*" />
 572       </base>
 573       <type>
 574         <code value="Extension" />
 575       </type>
 576       <constraint>
 577         <key value="ele-1" />
 578         <severity value="error" />
 579         <human value="All FHIR elements must have a @value or children" />
 580         <expression value="hasValue() or (children().count() > id.count())" />
 581         <xpath value="@value|f:*|h:div" />
 582         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 583       </constraint>
 584       <constraint>
 585         <key value="ext-1" />
 586         <severity value="error" />
 587         <human value="Must have either extensions or value[x], not both" />
 588         <expression value="extension.exists() != value.exists()" />
 589         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
 590         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 591       </constraint>
 592       <isModifier value="false" />
 593       <isSummary value="false" />
 594     </element>
 595     <element id="Extension.extension:genderStatus.url">
 596       <path value="Extension.extension.url" />
 597       <representation value="xmlAttr" />
 598       <short value="identifies the meaning of the extension" />
 599       <definition value="Source of the definition for the extension code - a logical name or a URL." />
 600       <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." />
 601       <min value="1" />
 602       <max value="1" />
 603       <base>
 604         <path value="Extension.url" />
 605         <min value="1" />
 606         <max value="1" />
 607       </base>
 608       <type>
 609         <code value="uri" />
 610       </type>
 611       <fixedUri value="genderStatus" />
 612       <isModifier value="false" />
 613       <isSummary value="false" />
 614       <mapping>
 615         <identity value="rim" />
 616         <map value="N/A" />
 617       </mapping>
 618     </element>
 619     <element id="Extension.extension:genderStatus.value[x]">
 620       <path value="Extension.extension.value[x]" />
 621       <short value="Value of extension" />
 622       <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)." />
 623       <min value="1" />
 624       <max value="1" />
 625       <base>
 626         <path value="Extension.value[x]" />
 627         <min value="0" />
 628         <max value="1" />
 629       </base>
 630       <type>
 631         <code value="CodeableConcept" />
 632       </type>
 633       <constraint>
 634         <key value="ele-1" />
 635         <severity value="error" />
 636         <human value="All FHIR elements must have a @value or children" />
 637         <expression value="hasValue() or (children().count() > id.count())" />
 638         <xpath value="@value|f:*|h:div" />
 639         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 640       </constraint>
 641       <isModifier value="false" />
 642       <isSummary value="false" />
 643       <binding>
 644         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
 645           <valueString value="AnimalGenderStatus" />
 646         </extension>
 647         <strength value="example" />
 648         <description value="The state of the animal's reproductive organs." />
 649         <valueSet value="http://hl7.org/fhir/ValueSet/animal-genderstatus" />
 650       </binding>
 651       <mapping>
 652         <identity value="rim" />
 653         <map value="N/A" />
 654       </mapping>
 655     </element>
 656     <element id="Extension.url">
 657       <path value="Extension.url" />
 658       <representation value="xmlAttr" />
 659       <short value="identifies the meaning of the extension" />
 660       <definition value="Source of the definition for the extension code - a logical name or a URL." />
 661       <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." />
 662       <min value="1" />
 663       <max value="1" />
 664       <base>
 665         <path value="Extension.url" />
 666         <min value="1" />
 667         <max value="1" />
 668       </base>
 669       <type>
 670         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 671           <valueUrl value="uri" />
 672         </extension>
 673         <code value="http://hl7.org/fhirpath/System.String" />
 674       </type>
 675       <fixedUri value="http://hl7.org/fhir/StructureDefinition/patient-animal" />
 676       <isModifier value="false" />
 677       <isSummary value="false" />
 678       <mapping>
 679         <identity value="rim" />
 680         <map value="N/A" />
 681       </mapping>
 682     </element>
 683     <element id="Extension.value[x]">
 684       <path value="Extension.value[x]" />
 685       <short value="Value of extension" />
 686       <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)." />
 687       <min value="0" />
 688       <max value="0" />
 689       <base>
 690         <path value="Extension.value[x]" />
 691         <min value="0" />
 692         <max value="1" />
 693       </base>
 694       <type>
 695         <code value="base64Binary" />
 696       </type>
 697       <type>
 698         <code value="boolean" />
 699       </type>
 700       <type>
 701         <code value="canonical" />
 702       </type>
 703       <type>
 704         <code value="code" />
 705       </type>
 706       <type>
 707         <code value="date" />
 708       </type>
 709       <type>
 710         <code value="dateTime" />
 711       </type>
 712       <type>
 713         <code value="decimal" />
 714       </type>
 715       <type>
 716         <code value="id" />
 717       </type>
 718       <type>
 719         <code value="instant" />
 720       </type>
 721       <type>
 722         <code value="integer" />
 723       </type>
 724       <type>
 725         <code value="markdown" />
 726       </type>
 727       <type>
 728         <code value="oid" />
 729       </type>
 730       <type>
 731         <code value="positiveInt" />
 732       </type>
 733       <type>
 734         <code value="string" />
 735       </type>
 736       <type>
 737         <code value="time" />
 738       </type>
 739       <type>
 740         <code value="unsignedInt" />
 741       </type>
 742       <type>
 743         <code value="uri" />
 744       </type>
 745       <type>
 746         <code value="url" />
 747       </type>
 748       <type>
 749         <code value="uuid" />
 750       </type>
 751       <type>
 752         <code value="Address" />
 753       </type>
 754       <type>
 755         <code value="Age" />
 756       </type>
 757       <type>
 758         <code value="Annotation" />
 759       </type>
 760       <type>
 761         <code value="Attachment" />
 762       </type>
 763       <type>
 764         <code value="CodeableConcept" />
 765       </type>
 766       <type>
 767         <code value="Coding" />
 768       </type>
 769       <type>
 770         <code value="ContactPoint" />
 771       </type>
 772       <type>
 773         <code value="Count" />
 774       </type>
 775       <type>
 776         <code value="Distance" />
 777       </type>
 778       <type>
 779         <code value="Duration" />
 780       </type>
 781       <type>
 782         <code value="HumanName" />
 783       </type>
 784       <type>
 785         <code value="Identifier" />
 786       </type>
 787       <type>
 788         <code value="Money" />
 789       </type>
 790       <type>
 791         <code value="Period" />
 792       </type>
 793       <type>
 794         <code value="Quantity" />
 795       </type>
 796       <type>
 797         <code value="Range" />
 798       </type>
 799       <type>
 800         <code value="Ratio" />
 801       </type>
 802       <type>
 803         <code value="Reference" />
 804       </type>
 805       <type>
 806         <code value="SampledData" />
 807       </type>
 808       <type>
 809         <code value="Signature" />
 810       </type>
 811       <type>
 812         <code value="Timing" />
 813       </type>
 814       <type>
 815         <code value="ContactDetail" />
 816       </type>
 817       <type>
 818         <code value="Contributor" />
 819       </type>
 820       <type>
 821         <code value="DataRequirement" />
 822       </type>
 823       <type>
 824         <code value="Expression" />
 825       </type>
 826       <type>
 827         <code value="ParameterDefinition" />
 828       </type>
 829       <type>
 830         <code value="RelatedArtifact" />
 831       </type>
 832       <type>
 833         <code value="TriggerDefinition" />
 834       </type>
 835       <type>
 836         <code value="UsageContext" />
 837       </type>
 838       <type>
 839         <code value="Dosage" />
 840       </type>
 841       <type>
 842         <code value="Meta" />
 843       </type>
 844       <constraint>
 845         <key value="ele-1" />
 846         <severity value="error" />
 847         <human value="All FHIR elements must have a @value or children" />
 848         <expression value="hasValue() or (children().count() > id.count())" />
 849         <xpath value="@value|f:*|h:div" />
 850         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 851       </constraint>
 852       <isModifier value="false" />
 853       <isSummary value="false" />
 854       <mapping>
 855         <identity value="rim" />
 856         <map value="N/A" />
 857       </mapping>
 858     </element>
 859   </snapshot>
 860   <differential>
 861     <element id="Extension">
 862       <path value="Extension" />
 863       <short value="This patient is known to be an animal (non-human)" />
 864       <definition value="This patient is known to be an animal." />
 865       <comment value="The absence of the animal extension does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required.  (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal)." />
 866       <min value="0" />
 867       <max value="1" />
 868       <mapping>
 869         <identity value="rim" />
 870         <map value="player[classCode=ANM]" />
 871       </mapping>
 872     </element>
 873     <element id="Extension.extension:species">
 874       <path value="Extension.extension" />
 875       <sliceName value="species" />
 876       <short value="The animal species.  E.g. Dog, Cow." />
 877       <definition value="Identifies the high level taxonomic categorization of the kind of animal." />
 878       <comment value="If the patient is non-human, at least a species SHALL be specified. Species SHALL be a widely recognized taxonomic classification.  It might or might not be Linnaean taxonomy and might or might not be at the level of species. If the level is finer than species--such as a breed code--the code system used SHALL allow inference of the species.  (The common example is that the word "Hereford" does not allow inference of the species Bos taurus, because there is a Hereford pig breed, but the SNOMED CT code for "Hereford Cattle Breed" does.)." />
 879       <min value="1" />
 880       <max value="1" />
 881       <type>
 882         <code value="Extension" />
 883       </type>
 884       <mapping>
 885         <identity value="v2" />
 886         <map value="PID-35" />
 887       </mapping>
 888       <mapping>
 889         <identity value="rim" />
 890         <map value="code" />
 891       </mapping>
 892     </element>
 893     <element id="Extension.extension:species.extension">
 894       <path value="Extension.extension.extension" />
 895       <max value="0" />
 896     </element>
 897     <element id="Extension.extension:species.url">
 898       <path value="Extension.extension.url" />
 899       <type>
 900         <code value="uri" />
 901       </type>
 902       <fixedUri value="species" />
 903     </element>
 904     <element id="Extension.extension:species.value[x]">
 905       <path value="Extension.extension.value[x]" />
 906       <min value="1" />
 907       <type>
 908         <code value="CodeableConcept" />
 909       </type>
 910       <binding>
 911         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
 912           <valueString value="AnimalSpecies" />
 913         </extension>
 914         <strength value="example" />
 915         <description value="The species of an animal." />
 916         <valueSet value="http://hl7.org/fhir/ValueSet/animal-species" />
 917       </binding>
 918     </element>
 919     <element id="Extension.extension:breed">
 920       <path value="Extension.extension" />
 921       <sliceName value="breed" />
 922       <short value="The animal breed.  E.g. Poodle, Angus." />
 923       <definition value="Identifies the detailed categorization of the kind of animal." />
 924       <comment value="Breed MAY be used to provide further taxonomic or non-taxonomic classification.  It may involve local or proprietary designation--such as commercial strain--and/or additional information such as production type." />
 925       <min value="0" />
 926       <max value="1" />
 927       <type>
 928         <code value="Extension" />
 929       </type>
 930       <mapping>
 931         <identity value="v2" />
 932         <map value="PID-35 (where more detailed value is present)" />
 933       </mapping>
 934       <mapping>
 935         <identity value="rim" />
 936         <map value="playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code" />
 937       </mapping>
 938     </element>
 939     <element id="Extension.extension:breed.extension">
 940       <path value="Extension.extension.extension" />
 941       <max value="0" />
 942     </element>
 943     <element id="Extension.extension:breed.url">
 944       <path value="Extension.extension.url" />
 945       <type>
 946         <code value="uri" />
 947       </type>
 948       <fixedUri value="breed" />
 949     </element>
 950     <element id="Extension.extension:breed.value[x]">
 951       <path value="Extension.extension.value[x]" />
 952       <min value="1" />
 953       <type>
 954         <code value="CodeableConcept" />
 955       </type>
 956       <binding>
 957         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
 958           <valueString value="AnimalBreed" />
 959         </extension>
 960         <strength value="example" />
 961         <description value="The breed of an animal." />
 962         <valueSet value="http://hl7.org/fhir/ValueSet/animal-breeds" />
 963       </binding>
 964     </element>
 965     <element id="Extension.extension:genderStatus">
 966       <path value="Extension.extension" />
 967       <sliceName value="genderStatus" />
 968       <short value="The status of the animal's reproductive parts.  E.g. Neutered, Intact." />
 969       <definition value="Indicates the current state of the animal's reproductive organs." />
 970       <min value="0" />
 971       <max value="1" />
 972       <type>
 973         <code value="Extension" />
 974       </type>
 975       <mapping>
 976         <identity value="v2" />
 977         <map value="N/A" />
 978       </mapping>
 979       <mapping>
 980         <identity value="rim" />
 981         <map value="genderStatusCode" />
 982       </mapping>
 983     </element>
 984     <element id="Extension.extension:genderStatus.extension">
 985       <path value="Extension.extension.extension" />
 986       <max value="0" />
 987     </element>
 988     <element id="Extension.extension:genderStatus.url">
 989       <path value="Extension.extension.url" />
 990       <type>
 991         <code value="uri" />
 992       </type>
 993       <fixedUri value="genderStatus" />
 994     </element>
 995     <element id="Extension.extension:genderStatus.value[x]">
 996       <path value="Extension.extension.value[x]" />
 997       <min value="1" />
 998       <type>
 999         <code value="CodeableConcept" />
1000       </type>
1001       <binding>
1002         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
1003           <valueString value="AnimalGenderStatus" />
1004         </extension>
1005         <strength value="example" />
1006         <description value="The state of the animal's reproductive organs." />
1007         <valueSet value="http://hl7.org/fhir/ValueSet/animal-genderstatus" />
1008       </binding>
1009     </element>
1010     <element id="Extension.url">
1011       <path value="Extension.url" />
1012       <fixedUri value="http://hl7.org/fhir/StructureDefinition/patient-animal" />
1013     </element>
1014     <element id="Extension.value[x]">
1015       <path value="Extension.value[x]" />
1016       <min value="0" />
1017       <max value="0" />
1018     </element>
1019   </differential>
1020 </StructureDefinition>