Exemplo n.º 1
0
    def pact_dot_link(self, case_id ):
        from pact.reports.dot import PactDOTReport

        try:
            return PactDOTReport.get_url(*[self.domain]) + "?dot_patient=%s" % case_id
        except NoReverseMatch:
            return "#"
Exemplo n.º 2
0
    def pact_dot_link(self, case_id ):
        from pact.reports.dot import PactDOTReport

        try:
            return PactDOTReport.get_url(*[self.domain]) + "?dot_patient=%s" % case_id
        except NoReverseMatch:
            return "#"
Exemplo n.º 3
0
    def pact_dot_link(self, case_id, status):

        if status is None or status == '':
            return ''

        try:
            return html.mark_safe("<span class='label label-info'>%s</span> <a class='ajax_dialog' href='%s'>Report</a>" % (
                html.escape(status),
                html.escape(
                    PactDOTReport.get_url(*[self.domain]) + "?dot_patient=%s" % case_id),
                ))
        except NoReverseMatch:
            return "%s (bad ID format)" % status
Exemplo n.º 4
0
    def pact_dot_link(self, case_id, status):

        if status is None or status == '':
            return ''

        try:
            return format_html(
                "<span class='label label-info'>{}</span> <a class='ajax_dialog' href='{}'>Report</a>",
                status,
                PactDOTReport.get_url(self.domain) +
                "?dot_patient=%s" % case_id)
        except NoReverseMatch:
            return "%s (bad ID format)" % status
Exemplo n.º 5
0
    def drilldown_url(self):
        from pact.reports.dot import PactDOTReport
        if 'case_id' in self.form['case']:
            case_id = self.form['case'].get('case_id', None)
        elif '@case_id' in self.form['case']:
            case_id = self.form['case'].get('@case_id', None)
        else:
            case_id = None

        if case_id is not None:
            return PactDOTReport.get_url(*[PACT_DOMAIN]) + "?dot_patient=%s&submit_id=%s" % (case_id, self._id)
        else:
            return "#"
        pass
Exemplo n.º 6
0
    def drilldown_url(self):
        from pact.reports.dot import PactDOTReport
        if self.form['case'].has_key('case_id'):
            case_id = self.form['case'].get('case_id', None)
        elif self.form['case'].has_key('@case_id'):
            case_id = self.form['case'].get('@case_id', None)
        else:
            case_id = None

        if case_id is not None:
            return PactDOTReport.get_url(*[PACT_DOMAIN]) + "?dot_patient=%s&submit_id=%s" % (case_id, self._id)
        else:
            return "#"
        pass
Exemplo n.º 7
0
 def get_dot_url(self):
     from pact.reports.dot import PactDOTReport
     return PactDOTReport.get_url(
         *[PACT_DOMAIN]) + "?dot_patient=%s" % self._id
Exemplo n.º 8
0
 def get_dot_url(self):
     from pact.reports.dot import PactDOTReport
     return PactDOTReport.get_url(*[PACT_DOMAIN]) + "?dot_patient=%s" % self._id