Beispiel #1
0
class TestUrlsForPhyExam(object):
  
  def __init__(self):
    self.pat= PatientDetail.objects.get(pk =1)
    self.surg = Staff.objects.get(pk = 1)
    self.clinic = Clinic.objects.get(pk = 1)


  def __call__(self):
    self.vis = VisitDetail()
    self.vis.patient_detail = self.pat
    self.vis.visit_date = datetime.datetime.now()
    self.vis.op_surgeon = self.surg
    self.vis.save()

    self.pat.save()
    self.pat.generate_urls()

    print "\n"
    print "URLS for Patient is " 
    print self.pat.urls
    print self.pat.urls['tree']['patient']
    print "#"*50

    print "\n"
    print "URLS for Visit is " 
    self.vis.generate_urls()
    print self.vis.urls
    print "#"*50
    print "\n"


    self.pe = PhyExamBaseModel(visit_detail = self.vis,physician = self.surg)
    self.pe.save()

    print "\n"
    print "URLS for Phyexam is" 
    self.pe.generate_urls()
    print self.pe.urls
    print "#"*50
    print "\n"

    print "\n"
    print "Reprinting Visit URLS" 
    #self.vis.generate_urls()
    print self.vis.urls
    print "#"*50
    print "\n"


    print "\n"
    print "Reprinting Patient URLS" 
    #self.pat.generate_urls()
    print self.pat.urls
    print "#"*50
    print "\n"
Beispiel #2
0
class TestUrlsForPhyExam(object):
    def __init__(self):
        self.pat = PatientDetail.objects.get(pk=1)
        self.surg = Staff.objects.get(pk=1)
        self.clinic = Clinic.objects.get(pk=1)

    def __call__(self):
        self.vis = VisitDetail()
        self.vis.patient_detail = self.pat
        self.vis.visit_date = datetime.datetime.now()
        self.vis.op_surgeon = self.surg
        self.vis.save()

        self.pat.save()
        self.pat.generate_urls()

        print "\n"
        print "URLS for Patient is "
        print self.pat.urls
        print self.pat.urls['tree']['patient']
        print "#" * 50

        print "\n"
        print "URLS for Visit is "
        self.vis.generate_urls()
        print self.vis.urls
        print "#" * 50
        print "\n"

        self.pe = PhyExamBaseModel(visit_detail=self.vis, physician=self.surg)
        self.pe.save()

        print "\n"
        print "URLS for Phyexam is"
        self.pe.generate_urls()
        print self.pe.urls
        print "#" * 50
        print "\n"

        print "\n"
        print "Reprinting Visit URLS"
        #self.vis.generate_urls()
        print self.vis.urls
        print "#" * 50
        print "\n"

        print "\n"
        print "Reprinting Patient URLS"
        #self.pat.generate_urls()
        print self.pat.urls
        print "#" * 50
        print "\n"
Beispiel #3
0
    def __call__(self):
        self.vis = VisitDetail()
        self.vis.patient_detail = self.pat
        self.vis.visit_date = datetime.datetime.now()
        self.vis.op_surgeon = self.surg
        self.vis.save()

        self.pat.save()
        self.pat.generate_urls()

        print "\n"
        print "URLS for Patient is "
        print self.pat.urls
        print self.pat.urls['tree']['patient']
        print "#" * 50

        print "\n"
        print "URLS for Visit is "
        self.vis.generate_urls()
        print self.vis.urls
        print "#" * 50
        print "\n"

        self.pe = PhyExamBaseModel(visit_detail=self.vis, physician=self.surg)
        self.pe.save()

        print "\n"
        print "URLS for Phyexam is"
        self.pe.generate_urls()
        print self.pe.urls
        print "#" * 50
        print "\n"

        print "\n"
        print "Reprinting Visit URLS"
        #self.vis.generate_urls()
        print self.vis.urls
        print "#" * 50
        print "\n"

        print "\n"
        print "Reprinting Patient URLS"
        #self.pat.generate_urls()
        print self.pat.urls
        print "#" * 50
        print "\n"
Beispiel #4
0
  def __call__(self):
    self.vis = VisitDetail()
    self.vis.patient_detail = self.pat
    self.vis.visit_date = datetime.datetime.now()
    self.vis.op_surgeon = self.surg
    self.vis.save()

    self.pat.save()
    self.pat.generate_urls()

    print "\n"
    print "URLS for Patient is " 
    print self.pat.urls
    print self.pat.urls['tree']['patient']
    print "#"*50

    print "\n"
    print "URLS for Visit is " 
    self.vis.generate_urls()
    print self.vis.urls
    print "#"*50
    print "\n"


    self.pe = PhyExamBaseModel(visit_detail = self.vis,physician = self.surg)
    self.pe.save()

    print "\n"
    print "URLS for Phyexam is" 
    self.pe.generate_urls()
    print self.pe.urls
    print "#"*50
    print "\n"

    print "\n"
    print "Reprinting Visit URLS" 
    #self.vis.generate_urls()
    print self.vis.urls
    print "#"*50
    print "\n"


    print "\n"
    print "Reprinting Patient URLS" 
    #self.pat.generate_urls()
    print self.pat.urls
    print "#"*50
    print "\n"