In the Document-based Referral Request Integration Profile the referral request is described by documents that are transmitted using XDS, XDR or XDM.  The referral request document location can be conveyed either by a printed uniqueID, or optionally by a direct HL7 order message.