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

br.ufsc.bridge.mpiclient.responsehandler.pdq.NomePaiHandler 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.responsehandler.pdq;

import org.xml.sax.Attributes;

import br.ufsc.bridge.mpiclient.model.Cidadao;
import br.ufsc.bridge.mpiclient.responsehandler.DefaultAttributeHandler;

public class NomePaiHandler extends DefaultAttributeHandler {

	public NomePaiHandler() {
		super("relationshipHolder1");
		this.handlers.add(new NomeHandler(nomePai -> this.current.setNomePai(nomePai)));
	}

	@Override
	public boolean accept(String localName, Attributes attr) {
		return "code".equals(localName) && "NPRN".equals(attr.getValue("code"));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy