From 6a0555d0d1cce062d8a5e2edb9cb00822b99bbac Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 3 Jan 2023 11:43:04 -0500 Subject: [PATCH 1/3] added particiapnTissueTypeSummary --- src/main/resources/knowledge_environment.graphqls | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/resources/knowledge_environment.graphqls b/src/main/resources/knowledge_environment.graphqls index 2d9afbb..c79309a 100755 --- a/src/main/resources/knowledge_environment.graphqls +++ b/src/main/resources/knowledge_environment.graphqls @@ -13,6 +13,13 @@ type Query { getDataTypeInformationByParticipant(redcapId: String!): ParticipantDataTypeSummary participantSummaryDataset(redcapId: String): ParticipantSummaryDataset participantClinicalDataset(redcapId: String): ParticipantSummaryDataset + participantTissueTypeSummary(akiCount: Long, ckdCount: Long, hrtCount: Long): ParticipantTissueTypeSummary +} + +type ParticipantTissueTypeSummary { + akiCount: Long + ckdCount: Long + hrtCount: Long } type ParticipantDataTypeSummary { From b4e3b2089e51849337e32988e87bdaaa8cc96062 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 3 Jan 2023 13:54:18 -0500 Subject: [PATCH 2/3] Change to Long --- .../kpmp/participant/ParticipantSummaryDatasetRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kpmp/participant/ParticipantSummaryDatasetRepository.java b/src/main/java/org/kpmp/participant/ParticipantSummaryDatasetRepository.java index 67dbf7b..6862bf6 100755 --- a/src/main/java/org/kpmp/participant/ParticipantSummaryDatasetRepository.java +++ b/src/main/java/org/kpmp/participant/ParticipantSummaryDatasetRepository.java @@ -7,7 +7,7 @@ import org.springframework.stereotype.Repository; @Repository -public interface ParticipantSummaryDatasetRepository extends CrudRepository { +public interface ParticipantSummaryDatasetRepository extends CrudRepository { @Cacheable("participantByRedcap") ParticipantSummaryDataset findByRedcapId(@Param("redcap_id") String redcapId); From 46e76abe2f29e3738d089614981730afde310afc Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 3 Jan 2023 14:38:06 -0500 Subject: [PATCH 3/3] Added graphql query --- src/main/resources/knowledge_environment.graphqls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/knowledge_environment.graphqls b/src/main/resources/knowledge_environment.graphqls index c79309a..6d12b12 100755 --- a/src/main/resources/knowledge_environment.graphqls +++ b/src/main/resources/knowledge_environment.graphqls @@ -13,7 +13,7 @@ type Query { getDataTypeInformationByParticipant(redcapId: String!): ParticipantDataTypeSummary participantSummaryDataset(redcapId: String): ParticipantSummaryDataset participantClinicalDataset(redcapId: String): ParticipantSummaryDataset - participantTissueTypeSummary(akiCount: Long, ckdCount: Long, hrtCount: Long): ParticipantTissueTypeSummary + getTissueTypeSummaryData: [ParticipantTissueTypeSummary] } type ParticipantTissueTypeSummary {