Package de.gematik.bbriccs.fhir.de.value
Class PZN
java.lang.Object
de.gematik.bbriccs.fhir.coding.SemanticValue<String,DeBasisProfilCodeSystem>
de.gematik.bbriccs.fhir.de.value.PZN
- All Implemented Interfaces:
WithChecksum
-
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r4.model.CodingasCoding()org.hl7.fhir.r4.model.CodeableConceptWith this method, the PZN is wrapped up as a CodeableConcept with a randomly generated nameorg.hl7.fhir.r4.model.CodeableConceptasNamedCodeable(String drugName) With this method, the PZN is wrapped up as a CodeableConcept with the given drugNameprotected static intcalcChecksum(String pzn) static PZNstatic PZNfrom(org.hl7.fhir.r4.model.Coding coding) intbooleanisValid()static PZNrandom()Methods inherited from class de.gematik.bbriccs.fhir.coding.SemanticValue
asIdentifier, asIdentifier, asReference, asReference, canEqual, equals, getSystem, getSystemUrl, getValue, hashCode, toString
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceWithChecksum
-
getChecksum
public int getChecksum()- Specified by:
getChecksumin interfaceWithChecksum
-
asCoding
public org.hl7.fhir.r4.model.Coding asCoding() -
asNamedCodeable
With this method, the PZN is wrapped up as a CodeableConcept with the given drugName- Parameters:
drugName- corresponding to the PZN- Returns:
- CodeableConcept with PZN and drug drugName
-
asNamedCodeable
public org.hl7.fhir.r4.model.CodeableConcept asNamedCodeable()With this method, the PZN is wrapped up as a CodeableConcept with a randomly generated name- Returns:
- CodeableConcept with PZN and a random drug name
-
from
-
from
-
random
-
calcChecksum
-