diff options
author | vlad <vlad@driver.xyz> | 2017-07-05 20:26:35 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-07-05 20:26:35 -0700 |
commit | 94bc5cbb482c8499e4d19bc149c65b1c0da0af97 (patch) | |
tree | 8b6f7bc7359c767cad8ae030196b028e3531fcba /src/main/scala/xyz/driver/pdsuidomain/formats | |
parent | 08312a9288c983c15dd380f0037c30db5d6c05a7 (diff) | |
download | rest-query-94bc5cbb482c8499e4d19bc149c65b1c0da0af97.tar.gz rest-query-94bc5cbb482c8499e4d19bc149c65b1c0da0af97.tar.bz2 rest-query-94bc5cbb482c8499e4d19bc149c65b1c0da0af97.zip |
Label names are not used by EVLS anymore (PDS-1225)
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportPatientLabel.scala | 4 |
1 files changed, 1 insertions, 3 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 3deccbf..1d5a171 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 @@ -4,19 +4,17 @@ import play.api.libs.functional.syntax._ import play.api.libs.json.{Format, JsPath} import xyz.driver.pdsuidomain.entities.export.patient.ExportPatientLabel -final case class ApiExportPatientLabel(id: String, labelName: String, evidences: List[ApiExportPatientLabelEvidence]) +final case class ApiExportPatientLabel(id: String, evidences: List[ApiExportPatientLabelEvidence]) object ApiExportPatientLabel { implicit val format: Format[ApiExportPatientLabel] = ( (JsPath \ "labelId").format[String] and - (JsPath \ "labelName").format[String] and (JsPath \ "evidence").format[List[ApiExportPatientLabelEvidence]] )(ApiExportPatientLabel.apply, unlift(ApiExportPatientLabel.unapply)) def fromDomain(label: ExportPatientLabel) = ApiExportPatientLabel( id = label.id.toString, - labelName = label.name, evidences = label.evidences.map(ApiExportPatientLabelEvidence.fromDomain) ) } |