br.ufsc.bridge.mpiclient.validator.CTPSValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mpi-client Show documentation
Show all versions of mpi-client Show documentation
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.MCTPS.meta;
import br.ufsc.bridge.mpiclient.model.CTPS;
import br.ufsc.bridge.platform.validation.form.errors.FormError;
import br.ufsc.bridge.platform.validation.rules.Rules;
public class CTPSValidator {
public void validate(CTPS ctps, FormError error) {
error
.check(meta.dataEmissao, Rules.required)
.check(meta.numero, Rules.required)
.check(meta.serie, Rules.required);
}
}