Hello All,
I am trying to separate out active vs inactive medications. From what I can tell the only indicator of this is 'STOPDATE' in the MEDICATE table. The value for active medications is December 31, 4700. I see this for all medications whether they are active or inactive. When I tried testing out stopping a medication for today nothing changed. Does anyone else have this issue? Is there another way to determine inactive medications?
Thanks,
Brad
Make sure that XID=1*10^18, i.e. the last entry for a given mediation chain. Check MEDICATE.StopReason, should be not null. If your doc's don't doc stopped meds, there is no workaround. As my professor of medicine once said, "If good intentions are combined with stupidity, it is impossible to outthink them".
You can evaluate the "change" field too, that might help. 0 is a remove of a pen so that applies to stopped medications but also removed medications so just be careful with it but that might send you in the right direction.
Thank you. I think I am headed in the right direction now taking a look at the XID.