Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
* chore: delete unused kmehr-model package
* chore: move from dicsv4 to dicsv5
* chore: remove unused code & feature
* chore: remove unused code & feature
* fix: 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-resources-plugin
  • Loading branch information
jy95 authored Sep 5, 2023
1 parent 75bff6b commit 07f1314
Show file tree
Hide file tree
Showing 75 changed files with 33 additions and 1,264 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.imec.ivlab.core.kmehr.model.util.TransactionUtil;
import org.imec.ivlab.core.model.evsref.EVSREF;
import org.imec.ivlab.core.model.upload.KmehrWithReference;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import java.util.Collections;
Expand All @@ -24,20 +23,14 @@
import be.fgov.ehealth.standards.kmehr.schema.v1.TransactionType;
//import lombok.extern.log4j.Log4j2;

@Test
//@Log4j2
public class DiaryNoteEVSRefExtractorTest extends TestCase {

private EVSREF evsref = new EVSREF("TESTREF");
private KmehrWithReference kmehr;

@BeforeMethod
private void init() {
this.kmehr = initKmehr();
}

@Test
public void addEvsRefToNewTextWithLayoutIfNoTextFieldExists() {
KmehrWithReference kmehr = initKmehr();
new DiaryNoteEVSRefExtractor().putEvsReference(kmehr, evsref);

List<TextWithLayoutType> textWithLayoutTypes = TransactionUtil.getTextWithLayout(kmehr.getIdentifiableTransaction());
Expand All @@ -48,6 +41,7 @@ public void addEvsRefToNewTextWithLayoutIfNoTextFieldExists() {

@Test
public void addEvsRefToExistingTextIfExists() {
KmehrWithReference kmehr = initKmehr();
TextType textType = new TextType();
textType.setValue("existing content");
kmehr.getIdentifiableTransaction().getText().add(textType);
Expand Down
18 changes: 0 additions & 18 deletions datagenerator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,10 @@
<artifactId>pdfbox</artifactId>
</dependency>

<dependency>
<groupId>org.imec.ivlab.ehealth.sam</groupId>
<artifactId>sam-model-3.3</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>


</dependencies>

<build>

<resources>

<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>sam/*</exclude>
</excludes>
</resource>

</resources>

<plugins>

<plugin>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 07f1314

Please sign in to comment.