Class LoquateAddressValidator
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.validation.address.impl.BaseRestfulValidator
ca.uhn.fhir.rest.server.interceptor.validation.address.impl.LoquateAddressValidator
- All Implemented Interfaces:
IAddressValidator
For more details regarind the API refer to
https://www.loqate.com/resources/support/cleanse-api/international-batch-cleanse/
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String[]
static final String
static final String
static final String
protected static final int
static final String
Fields inherited from class ca.uhn.fhir.rest.server.interceptor.validation.address.impl.BaseRestfulValidator
PROPERTY_SERVICE_ENDPOINT, PROPERTY_SERVICE_KEY
Fields inherited from interface ca.uhn.fhir.rest.server.interceptor.validation.address.IAddressValidator
ADDRESS_GEO_ACCURACY_EXTENSION_URL, ADDRESS_QUALITY_EXTENSION_URL, ADDRESS_VALIDATION_EXTENSION_URL, ADDRESS_VERIFICATION_CODE_EXTENSION_URL, FHIR_GEOCODE_EXTENSION_URL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
getRequestBody
(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBase... theAddresses) protected org.springframework.http.ResponseEntity
<String> getResponseEntity
(org.hl7.fhir.instance.model.api.IBase theAddress, ca.uhn.fhir.context.FhirContext theFhirContext) protected String
protected AddressValidationResult
getValidationResult
(AddressValidationResult theResult, com.fasterxml.jackson.databind.JsonNode response, ca.uhn.fhir.context.FhirContext theFhirContext) protected boolean
protected boolean
isValid
(com.fasterxml.jackson.databind.JsonNode theMatch) protected String
standardize
(String theText) protected org.hl7.fhir.instance.model.api.IBase
toAddress
(com.fasterxml.jackson.databind.JsonNode match, ca.uhn.fhir.context.FhirContext theFhirContext) protected com.fasterxml.jackson.databind.node.ObjectNode
toJsonNode
(org.hl7.fhir.instance.model.api.IBase theAddress, com.fasterxml.jackson.databind.ObjectMapper mapper, ca.uhn.fhir.context.FhirContext theFhirContext) Methods inherited from class ca.uhn.fhir.rest.server.interceptor.validation.address.impl.BaseRestfulValidator
getApiKey, getProperties, isError, isValid, newTemplate, setProperties
-
Field Details
-
PROPERTY_GEOCODE
- See Also:
-
LOQUATE_AQI
- See Also:
-
LOQUATE_AVC
- See Also:
-
LOQUATE_GEO_ACCURACY
- See Also:
-
DUPLICATE_FIELDS_IN_ADDRESS_LINES
-
DEFAULT_DATA_CLEANSE_ENDPOINT
- See Also:
-
MAX_ADDRESS_LINES
- See Also:
-
-
Constructor Details
-
LoquateAddressValidator
-
-
Method Details
-
getValidationResult
protected AddressValidationResult getValidationResult(AddressValidationResult theResult, com.fasterxml.jackson.databind.JsonNode response, ca.uhn.fhir.context.FhirContext theFhirContext) - Specified by:
getValidationResult
in classBaseRestfulValidator
-
isValid
-
toAddress
protected org.hl7.fhir.instance.model.api.IBase toAddress(com.fasterxml.jackson.databind.JsonNode match, ca.uhn.fhir.context.FhirContext theFhirContext) -
getString
-
standardize
-
getResponseEntity
protected org.springframework.http.ResponseEntity<String> getResponseEntity(org.hl7.fhir.instance.model.api.IBase theAddress, ca.uhn.fhir.context.FhirContext theFhirContext) throws Exception - Specified by:
getResponseEntity
in classBaseRestfulValidator
- Throws:
Exception
-
getApiEndpoint
- Overrides:
getApiEndpoint
in classBaseRestfulValidator
-
getRequestBody
protected String getRequestBody(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBase... theAddresses) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
toJsonNode
protected com.fasterxml.jackson.databind.node.ObjectNode toJsonNode(org.hl7.fhir.instance.model.api.IBase theAddress, com.fasterxml.jackson.databind.ObjectMapper mapper, ca.uhn.fhir.context.FhirContext theFhirContext) -
isGeocodeEnabled
-