Class ConformanceProfileValidators
- java.lang.Object
-
- org.openehealth.ipf.platform.camel.hl7.validation.ConformanceProfileValidators
-
public final class ConformanceProfileValidators extends Object
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 correspondingGazelleProfileRule
instance as one of its message rules. In that case it would be sufficient to useHL7v2.validatingProcessor()
orHL7.messageConforms()
.- Author:
- Boris Stanojevic, Christian Ohr
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.camel.Processor
validatingProcessor(org.openehealth.ipf.gazelle.validation.profile.ConformanceProfile conformanceProfile)
Returns a validating Camel processor for a dedicated profilestatic org.apache.camel.Processor
validatingProcessor(org.openehealth.ipf.gazelle.validation.profile.HL7v2Transactions iheTransaction)
Returns a validating Camel processor for a message in a IHE transaction.
-
-
-
Method Detail
-
validatingProcessor
public static org.apache.camel.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 org.apache.camel.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
-
-