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

Improve fhir mapping result #242

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Improve fhir mapping result #242

merged 5 commits into from
Oct 22, 2024

Conversation

YemreGurses
Copy link
Collaborator

No description provided.

@dogukan10 dogukan10 force-pushed the improve-fhir-mapping-result branch 3 times, most recently from 7c328ae to cda0336 Compare October 11, 2024 13:56

/**
* Mapping process result
* Case class representing the result of a FHIR mapping process, extending the base mapping result.
Copy link
Member

Choose a reason for hiding this comment

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

Can you please extend the description for this class?

FhirMappingResult class represents a single mappedFhirResource irrespective of how many FHIR resources is created from each row. Hence, different FhirMappingResult instances might be created from a single source row if the mapping is 1-to-many.

/**
* If there is a problem in the process, the JSON serialization of the source data
*/
val source: String
Copy link
Member

Choose a reason for hiding this comment

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

Is the "source" field always populated? Then, I suggest the update the description accordingly.

*
* @param mappedFhirResources List of mapped FHIR resources. This is used to group mapped resources by input row.
*/
case class FhirMappingResultsForInput(
Copy link
Member

Choose a reason for hiding this comment

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

Can you please extend the description for this class?

FhirMappingResultForInput class represents a the result from a single source row, that is each source row corresponds to one FhirMappingResultForInput instance. If the mapping is 1-to-many, mappedFhirResources field includes all the created FHIR resources from the source row.

@sinaci sinaci merged commit c6f8deb into main Oct 22, 2024
1 check passed
@sinaci sinaci deleted the improve-fhir-mapping-result branch October 22, 2024 07:43
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