Class PatientInfoTransformer

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.transform.hl7.PatientInfoTransformer

public class PatientInfoTransformer extends Object
Transformation logic for a PatientInfo.

This class offers transformation between PatientInfo and an HL7v2.5 PID string list.

Author:
Jens Riemschneider
  • Constructor Details

    • PatientInfoTransformer

      public PatientInfoTransformer()
  • Method Details

    • fromHL7

      public PatientInfo fromHL7(List<String> hl7PID)
      Creates a PatientInfo instance via an HL7 XCN string.
      Parameters:
      hl7PID - the HL7 PID strings. Can be null.
      Returns:
      the created PatientInfo instance. null if no relevant data was found in the HL7 string or the input was null.
    • toHL7

      public List<String> toHL7(PatientInfo patientInfo)
      Transforms a PatientInfo instance into the HL7 representation.
      Parameters:
      patientInfo - the patient info to transform. Can be null.
      Returns:
      the HL7 representation. null if the input was null or the resulting HL7 string would be empty.