def demo():

    logging.basicConfig(level=logging.INFO, format="%(message)s")
    
    cacher = FMQLCacher("Caches")
    cacher.setVista("GOLD", "http://foiavista.caregraf.org/fmqlEP")
    reportInstitutions(cacher, InstitutionCSVMaker("GOLD"))
Beispiel #2
0
def demo():

    logging.basicConfig(level=logging.INFO, format="%(message)s")

    cacher = FMQLCacher("Caches")
    cacher.setVista("GOLD", "http://foiavista.caregraf.org/fmqlEP")
    reportInstitutions(cacher, InstitutionCSVMaker("GOLD"))
Beispiel #3
0
            vista = a
        elif o in ["-f", "--fmqlep"]:
            fmqlEP = a
        elif o in ["--host"]:
            host = a
        elif o in ["--port"]:
            port = a            
        elif o in ["--access"]:
            access = a
        elif o in ["--verify"]:
            verify = a
        elif o in ["-r", "--report"]:
            report = a
        elif o in ["-h", "--help"]:
            print __doc__
            sys.exit()
    if not report:
        sys.exit()
    if vista == "CGVISTA":
        print "Defaulting to Caregraf's demo VistA, 'CGVISTA'"
        fmqlEP = "http://vista.caregraf.org/fmqlEP"
    print "VDM - comparing %s against GOLD" % vista
    goldCacher = FMQLCacher("Caches")
    goldCacher.setVista("GOLD")
    otherCacher = FMQLCacher("Caches")
    otherCacher.setVista(vista, fmqlEP=fmqlEP, host=host, port=int(port), access=access, verify=verify)
    _runReport(report, goldCacher, otherCacher)
    
if __name__ == "__main__":
    main()
Beispiel #4
0
            port = a
        elif o in ["--access"]:
            access = a
        elif o in ["--verify"]:
            verify = a
        elif o in ["-r", "--report"]:
            report = a
        elif o in ["-h", "--help"]:
            print __doc__
            sys.exit()
    if not report:
        sys.exit()
    if vista == "CGVISTA":
        print "Defaulting to Caregraf's demo VistA, 'CGVISTA'"
        fmqlEP = "http://vista.caregraf.org/fmqlEP"
    print "VDM - comparing %s against GOLD" % vista
    goldCacher = FMQLCacher("Caches")
    goldCacher.setVista("GOLD")
    otherCacher = FMQLCacher("Caches")
    otherCacher.setVista(vista,
                         fmqlEP=fmqlEP,
                         host=host,
                         port=int(port),
                         access=access,
                         verify=verify)
    _runReport(report, goldCacher, otherCacher)


if __name__ == "__main__":
    main()