Coder Social home page Coder Social logo

Comments (3)

patrickthoral avatar patrickthoral commented on May 27, 2024

Thanks for pointing this out! Indeed, the intended way was to use the last documented diagnosis, because typically that was a correction on the initial documentation (often by more 'junior' physicians) by staff (intensivists). However, I incorrectly used measuredat instead of updatedat for sorting. This, as you found out, lead to unpredictable sorting since measuredat is not unique for a given admission diagnosis , while updatedat should always be unique. I'll fix this shortly.

from amsterdamumcdb.

tedinburgh avatar tedinburgh commented on May 27, 2024

Great, that makes sense! Is it better to use updatedat instead of measuredat in other situations too?

from amsterdamumcdb.

patrickthoral avatar patrickthoral commented on May 27, 2024

Not necessarily. For most time series the time the measurement belongs to (measuredat) is the most relevant one, because that allows us to see the correct order of sequential measurements. The updatedat only documents when the record was last updated (or created), which is often slightly later, because nurses, performing most documentation and data validation, will document when they are less busy, but try to make sure that they put the values in the right ‘column’ (i.e. time @ 12:00 hours) of the flowsheet they are documenting on. However, for measurements/variables that are not really time series (such as the reason for admission) the measuredat does not really have a meaning other than the time of the session in which it was created. In those cases the highest measuredat (for the same admissionid) suggests updates that improved or corrected previous documentation. Especially since APACHE II and IV reasons for admission are used in calculating standardized mortality ratios for national benchmarking, I am quite confident that the most recent value is the ‘correct’ one. Hope this makes the distinction between the two times more clear.

from amsterdamumcdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.