Hi and welcome back to the MPL blog of your choice...
...well it's the only blog about the molis programming language. :D
As I described in the last post I will show you this time the huge difference between sample_dt.-1 and DT.-1.
So lets just begin with sample_dt.ORD. In this field the date of the currenct order is saved. If you want the date of not the current order but the order before you only have to write sample_dt.-1. If you want the date of the oder before that you write sample_dt.-2 and so on.
In comparison to sample_dt.ord we have DT{XX} and DT.-1{XX}. DT give us the date of the analytical procedure specified with XX.
So what is all the fuzz about it?
Well there is a big difference between these two functions. While sample_dt.-1 returns the date of the oder befor of the actual order DT.-1{XX} returns the date of the procedure befor the actual procedure.
An example: In your actual oder you want to measure hemoglobin, but only if you didn't measured it in the last week for the same patient. So you could check on sample_dt.-1 but that would only return the date of the last order not the date of your last hemoglobin procedure. So you see, there is room for many logical mistakes if you use sample_dt.-1 instead of DT.-1{XX}.
We will see a implementation of this post in the future.
Until then: Happy MPL coding!
Keine Kommentare:
Kommentar veröffentlichen