Interface IAddressValidator
- All Known Implementing Classes:
BaseRestfulValidator
,LoquateAddressValidator
public interface IAddressValidator
Contract for validating addresses.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
URL for an optional geocoding accuracy extensions that may be added to addresses.static final String
URL for an optional address quality extensions that may be added to addresses.static final String
URL for validation results that should be placed on addresses.static final String
URL for an optional address verification extensions that may be added to addresses.static final String
URL for an optional FHIR geolocation extension. -
Method Summary
Modifier and TypeMethodDescriptionisValid
(org.hl7.fhir.instance.model.api.IBase theAddress, ca.uhn.fhir.context.FhirContext theFhirContext) Validates address against a service
-
Field Details
-
ADDRESS_VALIDATION_EXTENSION_URL
URL for validation results that should be placed on addresses. Extension with boolean value "true" indicates there there is an address validation error.- See Also:
-
ADDRESS_QUALITY_EXTENSION_URL
URL for an optional address quality extensions that may be added to addresses.- See Also:
-
ADDRESS_GEO_ACCURACY_EXTENSION_URL
URL for an optional geocoding accuracy extensions that may be added to addresses.- See Also:
-
ADDRESS_VERIFICATION_CODE_EXTENSION_URL
URL for an optional address verification extensions that may be added to addresses.- See Also:
-
FHIR_GEOCODE_EXTENSION_URL
URL for an optional FHIR geolocation extension.- See Also:
-
-
Method Details
-
isValid
AddressValidationResult isValid(org.hl7.fhir.instance.model.api.IBase theAddress, ca.uhn.fhir.context.FhirContext theFhirContext) throws AddressValidationException Validates address against a service- Parameters:
theAddress
- Address to be validatedtheFhirContext
- Current FHIR context- Returns:
- Returns true in case address represents a valid
- Throws:
AddressValidationException
- AddressValidationException is thrown in case validation can not be completed successfully.
-