1 2 3 4 5 6 7 8 9 10 11 12 13 14
package xyz.driver.pdsuidomain.entities import java.util.UUID final case class PatientOrderId(id: UUID) { override def toString: String = id.toString } object PatientOrderId { def apply() = new PatientOrderId(UUID.randomUUID()) def apply(x: String) = new PatientOrderId(UUID.fromString(x)) }