aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/PatientOrderId.scala
blob: 50a97ceb2bdb4bad897678b55939149b0e422293 (plain) (blame)
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))
}