mirror of
https://github.com/pcvolkmer/onco-analytics-monitor.git
synced 2025-04-19 11:06:52 +00:00
refactor: rename method
This commit is contained in:
parent
dceff7a9da
commit
c4d5d609da
@ -5,7 +5,7 @@ import org.apache.commons.codec.digest.DigestUtils
|
||||
@JvmInline
|
||||
value class ConditionId(val value: String) {
|
||||
companion object {
|
||||
fun generateConditionId(patientId: String, tumorId: String): ConditionId {
|
||||
fun fromPatientIdAndTumorId(patientId: String, tumorId: String): ConditionId {
|
||||
return ConditionId(DigestUtils.sha256Hex("$patientId-$tumorId"))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user