Summary Table

Categories Total Count
PII 0
URL 0
DNS 1
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

/**
*
*/
package gov.va.med.ars.dao.ars;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import gov.va.med.ars.util.IPdiRelatedInfo;
import gov.va.med.domain.ars.ClaimattachmentsView;

/**
* @author
DNS
*
*/
@Repository
public interface IPdiRelatedInfoRepository extends JpaRepository<ClaimattachmentsView, Long> {

@Query("select cv.attachmentPath as attachmentPath, cv.attachIdLx as attachmentId, cv.reportCode as reportCode, rt.definition as reportCodeDescription from aclaimAttachmentsView cv inner join aarsreporttype rt on cv.reportCode = rt.code where cv.externalClaimId = :pdiNumber")
List<IPdiRelatedInfo> getPdiDetails(@Param("pdiNumber") String pdiNumber);
}