Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

SCHOT.thumb.PNG.b77e9f2b3e2946ae49178fc7b6eb49b8.PNG

script.PNG.d53147c7096a141f34916e577178bf5a.PNGwhen i am running above script i am able to find for how many patients i wrote particular medication which is a global field giving it as script parameter , but i want to search with date range as u can see in the image , i am trying to give it as script parameter 2 into pdate as u can see in image , but i m not able to do it can some help me please hope u understand

First of all you'll need to learn about the different parameter passing options that people use. There are a lot of them out there so pick one that a lot of people support. I still use the sixfriedrice method a different that hasn't let me down though working at different companies I see that there are a lot of choices out there.

Second, you should store the medication prescriptions in a prescription table. You can call it Prescription and link it to the person. Then auto-enter the creation date so you will see when a medicine or two were prescribed.

Then learn about looping if you want to find by multiple search criteria and create the new records so you can shorten your script by quite a lot.

 But I think that if you swap out the right side of the white fields to one portal you won't be needed to loop, you will be able to find a certain medicine prescribed within a time frame.

Edited by Agnes Riley

  • Author

5a3558351a1c8_r1.PNG.ba285cf07fdc23f8d622caa92964bbdc.PNGr2.PNG.72427cdd3d24fec675a83a097b13106e.PNGseparately i am getting correct result but i want to mix both help me plz

Did you read what I wrote?

  • Author
3 minutes ago, Agnes Riley said:

Did you read what I wrote?

yes i did , did same thing u said but cant mix both criteria

r2.PNG.96541f5bf2e94cc7b28b593f31930825.PNGfirst i want drug count then from the found set i want the date range script to run ???

5a355a96c4343_r1.PNG.1282652f0786dacee974b890570932cd.PNGlike this where am i going wrong ????

 

Edited by Dr.Gopala krishnam raju AMBATI

Set variable date and then add the other criteria right underneath in one script. Then perform find. Make sure nothing is left in the perform find.

Edited by Agnes Riley

  • Author
6 minutes ago, Agnes Riley said:

Set variable date and then add the other criteria right underneath in one script. Then perform find. Male sure nothing is left in the perform find.

ra1.PNG.9ca2b0da08685b7ea7e3964ddbce7e4b.PNGra2.PNG.2c1ba59e52dc8149f85607fd0fdd2842.PNGwith this i am getting total drug count global date range not searching y ????

Edited by Dr.Gopala krishnam raju AMBATI

I'm getting lost here. What is global? I can't see any globals here.

Delete all those from the perform find dialog. Use a loop and loop though the many fields you have (again instead of a table and a portal) and create a new find request. Add the date to every find request.

  • Author
12 minutes ago, Agnes Riley said:

I'm getting lost here. What is global? I can't see any globals here.

Delete all those from the perform find dialog. Use a loop and loop though the many fields you have (again instead of a table and a portal) and create a new find request. Add the date to every find request.

ar1.thumb.PNG.f84ddcb3c10aa308708665ef33aac323.PNGhope u will get some idea ?

Edited by Dr.Gopala krishnam raju AMBATI

  • Author

sorted.PNG.ad63285ec110c95b7ad977c36112b55e.PNGworking yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay any other method kindly guide me plz

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.