Interface FhirTransactionValidator
- All Known Implementing Classes:
FhirTransactionValidator.Support
,IgBasedInstanceValidator
,Iti105Validator
,Iti65Validator
,MhdValidator
public interface FhirTransactionValidator
Instances of
FhirTransactionValidator
are used in order to have FHIR request and response validated.- Author:
- Christian Ohr
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validateRequest
(Object payload, Map<String, Object> parameters) Validates a FHIR request, throwing anUnprocessableEntityException
on validation failurevoid
validateResponse
(Object payload, Map<String, Object> parameters) Validates a FHIR response, throwing an appropriate subclass ofBaseServerResponseException
on validation failure
-
Field Details
-
NO_VALIDATION
-
-
Method Details
-
validateRequest
Validates a FHIR request, throwing anUnprocessableEntityException
on validation failure- Parameters:
payload
- request payloadparameters
- request parameters
-
validateResponse
Validates a FHIR response, throwing an appropriate subclass ofBaseServerResponseException
on validation failure- Parameters:
payload
- response payloadparameters
- response parameters
-