Embeded flash application problem

jjcanales wrote on Wednesday, December 08, 2010:

I am working on a flash drawing application for a new form and the application works just fine, but when placed into the form page (interface/patient_file/encounter/load_form.php?formname=image_draw) from within oemr, it does not display the application, it only shows a grey box (475x375) which is the size of the application window, so the “movie does play”.  However, if I call the file directly (interface/forms/image_draw/new.php) using the url, it works just fine.  I believe this is a problem with the nested html frames but not sure how to work around this.  Any ideas on how to fix?

-Joe

aethelwulffe wrote on Saturday, December 11, 2010:

Noob trying to help:
Is the application frame size defined anywhere before you call it, or is it really producing that proportion just from the attributes of the media?  Got a code example

jjcanales wrote on Saturday, December 11, 2010:

Thanks for help, but I figured it out, the problem was the call to the swf.  It required a full path from root to the file, due to the html frames, now it works.  I am still cleaning it up but it works well on my server.  I will be making it freely available for use,  as a form add on.  It is a image drawing flash application, that pulls basic anatomical images from a file and allows a user to sketch on the image (draw the location of lesion, rash… and add text), the image is small about 11kb and saved to a file.  I just need to know how to contribute it to the development team.

Joe

mike-h30 wrote on Saturday, December 11, 2010:

Is Flash something we want in OpenEMR?  I would prefer to utilize open standards rather than proprietary applications like Adobe Flash.  How do others feel?

inmymac wrote on Saturday, December 11, 2010:

I, personally, would not want proprietary stuff in OpenEMR. I agree with mike-h30 we should use open standards.

sunsetsystems wrote on Sunday, December 12, 2010:

Everything in OpenEMR must be GPL-compatible.  If you can satisfy that it’s OK.  But my style would be to implement drawing with some combination of HTML, CSS, DOM and javaScript.

Rod
www.sunsetsystems.com

bradymiller wrote on Monday, December 13, 2010:

hey,
We use open flash chart to trend vitals in 4.0. Isn’t this using Flash in an open source context?
-brady

stephen-smith wrote on Monday, December 13, 2010:

1. Flash will never be a truly open technology the way CSS, HTML, and XML are; the specifications are developed in fundamentally different ways.  Any interested party can choose to participate in shaping W3C specifications or monitor that process.

2. Depends.  If you can confirm the flash file follows the relevant specifications and doesn’t depend on optional features only implemented by Adobe Flash Player, then it is up to the user to employ a conformant flash player and for developers to use a conformant flash editor (and maintain the cross-implementation quality of the flash file).

3. Depends.  In practice, we need two things to use flash openly.  A Free Software player (for users) and a Free Software editor (for developers).  The only Free Software player I know of is Gnash and its variants; does it work with Gnash?  I don’t know of a Free Software editor; if there isn’t one, it’s not possible to maintain the flash file in an open manner.

Take whatever answer you like, but I find it difficult to reconcile the traditionally proprietary flash technology with Free Software ideals.

aethelwulffe wrote on Monday, December 13, 2010:

I agree.  It is easy to get in bed with something compared to the process of getting out of the situation when it goes bad.

I have a question…
  What is the flash drawing form for?  Diagrams? Trends? Patient injury location drawings?

jjcanales wrote on Monday, December 13, 2010:

Thanks for all the input.  I was not aware of the complexities of open source related to adobe applications, thanks for the education.  The application was for drawing on an simple anatomical image, similar to sketch programs in other EMRs (Epic).  This was a feature requested by an opthalmology friend, who uses it to describe the location of a lesion on the eye.  It’s used by many specialties to annotate the location of a lesion (rash, mass etc).  It is also a feature that is not commonly found in other EMR applications.  I can still make this available to end users if there is interest.

Joe

sraj49 wrote on Monday, December 13, 2010:

Joe,

Good morning. We are very interested and would you be kind enough to send the details to my email id: sraj49@gmail.com.

Appreciate your efforts.

Raj

jimmyfoo wrote on Monday, December 13, 2010:

Joe,

I would also like to have a copy if you would be so kind.  email is jim@vitalpodsystems.com

Thanks for your hard work

Jim

arnabnaha wrote on Monday, December 13, 2010:

Please take the pain to send a copy to me too….
superarnab@gmail.com

Thanks in advance

arnabnaha wrote on Monday, December 13, 2010:

It would also be nice if you can submit the code in the repository…This feature is worth to be added in the official openemr code base…body diagram for marking lesions and injuries are really needed and can be a cool feature in openemr.

zhhealthcare wrote on Monday, December 13, 2010:

Here is my two cents. 

We used something similar to capture signatures.  Did not have to use proprietary software like adobe.  I just had to pay someone who already had the code and he was willing to share it with me for a price.  I believe it was in Java.   I know it is a sort of license. The reason why i took his code on those terms is that I did not want to waste time on it. 

We plan to use that code for a bariatric surgeon so that he can sketch the contours of the anatomy of patients he wants to operate on. 

arnabnaha wrote on Monday, December 13, 2010:

hey Brady…
Do you need to install the open flash charts in order to see them work with the vitals? How to use them? can you please tell me in details…

bradymiller wrote on Tuesday, December 14, 2010:

arnabnaha,
Answered your question here:
https://sourceforge.net/projects/openemr/forums/forum/202506/topic/4012285
-brady

arnabnaha wrote on Tuesday, December 14, 2010:

thanks brady….
openemr rocks!!! :-):slight_smile:

arnabnaha wrote on Wednesday, December 15, 2010:

Hi…
Brady, I have a request…
The image_draw form as done by endoset…works great… just now tested it in windows system…Can it be posted in the official repository / codebase? This will definitely be a help to a lot many surgeons and physicians and will also increase a new fumctionality of the openemr… Thanks…

bradymiller wrote on Wednesday, December 15, 2010:

hey,
Post it and they will come. If possible put it on your github account, or email it to me at brady@sparmy.com. Will need to ensure it’s compatible with GPL first.
-brady