class SourcePatientNamePIDTransformer implements PIDTransformer {

    @Override
    public List<String> toHL7(PatientInfo patientInfo) {
        notNull(patientInfo, "patientInfo cannot be null");
        String name = Hl7v2Based.render(patientInfo.getName());
        return (name == null) ? null : Collections.singletonList(name);
    }

}