mirror of
https://github.com/pcvolkmer/onco-analytics-monitor.git
synced 2025-04-19 19:16: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
|
@JvmInline
|
||||||
value class ConditionId(val value: String) {
|
value class ConditionId(val value: String) {
|
||||||
companion object {
|
companion object {
|
||||||
fun generateConditionId(patientId: String, tumorId: String): ConditionId {
|
fun fromPatientIdAndTumorId(patientId: String, tumorId: String): ConditionId {
|
||||||
return ConditionId(DigestUtils.sha256Hex("$patientId-$tumorId"))
|
return ConditionId(DigestUtils.sha256Hex("$patientId-$tumorId"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user