This service transforms C-CDA to FHIR resources. Data transformation conditions are taken from the official C-CDA to FHIR mappings page (http://hl7.org/fhir/us/ccda/2023May/) and based on the feedback received from the users.
You do not have to write code from scratch but reuse these existing services when implementing your FHIR services. You can deploy the pre-built service on your own environment or deploy on Choreo as a standard Ballerina service.
Supported FHIR version is 4.0.1.
This pre-built service exposes following CCDA-to-FHIR transformations.
- C-CDA Allergy Intolerance Observation to FHIR Allergy Intolerance.
- C-CDA Problem observation to FHIR Condition.
- C-CDA Results to FHIR Diagnostic Report.
- C-CDA Immunization Activity to FHIR Immunization.
- C-CDA Medication Activity to FHIR Medication.
- C-CDA Patient Role Header to FHIR Patient.
- C-CDA Author Header to FHIR Practitioner.
- C-CDA Procedure Activity to FHIR Procedure.
1.Clone this repository to your local machine and navigate to the pre-built service on ccda-to-fhirr4-service
.
-
Run the project.
bal run
-
Invoke the API.
Sample request format:
curl 'http://<host>:<port>/transform' \ --header 'Content-Type: application/xml' \ --data-raw '<ClinicalDocument/>'
WSO2’s Choreo (https://wso2.com/choreo/) is an internal developer platform that redefines how you create digital experiences. Choreo empowers you to seamlessly design, develop, deploy, and govern your cloud native applications, unlocking innovation while reducing time-to-market. You can deploy the healthcare prebuilt services in Choreo as explained below.
If you are signing in to the Choreo Console for the first time, create an organization as follows:
- Go to https://console.choreo.dev/, and sign in using your preferred method.
- Enter a unique organization name. For example, Stark Industries.
- Read and accept the privacy policy and terms of use.
- Click Create. This creates the organization and opens the Project Home page of the default project created for you.
-
Create Service Component
-
Fork the pre-built Ballerina services repository (https://github.com/wso2/open-healthcare-prebuilt-services) to your Github organization.
-
Create a service component pointing to the
ccda-to-fhirr4-service
. Follow the official documentation to create and configure a service: https://wso2.com/choreo/docs/develop-components/develop-services/develop-a-ballerina-rest-api/#step-1-create-a-service-component. -
Once the component creation is complete, you will see the component overview page.
-
-
Build and Deploy
Follow the official documentation to deploy the C-CDA to FHIR service to your organization https://wso2.com/choreo/docs/develop-components/develop-services/develop-a-ballerina-rest-api/#step-2-build-and-deploy.