All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.ufsc.bridge.mpiclient.validator.RGValidator Maven / Gradle / Ivy

Go to download

Implementação de client para um servidor MPI (Master Patient Index) utilizando mensagens SOAP (PIX/PDQ) baseadas na especificação técnica para integração do DATASUS.

The newest version!
package br.ufsc.bridge.mpiclient.validator;

import static br.ufsc.bridge.mpiclient.model.MRG.meta;

import br.ufsc.bridge.mpiclient.model.RG;
import br.ufsc.bridge.platform.validation.form.errors.FormError;
import br.ufsc.bridge.platform.validation.rules.Rules;

public class RGValidator {

	public void validate(RG rg, FormError error) {
		error
				.check(meta.dataEmissao, Rules.required)
				.check(meta.numero, Rules.required)
				.check(meta.orgaoEmissor, Rules.required)
				.check(meta.uf, Rules.required);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy