Start with broken test for #1996

This commit is contained in:
Tadgh 2020-07-23 15:52:12 -07:00
parent 296ed963cc
commit 6a5b96d05f
2 changed files with 11 additions and 12 deletions

View File

@ -1,18 +1,7 @@
{
"version": "1",
"candidateSearchParams": [
{
"resourceType": "Patient",
"searchParams": ["birthdate"]
},
{
"resourceType": "*",
"searchParams": ["identifier"]
},
{
"resourceType": "Patient",
"searchParams": ["general-practitioner"]
}
],
"candidateFilterSearchParams": [
{

View File

@ -76,6 +76,16 @@ public class EmpiRuleValidatorTest extends BaseR4Test {
}
}
@Test
public void testMatcherEmptyCandidateSearchParams() throws IOException {
try {
setEmpiRuleJson("bad-rules-missing-candidate-search-params.json");
fail();
} catch (ConfigurationException e) {
assertThat(e.getMessage(), startsWith("Error in candidateSearchParams: Patient does not have a search parameter called 'foo'"));
}
}
@Test
public void testMatcherBadFilter() throws IOException {
try {