mirror of
https://github.com/pcvolkmer/onco-analytics-monitor.git
synced 2025-07-01 16:32:53 +00:00
refactor: rename method
This commit is contained in:
@ -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"))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user