health.fhir.r4utils.ccdatofhir
Module health.fhir.r4utils.ccdatofhir
API
ballerinax/health.fhir.r4utils.ccdatofhir Ballerina library
C-CDA to FHIR Package
Package containing C-CDA to FHIR pre-built mapping functionalities.
Package Overview
This package implements the CCDA to FHIR implementation guide (http://build.fhir.org/ig/HL7/ccda-on-fhir/CF-index.html).
- C-CDA Allergy Intolerance Observation to FHIR USCore Allergy Intolerance Profile.
- C-CDA Problem observation to FHIR USCore Condition Profile.
- C-CDA Results to FHIR USCore Diagnostic Report Profile.
- C-CDA Immunization Activity to FHIR USCore Immunization Profile.
- C-CDA Medication Activity to FHIR USCore Medication Profile.
- C-CDA Patient Role Header to FHIR USCore Patient Profile.
- C-CDA Author Header to FHIR USCore Practitioner Profile.
- C-CDA Procedure Activity to FHIR USCore Procedure Profile.
Functions
ccdaToFhir
function ccdaToFhir(xml? ccda, CcdaToFhirMapper? customMapper) returns Bundle|FHIRError
Transform an C-CDA message to FHIR.
Parameters
- ccda xml? - C-CDA message as a xml
- customMapper CcdaToFhirMapper? (default ()) - Custom mapper to be used for the transformation
Return Type
- Bundle|FHIRError - FHIR Bundle
getOperationOutcome
function getOperationOutcome(string detail) returns OperationOutcome
getOperationOutcome - Returns an OperationOutcome resource with the given detail
Parameters
- detail string - detail of the error
Return Type
- OperationOutcome - OperationOutcome resource
mapCcdaAddressToFhirAddress
function mapCcdaAddressToFhirAddress(xml addressElements) returns Address[]?
Map C-CDA address to FHIR Address.
Parameters
- addressElements xml - C-CDA address element
Return Type
- Address[]? - Return FHIR Address
mapCcdaCodingsToFhirCodings
function mapCcdaCodingsToFhirCodings(xml codingElements) returns Coding[]?
Map C-CDA codes to FHIR Coding.
Parameters
- codingElements xml - C-CDA code element
Return Type
- Coding[]? - Return FHIR Coding
mapCcdaCodingToFhirCodeableConcept
function mapCcdaCodingToFhirCodeableConcept(xml codingElement) returns CodeableConcept?
Map C-CDA code to FHIR CodeableConcept.
Parameters
- codingElement xml - C-CDA code element
Return Type
- CodeableConcept? - Return FHIR CodeableConcept
mapCcdaCodingToFhirCoding
function mapCcdaCodingToFhirCoding(xml codingElement) returns Coding?
Map C-CDA code to FHIR Coding.
Parameters
- codingElement xml - C-CDA code element
Return Type
- Coding? - Return FHIR Coding
mapCcdaDateTimeToFhirDateTime
function mapCcdaDateTimeToFhirDateTime(xml dateTimeElement) returns dateTime?
Map C-CDA dateTime to FHIR dateTime.
Parameters
- dateTimeElement xml - C-CDA dateTime element
Return Type
- dateTime? - Return FHIR dateTime
mapCcdaIdToFhirIdentifier
function mapCcdaIdToFhirIdentifier(xml idElement) returns USCorePatientProfileIdentifier?
Map C-CDA id to FHIR Identifier.
Parameters
- idElement xml - C-CDA id element
Return Type
- USCorePatientProfileIdentifier? - Return FHIR Identifier
mapCcdaNameToFhirName
function mapCcdaNameToFhirName(xml nameElements) returns HumanName[]?
Map C-CDA name to FHIR HumanName.
Parameters
- nameElements xml - C-CDA name element
Return Type
- HumanName[]? - Return FHIR HumanName
mapCcdaNametoFhirPractitionerName
function mapCcdaNametoFhirPractitionerName(xml nameElement) returns USCorePractitionerProfileName?
Map C-CDA name to FHIR Practitioner HumanName.
Parameters
- nameElement xml - C-CDA name element
Return Type
- USCorePractitionerProfileName? - Return FHIR HumanName
mapCcdaTelecomToFhirPatientTelecom
function mapCcdaTelecomToFhirPatientTelecom(xml telecomElement) returns USCorePatientProfileTelecom?
Map C-CDA telecom to FHIR Patient ContactPoint.
Parameters
- telecomElement xml - C-CDA telecom element
Return Type
- USCorePatientProfileTelecom? - Return FHIR ContactPoint
mapCcdaTelecomToFhirTelecom
function mapCcdaTelecomToFhirTelecom(xml telecomElements) returns ContactPoint[]?
Map C-CDA telecom to FHIR ContactPoint.
Parameters
- telecomElements xml - C-CDA telecom element
Return Type
- ContactPoint[]? - Return FHIR ContactPoint
mapOidToUri
Map C-CDA OID to FHIR codesystems.
Parameters
- oid string - C-CDA OID
Return Type
- string - Return FHIR codesystems
Records
health.fhir.r4utils.ccdatofhir: CcdaToFhirMapper
CcdaToFhir Mapper function implementation holder record.
Fields
- ccdaToAllergyIntolerance CcdaToAllergyIntolerance - C-CDA Allergy Intolerance Activity to USCore Allergy Intolerance function.
- ccdaToImmunization CcdaToImmunization - C-CDA Immunization Activity to USCore Immunization function.
- ccdaToMedication CcdaToMedication - C-CDA Medication Activity to USCore Medication function.
- ccdaToPatient CcdaToPatient - C-CDA US Realm Record Target to USCore Patient function.
- ccdaToCondition CcdaToCondition - C-CDA Problem Concern Activity to USCore Condition function.
- ccdaToProcedure CcdaToProcedure - C-CDA Procedure Acitivity to USCore Procedure function.
- ccdaToDiagnosticReport CcdaToDiagnosticReport - C-CDA Diagnostic Imaging Report to USCore DiagnosticReport function.
- ccdaToPractitioner CcdaToPractitioner - C-CDA Author Header to USCore Practitioner function
Function types
health.fhir.r4utils.ccdatofhir: CcdaToAllergyIntolerance
function(xml) returns (USCoreAllergyIntolerance?)
CcdaToAllergyIntolerance
#################################################################################################### Mapping function definitions for C-CDA to FHIR #################################################################################################### Mapping function type for C-CDA Allergy Intolerance Activity to USCore Allergy Intolerance FHIR resource.
health.fhir.r4utils.ccdatofhir: CcdaToImmunization
function(xml) returns (USCoreImmunizationProfile?)
CcdaToImmunization
Mapping function type for C-CDA Immunization Activity to USCore Immunization FHIR resource.
health.fhir.r4utils.ccdatofhir: CcdaToMedication
function(xml) returns (USCoreMedicationRequestProfile?)
CcdaToMedication
Mapping function type for C-CDA Medication Activity to USCore Medication FHIR resource.
health.fhir.r4utils.ccdatofhir: CcdaToPatient
function(xml) returns (USCorePatientProfile?)
CcdaToPatient
Mapping function type for C-CDA US Realm Record Target to USCore Patient FHIR resource.
health.fhir.r4utils.ccdatofhir: CcdaToCondition
function(xml, xml) returns (USCoreCondition?)
CcdaToCondition
Mapping function type for C-CDA Problem Concern Activity to USCore Condition FHIR resource.
health.fhir.r4utils.ccdatofhir: CcdaToProcedure
function(xml) returns (USCoreProcedureProfile?)
CcdaToProcedure
Mapping function type for C-CDA Procedure Acitivity to USCore Procedure FHIR resource.
health.fhir.r4utils.ccdatofhir: CcdaToDiagnosticReport
function(xml) returns (USCoreDiagnosticReportProfileLaboratoryReporting?)
CcdaToDiagnosticReport
Mapping function type for C-CDA Diagnostic Imaging Report to USCore DiagnosticReport FHIR resource.
health.fhir.r4utils.ccdatofhir: CcdaToPractitioner
function(xml) returns (USCorePractitionerProfile?)
CcdaToPractitioner
Mapping function type for C-CDA Author Header to USCore Practitioner FHIR resource.
Import
import ballerinax/health.fhir.r4utils.ccdatofhir;
Metadata
Released date: 7 days ago
Version: 3.0.0
Compatibility
Platform: any
Ballerina version: 2201.12.2
GraalVM compatible: Yes
Pull count
Total: 613
Current verison: 1
Weekly downloads
Keywords
Healthcare
FHIR
R4
Utils
CCDAtoFHIR
Contributors