Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
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.model.Trn02AndMedRecNum;
import gov.va.med.domain.ars.Ereposdata;
@Repository
public interface EreposdataRepository extends JpaRepository<Ereposdata, Long> {
@Query("select p from aereposdata p where p.claimKey = :claimKey")
Ereposdata getByClaimKey(@Param("claimKey") String claimKey);
@Query("SELECT tn.trn02 as trn02, rid.ref02 as medicalrecordnumber FROM atracenumber tn, areferenceidentification rid WHERE tn.attachmentId = rid.attachmentId AND rid.ref01 = 'EA' AND tn.attachmentId = :attachmentId")
List<Trn02AndMedRecNum> findArsInfoByAttachmentId(@Param("attachmentId") int attachmentId);
@Query("SELECT rid.ref02 as medicalrecordnumber FROM areferenceidentification rid WHERE rid.ref01 = 'EA' AND rid.attachmentId = :attachmentId")
List<Trn02AndMedRecNum> findArsRefInfoByAttachmentId(@Param("attachmentId") int attachmentId);
}