test_class.declarator: validator
test_class.modifier: private
test_class.original_string: private RetrieveImagingDocumentSetRequestValidator validator;
test_class.type: RetrieveImagingDocumentSetRequestValidator
test_class.var_name: validator
test_class.declarator: request
test_class.modifier: private
test_class.original_string: private RetrieveImagingDocumentSet request;
test_class.type: RetrieveImagingDocumentSet
test_class.var_name: request
test_class.declarator: transformer
test_class.modifier: private
test_class.original_string: private RetrieveImagingDocumentSetRequestTransformer transformer;
test_class.type: RetrieveImagingDocumentSetRequestTransformer
test_class.var_name: transformer
test_class.declarator: profile
test_class.modifier: private
test_class.original_string: private ValidationProfile profile;
test_class.type: ValidationProfile
test_class.var_name: profile
test_class.file: commons/ihe/xds/src/test/java/org/openehealth/ipf/commons/ihe/xds/core/validate/requests/RetrieveImagingDocumentSetRequestValidatorTest.java
test_class.identifier: RetrieveImagingDocumentSetRequestValidatorTest
test_case.body: @Test
      public void testGoodCase() throws XDSMetaDataException {
          validator.validate(transformer.toEbXML(request), profile);
      }
test_case.class_method_signature: RetrieveImagingDocumentSetRequestValidatorTest.testGoodCase()
test_case.full_signature: @Test public void testGoodCase()
test_case.identifier: testGoodCase
test_case.invocations: validate toEbXML
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGoodCase()
focal_class.declarator: hcValidator = new HomeCommunityIdValidator(true)
focal_class.modifier: private final
focal_class.original_string: private final HomeCommunityIdValidator hcValidator = new HomeCommunityIdValidator(true);
focal_class.type: HomeCommunityIdValidator
focal_class.var_name: hcValidator
focal_class.file: commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/validate/requests/RetrieveImagingDocumentSetRequestValidator.java
focal_class.identifier: RetrieveImagingDocumentSetRequestValidator
focal_class.interfaces: implements Validator<EbXMLRetrieveImagingDocumentSetRequest, ValidationProfile>
focal_class.class_method_signature: RetrieveImagingDocumentSetRequestValidator.validate(EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile)
focal_class.full_signature: @Override public void validate(EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile)
focal_class.return: void
focal_class.signature: void validate(EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile)
focal_method.body: @Override
      public void validate(EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile) {
          notNull(request, "request cannot be null");
          
          for (RetrieveStudy retrieveStudy : request.getRetrieveStudies()) {
              String studyInstanceUID = retrieveStudy.getStudyInstanceUID();
              metaDataAssert(studyInstanceUID != null && !studyInstanceUID.isEmpty(), STUDY_INSTANCE_UID_MUST_BE_SPECIFIED);
  
              for (RetrieveSeries retrieveSeries : retrieveStudy.getRetrieveSerieses()) {
                  String seriesInstanceUID = retrieveSeries.getSeriesInstanceUID();
                  metaDataAssert(seriesInstanceUID != null && !seriesInstanceUID.isEmpty(), SERIES_INSTANCE_UID_MUST_BE_SPECIFIED);
  
                  for (RetrieveDocument document : retrieveSeries.getDocuments()) {
                      //todo: Eliminate this duplicate code from DocumentRequest?
                      String repoId = document.getRepositoryUniqueId();
                      metaDataAssert(repoId != null && !repoId.isEmpty(), REPO_ID_MUST_BE_SPECIFIED);
  
                      String docId = document.getDocumentUniqueId();
                      metaDataAssert(docId != null && !docId.isEmpty(), DOC_ID_MUST_BE_SPECIFIED);
  
                      if (profile.getProfile() == ValidationProfile.InteractionProfile.XCA) {
                          hcValidator.validate(document.getHomeCommunityId());
                      }
                  }
              }
          }
      }
focal_method.class_method_signature: RetrieveImagingDocumentSetRequestValidator.validate(EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile)
focal_method.full_signature: @Override public void validate(EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile)
focal_method.identifier: validate
focal_method.invocations: notNull getRetrieveStudies getStudyInstanceUID metaDataAssert isEmpty getRetrieveSerieses getSeriesInstanceUID metaDataAssert isEmpty getDocuments getRepositoryUniqueId metaDataAssert isEmpty getDocumentUniqueId metaDataAssert isEmpty getProfile validate getHomeCommunityId
focal_method.modifiers: @Override public
focal_method.parameters: (EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile)
focal_method.return: void
focal_method.signature: void validate(EbXMLRetrieveImagingDocumentSetRequest request, ValidationProfile profile)