Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here, the variables '$map_value' etc are all in English; so are the assertion tags 'mean_arterial_pressure' and 'pulse_pressure'. To make this language-independent, we would need to do something like this:

Code Block
rules
	$rv1$[rv1]: Real := /data[id2]/events[id7]/data[id4]/items[id1007]/value/magnitude
	$rv2$[rv2]: Real := /data[id2]/events[id7]/data[id4]/items[id5]/value/magnitude
	$rv3$[rv3]: Real := /data[id2]/events[id7]/data[id4]/items[id6]/value/magnitude

	[rt1]: $rv1$[rv1] = $rv3$[rv3] + 0.33 * ( $rv2$[rv2] - $rv3$[rv3] )

	$rv4$[rv4]: Real := /data[id2]/events[id7]/data[id4]/items[id1008]/value/magnitude

	[rt2]: $rv4$[rv4] = $rv2$[rv2] - $rv3$[rv3]
 
terminology
	term_definitions = <
		["en"] = <
			...
			["rv1"] = <
				text = <"map_value">
				description = <"MAP value variable">
			>
			["rv2"] = <
				text = <"sys_bp_val">
				description = <"Systolic BP value variable">
			>
			["rv3"] = <
				text = <"dia_bp_val">
				description = <"Diastolic BP value variable">
			>
			["rv4"] = <
				text = <"pulse_pressure_val">
				description = <"Pulse pressure value variable">
			>
			["rt1"] = <
				text = <"mean_arterial_pressure">
				description = <"MAP assertion tag">
			>
			["rt2"] = <
				text = <"pulse_pressure">
				description = <"Pulse pressure assertion tag">
			>

		>
		["es"] = <
			...
		>
	>
	

...