I’m looking for some assistance in extracting information for prescription refills. In our current software, we use the below snippet for refill scripts in clinic – this gets added into the cloud based system for the doctor to review, and then request the medication to be dispensed. To save time, we were hoping to extract specific text from this snippet (which is already entered into the system as plain text) to put into the med request “popup”. Specifically, we would like to extract the answer to the “How would you like to be contacted when your medication is ready for pickup?”. I’m assuming this would be through extractregex function, but I am unsure how to code it, or if there is a better way. Any help is appreciated!
Name/Strength of Medication Requested: {formtext: name=}
{note}Have they received this medication before? {formmenu: Yes; No; default=; name=Dispensed before?}{endnote}
{if: `dispensed before?`=Yes}What dose is the client currently administering and how often? {formtext}
Does the client feel the patient is responding well to this dose? {formtext}
Quantity requested? {formtext}
Is there a specific time the owner needs the medication by {note}(we ideally have at least 48hrs notice but we try to be as accomodating as possible){endnote}? {formdate: MM/DD/YYYY}
How would you like to be contacted when your medication is ready for pickup? {formmenu: Phone call; Email; Text; No contact needed; default=; name=Contact}{if: contact="Email"}{formtext: name=Email}{else}{endif}{if: contact="Text"}{formtext: name=Phone Number}{else}{endif}{if: contact="Phone call"}{formtext: name=Phone Number}{else}{endif}{if: contact="No contact needed"} - {formtext}{else}{endif}{endif}
{if: `dispensed before?`=No; trim=yes}Quantity requested? {formtext}
Is there a specific time the owner needs the medication by {note}(we ideally have at least 48hrs notice but we try to be as accomodating as possible){endnote}? {formdate: MM/DD/YYYY}
How would you like to be contacted when your medication is ready for pickup? {formmenu: Phone call; Email; Text; No contact needed; default=; name=Contact}{if: contact="Email"}{formtext: name=Email}{else}{endif}{if: contact="Text"}{formtext: name=Phone Number}{else}{endif}{if: contact="Phone call"}{formtext: name=Phone Number}{else}{endif}{if: contact="No contact needed"} - {formtext}{else}{endif}{endif}
