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