GithubHelp home page GithubHelp logo

electricalpaul / emay2medview Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 42 KB

Convert a CSV file from an EMAY SleepO2 pulse oximeter into ChoiceMMed's MedView (.DAT) format for import into OSCAR CPAP

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

emay2medview's People

Contributors

electricalpaul avatar mkupferman avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mkupferman

emay2medview's Issues

Date and time assume US conventions

Because I'm using the EMAY device in the US, it generates dates and times in "US" format - month/day/year and hour:minute:second AM/PM. This causes problems for non-US formats, e.g. "2021/12/10" or "11:32:14" (24-hour format without AM/PM).

Improve the date and time parsing to recognize the locale and parse these appropriately.

How to handle missing data?

If the device isn't able to get a reading (for example, the fingertip sensor comes off), it records empty data fields. A simplified case of this is:

Date,Time,SpO2(%),PR(bpm)
3/3/2024,12:07:00 AM,90,71
3/3/2024,12:07:01 AM,,
3/3/2024,12:07:02 AM,92,87

Joe's original program writes records with 0 for missing/bad data:

00000000: 0003 0000 0000 1803 0300 0700 5a47 0000  ............ZG..
                                             ^^^^
00000010: 0018 0303 0007 0100 0000 0000 1803 0300  ................
          ^^^^^^^^^^^^^^^^^^^^^^-----------------
00000020: 0702 5c57                                ..\W
          ---------

My program skips writing a record if any of the data is invalid:

00000000: 0002 0000 0000 1803 0300 0700 5a47 0000  ............ZG..
                                             ----
00000010: 0018 0303 0007 025c 57                   .......\W
          ----------------------

Which approach is correct?

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.