Thread: Document Based Design Problem

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    3

    Document Based Design Problem

    Hello All!

    First time poster here. I am trying to design a software application for work. Currently we have several pre-printed documents (orders) at the hospital I work at. We repeatedly add the patients name, account number, and room number to the top of the document and then make selections within the document to clarify orders. We then date and time the order, scan it into the que and send it to the floor to be placed in the patients paper chart (I know! I Know! ) . Anyways, I thought it would be nice to write and application that could enter a patient name, account number, and room and then select a checkbox next to the orders you want to generate for that patient. Then it would ask what selection you want, then print out the orders all at once. Any suggestions? I created a Physician Signature Database application to check signatures against know physicians if we cant read the doctors signature and now I'm trying to complete the next application.


    Thanks!
    Fxguy

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    Ok ... so what's the problem?
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    3

    Document Based Application Design

    Well I'm not sure how to best go about the design. I'm not sure if it would be better to store the orders inside the application as objects that contain the text in the pre-printed document or if it would be better to read the documents in at runtime.

    Tim

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Quote Originally Posted by Fxguy View Post
    Hello All!

    First time poster here. I am trying to design a software application for work. Currently we have several pre-printed documents (orders) at the hospital I work at. We repeatedly add the patients name, account number, and room number to the top of the document and then make selections within the document to clarify orders. We then date and time the order, scan it into the que and send it to the floor to be placed in the patients paper chart (I know! I Know! ) . Anyways, I thought it would be nice to write and application that could enter a patient name, account number, and room and then select a checkbox next to the orders you want to generate for that patient. Then it would ask what selection you want, then print out the orders all at once. Any suggestions? I created a Physician Signature Database application to check signatures against know physicians if we cant read the doctors signature and now I'm trying to complete the next application.


    Thanks!
    Fxguy
    What are you using to do this?

    MSVC? What year?
    What language C++ WIN32, MFC, C#, VB?

    Sounds like you need to start simple and add functionality as you become more familiar with windows apps.

    The UI depends on the actual data in some ways.

    Quote Originally Posted by Fxguy View Post
    Anyways, I thought it would be nice to write and application that could enter a patient name, account number, and room
    Start with a series of Edit controls.

    Add presistent storage (DB, file etc) later.

    Quote Originally Posted by Fxguy View Post
    and then select a checkbox next to the orders you want to generate for that patient.
    Depends on the 'orders'. How many? How complex? How often they vary or need to be edited?

    You can store the items in teh app (ie string table) but then need to rebuild each time you want to add / modify an 'order'.
    Or store the 'orders' in a file and load at run time. You can tehn edit the file to add/modify 'orders'.

    Have a look at listviews (or listbox etc).

    You can have a checkbox next to an item and let the user edit items (if required).

    Quote Originally Posted by Fxguy View Post
    We then date and time the order,
    Use the system time.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  5. #5
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    Quote Originally Posted by Fxguy View Post
    Well I'm not sure how to best go about the design. I'm not sure if it would be better to store the orders inside the application as objects that contain the text in the pre-printed document or if it would be better to read the documents in at runtime.

    Tim
    Which one do you think will be the most useful for you?
    Devoted my life to programming...

  6. #6
    Registered User
    Join Date
    Jan 2011
    Posts
    3
    Quote Originally Posted by novacain View Post
    What are you using to do this?

    MSVC? What year?
    What language C++ WIN32, MFC, C#, VB?

    Sounds like you need to start simple and add functionality as you become more familiar with windows apps.

    The UI depends on the actual data in some ways.
    I'm using Microsoft Visual Studio. I have some familiarity with Visual Basic and .Net also c++ so probably either of those two.


    Quote Originally Posted by novacain View Post
    Depends on the 'orders'. How many? How complex? How often they vary or need to be edited?
    The majority of the orders stay the same. Each time an order is generated the only thing that changes is the Patient Name, Account Number and Room number. Each order would also need some selections (Drug Strength, Frequency, or Free Text) but the rest of the text is required to stay the same. Currently we use these orders (Which have to be approved by Pharmacy and Therapeutics Committee) by hand writing in the Patient Name, Account Number, and Location at the very top of the form. We then have _______ (Blanks) to write in the dose. We also circle the Medication name on a list in the case of interchanges.



    Ex. Order

    PT NAME
    HC Number
    HC3E ROOM NUMBER Hospital Logo.img
    __________________________________________________ ______________________
    Date / Time|

    Discontinue Pantoprazole (Protonix) / Rabperzole (Aciphex) / Lansoprazole (Prevacid) / Esomeprazole (Nexium) __Strength_______ mg po ____Frequency____. Give Omeprazole (Prilosec) __Strength_______ mg po ____Frequency____.


    Text Table of Dose Interchanges
    ex Pantoprazole (Protonix) 40mg to Omeprazole (Prilosec) 40mg same Frequency

    __________________RPh
    Per P&T Protocol

    Date Revised:
    Date Reviewed:

    __________________________________________________ ______________________


    Hope this gives a general idea.

    Thanks for all the help thinking this out!
    Tim


    Quote Originally Posted by novacain View Post
    Use the system time.

  7. #7
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Any C#?

    If I wanted to eventually earn a living programming I would pick C# to learn (though I prefer C++) but any of those languages will do this, with differing degrees of difficulty...

    As to design, break it into smaller parts.
    Start with what the minimum the app has to do to be a useful tool.
    This is what I think you should build first, and add extra features later.

    Look at your data, is it a constant value (stored) or do you need to collect it each time (user input).

    Start with identifing the patient. I think this info should be visible at all times, so I would put it on the top of the main screen.

    Next I would look at how I could validate this data (based on the risk if I don't validate).
    [At least ensure all fields have input, the room number is in the right format and exists, etc]

    [Ideally I would offer the user a list of patients, drawn from an already validated data base, but that can be added later.]

    Next the orders. This is the important bit and may require some thought.

    List all the orders (gather your data so you can look for 'patterns' or similarities to 'group' it by).

    Divide each order up into (hopefully) a standard list of 'parts' (that can be used for all orders).

    Try to get a standard list for each 'part' (that can be used for all orders)

    How many orders per patient?

    Thinking about this will help you decide what controls and data objects are needed.

    Also think about ways to make it easier for the user, because that is the main reason for this app.
    ie select a room from a list (of all the rooms) in a combo box or is the list too long?

    You could look at an editable listview to hold the orders. Something like;
    In-place editing of ListView subitems - CodeProject
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Game Engine Design
    By IceDane in forum Game Programming
    Replies: 2
    Last Post: 01-17-2010, 02:47 PM
  2. Conditional if based on command line arguments problem
    By DimensionX in forum C Programming
    Replies: 4
    Last Post: 11-05-2009, 04:38 AM
  3. Getting illegal case error
    By scmurphy64 in forum C Programming
    Replies: 2
    Last Post: 09-17-2009, 10:35 AM
  4. Mesh Class Design problem
    By sarah22 in forum Game Programming
    Replies: 2
    Last Post: 05-20-2009, 04:52 AM
  5. Im a Newbie with a graphics design problem for my simple game
    By Robert_Ingleby in forum C++ Programming
    Replies: 1
    Last Post: 11-23-2001, 06:41 PM