From 74a28aa7125be6a603128ad600c98c4882f3b5c2 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 1 Jun 2010 12:58:32 +0000 Subject: From new_protocol branch. --- server/xml/macros/cycloplegisk_refraktion-1.0.xml | 110 +-------- server/xml/macros/egen_brille-1.0.xml | 2 +- server/xml/macros/manifest_refraktion-1.0.xml | 110 +-------- server/xml/macros/ref-spaltelampe-1.0.xml | 215 ++++-------------- server/xml/macros/ref_90d_linse-1.0.xml | 2 +- server/xml/macros/ref_aktuelle-1.0.xml | 3 +- .../ref_behandling-kirurgisk_procedure-1.0.xml | 250 +++------------------ .../xml/macros/ref_efterkontrol-overskrift-1.0.xml | 1 - .../ref_foerstedagskontol-overskrift-1.0.xml | 1 - server/xml/macros/ref_forunders-konklusion-1.0.xml | 1 - server/xml/macros/test_metawidget.xml | 4 +- server/xml/macros/visus-autoref-1.0.xml | 4 +- server/xml/macros/visus-egen_korr-1.0.xml | 10 +- .../xml/macros/visus-manifest_refraktion-1.0.xml | 24 +- server/xml/macros/visus-ou-1.0.xml | 2 +- server/xml/macros/visus-template-1.0.xml | 16 +- server/xml/macros/visus-uden_korr-1.0.xml | 10 +- 17 files changed, 130 insertions(+), 635 deletions(-) (limited to 'server/xml/macros') diff --git a/server/xml/macros/cycloplegisk_refraktion-1.0.xml b/server/xml/macros/cycloplegisk_refraktion-1.0.xml index 7c66cf3..cdef363 100644 --- a/server/xml/macros/cycloplegisk_refraktion-1.0.xml +++ b/server/xml/macros/cycloplegisk_refraktion-1.0.xml @@ -35,7 +35,7 @@ return out - + @@ -76,102 +76,6 @@ end return value, timestamp, source - - -- Returning 0, 0 invalidates the result - value = 0 - timestamp = 0 - source = 0 - - if(visutron900plus and visutron900plus.osin and visutron900plus.osin.sph_near and visutron900plus.osin.sph_near.value and visutron900plus.osin.sph_near.timestamp) - then - value = visutron900plus.osin.sph_near.value - -- convert . to , - value = string.gsub(value, '[.]', ',') - timestamp = visutron900plus.osin.sph_near.timestamp - source = visutron900plus.osin.sph_near.source - end - return value, timestamp, source - - - -- Returning 0, 0 invalidates the result - value = 0 - timestamp = 0 - source = 0 - - if(visutron900plus and visutron900plus.osin and visutron900plus.osin.cyl and visutron900plus.osin.cyl.value and visutron900plus.osin.cyl.timestamp) - then - value = visutron900plus.osin.cyl.value - -- convert . to , - value = string.gsub(value, '[.]', ',') - timestamp = visutron900plus.osin.cyl.timestamp - source = visutron900plus.osin.cyl.source - end - return value, timestamp, source - - - -- Returning 0, 0 invalidates the result - value = 0 - timestamp = 0 - source = 0 - - if(visutron900plus and visutron900plus.osin and visutron900plus.osin.axis and visutron900plus.osin.axis.value and visutron900plus.osin.axis.timestamp) - then - value = visutron900plus.osin.axis.value - -- convert . to , - value = string.gsub(value, '[.]', ',') - timestamp = visutron900plus.osin.axis.timestamp - source = visutron900plus.osin.axis.source - end - return value, timestamp, source - - - -- Returning 0, 0 invalidates the result - value = 0 - timestamp = 0 - source = 0 - - if(visutron900plus and visutron900plus.odxt and visutron900plus.odxt.sph_near and visutron900plus.odxt.sph_near.value and visutron900plus.odxt.sph_near.timestamp) - then - value = visutron900plus.odxt.sph_near.value - -- convert . to , - value = string.gsub(value, '[.]', ',') - timestamp = visutron900plus.odxt.sph_near.timestamp - source = visutron900plus.odxt.sph_near.source - end - return value, timestamp, source - - - -- Returning 0, 0 invalidates the result - value = 0 - timestamp = 0 - source = 0 - - if(visutron900plus and visutron900plus.odxt and visutron900plus.odxt.cyl and visutron900plus.odxt.cyl.value and visutron900plus.odxt.cyl.timestamp) - then - value = visutron900plus.odxt.cyl.value - -- convert . to , - value = string.gsub(value, '[.]', ',') - timestamp = visutron900plus.odxt.cyl.timestamp - source = visutron900plus.odxt.cyl.source - end - return value, timestamp, source - - - -- Returning 0, 0 invalidates the result - value = 0 - timestamp = 0 - source = 0 - - if(visutron900plus and visutron900plus.odxt and visutron900plus.odxt.axis and visutron900plus.odxt.axis.value and visutron900plus.odxt.axis.timestamp) - then - value = visutron900plus.odxt.axis.value - -- convert . to , - value = string.gsub(value, '[.]', ',') - timestamp = visutron900plus.odxt.axis.timestamp - source = visutron900plus.odxt.axis.source - end - return value, timestamp, source - - - - @@ -374,12 +280,11 @@ -