Instuctions for basic Generic Profile Update Use

Below are basic instructions for using SMS INVISION's Generic Profile Update.   The "GPU" has many uses:

bulletMay be used to carry data between Precon sessions
bulletUse for carrying data between screens in Assessments
bulletMay be used to help store data for ordersets - to keep from blowing tcls
bulletMay be used to link orders in ordersets
bulletSome sites have used GPU to build a small service master for INVISION Pharmacy
bulletSome sites have used GPU to create 'assessment sets' for INVISION assessments - they work like ordersets

You may use GPU to update/delete members in an already existing profile.  You may create a new profile for this, in any event you must know the profile name, the components names and any passwords.  Instructions to create a profile

One final piece of advise, make sure that when updating the profile, that you have all components valued in the auda for that member or else you may loose data.   Don't assume if a piece of data was valued that it will stay valued if not specified, because it probably won't be.

Using GPU to Update data:

To add or edit data, you run $P=PFOPRUPU, make sure PCFN: is set properly:

How to use:
bullet"PCHxxKEY"=profile key - profile key
bullet"PCHxxxxx"='other values' - you must set all of the profile members values, any not valued will not be set
bullet":PCFN"='4' - code means do add the member or update the member
bullet":PCPR"=PRHXL - profile to update
bullet":PCPW"=521 - this profile's password
bullet":PCEI"=1 - error indicator
bullet$P=PFOPRUPU

That should about do it!

Using GPU to Delete data:

To delete data, you still run $P=PFOPRUPU, but just value the :PCFN flag to 3:

How to use:
bullet"PCHxxKEY"=profile key - profile key
bullet":PCFN"='3' - code means delete
bullet":PCPR"='PRHxx' - profile to update
bullet":PCPW"=521 - this profile's password
bullet":PCEI"=1 - error indicator
bullet$P=PFOPRUPU

That should about do it!