Class MhdValidator
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.FhirTransactionValidator.Support
org.openehealth.ipf.commons.ihe.fhir.support.BaseValidator
org.openehealth.ipf.commons.ihe.fhir.mhd.MhdValidator
- All Implemented Interfaces:
FhirTransactionValidator
Validator for MHD transactions.
- Since:
- 4.8
- Author:
- Christian Ohr
-
Nested Class Summary
Nested classes/interfaces inherited from interface FhirTransactionValidator
FhirTransactionValidator.Support -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringClasspath location of the MHD 4.2.3 implementation guide package.static final StringClasspath location of the MHD 4.2.4 implementation guide package.static final StringClasspath location of the implementation guide package this transaction validates against by default.Fields inherited from interface FhirTransactionValidator
NO_VALIDATION -
Constructor Summary
ConstructorsConstructorDescriptionMhdValidator(FhirContext fhirContext) Creates a validator for the default MHD version, i.e.MhdValidator(FhirContext fhirContext, MhdVersion version) Creates a validator for a specific MHD version. -
Method Summary
Methods inherited from class BaseValidator
createValidator, validateRequest, validateResponse
-
Field Details
-
MHD_423_PACKAGE_PATH
Classpath location of the MHD 4.2.3 implementation guide package.- See Also:
-
MHD_424_PACKAGE_PATH
Classpath location of the MHD 4.2.4 implementation guide package.- See Also:
-
MHD_PACKAGE_PATH
Classpath location of the implementation guide package this transaction validates against by default. Public so that the audit records of the transaction can be validated against the very same profiles, rather than against a second copy of the path.- See Also:
-
-
Constructor Details
-
MhdValidator
Creates a validator for the default MHD version, i.e.MhdVersion.v424. The resources built by the IPF model classes satisfy the 4.2.3 profiles as well, because they carry both theIdentifier.useof MHD 4.2.3 and theIdentifier.typeof MHD 4.2.4.- Parameters:
fhirContext- FhirContext
-
MhdValidator
Creates a validator for a specific MHD version.- Parameters:
fhirContext- FhirContextversion- MHD version to validate against, eitherMhdVersion.v423orMhdVersion.v424
-
-
Method Details
-
packagePathFor
- Parameters:
version- MHD version- Returns:
- classpath location of the implementation guide package of that MHD version
- Throws:
IllegalArgumentException- if no implementation guide package is shipped for that version
-