public class PatientInfoTransformer extends Object
PatientInfo
.
This class offers transformation between PatientInfo
and an HL7v2.5
PID string list.
Constructor and Description |
---|
PatientInfoTransformer() |
Modifier and Type | Method and Description |
---|---|
PatientInfo |
fromHL7(List<String> hl7PID)
Creates a
PatientInfo instance via an HL7 XCN string. |
List<String> |
toHL7(PatientInfo patientInfo)
Transforms a
PatientInfo instance into the HL7 representation. |
public PatientInfo fromHL7(List<String> hl7PID)
PatientInfo
instance via an HL7 XCN string.hl7PID
- the HL7 PID strings. Can be null
.PatientInfo
instance. null
if no relevant
data was found in the HL7 string or the input was null
.public List<String> toHL7(PatientInfo patientInfo)
PatientInfo
instance into the HL7 representation.patientInfo
- the patient info to transform. Can be null
.null
if the input was null
or the resulting HL7 string would be empty.Copyright © 2018 Open eHealth Foundation. All rights reserved.