예제 #1
0
        public DT_r_InfoPaciente SI_os_InfoPaciente([System.Xml.Serialization.XmlElementAttribute(Namespace = "urn:clinicauandes.org.ish.InfoPac")] DT_InfoPaciente MT_InfoPaciente)
        {
            object[] results = this.Invoke("SI_os_InfoPaciente", new object[] {
                MT_InfoPaciente
            });

            return((DT_r_InfoPaciente)(results[0]));
        }
예제 #2
0
 /// <remarks/>
 public void SI_os_InfoPacienteAsync(DT_InfoPaciente MT_InfoPaciente, object userState)
 {
     if ((this.SI_os_InfoPacienteOperationCompleted == null))
     {
         this.SI_os_InfoPacienteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSI_os_InfoPacienteOperationCompleted);
     }
     this.InvokeAsync("SI_os_InfoPaciente", new object[] {
         MT_InfoPaciente
     }, this.SI_os_InfoPacienteOperationCompleted, userState);
 }
예제 #3
0
        /// <summary>
        /// Retorna la información relacionada a un paciente, tiene como
        /// parametro de entrada el documento de indentificación(Rut Passport)
        /// </summary>
        /// <returns>Objeto con la información de un paciente</returns>
        public Paciente GetPaciente(String DocId)
        {
            Config   oConfig     = new Config();
            Paciente objPaciente = new Paciente();

            WsInfoPac.SI_os_InfoPacienteService serv   = new WsInfoPac.SI_os_InfoPacienteService();
            WsInfoPac.DT_r_InfoPaciente         oRInfo = new WsInfoPac.DT_r_InfoPaciente();
            WsInfoPac.DT_InfoPaciente           oRut   = new WsInfoPac.DT_InfoPaciente();
            oRut.IdPac            = DocId;
            serv.Credentials      = new NetworkCredential(oConfig.User, oConfig.Pass);
            oRInfo                = serv.SI_os_InfoPaciente(oRut);
            objPaciente.Nombre    = oRInfo.Nombre;
            objPaciente.Apellidos = oRInfo.AppPat + " " + oRInfo.AppMat;
            objPaciente.Email     = oRInfo.Email;
            string Fecha = oRInfo.FechaNacimiento.Substring(6, 2) + "/" + oRInfo.FechaNacimiento.Substring(4, 2) + "/" + oRInfo.FechaNacimiento.Substring(0, 4);

            objPaciente.FechaNacimiento = DateTime.Parse(Fecha);
            objPaciente.Rut             = DocId;
            objPaciente.Telefono1       = oRInfo.Telefono1;
            objPaciente.Telefono2       = oRInfo.Telefono2;
            objPaciente.Direccion       = oRInfo.Direccion;
            return(objPaciente);
        }
예제 #4
0
 /// <remarks/>
 public void SI_os_InfoPacienteAsync(DT_InfoPaciente MT_InfoPaciente)
 {
     this.SI_os_InfoPacienteAsync(MT_InfoPaciente, null);
 }