generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 5
CNDE 2087: Preprocessing service treatment #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jayasudhasundaram
merged 13 commits into
main
from
CNDE-2087_Preprocessing_Service_Treatment
Mar 11, 2025
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d6b810b
CNDE-2087 pre processing service for treatment
jayasudhasundaram f35179f
removed commented test
jayasudhasundaram fb0a197
updated the junit for error scenario
jayasudhasundaram 47aaec0
Addressed the review comments
jayasudhasundaram 7f3c2d1
Merge branch 'main' into CNDE-2087_Preprocessing_Service_Treatment
jayasudhasundaram 4a71deb
updated as per review comments
jayasudhasundaram 009b7f0
Merge branch 'main' into CNDE-2087_Preprocessing_Service_Treatment
jayasudhasundaram dedd8b5
resolved the conficts
jayasudhasundaram 683222d
Merge branch 'main' into CNDE-2087_Preprocessing_Service_Treatment
jayasudhasundaram 743d55a
resolving conflicts
jayasudhasundaram 27e55d2
addressed pr comments
jayasudhasundaram 5e71332
Merge branch 'main' into CNDE-2087_Preprocessing_Service_Treatment
jayasudhasundaram 870f003
removed featureflag for treatment, resolved conflicts
jayasudhasundaram File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...e/src/main/java/gov/cdc/etldatapipeline/investigation/repository/TreatmentRepository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package gov.cdc.etldatapipeline.investigation.repository; | ||
|
||
import gov.cdc.etldatapipeline.investigation.repository.model.dto.Treatment; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
|
||
import java.util.Optional; | ||
|
||
public interface TreatmentRepository extends JpaRepository<Treatment, String> { | ||
|
||
@Query(nativeQuery = true, value = "exec sp_treatment_event :treatment_uid") | ||
Optional<Treatment> computeTreatment(@Param("treatment_uid") String treatmentUid); | ||
} |
92 changes: 92 additions & 0 deletions
92
...e/src/main/java/gov/cdc/etldatapipeline/investigation/repository/model/dto/Treatment.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package gov.cdc.etldatapipeline.investigation.repository.model.dto; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import lombok.Data; | ||
|
||
@Entity | ||
@Data | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class Treatment { | ||
@Id | ||
@Column(name = "treatment_uid") | ||
private String treatmentUid; | ||
|
||
@Column(name = "public_health_case_uid") | ||
private String publicHealthCaseUid; | ||
|
||
@Column(name = "organization_uid") | ||
private String organizationUid; | ||
|
||
@Column(name = "provider_uid") | ||
private String providerUid; | ||
|
||
@Column(name = "patient_treatment_uid") | ||
private String patientTreatmentUid; | ||
|
||
@Column(name = "treatment_name") | ||
private String treatmentName; | ||
|
||
@Column(name = "treatment_oid") | ||
private String treatmentOid; | ||
|
||
@Column(name = "treatment_comments") | ||
private String treatmentComments; | ||
|
||
@Column(name = "treatment_shared_ind") | ||
private String treatmentSharedInd; | ||
|
||
@Column(name = "cd") | ||
private String cd; | ||
|
||
@Column(name = "treatment_date") | ||
private String treatmentDate; | ||
|
||
@Column(name = "treatment_drug") | ||
private String treatmentDrug; | ||
|
||
@Column(name = "treatment_drug_name") | ||
private String treatmentDrugName; | ||
|
||
@Column(name = "treatment_dosage_strength") | ||
private String treatmentDosageStrength; | ||
|
||
@Column(name = "treatment_dosage_strength_unit") | ||
private String treatmentDosageStrengthUnit; | ||
|
||
@Column(name = "treatment_frequency") | ||
private String treatmentFrequency; | ||
|
||
@Column(name = "treatment_duration") | ||
private String treatmentDuration; | ||
|
||
@Column(name = "treatment_duration_unit") | ||
private String treatmentDurationUnit; | ||
|
||
@Column(name = "treatment_route") | ||
private String treatmentRoute; | ||
|
||
@Column(name = "local_id") | ||
private String localId; | ||
|
||
@Column(name = "record_status_cd") | ||
private String recordStatusCd; | ||
|
||
@Column(name = "add_time") | ||
private String addTime; | ||
|
||
@Column(name = "add_user_id") | ||
private String addUserId; | ||
|
||
@Column(name = "last_chg_time") | ||
private String lastChangeTime; | ||
|
||
@Column(name = "last_chg_user_id") | ||
private String lastChangeUserId; | ||
|
||
@Column(name = "version_ctrl_nbr") | ||
private String versionControlNumber; | ||
} |
17 changes: 17 additions & 0 deletions
17
...v/cdc/etldatapipeline/investigation/repository/model/reporting/TreatmentReportingKey.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package gov.cdc.etldatapipeline.investigation.repository.model.reporting; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.AllArgsConstructor; | ||
import lombok.NonNull; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class TreatmentReportingKey { | ||
@NonNull | ||
private String treatmentUid; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.