Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into CNDE-1403-post-process-lab100-lab101
Browse files Browse the repository at this point in the history
  • Loading branch information
sveselev committed Oct 30, 2024
2 parents 900d19a + 0ea1b11 commit 81bbe8a
Show file tree
Hide file tree
Showing 30 changed files with 2,154 additions and 393 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Build-and-deploy-reporting-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- rel-**
# Uncomment the following line only to test the build deploy from private branches.
# - CNDIT-*
# - CNDE-*
paths-ignore:
- "docker-compose.yml"
- "**.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import lombok.extern.slf4j.Slf4j;

import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;

@Slf4j
public class CustomJsonGeneratorImpl {
Expand Down Expand Up @@ -39,11 +41,11 @@ private static ArrayNode generateFieldsArray(Object model) {

String fieldName = getFieldName(field);

List<String> pKeys = Arrays.asList("public_health_case_uid", "act_uid", "observation_uid",
"organization_uid", "provider_uid", "patient_uid", "notification_uid");

fieldNode.put("type", getType(field.getType().getSimpleName().toLowerCase()));
fieldNode.put("optional", (!fieldName.equals("public_health_case_uid")
&& !fieldName.equals("observation_uid") && !fieldName.equals("organization_uid")
&& !fieldName.equals("patient_uid") && !fieldName.equals("provider_uid")
&& !fieldName.equals("notification_uid")));
fieldNode.put("optional", (!pKeys.contains(fieldName)));
fieldNode.put("field", fieldName);
fieldsArray.add(fieldNode);
}
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gov.cdc.etldatapipeline.investigation.repository.odse;
package gov.cdc.etldatapipeline.investigation.repository;

import gov.cdc.etldatapipeline.investigation.repository.model.dto.Investigation;
import org.springframework.data.jpa.repository.JpaRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gov.cdc.etldatapipeline.investigation.repository.odse;
package gov.cdc.etldatapipeline.investigation.repository;

import gov.cdc.etldatapipeline.investigation.repository.model.dto.NotificationUpdate;
import org.springframework.data.jpa.repository.JpaRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,18 +274,6 @@ public class Investigation {
@Column(name = "program_area_description")
private String programAreaDescription;

@Column(name = "notification_local_id")
private String notificationLocalId;

@Column(name = "notification_add_time")
private String notificationAddTime;

@Column(name = "notification_record_status_cd")
private String notificationRecordStatusCd;

@Column(name = "notification_last_chg_time")
private String notificationLastChgTime;

@Column(name = "case_management_uid")
private Long caseManagementUid;

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@Data
public class InvestigationTransformed {
private Long publicHealthCaseUid;
private Long investigatorId;
private Long physicianId;
private Long patientId;
Expand All @@ -13,4 +14,8 @@ public class InvestigationTransformed {
private String legacyCaseId;
private Long phcInvFormId;
private String rdbTableNameList;

public InvestigationTransformed(Long publicHealthCaseUid) {
this.publicHealthCaseUid = publicHealthCaseUid;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gov.cdc.etldatapipeline.investigation.repository.model.dto;
package gov.cdc.etldatapipeline.investigation.repository.model.reporting;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gov.cdc.etldatapipeline.investigation.repository.model.dto;
package gov.cdc.etldatapipeline.investigation.repository.model.reporting;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
Expand All @@ -9,8 +9,6 @@
@NoArgsConstructor
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class InvestigationConfirmationMethodKey {

private Long publicHealthCaseUid;
private String confirmationMethodCd;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package gov.cdc.etldatapipeline.investigation.repository.model.reporting;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class InvestigationConfirmationMethodUidKey {
private Long publicHealthCaseUid;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gov.cdc.etldatapipeline.investigation.repository.model.dto;
package gov.cdc.etldatapipeline.investigation.repository.model.reporting;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ public class InvestigationReporting {
private String coinfectionId;
private String contactInvTxt;
private String programAreaDescription;
private String notificationLocalId;
private String notificationAddTime;
private String notificationRecordStatusCd;
private String notificationLastChgTime;
private Long caseManagementUid;
private Long nacPageCaseUid;
private String nacLastChgTime;
Expand Down
Loading

0 comments on commit 81bbe8a

Please sign in to comment.