<StructureDefinition xmlns="http://hl7.org/fhir">
    <id value="identifier-kvid-10" />
    <url value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
    <version value="1.5.0" />
    <name value="IdentifierKvid10" />
    <title value="Identifier-Profil f&#252;r die 10-stellige Krankenversichertennummer" />
    <status value="active" />
    <experimental value="false" />
    <date value="2023-11-30" />
    <publisher value="HL7 Deutschland e.V. (Technisches Komitee FHIR)" />
    <contact>
        <telecom>
            <system value="url" />
            <value value="http://hl7.de/technische-komitees/fhir/" />
        </telecom>
    </contact>
    <description value="Identifier-Profil f&#252;r die 10-stellige Krankenversichertennummer" />
    <fhirVersion value="4.0.1" />
    <mapping>
        <identity value="v2" />
        <uri value="http://hl7.org/v2" />
        <name value="HL7 v2 Mapping" />
    </mapping>
    <mapping>
        <identity value="rim" />
        <uri value="http://hl7.org/v3" />
        <name value="RIM Mapping" />
    </mapping>
    <mapping>
        <identity value="servd" />
        <uri value="http://www.omg.org/spec/ServD/1.0/" />
        <name value="ServD" />
    </mapping>
    <kind value="complex-type" />
    <abstract value="false" />
    <type value="Identifier" />
    <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Identifier" />
    <derivation value="constraint" />
    <differential>
        <element id="Identifier.type">
            <path value="Identifier.type" />
            <patternCodeableConcept>
                <coding>
                    <system value="http://fhir.de/CodeSystem/identifier-type-de-basis" />
                    <code value="GKV" />
                </coding>
            </patternCodeableConcept>
            <constraint>
                <key value="kvid-2" />
                <severity value="warning" />
                <human value="Als Type sollte KVZ10 verwendet werden, die Codes GKV und PKV sind retired" />
                <expression value="($this.identifier.type.coding.exists(system=&#39;http://fhir.de/CodeSystem/identifier-type-de-basis&#39; and code=&#39;GKV&#39;) or $this.identifier.type.coding.exists(system=&#39;http://fhir.de/CodeSystem/identifier-type-de-basis&#39; and code=&#39;PKV&#39;)).not()" />
                <source value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
            </constraint>
            <binding>
                <strength value="extensible" />
                <valueSet value="http://fhir.de/ValueSet/identifier-type-de-basis" />
            </binding>
        </element>
        <element id="Identifier.system">
            <path value="Identifier.system" />
            <min value="1" />
            <fixedUri value="http://fhir.de/sid/gkv/kvid-10" />
        </element>
        <element id="Identifier.value">
            <path value="Identifier.value" />
            <min value="1" />
            <constraint>
                <key value="kvid-1" />
                <severity value="warning" />
                <human value="Der unver&#228;nderliche Teil der KVID muss 10-stellig sein und mit einem Gro&#223;buchstaben anfangen" />
                <expression value="matches(&#39;^[A-Z][0-9]{9}$&#39;)" />
                <source value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
            </constraint>
        </element>
    </differential>
</StructureDefinition>