|
|
OverviewYour organization may require one or more physical measurement stages for its custom version of Onyx. Typically, a separate Onyx stage is defined for each type of physical measurement. The onyx-demo web application includes several physical measurement stages. You can use these stages as models for the physical stages of your custom version of Onyx.
Configuration Files for a Physical Measurement StageThe configuration files for physical measurement stages are in the WEB-INF/config/jade/resources/instruments directory. This directory includes a subdirectory for each physical measurement stage. For example, the subdirectory for the blood pressure stage in onyx-demo is: WEB-INF/config/jade/resources/instruments/BloodPressure The subdirectory for a particular physical measurement stage includes a descriptor file that defines the stage (instrument attributes, input and output parameter attributes, validation, contraindications, and so on) and properties files for localizing the text that appears onscreen. The files are named as follows: The onyx-demo application includes a couple of physical measurement stages that launch software for particular models of instrument. If an instrument has its own software that will be launched automatically by Onyx, an additional directory will be defined for the instrument in an instruments directory at the same level as WEB-INF. It is not currently possible to define a custom stage that will launch an instrument's software and capture the data automatically. Physical Measurement Stages Copied from onyx-demoWhen you copied the directory structure of the onyx-demo web application, you got a number of physical measurement stages. There should a subdirectory for the following stages in your WEB-INF/config/jade/resources/instruments directory: To prepare a new physical measurement stage, you can use these stages as models. If you want to keep any of these stages, you can use them as is or modify them as necessary. A couple of the stages launch proprietary software for particular instrument models. You can use these stages as is in your custom version of Onyx if you wish. Support has also been implemented for a number of other instruments with proprietary software. Check the complete list of supported instruments, and contact us if you need more information. It is not currently possible to define a custom stage for electronic instruments other than those in the supported list. Defining the Instrument Descriptor FileThe instrument descriptor file defines how a physical measurement stage will be presented in Onyx. To prepare the instrument descriptor file for a custom physical stage, start with a descriptor file for one of the physical measurment stages in onyx-demo and edit the elements as necessary. Example of an Instrument Descriptor FileAn instrument descriptor file defines how the physical measurement stage will proceed in Onyx. The following example of an instrument descriptor file is for a sitting height measurement. instrument-descriptor.xml Elements of an Instrument Descriptor FileThese are the elements that can be included in an instrument descriptor file.
Using Data Sources in an Instrument Descriptor FileInstrument descriptor files can use a <dataSource> element for various purposes. One of the attributes of a <dataSource> element is class. See data source for more information about data sources and the possible values of the class attribute.
Using Integrity Checks in an Instrument Descriptor FileOutput parameter values can be checked for validity/integrity by using predefined integrityChecks:
All integrity checks can be configured to produce a warning instead of an error by specifying its type element as WARNING. Localizing a Physical Measurement StageAfter you have prepared the instrument-descriptor.xml file for a physical measurement stage, you must prepare properties files that contain localized strings for all the labels that will appear in the user interface. All elements in the instrument descriptor file that include a <code> element need to be localized. The <code> elements are the keys in the key-value pairs in the properties files. Here is a snippet from the English properties file for the blood pressure stage. Adding a Physical Measurement Stage to OnyxTo add a physical measurement stage to your custom version of Onyx, you must:
Adding the Stage to stages.xmlTo add a physical measurement stage in your version of Onyx, you need to add a <stage> element to the WEB-INF/config/jade/stages.xml file. You can define dependency conditions by using the <stage> elements for the onyx-demo stages as a model. See also Defining Stage Dependencies. WEB-INF/config/jade/stages.xml Localizing the Name of the StageTo localize the name of the physical measurement in each available interface language, you edit each of the properties files in the WEB-INF/config/jade directory . For example, to localize the name of the BloodPressure stage:
messages_en.properties
messages_fr.properties Setting the Position of the Stage in the InterviewTo establish where a stage fits in the interview, you add the stage name (for example: BloodPressure) to this line in the global Onyx configuration file : WEB-INF/config/onyx-config.properties Removing Traces of onyx-demo StagesWhen you have finished defining your custom physical measurement stages, be sure to remove all traces of the stages copied from onyx-demo.
|
Search Onyx Documentation |
Configuring Physical Measurement Stages
Labels:
None