Interface ChEmedEprValidator
- All Superinterfaces:
HuskyFhirValidator
- All Known Implementing Classes:
ChEmedEprHapiValidator
A CH-EMED-EPR validator. It doesn't use the Schema or Schematron validators
but only the Instance one, which is built upon the CH-EMED-EPR IG.
This interface should be independent of the actual validation engine being used. Engine-specific implementations of this interface should cover their specifics.
- Author:
- Quentin Ligier
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated, for removal: This API element is subject to removal in a future version.Deprecated and marked for removal since Husky 3.2.2.validateDocumentBundle(InputStream documentStream, ChEmedEprDocument document) Validates a CH-EMED-EPR document Bundle AND performs a logic validation of the content as well.Methods inherited from interface org.projecthusky.fhir.validation.HuskyFhirValidator
getLog, validateDocumentBundle, validateResource
-
Field Details
-
packageResourceList
-
-
Method Details
-
validateDocumentBundle
ValidationResult validateDocumentBundle(InputStream documentStream, ChEmedEprDocument document) throws IOException Validates a CH-EMED-EPR document Bundle AND performs a logic validation of the content as well.- Parameters:
documentStream- The document Bundle to validate as a stream.document- The parsed CH EMED EPR document, for the logic validator.- Returns:
- the validation result.
- Throws:
IOException- Implementation Note:
- We need the parsed document for the logical validator and the serialized document for the instance validator, because HAPI's parser messes with resource IDs.
-
getProfileUrl
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated and marked for removal since Husky 3.2.2. Useinstead.invalid reference
EmedDocumentType#getProfileEpr()Returns the profile URL from the eMed type.- Parameters:
type- The eMed type.- Returns:
- the profile URL.
-