Package de.gematik.bbriccs.fhir.de.value
Class KVNR
java.lang.Object
de.gematik.bbriccs.fhir.coding.SemanticValue<String,DeBasisProfilNamingSystem>
de.gematik.bbriccs.fhir.de.value.KVNR
- All Implemented Interfaces:
WithChecksum
Represents a Krankenversichertennummer (KVNR), a German health insurance number. This class
provides methods to generate, validate, and manipulate KVNRs.
KVNRs are used to uniquely identify individuals in the German health insurance system. They consist of a leading capital letter, followed by 8 digits, and a check number.
For more information, see Krankenversichertennummer.
This class supports both GKV (statutory health insurance) and PKV (private health insurance) systems, and provides methods to generate random KVNRs for both systems.
Example usage:
KVNR kvnr = KVNR.random();
boolean isValid = kvnr.isValid();
Note: This class implements the WithChecksum interface to provide checksum validation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KVNRorg.hl7.fhir.r4.model.Identifierorg.hl7.fhir.r4.model.IdentifierasIdentifier(boolean withCoding) org.hl7.fhir.r4.model.Identifierorg.hl7.fhir.r4.model.IdentifierasIdentifier(DeBasisProfilNamingSystem system, boolean withCoding) static KVNRorg.hl7.fhir.r4.model.ReferenceasReference(boolean withCoding) org.hl7.fhir.r4.model.ReferenceasReference(DeBasisProfilNamingSystem system, boolean withCoding) extractFrom(List<org.hl7.fhir.r4.model.Identifier> identifiers) extractFrom(org.hl7.fhir.r4.model.Identifier identifier) static <P extends org.hl7.fhir.r4.model.Resource>
KVNRextractFromOrThrow(Class<P> parent, List<org.hl7.fhir.r4.model.Identifier> identifiers) static <P extends org.hl7.fhir.r4.model.Resource>
KVNRextractFromOrThrow(Class<P> parent, org.hl7.fhir.r4.model.Identifier identifier) static KVNRfrom(DeBasisProfilNamingSystem namingSystem, String value) static KVNRstatic KVNRfrom(org.hl7.fhir.r4.model.Identifier identifier) intbooleanisGkv()booleanisPkv()booleanisValid()static KVNRrandom()static KVNRstatic KVNRstatic StringMethods inherited from class de.gematik.bbriccs.fhir.coding.SemanticValue
asReference, asReference, canEqual, equals, getSystem, getSystemUrl, getValue, hashCode, toString
-
Method Details
-
getInsuranceType
-
isGkv
public boolean isGkv() -
isPkv
public boolean isPkv() -
asReference
public org.hl7.fhir.r4.model.Reference asReference(boolean withCoding) -
asReference
public org.hl7.fhir.r4.model.Reference asReference(DeBasisProfilNamingSystem system, boolean withCoding) -
asIdentifier
public org.hl7.fhir.r4.model.Identifier asIdentifier()- Overrides:
asIdentifierin classSemanticValue<String,DeBasisProfilNamingSystem>
-
asIdentifier
public org.hl7.fhir.r4.model.Identifier asIdentifier(boolean withCoding) -
asIdentifier
- Overrides:
asIdentifierin classSemanticValue<String,DeBasisProfilNamingSystem>
-
asIdentifier
public org.hl7.fhir.r4.model.Identifier asIdentifier(DeBasisProfilNamingSystem system, boolean withCoding) -
isValid
public boolean isValid()- Specified by:
isValidin interfaceWithChecksum
-
getChecksum
public int getChecksum()- Specified by:
getChecksumin interfaceWithChecksum
-
random
-
randomPkv
-
randomGkv
-
asPkv
-
asGkv
-
from
-
from
-
from
-
extractFrom
-
extractFrom
-
extractFromOrThrow
-
extractFromOrThrow
-
randomStringValue
-