Interface ValidationService
public interface ValidationService
-
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.validation.ValidationResultvalidate(org.hl7.fhir.r4.model.Resource resource) Validates against profiles self reported by the given resource.ca.uhn.fhir.validation.ValidationResultValidates the given resource against the given profileUrl.org.hl7.fhir.r4.model.BundlevalidateEntries(org.hl7.fhir.r4.model.Bundle bundle) Validates all bundle entries with aentry.resourceagainst self reported profiles.
-
Method Details
-
validate
ca.uhn.fhir.validation.ValidationResult validate(org.hl7.fhir.r4.model.Resource resource) Validates against profiles self reported by the given resource.- Parameters:
resource- notnull- Returns:
- validation results
-
validate
ca.uhn.fhir.validation.ValidationResult validate(org.hl7.fhir.r4.model.Resource resource, String profileUrl) Validates the given resource against the given profileUrl.- Parameters:
resource- notnullprofileUrl- notnull, not blank- Returns:
- validation results
-
validateEntries
org.hl7.fhir.r4.model.Bundle validateEntries(org.hl7.fhir.r4.model.Bundle bundle) Validates all bundle entries with aentry.resourceagainst self reported profiles. Validation result is added as aOperationOutcomeresource to the correspondingentry.response.outcomeproperty.- Parameters:
bundle- notnull- Returns:
- given bundle with added
entry.response.outcomeproperties
-