Skip to content

Commit

Permalink
DEV-767: Test we can convert a WIDE sample
Browse files Browse the repository at this point in the history
  • Loading branch information
kduyvesteyn committed Oct 31, 2019
1 parent eb6819a commit 12c6f56
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import io.kotlintest.specs.StringSpec
class PatientIdTest : StringSpec() {
private val cpctId = "CPCT01990001"
private val drupId = "DRUP01990002"
private val wideId = "WIDE01010003"

init {
"can create valid ids" {
PatientId(cpctId) shouldBe PatientId(IdType.CPCT, cpctId)
PatientId(drupId) shouldBe PatientId(IdType.DRUP, drupId)
PatientId(wideId) shouldBe PatientId(IdType.WIDE, wideId)
}

"ids that do not start with CPCT/DRUP are invalid" {
Expand Down

0 comments on commit 12c6f56

Please sign in to comment.