class GenderPIDTransformer implements PIDTransformer {

    @Override
    public void fromHL7(String hl7Data, PatientInfo patientInfo) {
        notNull(patientInfo, "patientInfo cannot be null");
        if (StringUtils.isNotEmpty(hl7Data)) {
            patientInfo.setGender(hl7Data);
        }
    }

}