class GenderPIDTransformer implements PIDTransformer {

    @Override
    public List<String> toHL7(PatientInfo patientInfo) {
        notNull(patientInfo, "patientInfo cannot be null");
        String gender = patientInfo.getGender();
        return (StringUtils.isEmpty(gender)) ? null : Collections.singletonList(gender);
    }

}