Skip to content

Commit

Permalink
#440: fixed validation of XDS response attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
unixoid committed Feb 12, 2024
1 parent 2a7378f commit 1523a31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package org.openehealth.ipf.commons.ihe.xds.core.validate.responses;

import org.openehealth.ipf.commons.core.modules.api.Validator;
import org.openehealth.ipf.commons.ihe.xds.XdsIntegrationProfile;
import org.openehealth.ipf.commons.ihe.xds.XCA;
import org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLRegistryResponse;
import org.openehealth.ipf.commons.ihe.xds.core.validate.HomeCommunityIdValidator;
import org.openehealth.ipf.commons.ihe.xds.core.validate.ValidationProfile;
Expand Down Expand Up @@ -46,7 +46,7 @@ public void validate(EbXMLRegistryResponse response, ValidationProfile profile)
metaDataAssert(registryError.getErrorCode() != null, INVALID_ERROR_CODE_IN_RESPONSE);
metaDataAssert(registryError.getSeverity() != null, INVALID_SEVERITY_IN_RESPONSE);

if (profile.getInteractionProfile().getHomeCommunityIdOptionality() != XdsIntegrationProfile.HomeCommunityIdOptionality.NEVER) {
if ((profile.getInteractionId() == XCA.Interactions.ITI_38) || (profile.getInteractionId() == XCA.Interactions.ITI_39)) {
hcValidator.validate(registryError.getLocation());
}
}
Expand Down

0 comments on commit 1523a31

Please sign in to comment.