diff options
Diffstat (limited to 'server/xml/macros/header-1.0.xml')
-rw-r--r-- | server/xml/macros/header-1.0.xml | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/server/xml/macros/header-1.0.xml b/server/xml/macros/header-1.0.xml deleted file mode 100644 index 191f05e..0000000 --- a/server/xml/macros/header-1.0.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!-- - 20090420: Bent Bisballe Nyeng - Tilføjede '-' til cpr nummeret. - - 20090526: Bent Bisballe Nyeng - Nye min størrelser på lineedits, så navnet altid kan ses. - --> -<macro name="header" version="1.0"> - <resume/> - <queries> - <query service="pentominos" class="cpr" ttl="1000000"/> - <query service="pentominos" class="referral" ttl="1000000"/> - </queries> - <maps> - <map name="cpr_bindestreg"> - value = 0 - timestamp = 0 - source = 'pentominos' - - if(cpr and cpr.cpr and cpr.cpr.value and cpr.cpr.timestamp and cpr.cpr.source) - then - value = string.sub(cpr.cpr.value,1,6) .. '-' .. string.sub(cpr.cpr.value,7,11) - timestamp = cpr.cpr.timestamp - source = cpr.cpr.source - end - - return value, timestamp, source - </map> - </maps> - <scripts> - </scripts> - <widgets caption="Patient informationer (B.0)" - layout="hbox"> - - <!-- Patient info --> - <frame layout="vbox"> - <frame layout="hbox"> - <label caption="Navn:" width="50"/> - <lineedit name="header.name" map="cpr.name" readonly="true" - value="Patienten kunne ikke findes" width="150"/> - </frame> - <frame layout="hbox"> - <label caption="Cpr-nr:" width="50"/> - <lineedit name="header.cpr" map="cpr_bindestreg" value="-" readonly="true" width="150"/> - </frame> - </frame> - - <!-- Henvisnings info --> - <frame layout="vbox"> - <frame layout="hbox"> - <label width="100" caption="Henvisende læge:"/> - <lineedit name="henvisning.laege" map="henvisning.laege" readonly="true" - value="Henvisnings informationer kunne ikke findes"/> - </frame> - <frame layout="hbox"> - <label width="100" caption="Henvisningskode:"/> - <lineedit name="henvisning.diagnose_kode" map="henvisning.code" value="-" readonly="true"/> - <label width="60" caption="Diagnose:"/> - <lineedit width="100" name="henvisning.diagnose" map="henvisning.diagnose" value="-" readonly="true"/> - </frame> - </frame> - - </widgets> -</macro> |