class PatientAddressPIDTransformer implements PIDTransformer {

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

}