Skip to content

Add sample for Danish profiles with HL7v2 #38

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

isuruh15
Copy link
Contributor

@isuruh15 isuruh15 commented Apr 2, 2025

Purpose

fix: https://github.com/wso2-enterprise/open-healthcare/issues/1718

Approach

Add new transformation utils to map data from international FHIR resources to Danish FHIR profiles

Related PR

ballerina-platform/module-ballerinax-health.fhir.r4#492

#
# + originalMessage - incoming HL7v2 message
# + return - Patient resource containing only the customly mapped values.
public isolated function createCustomPatient(hl7:Message originalMessage) returns medcom240:MedComCorePatient|error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use data mapping function for this, use local variables to store intermediate results needed

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's do all the mappings with transform patient function

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.

2 participants