
dev.dsf.fhir.dao.jdbc.ResearchStudyDaoJdbc Maven / Gradle / Ivy
package dev.dsf.fhir.dao.jdbc;
import java.util.List;
import javax.sql.DataSource;
import org.hl7.fhir.r4.model.ResearchStudy;
import ca.uhn.fhir.context.FhirContext;
import dev.dsf.fhir.dao.ResearchStudyDao;
import dev.dsf.fhir.search.filter.ResearchStudyIdentityFilter;
import dev.dsf.fhir.search.parameters.ResearchStudyEnrollment;
import dev.dsf.fhir.search.parameters.ResearchStudyIdentifier;
import dev.dsf.fhir.search.parameters.ResearchStudyPrincipalInvestigator;
public class ResearchStudyDaoJdbc extends AbstractResourceDaoJdbc implements ResearchStudyDao
{
public ResearchStudyDaoJdbc(DataSource dataSource, DataSource permanentDeleteDataSource, FhirContext fhirContext)
{
super(dataSource, permanentDeleteDataSource, fhirContext, ResearchStudy.class, "research_studies",
"research_study", "research_study_id", ResearchStudyIdentityFilter::new,
List.of(factory(ResearchStudyEnrollment.PARAMETER_NAME, ResearchStudyEnrollment::new,
ResearchStudyEnrollment.getNameModifiers(), ResearchStudyEnrollment::new,
ResearchStudyEnrollment.getIncludeParameterValues()),
factory(ResearchStudyIdentifier.PARAMETER_NAME, ResearchStudyIdentifier::new,
ResearchStudyIdentifier.getNameModifiers()),
factory(ResearchStudyPrincipalInvestigator.PARAMETER_NAME,
ResearchStudyPrincipalInvestigator::new,
ResearchStudyPrincipalInvestigator.getNameModifiers(),
ResearchStudyPrincipalInvestigator::new,
ResearchStudyPrincipalInvestigator.getIncludeParameterValues())),
List.of());
}
@Override
protected ResearchStudy copy(ResearchStudy resource)
{
return resource.copy();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy