class SourcePatientNamePIDTransformer implements PIDTransformer {

    @Override
    public void fromHL7(String hl7Data, PatientInfo patientInfo) {
        notNull(patientInfo, "patientInfo cannot be null");
        patientInfo.setName(Hl7v2Based.parse(hl7Data, XpnName.class));
    }

}