- About XNAT
- News & Events
- XNAT Marketplace
- Contact Us
Validate pipeline is a Schematron based pipeline which uses a Schematron rule file, this file specifies the conditions which are to be checked. The pipeline generates an assessor which is specified in protocolValidation.xsd schema. Apart from using XPATH expressions while setting up the rules in the schematron document, one can create custom extension functions in JAVA and invoke these functions. This is similar to custom functions in Pipeline Engine.
Site Administrators should add the pipeline <PIPELINE_HOME>/catalog/validation_tools/Validate.xml with the custom webpage PipelineScreen_protocolcheck.vm
The template file PipelineScreen_protocolcheck.vm is the UI when the user tries to validate using Actions -> Build -> ProtocolCheck.
Each project owner should add the Validate pipeline into their project. If the option Is this pipeline to be launched automatically while archiving? is checked, validate pipeline would be automatically launched on archival. The following steps should be carried out:
The rule file should be added to the project as a resource. There could be rule files for each of the datatypes in the project eg. MRSessions, PET Sessions etc. The rule files are associated using:
XNATRestClient -host HOST -u USERNAME -p PASSWORD -m PUT -remote "/data/archive/projects/YOUR_PROJECT/resources/validation_xnat_mrSessionData"
XNATRestClient -host HOST -u USERNAME -p PASSWORD -m PUT -remote "/data/archive/projects/YOUR_PROJECT/resources/validation_xnat_mrSessionData/files?content=DEFAULT" -local PATH_TO_RULE_FILE
Once the Validation pipeline is setup for the project, it can be invoked in the following ways: