health.hl7v23.utils.v2tofhirr4
Module health.hl7v23.utils.v2tofhirr4
API
Definitions
ballerinax/health.hl7v23.utils.v2tofhirr4 Ballerina library
Package containing HL7v2.3 to FHIR pre-built mapping functionalities.
HL7v2 to FHIR Package
Package Overview
This package implements the HL7 version 2.3 to FHIR implementation guide (https://build.fhir.org/ig/HL7/v2-to-fhir/branches/master/datatype_maps.html).
Note:
From Ballerina Swan Lake Update 10 upwards, --optimize-dependency-compilation flag is
introduced to optimize the memory usage during the compilation time.
Use the flag in the build command as follows,
bal build --optimize-dependency-compilation
or add as a config in the Ballerina.toml file.
[build-options] optimizeDependencyCompilation = true
Usage
To use the package add following import to your Ballerina program.
import ballerinax/health.hl7v23.utils.v2tofhirr4
Sample: This sample showcase how you can pass a HL7 version 2.3 message and get a FHIR R4 Bundle in return. In addition to that, we are demonstrating how you could use the library to transform HL7 segments to FHIR.
import ballerina/io; import ballerinax/health.hl7v23.utils.v2tofhirr4; import ballerinax/health.hl7v2 as hl7; import ballerinax/health.hl7v23; import ballerinax/health.fhir.r4 as r4; final string msg = "MSH|^~\\&|ADT1|GOOD HEALTH HOSPITAL|GHH LAB, INC.|GOOD HEALTH" + "HOSPITAL|198808181126|SECURITY|ADT^A01^ADT_A01|MSG00001|P|2.3||\rEVN|A01|" + "200708181123||\rPID|1||PATID1234^5^M11^ADT1^MR^GOOD HEALTH"+ "HOSPITAL~123456789^^^USSSA^SS||" + "BATMAN^ADAM^A^III||19610615|M||C|2222 HOME STREET^^GREENSBORO^NC^27401-1020|GL|" + "(555)555-2004|(555)555-2004||S||PATID12345001^2^M10^ADT1^AN^A|444333333|987654^NC|" + "\rNK1|1|NUCLEAR^NELDA^W|SPO^SPOUSE||||NK^NEXT OF KIN$\rPV1|1|I|2000^2012^01||||" + "004777^ATTEND^AARON^A|||SUR||||ADM|A0|"; public function main() returns error? { // Transform HL7v2 message to FHIR R4. // You can pass a HL7v2 message and get a FHIR R4 Bundle based on // the mappings defined at // https://build.fhir.org/ig/HL7/v2-to-fhir/branches/master/datatype_maps.html. json v2tofhirResult = check v2tofhirr4:v2ToFhir(msg); io:println("Transformed FHIR message: ", v2tofhirResult.toString()); io:println("------------------------------------------------------------------"); hl7:Message hl7msg = check v2tofhirr4:stringToHl7(msg); if (hl7msg is hl7v23:ADT_A01) { // v2tofhirr4 library exposes these low level functions as well, // if you want to work with HL7v2 segments directly. // Transform HL7v2 PID to FHIR R4 Patient Name. r4:HumanName[] patientName = v2tofhirr4:pidToPatientName(hl7msg.pid.pid5, hl7msg.pid.pid9); io:println("HL7v23 PID Patient Name: ", patientName[0].toString()); } }
Note:
From Ballerina Swan Lake Update 10 upwards, --optimize-dependency-compilation flag is
introduced to optimize the memory usage during the compilation time.
Use the flag in the build command as follows,
bal build --optimize-dependency-compilation
or add as a config in the Ballerina.toml file.
[build-options] optimizeDependencyCompilation = true
Functions
adtA01ToBundle
Parameters
- message ADT_A01 -
adtA02ToBundle
Parameters
- message ADT_A02 -
adtA05ToBundle
Parameters
- message ADT_A05 -
adtA06ToBundle
Parameters
- message ADT_A06 -
adtA09ToBundle
Parameters
- message ADT_A09 -
adtA11ToBundle
Parameters
- message ADT_A11 -
adtA17ToBundle
Parameters
- message ADT_A17 -
aigToAppointment
function aigToAppointment(Aig aig) returns AppointmentParameters
- aig Aig -
ailToAppointment
function ailToAppointment(Ail ail) returns AppointmentParameters
- ail Ail -
aipToAppointment
function aipToAppointment(Aip aip) returns AppointmentParameters
- aip Aip -
aisToAppointment
function aisToAppointment(Ais ais) returns AppointmentParameters
- ais Ais -
al1ToAllerygyIntolerance
function al1ToAllerygyIntolerance(Al1 al1) returns AllergyIntoleranceParameters
- al1 Al1 -
ceToCode
Parameters
- ce Ce -
ceToCodeableConcept
function ceToCodeableConcept(Ce ce) returns CodeableConceptParameters
- ce Ce -
ceToCodeableConcepts
function ceToCodeableConcepts(Ce ce) returns CodeableConcept[]Parameters
- ce Ce -
ceToCoding
Parameters
- ce Ce -
ceToCodings
Parameters
- ce Ce -
ceToUri
Parameters
- ce Ce -
cxToIdentifier
function cxToIdentifier(Cx cx) returns IdentifierParameters
- cx Cx -
dg1ToCondition
Parameters
- dg1 Dg1 -
dg1ToEncounter
dg1ToEpisodeOfCare
function dg1ToEpisodeOfCare(Dg1 dg1, string? conditionId, string? patientId) returns EpisodeOfCaredtmToDateTime
Parameters
- ts Dtm -
dtmToInstant
Parameters
- ts Dtm -
eiToCoding
Parameters
- ei Ei -
eiToIdentifier
function eiToIdentifier(Ei ei) returns IdentifierParameters
- ei Ei -
eiToReferenceWithType
evnToProvenance
function evnToProvenance(Evn evn) returns ProvenanceParameters
- evn Evn -
generateFhirResourceId
function generateFhirResourceId() returns stringhdToMessageHeaderDestination
function hdToMessageHeaderDestination(Hd hd) returns MessageHeaderDestinationParameters
- hd Hd -
hdToMessageHeaderSource
function hdToMessageHeaderSource(Hd hd) returns MessageHeaderSourceParameters
- hd Hd -
hl7DateToFhir
Parameters
- hl7Date string -
idToAddressType
function idToAddressType(Id id) returns AddressTypeParameters
- id Id -
idToAddressUse
function idToAddressUse(Id id) returns AddressUse?Parameters
- id Id -
idToCodeableConcept
function idToCodeableConcept(ID id) returns CodeableConcept?Parameters
- id ID -
idToCodeableConceptArray
function idToCodeableConceptArray(Id id) returns CodeableConcept[]Parameters
- id Id -
idToCoding
Parameters
- id ID -
idToContactPointSystem
function idToContactPointSystem(Id id) returns ContactPointSystemParameters
- id Id -
idToContactPointUse
function idToContactPointUse(Id id) returns ContactPointUseParameters
- id Id -
idToDiagnosticReportStatus
function idToDiagnosticReportStatus(ID id) returns DiagnosticReportStatusParameters
- id ID -
idToHumanNameUse
function idToHumanNameUse(Id id) returns HumanNameUseParameters
- id Id -
idToServiceRequestPriority
function idToServiceRequestPriority(ID id) returns ServiceRequestPriorityParameters
- id ID -
in1ToCoverage
Parameters
- in1 In1 -
in3ToCareTeam
Parameters
- in3 In3 -
isToAllergyIntoleranceCategory
function isToAllergyIntoleranceCategory(Is 'is) returns AllergyIntoleranceCategoryParameters
- 'is Is -
isToAllergyIntoleranceCriticality
function isToAllergyIntoleranceCriticality(Is 'is) returns AllergyIntoleranceCriticalityParameters
- 'is Is -
isToAllergyIntoleranceType
function isToAllergyIntoleranceType(string 'is) returns AllergyIntoleranceTypeParameters
- 'is string -
mdmT02ToBundle
Parameters
- message MDM_T02 -
mrgToAccount
Parameters
- mrg Mrg -
msaToMessageHeader
function msaToMessageHeader(Msa msa) returns MessageHeaderParameters
- msa Msa -
msgToCoding
Parameters
- msg CM_MSG -
mshToMessageHeader
function mshToMessageHeader(Msh msh) returns MessageHeaderParameters
- msh Msh -
mshToProvenanceOperator
function mshToProvenanceOperator(Msh msh) returns ProvenanceParameters
- msh Msh -
nameToServiceRequestIntent
function nameToServiceRequestIntent(string name) returns ServiceRequestIntentParameters
- name string -
nk1ToContact
nk1ToPatient
Parameters
- nk1 Nk1 -
nk1ToRelatedPerson
function nk1ToRelatedPerson(Nk1 nk1) returns RelatedPersonParameters
- nk1 Nk1 -
nteToObservation
function nteToObservation(Nte nte) returns ObservationParameters
- nte Nte -
obrToDiagnosticReport
function obrToDiagnosticReport(Obr obr) returns DiagnosticReportParameters
- obr Obr -
obrToServiceRequest
function obrToServiceRequest(Obr obr) returns ServiceRequestParameters
- obr Obr -
obxToObservation
function obxToObservation(Obx obx) returns ObservationParameters
- obx Obx -
orcToDiagnosticReport
function orcToDiagnosticReport(Orc orc) returns DiagnosticReportParameters
- orc Orc -
orcToImmunization
function orcToImmunization(Orc orc) returns ImmunizationParameters
- orc Orc -
orcToServiceRequest
function orcToServiceRequest(Orc orc) returns ServiceRequestParameters
- orc Orc -
ormO01ToBundle
Parameters
- message ORM_O01 -
oruR01ToBundle
Parameters
- message ORU_R01 -
pd1ToExtension
Parameters
- pd16 string -
pd1ToGeneralPractitioner
pd1ToLivingWillObservation
function pd1ToLivingWillObservation(Pd1 pd1) returns ObservationParameters
- pd1 Pd1 -
pd1ToPatient
Parameters
- pd1 Pd1 -
pidToAddress
pidToAdministrativeSex
function pidToAdministrativeSex(string pid8) returns PatientGender?Parameters
- pid8 string -
pidToBirthOrder
pidToBirthPlace
Parameters
- pid23 string -
pidToMaritalStatus
function pidToMaritalStatus(Pid16 pid16) returns CodeableConcept?Parameters
- pid16 Pid16 -
pidToMultipleBirthIndicator
Parameters
- pid24 string -
pidToPatient
Parameters
- pid Pid -
pidToPatientDeathIndicator
Parameters
- pid30 string -
pidToPatientName
pidToPhoneNumber
function pidToPhoneNumber(Pid13 pid13, Pid14 pid14) returns ContactPoint[]?pidToPrimaryLanguage
function pidToPrimaryLanguage(Pid15 pid15) returns PatientCommunication[]?Parameters
- pid15 Pid15 -
pidToSsnNumberIdentifier
function pidToSsnNumberIdentifier(string pid19) returns Identifier[]?Parameters
- pid19 string -
pr1ToProcedure
Parameters
- pr1 Pr1 -
ptToMeta
Parameters
- pt Pt -
pv1ToCoverage
Parameters
- pv1 Pv1 -
pv1ToEncounter
Parameters
- pv1 Pv1 -
pv1ToExtension
Parameters
- pv116 string -
pv1ToPatient
Parameters
- pv1 Pv1 -
pv2ToEncounter
Parameters
- pv2 Pv2 -
rolToRelatedPerson
function rolToRelatedPerson(Rol rol) returns RelatedPersonParameters
- rol Rol -
rxaToImmunization
function rxaToImmunization(Rxa rxa) returns ImmunizationParameters
- rxa Rxa -
rxoToMedicationRequest
function rxoToMedicationRequest(Rxo rxo) returns MedicationRequestParameters
- rxo Rxo -
rxrToImmunization
function rxrToImmunization(Rxr rxr) returns ImmunizationParameters
- rxr Rxr -
rxrToMedicationRequest
function rxrToMedicationRequest(Rxr rxr) returns MedicationRequestParameters
- rxr Rxr -
schToAppointment
function schToAppointment(Sch sch) returns AppointmentParameters
- sch Sch -
segmentToFhir
function segmentToFhir(string segmentName, Segment segment, V2SegmentToFhirMapper? customMapper, V2ToFhirCustomMapperServiceConfig? serviceconf) returns BundleEntry[]|errorTransform an HL7 segment to FHIR Bundle.
Parameters
- segmentName string - Name of the HL7 segment
- segment Segment - HL7 segment
- customMapper V2SegmentToFhirMapper? - Custom mapper implementation
- serviceconf V2ToFhirCustomMapperServiceConfig? - Custom mapping service configuration
Return Type
- BundleEntry[]|error - FHIR Bundle
siuS12ToBundle
Parameters
- message SIU_S12 -
stringToHl7
Parse a string to an HL7 message.
Parameters
- msg string - HL7 message as a string
tsToDateTime
Parameters
- ts Ts -
tsToInstant
Parameters
- ts Ts -
txaToDocumentReference
function txaToDocumentReference(Txa txa) returns DocumentReferenceParameters
- txa Txa -
txaToProvenance
function txaToProvenance(Txa txa) returns ProvenanceParameters
- txa Txa -
v2ToFhir
function v2ToFhir(string|Message hl7, V2SegmentToFhirMapper? customMapper, V2ToFhirCustomMapperServiceConfig? mapperServiceConf) returns json|errorTransform an HL7 message to FHIR.
Parameters
- customMapper V2SegmentToFhirMapper? (default ()) - Custom mapper implementation
- mapperServiceConf V2ToFhirCustomMapperServiceConfig? (default ()) - Custom mapping service configuration
Return Type
- json|error - FHIR Bundle as a json
vxuV04ToBundle
Parameters
- message VXU_V04 -
xadToAddress
Parameters
- xad Xad -
xcnToCodeableConcept
function xcnToCodeableConcept(Xcn xcn) returns CodeableConceptParameters
- xcn Xcn -
xcnToHumanName
Parameters
- xcn Xcn -
xcnToReference
Parameters
- xcn Xcn -
xcnToReferenceWithName
xcnToReferenceWithType
xonToOrganization
function xonToOrganization(Xon xon) returns OrganizationParameters
- xon Xon -
xonToReference
Parameters
- xon Xon -
xpnToHumanName
Parameters
- xpn Xpn -
xtnToContactPoint
function xtnToContactPoint(Xtn xtn) returns ContactPoint?Parameters
- xtn Xtn -
Records
health.hl7v23.utils.v2tofhirr4: V2SegmentToFhirMapper
V2toFHIR Mapper function implementation holder record.
Fields
- pv1ToPatient? Pv1ToPatient - PV1 segment to Patient FHIR resource mapping function
- pv1ToEncounter? Pv1ToEncounter - PV1 segment to Encounter FHIR resource mapping function
- pv1ToCoverage? Pv1ToCoverage - PV1 segment to Coverage FHIR resource mapping function
- nk1ToPatient? Nk1ToPatient - NK1 segment to Patient FHIR resource mapping function
- nk1ToRelatedPerson? Nk1ToRelatedPerson - NK1 segment to RelatedPerson FHIR resource mapping function
- pd1ToPatient? Pd1ToPatient - PD1 segment to Patient FHIR resource mapping function
- pidToPatient? PidToPatient - PID segment to Patient FHIR resource mapping function
- dg1ToCondition? Dg1ToCondition - DG1 segment to Condition FHIR resource mapping function
- dg1ToEncounter? Dg1ToEncounter - DG1 segment to Encounter FHIR resource mapping function
- dg1ToEpisodeOfCare? Dg1ToEpisodeOfCare - DG1 segment to EpisodeOfCare FHIR resource mapping function
- obxToObservation? ObxToObservation - OBX segment to Observation FHIR resource mapping function
- obrToDiagnosticReport? ObrToDiagnosticReport - OBR segment to DiagnosticReport FHIR resource mapping function
- obrToServiceRequest? ObrToServiceRequest - OBR segment to ServiceRequest FHIR resource mapping function
- al1ToAllerygyIntolerance? Al1ToAllerygyIntolerance - AL1 segment to AllergyIntolerance FHIR resource mapping function
- evnToProvenance? EvnToProvenance - EVN segment to Provenance FHIR resource mapping function
- mshToMessageHeader? MshToMessageHeader - MSH segment to MessageHeader FHIR resource mapping function
- pv2ToEncounter? Pv2ToEncounter - PV2 segment to Encounter FHIR resource mapping function
- orcToImmunization? OrcToImmunization - ORC segment to Immunization FHIR resource mapping function
- orcToServiceRequest? OrcToServiceRequest - ORC segment to ServiceRequest FHIR resource mapping function
- nteToObservation? NteToObservation - NTE segment to Observation FHIR resource mapping function
- pr1ToProcedure? Pr1ToProcedure - PR1 segment to Procedure FHIR resource mapping function
- rxaToImmunization? RxaToImmunization - RXA segment to Immunization FHIR resource mapping function
- rxoToMedicationRequest? RxoToMedicationRequest - RXO segment to MedicationRequest FHIR resource mapping function
- rxrToImmunization? RxrToImmunization - RXR segment to Immunization FHIR resource mapping function
- rxrToMedicationRequest? RxrToMedicationRequest - RXR segment to MedicationRequest FHIR resource mapping function
- schToAppointment? SchToAppointment - SCH segment to Appointment FHIR resource mapping function
- txaToDocumentReference? TxaToDocumentReference - TXA segment to DocumentReference FHIR resource mapping function
- rolToRelatedPerson? RolToRelatedPerson - ROL segment to RelatedPerson FHIR resource mapping function
- msaToMessageHeader? MsaToMessageHeader - MSA segment to MessageHeader FHIR resource mapping function
- mrgToAccount? MrgToAccount - MRG segment to Account FHIR resource mapping function
- in1ToCoverage? In1ToCoverage - IN1 segment to Coverage FHIR resource mapping function
- in3ToCareTeam? In3ToCareTeam - IN3 segment to CareTeam FHIR resource mapping function
- aigToAppointment? AigToAppointment - AIG segment to Appointment FHIR resource mapping function
- ailToAppointment? AilToAppointment - AIL segment to Appointment FHIR resource mapping function
- aipToAppointment? AipToAppointment - AIP segment to Appointment FHIR resource mapping function
- aisToAppointment? AisToAppointment - AIS segment to Appointment FHIR resource mapping function
health.hl7v23.utils.v2tofhirr4: V2ToFhirCustomMapperServiceConfig
Fields
- baseUrl string -
Union types
Array types
health.hl7v23.utils.v2tofhirr4: Pid5
Pid5
Union types defined for data types for supported hl7 versions.
###################################################################### Union type for holding patient name for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pid9
Pid9
Union type for holding patient alias name for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pid11
Pid11
Union type for holding patient address for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pid13
Pid13
Union type for holding patient home phone number for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pid14
Pid14
Union type for holding patient business phone number for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pd13
Pd13
Union type for patient primary facility for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pd14
Pd14
Union type for patient primary care provider for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk12
Nk12
Union type for patient's extended person's name for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk14
Nk14
Union type for patient's extended person's address for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk15
Nk15
Union type for patient's extended person's home phone number for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk16
Nk16
Union type for patient's extended person's business phone number for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk113
Nk113
Union type for patient's extended person's organization name for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk130
Nk130
Union type for patient's extended person's contact person name for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk131
Nk131
Union type for patient's extended person's contact person phone number for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk132
Nk132
Union type for patient's extended person's contact person address for all supported hl7 versions.
Function types
health.hl7v23.utils.v2tofhirr4: Pv1ToPatient
function(Pv1) returns (Patient)Pv1ToPatient
#################################################################################################### Mapping function definitions for V2 to FHIR #################################################################################################### Mapping function type for PV1 segment to Patient FHIR resource.
health.hl7v23.utils.v2tofhirr4: Pv1ToEncounter
function(Pv1) returns (Encounter)Pv1ToEncounter
Mapping function type for PV1 segment to Encounter FHIR resource.
health.hl7v23.utils.v2tofhirr4: Nk1ToPatient
function(Nk1) returns (Patient)Nk1ToPatient
Mapping function type for NK1 segment to Patient FHIR resource.
health.hl7v23.utils.v2tofhirr4: Pd1ToPatient
function(Pd1) returns (Patient)Pd1ToPatient
Mapping function type for PD1 segment to Patient FHIR resource.
health.hl7v23.utils.v2tofhirr4: PidToPatient
function(Pid) returns (Patient)PidToPatient
Mapping function type for PID segment to Patient FHIR resource.
health.hl7v23.utils.v2tofhirr4: Dg1ToCondition
function(Dg1) returns (Condition)Dg1ToCondition
Mapping function type for DG1 segment to Condition FHIR resource.
health.hl7v23.utils.v2tofhirr4: Dg1ToEncounter
function(Dg1, string?) returns (Encounter)Dg1ToEncounter
Mapping function type for DG1 segment to Encounter FHIR resource.
health.hl7v23.utils.v2tofhirr4: Dg1ToEpisodeOfCare
function(Dg1, string?, string?) returns (EpisodeOfCare)Dg1ToEpisodeOfCare
Mapping function type for DG1 segment to EpisodeOfCare FHIR resource.
health.hl7v23.utils.v2tofhirr4: ObxToObservation
function(Obx) returns (Observation)ObxToObservation
Mapping function type for OBX segment to Observation FHIR resource.
health.hl7v23.utils.v2tofhirr4: ObrToDiagnosticReport
function(Obr) returns (DiagnosticReport)ObrToDiagnosticReport
Mapping function type for OBR segment to DiagnosticReport FHIR resource.
health.hl7v23.utils.v2tofhirr4: Al1ToAllerygyIntolerance
function(Al1) returns (AllergyIntolerance)Al1ToAllerygyIntolerance
Mapping function type for AL1 segment to AllergyIntolerance FHIR resource.
health.hl7v23.utils.v2tofhirr4: EvnToProvenance
function(Evn) returns (Provenance)EvnToProvenance
Mapping function type for EVN segment to Provenance FHIR resource.
health.hl7v23.utils.v2tofhirr4: MshToMessageHeader
function(Msh) returns (MessageHeader)MshToMessageHeader
Mapping function type for MSH segment to MessageHeader FHIR resource.
health.hl7v23.utils.v2tofhirr4: Pv2ToEncounter
function(Pv2) returns (Encounter)Pv2ToEncounter
Mapping function type for PV2 segment to Encounter FHIR resource.
health.hl7v23.utils.v2tofhirr4: OrcToImmunization
function(Orc) returns (Immunization)OrcToImmunization
Mapping function type for ORC segment to Immunization FHIR resource.
health.hl7v23.utils.v2tofhirr4: Nk1ToRelatedPerson
function(Nk1) returns (RelatedPerson)Nk1ToRelatedPerson
Mapping function type for NK1 segment to RelatedPerson FHIR resource.
health.hl7v23.utils.v2tofhirr4: NteToObservation
function(Nte) returns (Observation)NteToObservation
Mapping function type for NTE segment to Observation FHIR resource.
health.hl7v23.utils.v2tofhirr4: OrcToServiceRequest
function(Orc) returns (ServiceRequest)OrcToServiceRequest
Mapping function type for ORC segment to ServiceRequest FHIR resource.
health.hl7v23.utils.v2tofhirr4: ObrToServiceRequest
function(Obr) returns (ServiceRequest)ObrToServiceRequest
Mapping function type for OBR segment to ServiceRequest FHIR resource.
health.hl7v23.utils.v2tofhirr4: Pr1ToProcedure
function(Pr1) returns (Procedure)Pr1ToProcedure
Mapping function type for PR1 segment to Procedure FHIR resource.
health.hl7v23.utils.v2tofhirr4: RxaToImmunization
function(Rxa) returns (Immunization)RxaToImmunization
Mapping function type for RXA segment to Immunization FHIR resource.
health.hl7v23.utils.v2tofhirr4: RxoToMedicationRequest
function(Rxo) returns (MedicationRequest)RxoToMedicationRequest
Mapping function type for RXO segment to MedicationRequest FHIR resource.
health.hl7v23.utils.v2tofhirr4: RxrToImmunization
function(Rxr) returns (Immunization)RxrToImmunization
Mapping function type for RXR segment to Immunization FHIR resource.
health.hl7v23.utils.v2tofhirr4: RxrToMedicationRequest
function(Rxr) returns (MedicationRequest)RxrToMedicationRequest
Mapping function type for RXR segment to MedicationRequest FHIR resource.
health.hl7v23.utils.v2tofhirr4: SchToAppointment
function(Sch) returns (Appointment)SchToAppointment
Mapping function type for SCH segment to Appointment FHIR resource.
health.hl7v23.utils.v2tofhirr4: TxaToDocumentReference
function(Txa) returns (DocumentReference)TxaToDocumentReference
Mapping function type for TXA segment to DocumentReference FHIR resource.
health.hl7v23.utils.v2tofhirr4: RolToRelatedPerson
function(Rol) returns (RelatedPerson)RolToRelatedPerson
Mapping function type for ROL segment to RelatedPerson FHIR resource.
health.hl7v23.utils.v2tofhirr4: MsaToMessageHeader
function(Msa) returns (MessageHeader)MsaToMessageHeader
Mapping function type for MSA segment to MessageHeader FHIR resource.
health.hl7v23.utils.v2tofhirr4: MrgToAccount
function(Mrg) returns (Account)MrgToAccount
Mapping function type for MRG segment to Account FHIR resource.
health.hl7v23.utils.v2tofhirr4: In1ToCoverage
function(In1) returns (Coverage)In1ToCoverage
Mapping function type for IN1 segment to Coverage FHIR resource.
health.hl7v23.utils.v2tofhirr4: In3ToCareTeam
function(In3) returns (CareTeam)In3ToCareTeam
Mapping function type for IN3 segment to CareTeam FHIR resource.
health.hl7v23.utils.v2tofhirr4: Pv1ToCoverage
function(Pv1) returns (Coverage)Pv1ToCoverage
Mapping function type for PV1 segment to Coverage FHIR resource.
health.hl7v23.utils.v2tofhirr4: AigToAppointment
function(Aig) returns (Appointment)AigToAppointment
Mapping function type for AIG segment to Appointment FHIR resource.
health.hl7v23.utils.v2tofhirr4: AilToAppointment
function(Ail) returns (Appointment)AilToAppointment
Mapping function type for AIL segment to Appointment FHIR resource.
health.hl7v23.utils.v2tofhirr4: AipToAppointment
function(Aip) returns (Appointment)AipToAppointment
Mapping function type for AIP segment to Appointment FHIR resource.
health.hl7v23.utils.v2tofhirr4: AisToAppointment
function(Ais) returns (Appointment)AisToAppointment
Mapping function type for AIS segment to Appointment FHIR resource.
Simple name reference types
health.hl7v23.utils.v2tofhirr4: Ce
Ce
Union type for CE data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Xad
Xad
Union type for XAD data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Xon
Xon
Union type for XON data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Xpn
Xpn
Union type for XPN data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Xtn
Xtn
Union type for XTN data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Hd
Hd
Union type for HD data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pt
Pt
Union type for PT data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Ei
Ei
Union type for EI data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Id
Id
Union type for ID data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Xcn
Xcn
Union type for XCN data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Dtm
Dtm
Union type for DTM data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Ts
Ts
Union type for TS data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Is
Is
Union type for IS data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Msh
Msh
Union types for holding hl7 segments for supported hl7 versions.
######################################################################## Union type for holding message header segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Al1
Al1
Union type for holding patient allergy information segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Evn
Evn
Union type for holding event type segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Dg1
Dg1
Union type for holding patient visit segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk1
Nk1
Union type for holding next of kin segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pd1
Pd1
Union type for holding patient identification segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pid
Pid
Union type for holding patient identification segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pv1
Pv1
Union type for holding patient visit segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pv2
Pv2
Union type for holding patient visit additional information segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Obx
Obx
Union type for holding observation segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Orc
Orc
Union type for holding common order segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Obr
Obr
Union type for holding observation request segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pid15
Pid15
Union type for holding patient primary language for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk17
Nk17
Union type for patient's extended person's contact role for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk18
Nk18
Union type for patient's extended person's start date for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk19
Nk19
Union type for patient's extended person's end date for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nk115
Nk115
Union type for patient's extended person's gender for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Nte
Nte
Union type for holding notes and comments segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pr1
Pr1
Union type for holding procedure segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Rol
Rol
Union type for holding role segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Rxa
Rxa
Union type for holding pharmacy/treatment administration segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Rxo
Rxo
Union type for holding pharmacy/treatment order segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Rxr
Rxr
Union type for holding pharmacy/treatment route segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Sch
Sch
Union type for holding schedule activity information segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Txa
Txa
Union type for holding transcription document header segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: In1
In1
Union type for holding insurance segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: In3
In3
Union type for holding insurance additional info - certification segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Mrg
Mrg
Union type for holding merge patient information segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Msa
Msa
Union type for holding message acknowledgement segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Aig
Aig
Union type for holding appointment information - general resource segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Ail
Ail
Union type for holding appointment information - location resource segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Aip
Aip
Union type for holding appointment information - personnel resource segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Ais
Ais
Union type for holding appointment information - service segment for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Cx
Cx
Union type for CX (composite ID with check digit) data type for all supported hl7 versions.
health.hl7v23.utils.v2tofhirr4: Pl
Pl
Union type for PL (person location) data type for all supported hl7 versions.
Import
import ballerinax/health.hl7v23.utils.v2tofhirr4;Other versions
1.1.0
1.0.0Metadata
Released date: 7 days ago
Version: 1.1.0
Compatibility
Platform: any
Ballerina version: 2201.12.10
GraalVM compatible: Yes
Pull count
Total: 120
Current verison: 33
Weekly downloads
Keywords
Healthcare
HL7
V2
FHIR
HL7v2.3
Name/HL7 V2.3 to FHIR R4
Vendor/Other
Area/Healthcare
Type/Library
Contributors