Giter Club home page Giter Club logo

hccmobil's Introduction

Especialidades SELECT DISTINCT A.IDAreaMedica,A.cDescripcion FROM Ctl_Servicios S(NOLOCK) INNER JOIN Ctl_AreasMedicas A(NOLOCK) ON S.IDServicio=A.IDServicio INNER JOIN Areas_Unidades AU(NOLOCK) ON S.IDServicio=AU.IDServicio AND A.IDAreaMedica=AU.IDAreaMedica AND AU.cPabellon='S' AND AU.cStatus='A' WHERE S.IDServicio='58' ORDER BY A.IDAreaMedica

Areas SELECT H.cCve_Cama,S.IDServicio,S.cDescripcion,A.IDAreaMedica,A.cDescripcion,H.IDPaciente,P.cNombre + ' ' + P.cPaterno + ' ' + P.cMaterno AS Nombre FROM HGC_ADMISION H(NOLOCK) INNER JOIN CTL_Pacientes P(NOLOCK) ON P.IDPaciente=H.IDPaciente AND H.cStatus='H' INNER JOIN Ctl_Servicios S(NOLOCK) ON S.IDServicio=H.IDServicio INNER JOIN Ctl_AreasMedicas A(NOLOCK) ON A.IDServicio=H.IDServicio AND A.IDAreaMedica=H.IDAreaMedica WHERE A.cDescripcion='GINECOCIRUGIA' ORDER BY H.cCve_Cama INSTRUCCIONES SELECT M.cDescripcion AS Solucion, Pr.cDescripcion AS Presentacion, SI.CDOSIS AS Comentarios, DI.CNUM_NOTA_INDICACION AS FolioIndicacion, CD.cDescripcion AS Dieta, DI.CCANTIDAD AS Cantidad, MA.CLATIPDATNOM AS Metodo, DI.NVECES_DIA AS Tomas, DI.COBSERVACION AS Comentario, DI.CTIPO_INDICACION AS Estatus

                                FROM CTL_Pacientes P (NOLOCK)
                                INNER JOIN HGC_ADMISION AD (NOLOCK) ON AD.IDPaciente=P.IDPaciente AND AD.cStatus='H' 
                                INNER JOIN HGC_NOTA_INDICACION_DIETA DI (NOLOCK) ON DI.CNUM_CONTROL=AD.cNum_Control AND DI.CTIPO_INDICACION<>'S' 
                                AND DI.CNUM_NOTA_INDICACION=(SELECT MAX(CNUM_NOTA_INDICACION) FROM HGC_NOTA_INDICACION_DIETA DII(NOLOCK) 
                                WHERE DII.CNUM_CONTROL=AD.cNum_Control)
                                 INNER JOIN Ctl_Dietas CD (NOLOCK) ON CD.cCve_Dieta=DI.CCVE_DIETA 
                                INNER JOIN ADT_TIPOSDATOSCHECKS MA (NOLOCK) ON MA.CLATIPDAT=DI.CMETODO_ALIMENTACION AND MA.TIPODATO='70'
                                INNER JOIN HGC_NOTA_INDICACION_SOLUCION SI (NOLOCK) ON SI.CNUM_CONTROL=AD.cNum_Control AND SI.CTIPO_INDICACION<>'S' 

AND SI.CNUM_NOTA_INDICACION=(SELECT MAX(CNUM_NOTA_INDICACION) FROM HGC_NOTA_INDICACION_SOLUCION SII(NOLOCK) WHERE SII.CNUM_CONTROL=AD.cNum_Control) INNER JOIN Ctl_Medicamentos M(NOLOCK) ON M.cCve_Medicamento=SI.CCVE_SOLUCION INNER JOIN Ctl_Presentaciones Pr(NOLOCK) ON Pr.IDPresentacion=SI.IDPRESENTACION WHERE P.IDPaciente='ZARP801209MSLZBTZZ'

hccmobil's People

Contributors

soru13 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.