Class ConformanceProfileValidators
java.lang.Object
org.openehealth.ipf.platform.camel.hl7.validation.ConformanceProfileValidators
Factory for manually triggering a validation of a message depending on a profile or a defined
IHETransaction. In general this should not be necessary when the HapiContext of the parsed
message contains a ValidationContext that includes the corresponding
GazelleProfileRule
instance as one of its message rules. In that case it would be sufficient to use
HL7v2.validatingProcessor()
or
HL7.messageConforms()
.- Author:
- Boris Stanojevic, Christian Ohr
-
Method Summary
Modifier and TypeMethodDescriptionstatic Processor
validatingProcessor
(org.openehealth.ipf.gazelle.validation.profile.ConformanceProfile conformanceProfile) Returns a validating Camel processor for a dedicated profilestatic Processor
validatingProcessor
(org.openehealth.ipf.gazelle.validation.profile.HL7v2Transactions iheTransaction) Returns a validating Camel processor for a message in a IHE transaction.
-
Method Details
-
validatingProcessor
public static Processor validatingProcessor(org.openehealth.ipf.gazelle.validation.profile.ConformanceProfile conformanceProfile) Returns a validating Camel processor for a dedicated profile- Parameters:
conformanceProfile
- HL7 conformance profile- Returns:
- a validating Camel processor for a dedicated profile
-
validatingProcessor
public static Processor validatingProcessor(org.openehealth.ipf.gazelle.validation.profile.HL7v2Transactions iheTransaction) Returns a validating Camel processor for a message in a IHE transaction. The actual profile to be used is guessed from the message's event type and version- Parameters:
iheTransaction
- IHE transaction- Returns:
- a validating Camel processor for a message in a IHE transaction
-