-
Notifications
You must be signed in to change notification settings - Fork 33
M2 FHIR bundles creation #123
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
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
3814860
Abdm Facility fetch services changes
a2224b4
facility save after carecontext and patientcarecontextx update
1a28c2b
FacilityId save in mongo db and Variable declaration correction
fea418b
Mongo carecontext save query logic changes
9d30d46
ABHA Creation M1 V3 API changes
583594a
Abha V3 changes
8d206ef
resolved merge conflicts
4c76193
removed unused code
helenKaryamsetty c07d839
v3- verify auth by abdm API changes
d26eeda
Merge branch 'PSMRI:develop' into abdmV3
helenKaryamsetty 5e93901
resolved merge conflicts
e669df1
fix pulled latest develop
7a5c0d4
feat: Abdm M2 V3 changes
43683a2
feat: mongo query change fetch for linktoken
8ead599
Merge branch 'abdmV3' into abdmV3
helenKaryamsetty c1c5d38
fix: link carecontext authorization error
497b3ff
Merge branch 'PSMRI:abdmV3' into abdmV3
helenKaryamsetty d748156
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
811aef7
Merge branch 'PSMRI:abdmV3' into abdmV3
helenKaryamsetty 945d874
feat: hiTypes addition
c1c96f4
feat: version change for testing
d267c17
fix: minor change for empty response
49c97fa
fix: resolved merge conflicts
6d5298f
Simplify queries in CareContextRepo interface
helenKaryamsetty 23b4a20
fix: corrected response format
db670fc
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
5d6dd44
fix: minor logic change for care context linking
1d9835a
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
765d260
small correction in hiType and error message modification
71c995d
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
fec6064
modified error message
fa7cf00
resolved merge conflicts
7a21582
feat: new standard FHIR bundles creation
09913fc
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
8269c75
Fix environment variable for systemUrl
helenKaryamsetty 055525e
Fix formatting of systemUrl property
helenKaryamsetty 61506e6
fix: taken coderabbitai comments and minor changes
a1df7fa
fix: resolved merge conflicts
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
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
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
59 changes: 59 additions & 0 deletions
59
src/main/java/com/wipro/fhir/data/resource_model/ImmunizationDataModel.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,59 @@ | ||
| package com.wipro.fhir.data.resource_model; | ||
|
|
||
| import java.math.BigInteger; | ||
| import java.sql.Timestamp; | ||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| import org.springframework.stereotype.Component; | ||
|
|
||
| import lombok.Data; | ||
|
|
||
| @Data | ||
| @Component | ||
| public class ImmunizationDataModel { | ||
|
|
||
| private BigInteger id; | ||
| private BigInteger beneficiaryRegID; | ||
| private BigInteger visitCode; | ||
| private Integer providerServiceMapID; | ||
| private Integer vanID; | ||
| private String defaultReceivingAge; | ||
| private String vaccineName; | ||
| private Timestamp receivedDate; | ||
| private String receivedFacilityName; | ||
| private String sctcode; | ||
| private String sctTerm; | ||
| private Timestamp createdDate; | ||
| private String createdBy; | ||
|
|
||
| public ImmunizationDataModel() { | ||
| } | ||
|
|
||
| public ImmunizationDataModel(Object[] objArr) { | ||
| this.id = objArr[0] != null ? BigInteger.valueOf(((Number) objArr[0]).longValue()) : null; | ||
| this.beneficiaryRegID = objArr[1] != null ? BigInteger.valueOf(((Number) objArr[1]).longValue()) : null; | ||
| this.visitCode = objArr[2] != null ? BigInteger.valueOf(((Number) objArr[2]).longValue()) : null; | ||
| this.providerServiceMapID = objArr[3] != null ? ((Number) objArr[3]).intValue() : null; | ||
| this.vanID = objArr[4] != null ? ((Number) objArr[4]).intValue() : null; | ||
| this.defaultReceivingAge = objArr[5] != null ? (String) objArr[5] : null; | ||
| this.vaccineName = objArr[6] != null ? (String) objArr[6] : null; | ||
| this.receivedDate = objArr[7] != null ? (Timestamp) objArr[7] : null; | ||
| this.receivedFacilityName = objArr[8] != null ? (String) objArr[8] : null; | ||
| this.sctcode = objArr[9] != null ? (String) objArr[9] : null; | ||
| this.sctTerm = objArr[10] != null ? (String) objArr[10] : null; | ||
| this.createdDate = objArr[11] != null ? (Timestamp) objArr[11] : null; | ||
| this.createdBy = objArr[12] != null ? (String) objArr[12] : null; | ||
| } | ||
|
|
||
| public List<ImmunizationDataModel> getImmunizationList(List<Object[]> resultSetList) { | ||
| List<ImmunizationDataModel> out = new ArrayList<>(); | ||
| if (resultSetList != null && !resultSetList.isEmpty()) { | ||
| for (Object[] objArr : resultSetList) { | ||
| out.add(new ImmunizationDataModel(objArr)); | ||
| } | ||
| } | ||
| return out; | ||
| } | ||
|
|
||
| } |
61 changes: 61 additions & 0 deletions
61
src/main/java/com/wipro/fhir/data/resource_model/MedicalHistoryDataModel.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,61 @@ | ||
| package com.wipro.fhir.data.resource_model; | ||
|
|
||
| import java.io.Serializable; | ||
| import java.math.BigInteger; | ||
| import java.sql.Timestamp; | ||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| import org.springframework.stereotype.Component; | ||
|
|
||
| import lombok.Data; | ||
|
|
||
|
|
||
| @Data | ||
| @Component | ||
| public class MedicalHistoryDataModel implements Serializable { | ||
|
|
||
| private static final long serialVersionUID = 1L; | ||
|
|
||
|
|
||
| private BigInteger id; | ||
| private BigInteger beneficiaryRegID; | ||
| private BigInteger visitCode; | ||
| private String currentMedication; | ||
| private Integer currentMedYear; | ||
| private String yearOfIllness; | ||
| private String finalIllnessType; | ||
| private String yearOfSurgery; | ||
| private String finalSurgeryType; | ||
| private Timestamp createdDate; | ||
| private String createdBy; | ||
| public MedicalHistoryDataModel() { | ||
| } | ||
|
|
||
| public MedicalHistoryDataModel(Object[] objArr) { | ||
| this.id = objArr[0] != null ? BigInteger.valueOf(((Number) objArr[0]).longValue()) : null; | ||
| this.beneficiaryRegID = objArr[1] != null ? BigInteger.valueOf(((Number) objArr[1]).longValue()) : null; | ||
| this.visitCode = objArr[2] != null ? BigInteger.valueOf(((Number) objArr[2]).longValue()) : null; | ||
| this.currentMedication = objArr[3] != null ? (String) objArr[3] : null; | ||
| this.currentMedYear = objArr[4] != null ? (Integer) objArr[4] : null; | ||
| this.yearOfIllness = objArr[5] != null ? (String) objArr[5] : null; | ||
| this.finalIllnessType = objArr[6] != null ? (String) objArr[6] : null; | ||
| this.yearOfSurgery = objArr[7] != null ? (String) objArr[7] : null; | ||
| this.finalSurgeryType = objArr[8] != null ? (String) objArr[8] : null; | ||
| this.createdDate = objArr[9] != null ? (Timestamp) objArr[9] : null; | ||
| this.createdBy = objArr[10] != null ? (String) objArr[10] : null; | ||
| } | ||
|
|
||
| public List<MedicalHistoryDataModel> getMedicalList(List<Object[]> resultSetList) { | ||
| MedicalHistoryDataModel medHistoryObj; | ||
| List<MedicalHistoryDataModel> medHistoryList = new ArrayList<MedicalHistoryDataModel>(); | ||
| if (resultSetList != null && resultSetList.size() > 0) { | ||
| for (Object[] objArr : resultSetList) { | ||
| medHistoryObj = new MedicalHistoryDataModel(objArr); | ||
| medHistoryList.add(medHistoryObj); | ||
| } | ||
| } | ||
| return medHistoryList; | ||
| } | ||
|
|
||
| } |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify HAPI FHIR 8.4.0 compatibility with the codebase.
This is a major version upgrade from 6.10.0 to 8.4.0 with documented breaking changes. Notable API changes include package migration from javax.* to jakarta.*, removal of compatibility shims, changes to contained resource ID handling, and modifications to Device resource search parameter compartment rules. Ensure the codebase compiles and runs correctly with this update, particularly if using interceptors or custom search logic.
π€ Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderabbitai these versions are completely aligned with codebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@helenKaryamsetty, thank you for confirming! I appreciate you verifying that the HAPI FHIR 8.4.0 upgrade is compatible with the codebase.