>Home

>Meditech Resources

>Meditech Nurses

>Meditech Attributes

>Meditech Tips

>Nursing Informatics

>Nursing Links

>Fun Stuff

>Presentations

>Email Me

 

 

Most all of these attributes were written with the help of Bobcat Software. Lenny supplies really clean code that gets the job done without error. In some cases, we have purchased macros from Bobcat to do a little more than attributes can do alone. Using attributes in customer defined screens makes data entry more efficient for the user, allowing them to skip fields that do not apply or to auto calculate without having to do the math manually.

Default Mom's delivery info into newborn's assessment info

DFT=@p.ADM.PAT.ccdqr.response[@p.ADM.PAT.mothers.urn,"NUROB61015"]

Place this on the newborn assessment query. I use this to pull info from the mom's admission assessment, like G, P, ABo, Rh to the newborn's admission assessment and to pull delivery time, sex, weight from the Delivery Room record to the newborn admission assessment. It works great and the staff love it. They just have to press enter and this automatically fills in.

Prevent inappropriate number response

FCL1=(@.response>48)
FCL1A=@W.err("Confirm patient's temperature! Use CELCIUS only")

Used to prevent users from entering farenheit temperatures where we need them to enter celcius.

Prompt to double check based on an answer

FCL1=IF{@.response="U" @W.err("VERY IMPORTANT! PLEASE DOUBLE CHECK!")}

If the user enters "U" for unknown, we are asking them to double check, they can still press enter and continue if this is the correct answer.

Skip a Query
IFE=[ANS,”QUERY1”]|0=“Y” Placed on the query you want to skip
IFE=[ANS,"NURERVI056"]|0="Y"&([ANS,"NURERVI007"]|0="Y") This version is an AND. Only stop at this query if the answer toquery1 is “Y” and the answer to query2 is “Y”
Stop here based on previous group response
IFE=[ANS,”QUERY1”]|0=“VAG”
IFE=IF{([ANS,"NUROB68034"]|0="VAG")!([ANS,"NUROB68034"]|0="VBAC")} This version is an OR. Only stop here if the answer to the first query is VAG or the answer to the second query is VBAC
Convert Gms. To lbs/ozs

FCL1=(@.response*0.035274):0D^/OZS place on the gms query

IFE=IF{/OZS P(R,S,(/OZS/16^/[ANS%0,"NUROB68094"]|0):2TL)^#,""} place on the lbs query

IFE=IF{/OZS P(R,S,(/OZS\16^/[ANS%0,"NUROB68095"]|0):2TL)^#,""^/OZS}place on the ozs query

In the example above, 3 queries are created. If someone edits the value in GMS, LBS and OZ are re-calculated. They can never be edited.

Sum of 3 numbers

IFE=IF{[ANS,"NURERVI029"]|0+[ANS,"NURERVI030"]|0+[ANS,"NURERVI031"]|0^TOT,

IFE=TOT^/[ANS%0,"NURERVI032"]|0,P(R,S,[ANS,"NURERVI032"]|0:2TL)^#,""}

Calculate hrs/mins

I used this to calculate total number of hrs/mins for a stage of labor.

IFE=IF{[ANS,"NUROB68011"]|0^DO, (Put on Date of Complete Dilation query)

IFE=[ANS,"NUROB68015"]|0^TO, (Put on Time of Complete Dilation query)

IFE=[ANS,"NUROB68009"]|0^DI, (Put on Date of Labor Begin query)

IFE=[ANS,"NUROB68010"]|0^TI, (Put on Time of Labor Begin query)

IFE=%Z.elapsed.time(DO,TO,DI,TI,"hh.mm")^/[ANS%0,"NUROB68013"]|0,

IFE=P(R,S,[ANS,"NUROB68013"]|0)^#,""} Place these last 2 lines of code on the query where you want the total to appear

Default in an answer

I used these 2 lines of code to default in a Yes if I answered another query Yes. DFT can stand alone to default in any answer you desire.

DFT="Y"

IFE=[ANS,"NURERVI056"]0="Y”

Calculate days/weeks of gestation

Placed on the EDC query

IFE=ANS^/HOLD

FCL1=IF{%Z.date.in(@.response)^EDC,%Z.date.add(EDC,0-280)^/DYS,""}

FCL2=IF{%Z.date.sub(@.today,/DYS)^DYS,/HOLD^HOLD,

FCL2=DYS/7^/[HOLD%0,"NURHXOB02"]|0,DYS\7^/[HOLD%0,"NURHXOB03"]|0,""}

Placed on the Weeks Gest query

IFE=IF{P(R,S,[ANS,"NURHXOB02"]|0)^#,""}

Placed on the Days Gest query

IFE=IF{P(R,S,[ANS,"NURHXOB03"]|0)^#,""}

Stop here based on sex in admission
IFE=@p.ADM.PAT.sex[@t.ADM.PAT.urn]="F"
Popup message based on answer

First Example pops up a message to call dietary. Placed on the query where you want the message to pop up.

FCL1=IF{@.response="Y" @W.err("Call Dietary ext 7230")}

Second Example asks you if you really did call dietary. All 3 lines of code to be placed on the query where you want the questions to popup. This question must be answered Y to get past it.

FCL1=IF{@.response="N" "";

FCL1=@W.yes.no.y("Did you call Dietary?") "";1}

FCL1A=1

Auto Recall

Recalls in the last answer by just pressing enter.

DFT=@p.ADM.PAT.ccdqr.response[@t.ADM.PAT.urn,"NURREST052"]

Pulling in External Data

This example pulls glucose results from LAB!

IFE=IF{@t.ADM.PAT.urn^/R.FRAG.ARG1,

IFE=%Z.rw.fragment("LAB.L.SPEC.zcus.glu.R","LAB"),

IFE=/R.FRAG.VAL["GLU"]^/[ANS%0,"THISQRY"]|0,

IFE=P(R,S,[ANS,"THISQRY"]|0:10TL)^#,""}