diff options
author | Jakob Odersky <jakob@driver.xyz> | 2017-07-24 16:24:12 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2017-07-25 15:43:56 -0700 |
commit | e22a94604d6090d88801ec52c39f4eab500e80e1 (patch) | |
tree | e20332a9693a4c2d00d32cf67438ef4ba74f9356 /src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportPatientLabel.scala | |
parent | 23192326cfc82e726b03f23396f2587ca4f606f5 (diff) | |
download | rest-query-e22a94604d6090d88801ec52c39f4eab500e80e1.tar.gz rest-query-e22a94604d6090d88801ec52c39f4eab500e80e1.tar.bz2 rest-query-e22a94604d6090d88801ec52c39f4eab500e80e1.zip |
Implement ReP rest services
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportPatientLabel.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportPatientLabel.scala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportPatientLabel.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportPatientLabel.scala index 1d5a171..0ef1c68 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportPatientLabel.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportPatientLabel.scala @@ -2,9 +2,17 @@ package xyz.driver.pdsuidomain.formats.json.export import play.api.libs.functional.syntax._ import play.api.libs.json.{Format, JsPath} +import xyz.driver.pdsuicommon.domain.LongId import xyz.driver.pdsuidomain.entities.export.patient.ExportPatientLabel -final case class ApiExportPatientLabel(id: String, evidences: List[ApiExportPatientLabelEvidence]) +final case class ApiExportPatientLabel(id: String, evidences: List[ApiExportPatientLabelEvidence]) { + + def toDomain = ExportPatientLabel( + id = LongId(this.id.toLong), + evidences = this.evidences.map(_.toDomain) + ) + +} object ApiExportPatientLabel { |