Skip to content

Commit

Permalink
add openslide mpp
Browse files Browse the repository at this point in the history
  • Loading branch information
abarkellumich committed Jun 28, 2021
1 parent ad5b924 commit 4180ccd
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/org/kpmp/slides/Metadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class Metadata {

// @Field("aperio")
private Aperio aperio;
private OpenSlide openslide;

public Aperio getAperio() {
return aperio;
Expand All @@ -16,5 +17,13 @@ public void setAperio(Aperio aperio) {
this.aperio = aperio;
}

public OpenSlide getOpenSlide() {
return openslide;
}

public void setOpenSlide(OpenSlide openslide) {
this.openslide = openslide;
}


}
27 changes: 27 additions & 0 deletions src/main/java/org/kpmp/slides/OpenSlide.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package org.kpmp.slides;

import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "patients")
public class OpenSlide {

private String mpp_x;
private String mpp_y;

public String getMpp_x() {
return mpp_x;
}

public void setMpp_x(String mpp_x) {
this.mpp_x = mpp_x;
}

public String getMpp_y() {
return mpp_y;
}

public void setMpp_y(String mpp_y) {
this.mpp_y = mpp_y;
}

}
9 changes: 9 additions & 0 deletions src/test/java/org/kpmp/slides/SlideTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,13 @@ public void testSetAperio() {

assertEquals(aperio, metadata.getAperio());
}

@Test
public void testSetOpenSlide() {
OpenSlide openSlide = new OpenSlide();
Metadata metadata = new Metadata();
metadata.setOpenSlide(openSlide);

assertEquals(openSlide, metadata.getOpenSlide());
}
}

0 comments on commit 4180ccd

Please sign in to comment.