## -*- coding: utf-8 -*- <%inherit file="main.mako" /> <%! import mpulsweb.lib.helper.filters as F %> <%! import mpulsweb.lib.helper.case as C %> <%def name="buildNavipath()"> ${parent.buildNavipath()}
  • ${_('Selected case documents')}
  • ${_('Summary of the case document')}
  • <%def name="buildModusfield()">
    <%def name="buildContentHeader()"> <%def name="renderCustomCaseStateInfo(case)"> ## ## Ole ## Ole ## <%def name="renderCaseInfo(case)">

    ${_('Digest youth')}

    % for num, field in enumerate(c.case.get_digest_fields()): % endfor
    ${c.case.get_description(field.name)} ${h.convertForDigest(c.case.get_value(field.name))| F.NA}
    <%def name="renderMaxSavetimeInfo(case)">
    ${_('Summary of the case document')}
    ${self.buildModusfield()}
    % if not c.print_version: % if (c.finished and c.daysToMaxSavetime < 0) or (not c.finished and c.daysToMaxSavetime <= 0):
    % if c.finished:

    ${_('attention')} ${_('Max save duration exceeded!')}

    Nach Beendigung des Case Managements ist eine weitere Aufbewahrung der personenbezogenen Daten der Fallakte nur bis zur maximalen Speicherdauer zulässig. Die maximale Speicherdauer (${c.maxsavetime} Tage) wurde seit ${abs(c.daysToMaxSavetime)} Tagen überschritten! Es wird empfohlen, die Fallakte zu anonymisieren!

    % endif % if not c.finished:

    ${_('attention')}Inaktiver Fall?

    Für die Fallakte konnte seit ${abs(c.daysToMaxSavetime)+int(c.maxsavetime)} Tagen keine Aktivität festgestellt werden. Bitte prüfen Sie, ob der Fall noch aktiv bearbeitet wird.

    % endif
    % else:

    ${_('Last modification')}: ${h.format_datetime(c.last_access)} % if c.daysToMaxSavetime <= 14: % if c.finished or c.canceled: (${_('Days to exceed the max save duration')}: ${c.daysToMaxSavetime}) % else: (${_('Days to next automatic reminder of the case document')}: ${c.daysToMaxSavetime}) % endif % endif

    % endif % endif <%def name="renderCaseStateInfo(case)">

    ${_('Information on case')}

    <% editor = c.case.getEditor() %> <% casetype = g.mpuls_config.get('phases', 'casetype')[0].get(str(c.case.getState().getPhase())) %> % if casetype is not None: % endif % if g.mpuls_config.is_enabled('case-module', 'tags'): % endif ${self.renderCustomCaseStateInfo(c.case)}
    ${_('ID')} ${c.case.id}
    ${_('Editor')} ${editor.last_name | F.NA}, ${editor.first_name | F.NA}
    ${_('Casetype')} ${casetype}
    ${_('Phase')} ${h.literal(c.case.getState().getPhaseDescription())}
    ${_('Validity')} % for validity in g.mpuls_config.get('validities', 'enabled'): % if validity['id'] == c.case.getValidity(): ${validity['name']} % endif % endfor
    ${_('Start and Enddates')} % if c.case.getState().getPhase() != -1:
      <% reachable = c.case.get_phaseslist().get_path( str(c.case.getState().getPhase()),only_reachable=False) %> % for phase in c.case.get_phaseslist(): <% if phase.id == "-1" and g.mpuls_config.is_enabled('phases', 'hideunknown'): continue %> % if phase.getStart().id in reachable or phase.getEnd().id in reachable:
    • ${h.literal(phase.description)}
      ${_('Start date')}: ${h.format_date(phase.getStart().date) | F.NA}
      ${_('End date')}: ${h.format_date(phase.getEnd().date) | F.NA}
      ${_('Duration in weeks')}: ${C.phase_time_in_weeks(phase.getDuration()) | F.NA}
    • % endif % endfor
    % else: ${_('unknown')} % endif
    ${self.body()}