Skip to content

Commit 6269b6d

Browse files
committed
Added support for "section" and "default_value" in NAACCR field.
1 parent aa94742 commit 6269b6d

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
group = 'com.imsweb'
13-
version = '3.13'
13+
version = '3.14'
1414
description = 'Java client library for SEER*API'
1515

1616
println "Starting build using ${Jvm.current()}"
@@ -63,7 +63,7 @@ checkstyle {
6363
}
6464

6565
spotbugs {
66-
toolVersion = '3.1.11'
66+
toolVersion = '3.1.12'
6767
excludeFilter = file('config/spotbugs/spotbugs-exclude.xml')
6868
}
6969
wrapper {

src/main/java/com/imsweb/seerapi/client/naaccr/NaaccrField.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66
import java.util.List;
77

88
import com.fasterxml.jackson.annotation.JsonProperty;
9+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
910

11+
@JsonPropertyOrder({"item", "name", "section", "start_col", "end_col", "alignment", "padding_char", "default_value", "documentation", "subfield"})
1012
public class NaaccrField {
1113

1214
@JsonProperty("item")
1315
protected Integer _item;
1416
@JsonProperty("name")
1517
protected String _name;
18+
@JsonProperty("section")
19+
protected String _section;
1620
@JsonProperty("start_col")
1721
protected Integer _start;
1822
@JsonProperty("end_col")
@@ -21,6 +25,8 @@ public class NaaccrField {
2125
protected String _align;
2226
@JsonProperty("padding_char")
2327
protected String _padChar;
28+
@JsonProperty("default_value")
29+
protected String _defaultValue;
2430
@JsonProperty("documentation")
2531
protected String _documentation;
2632
@JsonProperty("subfield")
@@ -42,6 +48,14 @@ public void setName(String name) {
4248
_name = name;
4349
}
4450

51+
public String getSection() {
52+
return _section;
53+
}
54+
55+
public void setSection(String section) {
56+
_section = section;
57+
}
58+
4559
public Integer getStart() {
4660
return _start;
4761
}
@@ -74,6 +88,14 @@ public void setPadChar(String padChar) {
7488
_padChar = padChar;
7589
}
7690

91+
public String getDefaultValue() {
92+
return _defaultValue;
93+
}
94+
95+
public void setDefaultValue(String defaultValue) {
96+
_defaultValue = defaultValue;
97+
}
98+
7799
public String getDocumentation() {
78100
return _documentation;
79101
}

0 commit comments

Comments
 (0)