Ejemplo n.º 1
0
 @Test
 public void testNonInterdisciplinary() {
   Document a =
       (Document)
           importer.convert(
               MockVistaDataChunks.createFromJson(
                   getDocumentResourceAsStream("document.json"), mockPatient, "document"));
   assertThat(a.getIsInterdisciplinary(), is(equalTo("false")));
 }
Ejemplo n.º 2
0
 @Test
 public void testInterdisciplinaryChild() {
   Document a =
       (Document)
           importer.convert(
               MockVistaDataChunks.createFromJson(
                   getDocumentResourceAsStream("interdisc_doc_child.json"),
                   mockPatient,
                   "document"));
   assertThat(a.getInterdisciplinaryType(), is(equalTo("child")));
   assertThat(a.getIsInterdisciplinary(), is(equalTo("true")));
 }