Skip to content

Commit

Permalink
use integer for source/target versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nr23730 committed Mar 11, 2024
1 parent c0b97a4 commit 077aa1f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/uksh/medic/etl/OpenEhrObds.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ public static void main(String[] args) throws IOException {
// ToDo: Replace with Kafka consumer

// File f = new File("file_1705482004-clean.xml");
File f = new File("file_1705482019-clean.xml");
// File f = new File("file_1705482019-clean.xml");
// File f = new File("file_1705482057-clean.xml");
// File f = new File("syst.xml");
File f = new File("tod.xml");

Map<String, Object> m = new LinkedHashMap<>();
walkXmlTree(xmlMapper.readValue(f, new TypeReference<LinkedHashMap<String, Object>>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public class RelationConvert {
@JsonProperty("srcProfileCode")
private String sourceProfileCode;
@JsonProperty("srcProfileVersion")
private String sourceProfileVersion;
private Integer sourceProfileVersion;
@JsonProperty("trgProfileCode")
private String targetProfileCode;
@JsonProperty("trgProfileVersion")
private String targetProfileVersion;
private Integer targetProfileVersion;
@JsonProperty("values")
private Map<String, Object> values;
@JsonProperty("logMessages")
Expand All @@ -32,11 +32,11 @@ public void setSourceProfileCode(String sourceProfileCode) {
this.sourceProfileCode = sourceProfileCode;
}

public String getSourceProfileVersion() {
public Integer getSourceProfileVersion() {
return sourceProfileVersion;
}

public void setSourceProfileVersion(String sourceProfileVersion) {
public void setSourceProfileVersion(Integer sourceProfileVersion) {
this.sourceProfileVersion = sourceProfileVersion;
}

Expand All @@ -48,11 +48,11 @@ public void setTargetProfileCode(String targetProfileCode) {
this.targetProfileCode = targetProfileCode;
}

public String getTargetProfileVersion() {
public Integer getTargetProfileVersion() {
return targetProfileVersion;
}

public void setTargetProfileVersion(String targetProfileVersion) {
public void setTargetProfileVersion(Integer targetProfileVersion) {
this.targetProfileVersion = targetProfileVersion;
}

Expand Down
12 changes: 6 additions & 6 deletions src/main/java/de/uksh/medic/etl/settings/Mapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
public class Mapping {

private String source;
private String sourceVersion;
private Integer sourceVersion;
private String target;
private String targetVersion;
private Integer targetVersion;
private boolean split;
private String templateId;

Expand All @@ -20,11 +20,11 @@ public void setSource(String source) {
this.source = source;
}

public String getSourceVersion() {
public Integer getSourceVersion() {
return sourceVersion;
}

public void setSourceVersion(String sourceVersion) {
public void setSourceVersion(Integer sourceVersion) {
this.sourceVersion = sourceVersion;
}

Expand All @@ -36,11 +36,11 @@ public void setTarget(String target) {
this.target = target;
}

public String getTargetVersion() {
public Integer getTargetVersion() {
return targetVersion;
}

public void setTargetVersion(String targetVersion) {
public void setTargetVersion(Integer targetVersion) {
this.targetVersion = targetVersion;
}

Expand Down

0 comments on commit 077aa1f

Please sign in to comment.