GithubHelp home page GithubHelp logo

Vital Sign Futures? about synthea HOT 4 CLOSED

synthetichealth avatar synthetichealth commented on May 13, 2024
Vital Sign Futures?

from synthea.

Comments (4)

dehall avatar dehall commented on May 13, 2024

I wish I could say we had a master plan all laid out, but unfortunately we aren't there yet. I do believe it would be ideal to have all Vital Signs set by GMF modules and not in the ruby modules, the reason we haven't gone down that path is that many of the vital sign values are based on formulas which the GMF isn't able to represent.

For instance, to estimate creatinine clearance for diabetes we use the formula Est. Creatinine Clearance = [[140 - age(yr)]*weight(kg)]/[72*serum Cr(mg/dL)] (ref: http://www.mcw.edu/calculators/creatinine.htm)

We're thinking about ways to potentially represent these kinds of formulas within the GMF, and we welcome any community suggestions.

from synthea.

jeffeastman avatar jeffeastman commented on May 13, 2024

I'm working on a module to initialize the vital signs and then adjust their trajectories on a (monthly) bases. But yeah, we need formulas for that so working on them too.

I'll let you know how it works out.

from synthea.

jeffeastman avatar jeffeastman commented on May 13, 2024

Here's the start of a module that can be edited to set initial values for all of the vitals. It then iterates monthly to adjust them. Way too simple minded but its a start. I've also added a simple Expression mechanism that is adequate to calculate the creatinine clearance and a new expression field on VitalSign that, if set, will evaluate the expression to set the next value of the vital. This version only adjusts it by - 1.0..1.0 so more work is needed for realism.

vital_signs.json.txt

Here's an Expression that will evaluate the creatinine clearance, just so you can see a bit more about Expressions. For example, Formulas are simple binary operators and Primitives can either be single values, the names of a vital (plus age and gender tests) or a Range.

Hmmm, the "" operators should be *. It seems the wiki is morphing them.

{
"type": "Formula",
"left": {
"type": "Formula",
"left": {
"type": "Formula",
"left": {
"type": "Formula",
"left": {
"type": "Primitive",
"value": 140.0
},
"operator": "-",
"right": {
"type": "Primitive",
"sign": "Age(yr)"
}
},
"operator": "",
"right": {
"type": "Primitive",
"sign": "Weight"
}
},
"operator": "/",
"right": {
"type": "Formula",
"left": {
"type": "Primitive",
"value": 72.0
},
"operator": "
",
"right": {
"type": "Primitive",
"sign": "Creatinine"
}
}
},
"operator": "",
"right": {
"type": "Formula",
"left": {
"type": "Primitive",
"sign": "isMale"
},
"operator": "+",
"right": {
"type": "Formula",
"left": {
"type": "Primitive",
"value": 0.85
},
"operator": "
",
"right": {
"type": "Primitive",
"sign": "isFemale"
}
}
}
}

from synthea.

jeffeastman avatar jeffeastman commented on May 13, 2024

I've got a more complete vital_signs module and am working with my management to release it. Closing this for now.

from synthea.

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.