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
FieldsModifier and TypeFieldDescriptionprotected static Stringprotected static String[]static Stringstatic Stringstatic Stringprotected static intstatic StringFields inherited from class ca.uhn.fhir.rest.server.interceptor.validation.address.impl.BaseRestfulValidator
PROPERTY_SERVICE_ENDPOINT, PROPERTY_SERVICE_KEYFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected StringgetRequestBody(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 Stringprotected AddressValidationResultgetValidationResult(AddressValidationResult theResult, com.fasterxml.jackson.databind.JsonNode response, ca.uhn.fhir.context.FhirContext theFhirContext)protected booleanprotected booleanisValid(com.fasterxml.jackson.databind.JsonNode theMatch)protected Stringstandardize(String theText)protected org.hl7.fhir.instance.model.api.IBasetoAddress(com.fasterxml.jackson.databind.JsonNode match, ca.uhn.fhir.context.FhirContext theFhirContext)protected com.fasterxml.jackson.databind.node.ObjectNodetoJsonNode(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:
- Constant Field Values
-
LOQUATE_AQI
- See Also:
- Constant Field Values
-
LOQUATE_AVC
- See Also:
- Constant Field Values
-
LOQUATE_GEO_ACCURACY
- See Also:
- Constant Field Values
-
DUPLICATE_FIELDS_IN_ADDRESS_LINES
-
DEFAULT_DATA_CLEANSE_ENDPOINT
- See Also:
- Constant Field Values
-
MAX_ADDRESS_LINES
- See Also:
- Constant Field Values
-
-
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:
getValidationResultin 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:
getResponseEntityin classBaseRestfulValidator- Throws:
Exception
-
getApiEndpoint
- Overrides:
getApiEndpointin 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
-