diff --git a/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidator.java b/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidator.java index 359ba3ccb28..563cf2af0b7 100644 --- a/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidator.java +++ b/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidator.java @@ -106,7 +106,7 @@ public class LoquateAddressValidator extends BaseRestfulValidator { protected boolean isValid(JsonNode theMatch) { String addressQualityIndex = getField(theMatch, LOQUATE_AQI); - return "A".equals(addressQualityIndex) || "B".equals(addressQualityIndex); + return "A".equals(addressQualityIndex) || "B".equals(addressQualityIndex) || "C".equals(addressQualityIndex); } private String getField(JsonNode theMatch, String theFieldName) { diff --git a/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidatorTest.java b/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidatorTest.java index d371977b3a5..e09a37178af 100644 --- a/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidatorTest.java +++ b/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidatorTest.java @@ -63,7 +63,7 @@ class LoquateAddressValidatorTest { " },\n" + " \"Matches\": [\n" + " {\n" + - " \"AQI\": \"C\",\n" + + " \"AQI\": \"D\",\n" + " \"Address\": \"\"\n" + " }\n" + " ]\n" +