Skip to content
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

feat: add support for if, for, assign and merge #6

Merged
merged 18 commits into from
May 28, 2024
Merged

Conversation

ruscoder
Copy link
Member

Refs #1 #2 #3

@ruscoder ruscoder requested a review from ir4y May 24, 2024 13:34
@ruscoder
Copy link
Member Author

@ir4y it's fully backward compatible, I removed hardcoded R4 Model from resolveTemplate function, now it's passed in service instead.

@ruscoder
Copy link
Member Author

I've added a real-life complex test with a real mapper that accepts: Patient, QuestionnaireResponse, Organization and list of Provenances with associated target resources.

  1. It creates an observation and N conditions checking if already existing resources were created before based on Provenances
  2. Then it creates Provenances for them to track changes
  3. Deletes provenance and resources that weren't mentioned in this mapper

It's one of the most complex mappers I've ever written, so, it proves that FHIRPathMappingLanguage is good enough for complex things.

@ruscoder ruscoder merged commit c32c69c into main May 28, 2024
4 checks passed
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.

1 participant