Lab identification in the DSM data: Difference between revisions
Ttenbergen (talk | contribs) |
Ttenbergen (talk | contribs) m Text replacement - "[[Category: " to "[[Category:" |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 11: | Line 11: | ||
=== Start of date range === | === Start of date range === | ||
The Lab_DtTm is compared to the admit time of the patient as follows: | The Lab_DtTm is compared to the admit time of the patient as follows: | ||
* <code>" WHERE ([ | * <code>" WHERE ([Admit_DtTm]<=" & LabDtTm_str & ") AND (" & LabDtTm_str & "<=nz([Dispo_DtTm],now())) "</code> | ||
** ie we start the range with the | ** ie we start the range with the [[Admit DtTm]] | ||
=== date constraints === | === date constraints === | ||
| Line 32: | Line 18: | ||
*<code>[Arrive_DtTm]<=CDate(Nz([COLLECTEDDATE],[arriveddate]))+CDate(Nz([CollectedTime],[LabarrivedTime]))</code> | *<code>[Arrive_DtTm]<=CDate(Nz([COLLECTEDDATE],[arriveddate]))+CDate(Nz([CollectedTime],[LabarrivedTime]))</code> | ||
*<code>CDate(Nz([COLLECTEDDATE],[arriveddate]))+CDate(Nz([CollectedTime],[LabarrivedTime]))<=[Dispo_DtTm]</code> | *<code>CDate(Nz([COLLECTEDDATE],[arriveddate]))+CDate(Nz([CollectedTime],[LabarrivedTime]))<=[Dispo_DtTm]</code> | ||
=== counts === | === counts === | ||
We originally did labs as counts, but now store them with results. A count of them can be viewed using query ''L_Labs_Flowsheet_DSM_sum''. | We originally did labs as counts, but now store them with results. A count of them can be viewed using query ''L_Labs_Flowsheet_DSM_sum''. | ||
| Line 51: | Line 38: | ||
[[Category: DSM Labs Extract]] | [[Category:DSM Labs Extract]] | ||