Difference between revisions of "Creating Custom Attributes"

From Vital Soft Wiki
Jump to: navigation, search
>Jeremyb
(Created page with "==Summary== This document will present in detail how Custom Member Attributes can be created in Vital Signs. The following files will be modified on HPUX: - /ASKPLUS/vsdata/sc...")
 
>Jeremyb
Line 8: Line 8:
  
 
==Gather Required Criteria==
 
==Gather Required Criteria==
''The first step in creating an Attribute is to know precisely the criteria for the attribute and the datasets involved''
+
The first step in creating an Attribute is to know precisely the criteria for the attribute and the datasets involved.
  
  
 
==Modify VSCALC-CUSTOM-ATTR==
 
==Modify VSCALC-CUSTOM-ATTR==
''On HPUX in /ASKPLUS/vsdata/scripts exists a file named VSCALC-CUSTOM-ATTR.  The Custom Attribute scripting will be handled within this file. There should be a resulting''
+
On HPUX in /ASKPLUS/vsdata/scripts exists a file named VSCALC-CUSTOM-ATTR.  The Custom Attribute scripting will be handled within this file. The end result should be an SD or SD Indexed file that contains fields that will be available to query in the ICUSATTR file.
 +
 
  
 
==Modify ICUSATTR FILE==
 
==Modify ICUSATTR FILE==
''Create a UNIX eof file named ICUSATTR''
+
This file will contain the Attribute criteria based on the SD file built in VSCALC-CUSTOM-ATTR.
  
  
 
==Modify ATTRFILE==
 
==Modify ATTRFILE==
''Now that the Attri
+
Now that the Attribute has been setup, the ATTRFILE must be updated so that the new Attribute is available in Vital Signs.
 +
 
 +
 
 +
==Enable Custom Attribute Macro==
 +
Once the custom attribute files are all in place and updated, the Vital Signs custom macro must be turned on.
 +
 
 +
This macro is named Macro '''VS-CUSTOM-ATTR-XEQ''' and is found in /ASKPLUS/vsdata/custom/live/vsmacdef.
 +
 
 +
Example of macro enabled:
 +
<pre>
 +
** The following Macro is only set to 1 if custom code is to be used for this specific client.
 +
** Custom code is added to the /ASKPLUS/vsdata/scripts/VSCALC-CUSTOM-ATTR
 +
** Macro VS-CUSTOM-ATTR-XEQ = 1
 +
Macro VS-CUSTOM-ATTR-XEQ = 1
 +
</pre>

Revision as of 20:24, 30 November 2012

Summary

This document will present in detail how Custom Member Attributes can be created in Vital Signs. The following files will be modified on HPUX: - /ASKPLUS/vsdata/scripts/VSCALC-CUSTOM-ATTR - /ASKPLUS/vsdata/custom/live/ICUSATTR - /ASKPLUS/vsdata/custom/live/ATTRFILE - /ASKPLUS/vsdata/custom/live/vsmacdef


Gather Required Criteria

The first step in creating an Attribute is to know precisely the criteria for the attribute and the datasets involved.


Modify VSCALC-CUSTOM-ATTR

On HPUX in /ASKPLUS/vsdata/scripts exists a file named VSCALC-CUSTOM-ATTR. The Custom Attribute scripting will be handled within this file. The end result should be an SD or SD Indexed file that contains fields that will be available to query in the ICUSATTR file.


Modify ICUSATTR FILE

This file will contain the Attribute criteria based on the SD file built in VSCALC-CUSTOM-ATTR.


Modify ATTRFILE

Now that the Attribute has been setup, the ATTRFILE must be updated so that the new Attribute is available in Vital Signs.


Enable Custom Attribute Macro

Once the custom attribute files are all in place and updated, the Vital Signs custom macro must be turned on.

This macro is named Macro VS-CUSTOM-ATTR-XEQ and is found in /ASKPLUS/vsdata/custom/live/vsmacdef.

Example of macro enabled:

** The following Macro is only set to 1 if custom code is to be used for this specific client.
** Custom code is added to the /ASKPLUS/vsdata/scripts/VSCALC-CUSTOM-ATTR
** Macro VS-CUSTOM-ATTR-XEQ = 1
Macro VS-CUSTOM-ATTR-XEQ = 1