Skip to content

Conversation

Corne
Copy link
Contributor

@Corne Corne commented Jun 27, 2025

  • Support mapping src.instantiatesCanonical <-> tgt.definition;
  • Support mapping src.basedOn <-> tgt.basedOn
  • Support mapping src.category <-> tgt.category;
  • Support mapping of requester with behalfof extension v4 to v3
  • Moved the medication request conversion from v3 to v4 to the corresponding file.
  • Added tests for MedicationRequest mapping

(Sorry for auto formatting, best to review with hide whitespace enabled)

@@ -439,61 +436,4 @@ public void copyDomainResource(org.hl7.fhir.r4.model.DomainResource src,
.map(Extension30_40::convertExtension)
.forEach(tgt::addModifierExtension);
}

public static org.hl7.fhir.r4.model.MedicationRequest convertMedicationRequest(org.hl7.fhir.dstu3.model.MedicationRequest src) throws FHIRException {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

codecov bot commented Jun 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 13.07%. Comparing base (ec4ea67) to head (aa20966).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2066      +/-   ##
============================================
+ Coverage     13.06%   13.07%   +0.01%     
- Complexity    35997    36044      +47     
============================================
  Files          2447     2447              
  Lines        722902   722917      +15     
  Branches     211376   211382       +6     
============================================
+ Hits          94418    94543     +125     
+ Misses       595845   595672     -173     
- Partials      32639    32702      +63     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Corne Corne force-pushed the MedicationRequestConversion3040 branch from 91bc846 to 8153274 Compare July 2, 2025 16:08
Copy link
Collaborator

@dotasek dotasek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments. The new test is excellent, as it gives us coverage for existing code, but it should also specifically target any added conversion logic. (I realize this is additional work, and do appreciate what has been done so far).

@Corne Corne requested a review from dotasek July 4, 2025 20:41
@Corne
Copy link
Contributor Author

Corne commented Jul 15, 2025

@dotasek can you have another look at this PR? All your remarks should have been processed

@Corne Corne force-pushed the MedicationRequestConversion3040 branch from 5860625 to aa20966 Compare July 27, 2025 14:47
@Corne Corne requested a review from grahamegrieve July 27, 2025 14:48
@Corne
Copy link
Contributor Author

Corne commented Aug 24, 2025

@dotasek @grahamegrieve could this get another review please 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants