I'm trying to figure out how to connect an order to some fields in the document it was created. For example, two referrals are submitted to mental health, and each one had a referral order created during the encounter. The reason for the referral was entered into a field on the form.
When answering the referral (during a later encounter) I would select a referral order from a drop down list. The order I selected would then populate the "reason" that was entered into the document in which this order was created. This was if there are two referral orders created during two different encounter, only the appropriate "reason" would populate when answering the referral, depending on which order was selected.
If, while completing the encounter to answer the referral, I selected one order named "referral", this populated into the "reason" field: attacked staff. If I selected the other order named "referral", this populated into the "reason" field: severe depression.
Any thoughts?
Here's a demo form that populates a drop-down with info from all referral orders on admin hold and shows the comment for an order selected in the drop-down in a data display.
The form has two functions, one to create the drop down list from ORDERS_ALL that shows the Order Description, Code, and Order Number. The second function uses the Order Number from the selected order to find the Clinical Comment from the _MasterOrders MEL object.
nice! Thank you. This should work just fine.