Class PatientInfoTransformer
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.transform.hl7.PatientInfoTransformer
Transformation logic for a
PatientInfo
.
This class offers transformation between PatientInfo
and an HL7v2.5
PID string list.
- Author:
- Jens Riemschneider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates aPatientInfo
instance via an HL7 XCN string.toHL7
(PatientInfo patientInfo) Transforms aPatientInfo
instance into the HL7 representation.
-
Constructor Details
-
PatientInfoTransformer
public PatientInfoTransformer()
-
-
Method Details
-
fromHL7
Creates aPatientInfo
instance via an HL7 XCN string.- Parameters:
hl7PID
- the HL7 PID strings. Can benull
.- Returns:
- the created
PatientInfo
instance.null
if no relevant data was found in the HL7 string or the input wasnull
.
-
toHL7
Transforms aPatientInfo
instance into the HL7 representation.- Parameters:
patientInfo
- the patient info to transform. Can benull
.- Returns:
- the HL7 representation.
null
if the input wasnull
or the resulting HL7 string would be empty.
-