-
Notifications
You must be signed in to change notification settings - Fork 25
Fix CDA datatypes mapping #443
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
Conversation
Changes: - Cleaned up duplicated censusTract mapping in datatypes.map - Updated test to verify censusTract extension is properly mapped - Added test assertion for patient address line extension value Fixes #440
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR fixes issue #440 by removing a duplicated censusTract mapping in the CDA datatype mapping file, enhancing the CDA-to-FHIR transformation tests to assert correct censusTract and patient address line extension values, and updating the project changelog for the new release. Entity relationship diagram for censusTract mapping updateerDiagram
CDA_DATATYPE_MAPPING {
string censusTract
string patientAddressLine
}
FHIR_EXTENSION {
string url
string value
}
CDA_DATATYPE_MAPPING ||--o| FHIR_EXTENSION : maps_to
Class diagram for updated CDA-to-FHIR transformation testclassDiagram
class CdaToFhirTransformTests {
+testCensusTractExtension()
+testPatientAddressLineExtension()
}
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey there - I've reviewed your changes - here's some feedback:
- The TestInitial method should include an explicit assertion for the censusTract extension mapping to cover the fix mentioned in the PR title.
- Add an assertion to verify the patient variable is not null before accessing address lines to prevent potential NullPointerExceptions in the test.
- Consider extracting the logic for finding the Patient resource into a helper method to reduce duplication and improve test readability.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The TestInitial method should include an explicit assertion for the censusTract extension mapping to cover the fix mentioned in the PR title.
- Add an assertion to verify the patient variable is not null before accessing address lines to prevent potential NullPointerExceptions in the test.
- Consider extracting the logic for finding the Patient resource into a helper method to reduce duplication and improve test readability.
## Individual Comments
### Comment 1
<location> `docs/changelog.md:3` </location>
<code_context>
+2025 Release 4.0.16
+
+- adapt test and map for (440)
+
2025/11/03 Release 4.0.15
</code_context>
<issue_to_address>
**suggestion:** Consider clarifying what '(440)' refers to in the changelog entry.
If '(440)' is an issue or ticket number, consider updating the entry to explicitly state this, such as 'for issue #440'.
```suggestion
- adapt test and map for issue #440
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| @@ -1,3 +1,7 @@ | |||
| 2025 Release 4.0.16 | |||
|
|
|||
| - adapt test and map for (440) | |||
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.
suggestion: Consider clarifying what '(440)' refers to in the changelog entry.
If '(440)' is an issue or ticket number, consider updating the entry to explicitly state this, such as 'for issue #440'.
| - adapt test and map for (440) | |
| - adapt test and map for issue #440 |
Changes:
Fixes #440
Summary by Sourcery
Fix CDA datatype mappings by removing a duplicated censusTract entry, updating tests to assert both censusTract and patient address line extensions, and update the changelog for release 4.0.16
Bug Fixes:
Documentation:
Tests: