Skip to content

Commit dd0602c

Browse files
committed
Fixed two minor issues in N25 dictionary
1 parent e9f7ea8 commit dd0602c

12 files changed

+15
-12
lines changed

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ plugins {
1414
id 'java-library'
1515
id 'checkstyle'
1616
id 'jacoco'
17-
id 'com.github.spotbugs' version '6.0.19'
17+
id 'com.github.spotbugs' version '6.0.20'
1818
id 'maven-publish'
1919
id 'signing'
2020
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0' // publish to Maven Central
2121
id 'com.github.ben-manes.versions' version '0.51.0' // check for out-of-date dependencies (run 'dependencyUpdates' manually)
22-
id 'org.sonatype.gradle.plugins.scan' version '2.8.2' // scan for vulnerabilities
22+
id 'org.sonatype.gradle.plugins.scan' version '2.8.3' // scan for vulnerabilities
2323
id "org.sonarqube" version "5.1.0.4882"// sonarQube analysis
2424
}
2525

@@ -37,10 +37,11 @@ dependencies {
3737
api 'com.thoughtworks.xstream:xstream:1.4.20'
3838

3939
implementation 'commons-io:commons-io:2.16.1'
40-
implementation 'org.apache.commons:commons-lang3:3.14.0'
40+
implementation 'org.apache.commons:commons-lang3:3.16.0'
4141

4242
testImplementation 'junit:junit:4.13.2'
4343
testImplementation 'com.imsweb:data-generator:1.32'
44+
testImplementation 'com.imsweb:layout:5.6'
4445
testImplementation 'com.opencsv:opencsv:5.9'
4546
}
4647

docs/naaccr-xml-items-250.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ censusTractCertainty2020,369,"Census Tract Certainty 2020",,1,"A,M,C,I",Tumor,di
9595
chromosome16qLossHeterozygosity,1189,"Chromosome 16q: Loss of Heterozygosity",,1,"A,M,C,I",Tumor,numeric
9696
chromosome19qLossHeterozygosity,3802,"Chromosome 19q: Loss of Heterozygosity (LOH)",,1,"A,M,C,I",Tumor,digits
9797
chromosome1pLossHeterozygosity,3801,"Chromosome 1p: Loss of Heterozygosity (LOH)",,1,"A,M,C,I",Tumor,digits
98-
chromosome1qStatus,1190,"Chromosome 1q Status",,3,"A,M,C,I",Tumor,numeric
98+
chromosome1qStatus,1190,"Chromosome 1q Status",,1,"A,M,C,I",Tumor,numeric
9999
chromosome3Status,3821,"Chromosome 3 Status",,1,"A,M,C,I",Tumor,digits
100100
chromosome8qStatus,3822,"Chromosome 8q Status",,1,"A,M,C,I",Tumor,text
101101
circumferentialResectionMargin,3823,"Circumferential Resection Margin (CRM)",,4,"A,M,C,I",Tumor,text
@@ -208,9 +208,9 @@ derivedEod2018N,815,"Derived EOD 2018 N",,15,"A,M,C,I",Tumor,text
208208
derivedEod2018StageGroup,818,"Derived EOD 2018 Stage Group",,15,"A,M,C,I",Tumor,text
209209
derivedEod2018T,785,"Derived EOD 2018 T",,15,"A,M,C,I",Tumor,text
210210
derivedPediatricM,1144,"Derived Pediatric M",,3,"A,M,C,I",Tumor,text
211+
derivedPediatricN,1143,"Derived Pediatric N",,3,"A,M,C,I",Tumor,text
211212
derivedPediatricStageGroup,1145,"Derived Pediatric Stage Group",,3,"A,M,C,I",Tumor,text
212213
derivedPediatricT,1142,"Derived Pediatric T",,3,"A,M,C,I",Tumor,text
213-
derivedPediatricTN,1143,"Derived Pediatric N",,3,"A,M,C,I",Tumor,text
214214
derivedRaiStage,3955,"Derived Rai Stage",,1,"A,M,C,I",Tumor,text
215215
derivedSeerClinStgGrp,3610,"Derived SEER Clin Stg Grp",,5,"A,M,C,I",Tumor,text
216216
derivedSeerCmbMSrc,3626,"Derived SEER Cmb M Src",,1,"A,M,C,I",Tumor,digits
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13.3 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!-- Changelog
2+
- 08/23/2024: changed length of chromosome1qStatus from 3 to 1 and changed derivedPediatricTN to derivedPediatricN
23
- 05/28/2024: changed length and type of pdl1.
34
- 05/20/2024: Initial version.
45
-->

src/main/resources/naaccr-dictionary-250.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Visit https://www.naaccr.org/ for more information about the NAACCR XML Data Exchange Standard. -->
66

77
<!-- Changelog
8+
- 08/23/2024: changed length of chromosome1qStatus from 3 to 1 and changed derivedPediatricTN to derivedPediatricN
89
- 05/28/2024: changed length and type of pdl1.
910
- 05/20/2024: Initial version.
1011
-->
@@ -650,7 +651,7 @@
650651
<ItemDef naaccrId="chromosome1qStatus"
651652
naaccrNum="1190"
652653
naaccrName="Chromosome 1q Status"
653-
length="3"
654+
length="1"
654655
recordTypes="A,M,C,I"
655656
parentXmlElement="Tumor"
656657
dataType="numeric"/>
@@ -1471,7 +1472,7 @@
14711472
length="3"
14721473
recordTypes="A,M,C,I"
14731474
parentXmlElement="Tumor"/>
1474-
<ItemDef naaccrId="derivedPediatricTN"
1475+
<ItemDef naaccrId="derivedPediatricN"
14751476
naaccrNum="1143"
14761477
naaccrName="Derived Pediatric N"
14771478
length="3"

src/test/java/lab/CreateSamplesZipFile.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@
2222
public class CreateSamplesZipFile {
2323

2424
public static void main(String[] args) throws IOException {
25-
try (ZipOutputStream zos = new ZipOutputStream(Files.newOutputStream(Paths.get("docs/samples/naaccr-xml-samples-v240.zip").toFile().toPath()))) {
25+
try (ZipOutputStream zos = new ZipOutputStream(Files.newOutputStream(Paths.get("docs/samples/naaccr-xml-samples-v250.zip").toFile().toPath()))) {
2626
Path dir = Paths.get("src/test/resources/data/validity");
2727
Files.newDirectoryStream(dir.resolve("valid")).forEach(path -> addToZip(path.toFile(), zos));
2828
Files.newDirectoryStream(dir.resolve("invalid")).forEach(path -> addToZip(path.toFile(), zos));
2929
Files.newDirectoryStream(dir.resolve("invalid_relaxed")).forEach(path -> addToZip(path.toFile(), zos));
3030
Files.newDirectoryStream(dir.resolve("invalid_library_only")).forEach(path -> addToZip(path.toFile(), zos));
3131
}
3232

33-
NaaccrXmlDataGenerator absGenerator = new NaaccrXmlDataGenerator(LayoutFactory.LAYOUT_ID_NAACCR_XML_24_INCIDENCE);
33+
NaaccrXmlDataGenerator absGenerator = new NaaccrXmlDataGenerator(LayoutFactory.LAYOUT_ID_NAACCR_XML_25_INCIDENCE);
3434
IntStream.of(10, 100, 1000).forEach(i -> {
3535
try {
36-
absGenerator.generateFile(Paths.get("docs/samples/naaccr-xml-sample-v240-incidence-" + i + ".xml.gz").toFile(), i);
36+
absGenerator.generateFile(Paths.get("docs/samples/naaccr-xml-sample-v250-incidence-" + i + ".xml.gz").toFile(), i);
3737
}
3838
catch (IOException e) {
3939
throw new IllegalStateException(e);
4040
}
4141
});
4242

43-
NaaccrXmlDataGenerator incGenerator = new NaaccrXmlDataGenerator(LayoutFactory.LAYOUT_ID_NAACCR_XML_24_ABSTRACT);
43+
NaaccrXmlDataGenerator incGenerator = new NaaccrXmlDataGenerator(LayoutFactory.LAYOUT_ID_NAACCR_XML_25_ABSTRACT);
4444
IntStream.of(10, 100, 1000).forEach(i -> {
4545
try {
46-
incGenerator.generateFile(Paths.get("docs/samples/naaccr-xml-sample-v240-abstract-" + i + ".xml.gz").toFile(), i);
46+
incGenerator.generateFile(Paths.get("docs/samples/naaccr-xml-sample-v250-abstract-" + i + ".xml.gz").toFile(), i);
4747
}
4848
catch (IOException e) {
4949
throw new IllegalStateException(e);

0 commit comments

Comments
 (0)