Skip to content

Commit

Permalink
Merge pull request #121 from onc-healthit/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ssavarala authored Aug 30, 2021
2 parents d87033a + 1389dc7 commit 08d26a9
Show file tree
Hide file tree
Showing 8 changed files with 3,388 additions and 6 deletions.
10 changes: 10 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Security Policy

## Supported Versions
latest release only

## Review Interval
4 months

## Reporting a Vulnerability
Use google groups to report.https://groups.google.com/g/edge-test-tool
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.sitenv</groupId>
<artifactId>referenceccdavalidator</artifactId>
<version>1.0.58</version>
<version>1.0.59-SNAPSHOT</version>
<packaging>war</packaging>
<name>Reference CCDA Validator</name>

Expand All @@ -15,9 +15,9 @@
<code.validator.version>latestVersion</code.validator.version>
<content.validator.version>latestVersion</content.validator.version>
<!-- MDHT properties -->
<mdht.models.version>3.0.0.20210720</mdht.models.version>
<mdht.models.version>3.0.0.20210824</mdht.models.version>
<ds4pcontent.version>${mdht.models.version}</ds4pcontent.version>
<mdht.plugins.version>3.0.0.202107200500</mdht.plugins.version>
<mdht.plugins.version>3.0.0.202108241912</mdht.plugins.version>
</properties>

<repositories>
Expand Down Expand Up @@ -265,7 +265,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>4.2.4.RELEASE</version>
<version>4.3.30.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
import org.sitenv.vocabularies.constants.VocabularyConstants.SeverityLevel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.context.annotation.RequestScope;
import org.xml.sax.SAXException;


/**
* Created by Brian on 8/15/2016.
*/
@RequestScope
@Component
public class ReferenceContentValidator extends BaseCCDAValidator implements CCDAValidator {
private ContentValidatorService contentValidatorService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@
import org.sitenv.vocabularies.constants.VocabularyConstants;
import org.sitenv.vocabularies.constants.VocabularyConstants.SeverityLevel;
import org.springframework.stereotype.Component;
import org.springframework.web.context.annotation.RequestScope;
import org.xml.sax.SAXException;

@RequestScope
@Component
public class ReferenceCCDAValidator extends BaseCCDAValidator implements CCDAValidator {
private static Logger logger = Logger.getLogger(ReferenceCCDAValidator.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.context.annotation.RequestScope;
import org.xml.sax.SAXException;

@RequestScope
@Component
public class VocabularyCCDAValidator extends BaseCCDAValidator implements CCDAValidator {
@Value("${referenceccda.configFile}")
Expand Down
25 changes: 23 additions & 2 deletions src/test/java/org/sitenv/referenceccda/test/tests/RefCCDATest.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class RefCCDATest extends ReferenceValidationTester implements Validation
SUB_SOCIAL_HISTORY_WITH_BIRTH_SEX_OBS_TEMPLATE_SITE_3094 = 15,
SUB_PROCEDURES_WITH_DEVICE_IDENTIFIER_OBSERVATION_SITE_3218 = 16,
SUB_PROCEDURES_WITH_DEVICE_IDENTIFIER_OBSERVATION_BAD_VALUE_ROOT_SITE_3218 = 17,
DS4P_REFRAIN_OBSERVATION = 18;
DS4P_REFRAIN_OBSERVATION = 18,IVL_REAL_EXAMPLE=19,IVL_REAL_EXAMPLE2=20;


// Feel free to add docs to the end but don't alter existing data
Expand All @@ -91,7 +91,10 @@ public class RefCCDATest extends ReferenceValidationTester implements Validation
RefCCDATest.class.getResource("/SocialHistoryWithBirthSexObsTemplateSite3094.xml").toURI(),
RefCCDATest.class.getResource("/subProceduresWithDeviceIdentifierObservationSite3218.xml").toURI(),
RefCCDATest.class.getResource("/subProceduresWithDeviceIdentifierObservationBadValueRootSite3218.xml").toURI(),
RefCCDATest.class.getResource("/DS4PRefrainTest.xml").toURI()
RefCCDATest.class.getResource("/DS4PRefrainTest.xml").toURI(),
RefCCDATest.class.getResource("/ivl_real_example.xml").toURI(),
RefCCDATest.class.getResource("/ivl_real_example2.xml").toURI()

};
} catch (URISyntaxException e) {
if (LOG_RESULTS_TO_CONSOLE)
Expand Down Expand Up @@ -747,6 +750,24 @@ public void ds4pRefrainTerminologyUpdate_ExpectPassTest() {
failIfIssueIsInResults(results, ValidationResultType.CCDA_MDHT_CONFORMANCE_ERROR, ds4PRefrainError);
}


@Test
public void ivlrealUpdateTest() {
List<RefCCDAValidationResult> results = getMDHTErrorsFromResults(validateDocumentAndReturnResults(
convertCCDAFileToString(CCDA_FILES[IVL_REAL_EXAMPLE]), CCDATypes.CCDAR21_OR_CCDAR11));
printResultsBasedOnFlags(results);
failIfIssueIsInResults(results, ValidationResultType.CCDA_MDHT_CONFORMANCE_ERROR, "CONF:1198-7143");
}


@Test
public void ivlrealUpdate2Test() {
List<RefCCDAValidationResult> results = getMDHTErrorsFromResults(validateDocumentAndReturnResults(
convertCCDAFileToString(CCDA_FILES[IVL_REAL_EXAMPLE2]), CCDATypes.CCDAR21_OR_CCDAR11));
printResultsBasedOnFlags(results);
passIfIssueIsInResults(results, ValidationResultType.CCDA_MDHT_CONFORMANCE_ERROR, "CONF:1198-7143");
}

/*
* Advanced Directive choice test
*/
Expand Down
Loading

0 comments on commit 08d26a9

Please sign in to comment.