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

br.ufsc.bridge.mpiclient.validator.CTPSValidator 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.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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy