<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Second-Logical-Model" />
  <url value="http://LogicalModelTesting.org/StructureDefinition/Second-Logical-Model" />
  <version value="1.0.0" />
  <name value="SecondLogicalModel" />
  <title value="Second Logical Model" />
  <status value="draft" />
  <description value="Logisches Modell (LogicalModel) zur Testung von Vererbung" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://LogicalModelTesting.org/StructureDefinition/Second-Logical-Model" />
  <baseDefinition value="http://LogicalModelTesting.org/StructureDefinition/First-Logical-Model" />
  <derivation value="specialization" />
  <snapshot>
    <element id="Second-Logical-Model">
      <path value="Second-Logical-Model" />
      <short value="Second Logical Model" />
      <definition value="Logisches Modell (LogicalModel) zur Testung von Vererbung" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Second-Logical-Model" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Second-Logical-Model.id">
      <path value="Second-Logical-Model.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Second-Logical-Model.extension">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Second-Logical-Model.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <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." />
      <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." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Second-Logical-Model.name">
      <path value="Second-Logical-Model.name" />
      <short value="Name" />
      <definition value="Dieses Element beschreibt den Namen eines Lebewesens" />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="First-Logical-Model.name" />
        <min value="1" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
    <element id="Second-Logical-Model.name.firstname">
      <path value="Second-Logical-Model.name.firstname" />
      <short value="Vorname" />
      <definition value="Dieses Element stellt den Vornamen eines Lebewesens dar" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="First-Logical-Model.name.firstname" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="string" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
    <element id="Second-Logical-Model.name.nickname">
      <path value="Second-Logical-Model.name.nickname" />
      <short value="Spitzname" />
      <definition value="Dieses Element stellt den Spitznamen eines Lebewesens dar" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="First-Logical-Model.name.nickname" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="string" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
    <element id="Second-Logical-Model.name.lastname">
      <path value="Second-Logical-Model.name.lastname" />
      <short value="Nachname" />
      <definition value="Dieses Element stellt den Nachnamen eines Lebewesens dar" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="First-Logical-Model.name.lastname" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="string" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
    <element id="Second-Logical-Model.species">
      <path value="Second-Logical-Model.species" />
      <label value="Spezies" />
      <short value="Spezies" />
      <definition value="Dieses Element stellt die Spezies eines Lebewesens dar" />
      <alias value="Gattung" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="First-Logical-Model.species" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
    <element id="Second-Logical-Model.identifikator">
      <path value="Second-Logical-Model.identifikator" />
      <short value="ID" />
      <definition value="Eine ID" />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="First-Logical-Model.identifikator" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
    <element id="Second-Logical-Model.mechanismus">
      <path value="Second-Logical-Model.mechanismus" />
      <short value="Mechanismus" />
      <definition value="In diesem Element wird angegeben, ob es sich um eine Allergie oder eine Unverträglichkeit handelt." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="First-Logical-Model.mechanismus" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/allergy-intolerance-type" />
      </binding>
    </element>
    <element id="Second-Logical-Model.address">
      <path value="Second-Logical-Model.address" />
      <short value="Adresse" />
      <definition value="Dieses Element enthält die Postanschrift des Lebewesens" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Second-Logical-Model.address" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Address" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
    <element id="Second-Logical-Model.weitererEintrag">
      <path value="Second-Logical-Model.weitererEintrag" />
      <short value="Test" />
      <definition value="Test" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Second-Logical-Model.weitererEintrag" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="http://LogicalModelTesting.org/StructureDefinition/First-Logical-Model" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
    <element id="Second-Logical-Model.weitererEintrag.someNewElement">
      <path value="Second-Logical-Model.weitererEintrag.someNewElement" />
      <short value="Hier wird etwas hinzugefügt" />
      <definition value="Hier wird etwas hinzugefügt" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Second-Logical-Model.weitererEintrag.someNewElement" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
    </element>
  </snapshot>
  <differential>
    <element id="Second-Logical-Model">
      <path value="Second-Logical-Model" />
      <short value="Second Logical Model" />
      <definition value="Logisches Modell (LogicalModel) zur Testung von Vererbung" />
    </element>
    <element id="Second-Logical-Model.identifikator">
      <path value="Second-Logical-Model.identifikator" />
      <max value="0" />
    </element>
    <element id="Second-Logical-Model.address">
      <path value="Second-Logical-Model.address" />
      <short value="Adresse" />
      <definition value="Dieses Element enthält die Postanschrift des Lebewesens" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Address" />
      </type>
    </element>
    <element id="Second-Logical-Model.weitererEintrag">
      <path value="Second-Logical-Model.weitererEintrag" />
      <short value="Test" />
      <definition value="Test" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="http://LogicalModelTesting.org/StructureDefinition/First-Logical-Model" />
      </type>
    </element>
    <element id="Second-Logical-Model.weitererEintrag.someNewElement">
      <path value="Second-Logical-Model.weitererEintrag.someNewElement" />
      <short value="Hier wird etwas hinzugefügt" />
      <definition value="Hier wird etwas hinzugefügt" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
  </differential>
</StructureDefinition>