Hi,
Does anyone know how to make a form read a symbol when inserted into note only, and not continuously? I created a Newborn form with a data display for Patient age today, using the PATIENT.FORMATTEDAGE symbol. But, if the provider does not sign the note the same day, the patients age changes based on the current date when opened, which is a bigger deal for patients under two weeks old.
The symbol help section in EMR states:
when to evaluate
When Inserted in Note or Continuously
Obviously mine is doing the second, but is there a way to change it to the first option?
I asked GE and they told me because this is forms development they cannot help me...
Thanks!
Katy
I am thinking that a button to 'commit' the data.
Press [here] to determine and set patient current age.
Then the button would execute the MEL code, printing on the form, and possible storing to an OBS term.
Just a thought, although it is one extra step.
You could do something with durationdays(PATIENT.DATEOFBIRTH,str(DOCUMENT.CLINICALDATE)) that would give you patient age in days according to when the document was open, eliminates the click but adds a formatting issue depending on the range of patient ages you are dealing with.
That could work Michael. I have a very basic knowledge of form building. If I want to use this in a data display, I change the connection type to MEL expression, and then put in
durationdays(PATIENT.DATEOFBIRTH,str(DOCUMENT.CLINICALDATE))
or is there more needed? Different formatting?
Thanks!
correct, it will just display a number that represents days old so you could do
durationdays(PATIENT.DATEOFBIRTH,str(DOCUMENT.CLINICALDATE)) + " days old" to
add a label, or you could do
div(durationdays(PATIENT.DATEOFBIRTH,str(DOCUMENT.CLINICALDATE)),7) + " weeks old"
To convert it to number weeks old. Like I said it may depend on your population. You could get more complicated and make it variable depending on the patient age too.
This what I am putting in for the MEL expression, and it shows as blank when I open the form:
{durationdays(PATIENT.DATEOFBIRTH,str(DOCUMENT.CLINICALDATE))}
Must be missing something? (Sorry, like I said, basic knowledge)
Sorry, I missed the PATIENT symbol data type, I should have converted it to a string, this worked in a quick text
{durationdays(str(PATIENT.DATEOFBIRTH),str(DOCUMENT.CLINICALDATE))}
Hi,
I got the data display on the form to work using this language:
{durationdays(str(PATIENT.DATEOFBIRTH),str(DOCUMENT.CLINICALDATE)) + " days old"}
But when I try to use the same language in the chart note section on the translation tab I get a compiler error, or it still shows nothing in the note...
I would like it to say "Patient Age Today: 13 Days Old" in the note. Is that possible?
Thanks again for your help!
I cant see why it wouldn't work, try this though
White space on the side of the form in VFE -
{!document.patientage = durationdays(str(PATIENT.DATEOFBIRTH),str(DOCUMENT.CLINICALDATE)) + " days old"}
Data display - {document.patientage}
Text Translation -
{CFMT(document.patientage,"","Patient age today: ","","
")}
Yay!!! It worked! Thank you so much!