Start with broken test for #1996
This commit is contained in:
parent
296ed963cc
commit
6a5b96d05f
|
@ -1,18 +1,7 @@
|
|||
{
|
||||
"version": "1",
|
||||
"candidateSearchParams": [
|
||||
{
|
||||
"resourceType": "Patient",
|
||||
"searchParams": ["birthdate"]
|
||||
},
|
||||
{
|
||||
"resourceType": "*",
|
||||
"searchParams": ["identifier"]
|
||||
},
|
||||
{
|
||||
"resourceType": "Patient",
|
||||
"searchParams": ["general-practitioner"]
|
||||
}
|
||||
|
||||
],
|
||||
"candidateFilterSearchParams": [
|
||||
{
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue