From dae587912d6bb431942f3debb19a9055ab518d82 Mon Sep 17 00:00:00 2001 From: Tadgh Date: Mon, 16 Nov 2020 18:50:14 -0500 Subject: [PATCH] Update test json files --- .../test/resources/bad-rules-bad-filter.json | 1 + .../src/test/resources/bad-rules-bad-path.json | 1 + .../resources/bad-rules-bad-searchparam.json | 1 + .../src/test/resources/bad-rules-bad-url.json | 1 + .../resources/bad-rules-duplicate-name.json | 1 + .../resources/bad-rules-missing-mdm-types.json | 17 +++++++++++++++++ .../test/resources/bad-rules-missing-name.json | 1 + .../resources/bad-rules-missing-threshold.json | 1 + 8 files changed, 24 insertions(+) create mode 100644 hapi-fhir-server-empi/src/test/resources/bad-rules-missing-mdm-types.json diff --git a/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-filter.json b/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-filter.json index 671c8c1164b..d1b90d976f8 100644 --- a/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-filter.json +++ b/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-filter.json @@ -1,4 +1,5 @@ { + "mdmTypes": ["Patient", "Practitioner", "Medication"], "version": "1", "candidateSearchParams" : [], "candidateFilterSearchParams" : [{ diff --git a/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-path.json b/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-path.json index fc473b216ee..47fcd5cf248 100644 --- a/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-path.json +++ b/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-path.json @@ -1,5 +1,6 @@ { "version": "1", + "mdmTypes": ["Patient", "Practitioner", "Medication"], "candidateSearchParams" : [], "candidateFilterSearchParams" : [], "matchFields" : [ { diff --git a/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-searchparam.json b/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-searchparam.json index 8585752dcbf..0ed945ede6e 100644 --- a/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-searchparam.json +++ b/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-searchparam.json @@ -1,5 +1,6 @@ { "version": "1", + "mdmTypes": ["Patient", "Practitioner", "Medication"], "candidateSearchParams" : [{ "resourceType" : "Patient", "searchParams" : ["foo"] diff --git a/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-url.json b/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-url.json index d626556062d..dba341f6c83 100644 --- a/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-url.json +++ b/hapi-fhir-server-empi/src/test/resources/bad-rules-bad-url.json @@ -1,5 +1,6 @@ { "version": "1", + "mdmTypes": ["Patient", "Practitioner", "Medication"], "candidateSearchParams" : [], "candidateFilterSearchParams" : [], "matchFields" : [], diff --git a/hapi-fhir-server-empi/src/test/resources/bad-rules-duplicate-name.json b/hapi-fhir-server-empi/src/test/resources/bad-rules-duplicate-name.json index 5a6e1c0b3b3..80547f23988 100644 --- a/hapi-fhir-server-empi/src/test/resources/bad-rules-duplicate-name.json +++ b/hapi-fhir-server-empi/src/test/resources/bad-rules-duplicate-name.json @@ -1,5 +1,6 @@ { "version": "1", + "mdmTypes": ["Patient", "Practitioner", "Medication"], "candidateSearchParams": [], "candidateFilterSearchParams": [], "matchFields": [ diff --git a/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-mdm-types.json b/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-mdm-types.json new file mode 100644 index 00000000000..822b4303b40 --- /dev/null +++ b/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-mdm-types.json @@ -0,0 +1,17 @@ +{ + "version": "1", + "candidateSearchParams" : [], + "candidateFilterSearchParams" : [], + "matchFields" : [ { + "name" : "given-name", + "resourceType" : "*", + "resourcePath" : "name.given", + "similarity" : { + "algorithm": "COSINE", + "threshold": 0.8 + } + }], + "matchResultMap" : { + "given-name" : "POSSIBLE_MATCH" + } +} diff --git a/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-name.json b/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-name.json index a7806f1b25c..6f7e0e185d4 100644 --- a/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-name.json +++ b/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-name.json @@ -1,5 +1,6 @@ { "version": "1", + "mdmTypes": ["Patient", "Practitioner", "Medication"], "candidateSearchParams" : [], "candidateFilterSearchParams" : [], "matchFields" : [ { diff --git a/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-threshold.json b/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-threshold.json index 97af1f7dc25..7b47db64a7e 100644 --- a/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-threshold.json +++ b/hapi-fhir-server-empi/src/test/resources/bad-rules-missing-threshold.json @@ -1,5 +1,6 @@ { "version": "1", + "mdmTypes": ["Patient", "Practitioner", "Medication"], "candidateSearchParams" : [], "candidateFilterSearchParams" : [], "matchFields" : [ {